r7471@lvps87-230-33-50: verhaegs | 2008-04-05 16:41:40 +0200
[cake.git] / configure
blobbbdf037ed33117066a2acd46fa2b3c3d65e461a4
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_bootloader
750 aros_target_arch
751 aros_target_cpu
752 aros_target_variant
753 aros_target_suffix
754 aros_target_incl
755 aros_target_ar
756 aros_target_ranlib
757 aros_kernel_nm
758 aros_target_cc
759 aros_target_as
760 aros_target_ld
761 aros_target_cc_includes
762 aros_target_cc_path
763 aros_target_objdump
764 aros_target_objcopy
765 aros_target_strip
766 aros_target_nm
767 aros_shared_default
768 aros_shared_ld
769 aros_object_format
770 aros_compiler_libs
771 aros_config_cflags
772 aros_config_aflags
773 aros_config_ldflags
774 aros_shared_cflags
775 aros_shared_aflags
776 aros_shared_ldflags
777 aros_kernel_ldflags
778 aros_debug_cflags
779 aros_debug_aflags
780 aros_debug_ldflags
781 aros_target_genmap
782 aros_target_strip_flags
783 x11_hidd_target
784 sdl_hidd_target
785 aros_default_wbwidth
786 aros_default_wbheight
787 aros_default_wbdepth
788 DO_XSHM_SUPPORT
789 DO_VIDMODE_SUPPORT
790 aros_host_x11_includes
791 aros_host_x11_libdirs
792 aros_host_sdl_cflags
793 aros_host_sdl_libs
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-bootloader=NAME
1415 Enable a specific bootloader
1416 --enable-includes=dir Alternative system include directory
1417 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1418 (default=no)
1419 --enable-palm-debug-hack
1420 Enable palm debug output hack in palm native
1421 (default=no)
1422 --enable-nesting-supervisor
1423 Enable nesting supervisor support in unix
1424 (default=no)
1425 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1426 --enable-x11-shm use X11 shared memory (default=auto)
1427 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1428 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1429 --disable-sdltest Do not try to compile and run a test SDL program
1430 --enable-dbus Enable DBUS support via dbus.library (default=no)
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-optimization=FLAGS
1436 Use optimization flags FLAGS (default=-O2).
1437 --with-resolution=XRESxYRESxDEPTH
1438 Default resolution of the initial WorkbenchScreen
1439 --with-serial-debug Enable serial debug output in native (default=no)
1440 --with-x use the X Window System
1441 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1442 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CPP C preprocessor
1453 XMKMF Path to xmkmf, Makefile generator for X Window System
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1458 _ACEOF
1459 ac_status=$?
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" || continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 configure
1519 generated by GNU Autoconf 2.61
1521 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1522 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1528 cat >config.log <<_ACEOF
1529 This file contains any messages produced by compilers while
1530 running configure, to aid debugging if configure makes a mistake.
1532 It was created by $as_me, which was
1533 generated by GNU Autoconf 2.61. Invocation command line was
1535 $ $0 $@
1537 _ACEOF
1538 exec 5>>config.log
1540 cat <<_ASUNAME
1541 ## --------- ##
1542 ## Platform. ##
1543 ## --------- ##
1545 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1546 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1547 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1548 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1549 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1551 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1552 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1554 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1555 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1556 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1557 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1558 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1559 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1560 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 _ASUNAME
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 echo "PATH: $as_dir"
1570 done
1571 IFS=$as_save_IFS
1573 } >&5
1575 cat >&5 <<_ACEOF
1578 ## ----------- ##
1579 ## Core tests. ##
1580 ## ----------- ##
1582 _ACEOF
1585 # Keep a trace of the command line.
1586 # Strip out --no-create and --no-recursion so they do not pile up.
1587 # Strip out --silent because we don't want to record it for future runs.
1588 # Also quote any args containing shell meta-characters.
1589 # Make two passes to allow for proper duplicate-argument suppression.
1590 ac_configure_args=
1591 ac_configure_args0=
1592 ac_configure_args1=
1593 ac_must_keep_next=false
1594 for ac_pass in 1 2
1596 for ac_arg
1598 case $ac_arg in
1599 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1601 | -silent | --silent | --silen | --sile | --sil)
1602 continue ;;
1603 *\'*)
1604 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 esac
1606 case $ac_pass in
1607 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1609 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1610 if test $ac_must_keep_next = true; then
1611 ac_must_keep_next=false # Got value, back to normal.
1612 else
1613 case $ac_arg in
1614 *=* | --config-cache | -C | -disable-* | --disable-* \
1615 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1616 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1617 | -with-* | --with-* | -without-* | --without-* | --x)
1618 case "$ac_configure_args0 " in
1619 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 esac
1622 -* ) ac_must_keep_next=true ;;
1623 esac
1625 ac_configure_args="$ac_configure_args '$ac_arg'"
1627 esac
1628 done
1629 done
1630 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1631 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1633 # When interrupted or exit'd, cleanup temporary files, and complete
1634 # config.log. We remove comments because anyway the quotes in there
1635 # would cause problems or look ugly.
1636 # WARNING: Use '\'' to represent an apostrophe within the trap.
1637 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1638 trap 'exit_status=$?
1639 # Save into config.log some information that might help in debugging.
1641 echo
1643 cat <<\_ASBOX
1644 ## ---------------- ##
1645 ## Cache variables. ##
1646 ## ---------------- ##
1647 _ASBOX
1648 echo
1649 # The following way of writing the cache mishandles newlines in values,
1651 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1652 eval ac_val=\$$ac_var
1653 case $ac_val in #(
1654 *${as_nl}*)
1655 case $ac_var in #(
1656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 esac
1659 case $ac_var in #(
1660 _ | IFS | as_nl) ;; #(
1661 *) $as_unset $ac_var ;;
1662 esac ;;
1663 esac
1664 done
1665 (set) 2>&1 |
1666 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1667 *${as_nl}ac_space=\ *)
1668 sed -n \
1669 "s/'\''/'\''\\\\'\'''\''/g;
1670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 ;; #(
1673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1675 esac |
1676 sort
1678 echo
1680 cat <<\_ASBOX
1681 ## ----------------- ##
1682 ## Output variables. ##
1683 ## ----------------- ##
1684 _ASBOX
1685 echo
1686 for ac_var in $ac_subst_vars
1688 eval ac_val=\$$ac_var
1689 case $ac_val in
1690 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1691 esac
1692 echo "$ac_var='\''$ac_val'\''"
1693 done | sort
1694 echo
1696 if test -n "$ac_subst_files"; then
1697 cat <<\_ASBOX
1698 ## ------------------- ##
1699 ## File substitutions. ##
1700 ## ------------------- ##
1701 _ASBOX
1702 echo
1703 for ac_var in $ac_subst_files
1705 eval ac_val=\$$ac_var
1706 case $ac_val in
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 esac
1709 echo "$ac_var='\''$ac_val'\''"
1710 done | sort
1711 echo
1714 if test -s confdefs.h; then
1715 cat <<\_ASBOX
1716 ## ----------- ##
1717 ## confdefs.h. ##
1718 ## ----------- ##
1719 _ASBOX
1720 echo
1721 cat confdefs.h
1722 echo
1724 test "$ac_signal" != 0 &&
1725 echo "$as_me: caught signal $ac_signal"
1726 echo "$as_me: exit $exit_status"
1727 } >&5
1728 rm -f core *.core core.conftest.* &&
1729 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 exit $exit_status
1732 for ac_signal in 1 2 13 15; do
1733 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1734 done
1735 ac_signal=0
1737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1738 rm -f -r conftest* confdefs.h
1740 # Predefined preprocessor variables.
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_NAME "$PACKAGE_NAME"
1744 _ACEOF
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1749 _ACEOF
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1754 _ACEOF
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_STRING "$PACKAGE_STRING"
1759 _ACEOF
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1764 _ACEOF
1767 # Let the site file select an alternate cache file if it wants to.
1768 # Prefer explicitly selected file to automatically selected ones.
1769 if test -n "$CONFIG_SITE"; then
1770 set x "$CONFIG_SITE"
1771 elif test "x$prefix" != xNONE; then
1772 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1773 else
1774 set x "$ac_default_prefix/share/config.site" \
1775 "$ac_default_prefix/etc/config.site"
1777 shift
1778 for ac_site_file
1780 if test -r "$ac_site_file"; then
1781 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1782 echo "$as_me: loading site script $ac_site_file" >&6;}
1783 sed 's/^/| /' "$ac_site_file" >&5
1784 . "$ac_site_file"
1786 done
1788 if test -r "$cache_file"; then
1789 # Some versions of bash will fail to source /dev/null (special
1790 # files actually), so we avoid doing that.
1791 if test -f "$cache_file"; then
1792 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1793 echo "$as_me: loading cache $cache_file" >&6;}
1794 case $cache_file in
1795 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1796 *) . "./$cache_file";;
1797 esac
1799 else
1800 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1801 echo "$as_me: creating cache $cache_file" >&6;}
1802 >$cache_file
1805 # Check that the precious variables saved in the cache have kept the same
1806 # value.
1807 ac_cache_corrupted=false
1808 for ac_var in $ac_precious_vars; do
1809 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1810 eval ac_new_set=\$ac_env_${ac_var}_set
1811 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1812 eval ac_new_val=\$ac_env_${ac_var}_value
1813 case $ac_old_set,$ac_new_set in
1814 set,)
1815 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1816 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1817 ac_cache_corrupted=: ;;
1818 ,set)
1819 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1821 ac_cache_corrupted=: ;;
1822 ,);;
1824 if test "x$ac_old_val" != "x$ac_new_val"; then
1825 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1826 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1827 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1828 echo "$as_me: former value: $ac_old_val" >&2;}
1829 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1830 echo "$as_me: current value: $ac_new_val" >&2;}
1831 ac_cache_corrupted=:
1832 fi;;
1833 esac
1834 # Pass precious variables to config.status.
1835 if test "$ac_new_set" = set; then
1836 case $ac_new_val in
1837 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1838 *) ac_arg=$ac_var=$ac_new_val ;;
1839 esac
1840 case " $ac_configure_args " in
1841 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1842 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843 esac
1845 done
1846 if $ac_cache_corrupted; then
1847 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1848 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1849 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1850 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1851 { (exit 1); exit 1; }; }
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 ac_aux_dir=
1879 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1880 if test -f "$ac_dir/install-sh"; then
1881 ac_aux_dir=$ac_dir
1882 ac_install_sh="$ac_aux_dir/install-sh -c"
1883 break
1884 elif test -f "$ac_dir/install.sh"; then
1885 ac_aux_dir=$ac_dir
1886 ac_install_sh="$ac_aux_dir/install.sh -c"
1887 break
1888 elif test -f "$ac_dir/shtool"; then
1889 ac_aux_dir=$ac_dir
1890 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 break
1893 done
1894 if test -z "$ac_aux_dir"; then
1895 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1896 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1897 { (exit 1); exit 1; }; }
1900 # These three variables are undocumented and unsupported,
1901 # and are intended to be withdrawn in a future Autoconf release.
1902 # They can cause serious problems if a builder's source tree is in a directory
1903 # whose full name contains unusual characters.
1904 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1905 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1906 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1910 # Check what host we are running on.
1911 # If a target is not suggested, we use this one.
1912 # Note that what we call a target, Autoconf calls a host.
1913 # Make sure we can run config.sub.
1914 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1915 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1916 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1917 { (exit 1); exit 1; }; }
1919 { echo "$as_me:$LINENO: checking build system type" >&5
1920 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1921 if test "${ac_cv_build+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 ac_build_alias=$build_alias
1925 test "x$ac_build_alias" = x &&
1926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1927 test "x$ac_build_alias" = x &&
1928 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1929 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1930 { (exit 1); exit 1; }; }
1931 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1938 echo "${ECHO_T}$ac_cv_build" >&6; }
1939 case $ac_cv_build in
1940 *-*-*) ;;
1941 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1942 echo "$as_me: error: invalid value of canonical build" >&2;}
1943 { (exit 1); exit 1; }; };;
1944 esac
1945 build=$ac_cv_build
1946 ac_save_IFS=$IFS; IFS='-'
1947 set x $ac_cv_build
1948 shift
1949 build_cpu=$1
1950 build_vendor=$2
1951 shift; shift
1952 # Remember, the first character of IFS is used to create $*,
1953 # except with old shells:
1954 build_os=$*
1955 IFS=$ac_save_IFS
1956 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1959 { echo "$as_me:$LINENO: checking host system type" >&5
1960 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1961 if test "${ac_cv_host+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964 if test "x$host_alias" = x; then
1965 ac_cv_host=$ac_cv_build
1966 else
1967 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1968 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1969 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1974 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1975 echo "${ECHO_T}$ac_cv_host" >&6; }
1976 case $ac_cv_host in
1977 *-*-*) ;;
1978 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1979 echo "$as_me: error: invalid value of canonical host" >&2;}
1980 { (exit 1); exit 1; }; };;
1981 esac
1982 host=$ac_cv_host
1983 ac_save_IFS=$IFS; IFS='-'
1984 set x $ac_cv_host
1985 shift
1986 host_cpu=$1
1987 host_vendor=$2
1988 shift; shift
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1991 host_os=$*
1992 IFS=$ac_save_IFS
1993 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1997 # The AROS target is slightly different to the normal GNU style
1998 # format. We don't have the middle part, and we reverse the order
1999 # of the $(CPU) and $(OS) bits.
2001 # Don't strip the version of the target yet, it might be
2002 # useful on some systems.
2004 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2005 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2007 if test "$target" = "NONE" ; then
2008 target=$host_os-$host_cpu
2009 cross_compile=no
2010 else
2011 if test "$target" = "" ; then
2012 target=$host_os-$host_cpu
2013 cross_compile=no
2014 else
2015 cross_compile=yes
2018 { echo "$as_me:$LINENO: result: $target" >&5
2019 echo "${ECHO_T}$target" >&6; }
2021 #don't know where else to put this...
2022 TOPDIR=$PWD
2024 # Parse the target field into something useful.
2026 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2027 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2030 aros_default_wbwidth=800
2031 aros_default_wbheight=600
2032 aros_default_wbdepth=4
2035 # The first step is to find the host binaries.
2036 # Check for a compiler.
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 break 2
2064 done
2065 done
2066 IFS=$as_save_IFS
2070 CC=$ac_cv_prog_CC
2071 if test -n "$CC"; then
2072 { echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6; }
2074 else
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2081 if test -z "$ac_cv_prog_CC"; then
2082 ac_ct_CC=$CC
2083 # Extract the first word of "gcc", so it can be a program name with args.
2084 set dummy gcc; ac_word=$2
2085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test -n "$ac_ct_CC"; then
2091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_prog_ac_ct_CC="gcc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2104 done
2105 done
2106 IFS=$as_save_IFS
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6; }
2114 else
2115 { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2119 if test "x$ac_ct_CC" = x; then
2120 CC=""
2121 else
2122 case $cross_compiling:$ac_tool_warned in
2123 yes:)
2124 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2125 whose name does not start with the host triplet. If you think this
2126 configuration is useful to you, please write to autoconf@gnu.org." >&5
2127 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2128 whose name does not start with the host triplet. If you think this
2129 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2130 ac_tool_warned=yes ;;
2131 esac
2132 CC=$ac_ct_CC
2134 else
2135 CC="$ac_cv_prog_CC"
2138 if test -z "$CC"; then
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}cc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_CC="${ac_tool_prefix}cc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2161 done
2162 done
2163 IFS=$as_save_IFS
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2171 else
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2179 if test -z "$CC"; then
2180 # Extract the first word of "cc", so it can be a program name with args.
2181 set dummy cc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 ac_prog_rejected=no
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2199 ac_prog_rejected=yes
2200 continue
2202 ac_cv_prog_CC="cc"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2206 done
2207 done
2208 IFS=$as_save_IFS
2210 if test $ac_prog_rejected = yes; then
2211 # We found a bogon in the path, so make sure we never use it.
2212 set dummy $ac_cv_prog_CC
2213 shift
2214 if test $# != 0; then
2215 # We chose a different compiler from the bogus one.
2216 # However, it has the same basename, so the bogon will be chosen
2217 # first if we set CC to just the basename; use the full file name.
2218 shift
2219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 { echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6; }
2228 else
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2235 if test -z "$CC"; then
2236 if test -n "$ac_tool_prefix"; then
2237 for ac_prog in cl.exe
2239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2260 done
2261 done
2262 IFS=$as_save_IFS
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 { echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6; }
2270 else
2271 { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2276 test -n "$CC" && break
2277 done
2279 if test -z "$CC"; then
2280 ac_ct_CC=$CC
2281 for ac_prog in cl.exe
2283 # Extract the first word of "$ac_prog", so it can be a program name with args.
2284 set dummy $ac_prog; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$ac_ct_CC"; then
2291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_ac_ct_CC="$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2306 IFS=$as_save_IFS
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6; }
2314 else
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2320 test -n "$ac_ct_CC" && break
2321 done
2323 if test "x$ac_ct_CC" = x; then
2324 CC=""
2325 else
2326 case $cross_compiling:$ac_tool_warned in
2327 yes:)
2328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2329 whose name does not start with the host triplet. If you think this
2330 configuration is useful to you, please write to autoconf@gnu.org." >&5
2331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2332 whose name does not start with the host triplet. If you think this
2333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2334 ac_tool_warned=yes ;;
2335 esac
2336 CC=$ac_ct_CC
2343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: no acceptable C compiler found in \$PATH
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2349 # Provide some information about the compiler.
2350 echo "$as_me:$LINENO: checking for C compiler version" >&5
2351 ac_compiler=`set X $ac_compile; echo $2`
2352 { (ac_try="$ac_compiler --version >&5"
2353 case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler --version >&5") 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (ac_try="$ac_compiler -v >&5"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -v >&5") 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (ac_try="$ac_compiler -V >&5"
2373 case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compiler -V >&5") 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2391 main ()
2395 return 0;
2397 _ACEOF
2398 ac_clean_files_save=$ac_clean_files
2399 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2400 # Try to create an executable without -o first, disregard a.out.
2401 # It will help us diagnose broken compilers, and finding out an intuition
2402 # of exeext.
2403 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2404 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2405 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2407 # List of possible output files, starting from the most likely.
2408 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2409 # only as a last resort. b.out is created by i960 compilers.
2410 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2412 # The IRIX 6 linker writes into existing files which may not be
2413 # executable, retaining their permissions. Remove them first so a
2414 # subsequent execution test works.
2415 ac_rmfiles=
2416 for ac_file in $ac_files
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2421 esac
2422 done
2423 rm -f $ac_rmfiles
2425 if { (ac_try="$ac_link_default"
2426 case "(($ac_try" in
2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2429 esac
2430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2431 (eval "$ac_link_default") 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2438 # so that the user can short-circuit this test for compilers unknown to
2439 # Autoconf.
2440 for ac_file in $ac_files ''
2442 test -f "$ac_file" || continue
2443 case $ac_file in
2444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2446 [ab].out )
2447 # We found the default executable, but exeext='' is most
2448 # certainly right.
2449 break;;
2450 *.* )
2451 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2452 then :; else
2453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 # We set ac_cv_exeext here because the later test for it is not
2456 # safe: cross compilers may not add the suffix if given an `-o'
2457 # argument, so we may need to know it at that point already.
2458 # Even if this section looks crufty: it has the advantage of
2459 # actually working.
2460 break;;
2462 break;;
2463 esac
2464 done
2465 test "$ac_cv_exeext" = no && ac_cv_exeext=
2467 else
2468 ac_file=''
2471 { echo "$as_me:$LINENO: result: $ac_file" >&5
2472 echo "${ECHO_T}$ac_file" >&6; }
2473 if test -z "$ac_file"; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&2;}
2481 { (exit 77); exit 77; }; }
2484 ac_exeext=$ac_cv_exeext
2486 # Check that the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2491 # If not cross compiling, check that we can run a simple program.
2492 if test "$cross_compiling" != yes; then
2493 if { ac_try='./$ac_file'
2494 { (case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_try") 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 cross_compiling=no
2504 else
2505 if test "$cross_compiling" = maybe; then
2506 cross_compiling=yes
2507 else
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot run C compiled programs.
2512 If you meant to cross compile, use \`--host'.
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2518 { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2521 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2522 ac_clean_files=$ac_clean_files_save
2523 # Check that the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2527 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528 echo "${ECHO_T}$cross_compiling" >&6; }
2530 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2532 if { (ac_try="$ac_link"
2533 case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_link") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; then
2542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2543 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2544 # work properly (i.e., refer to `conftest.exe'), while it won't with
2545 # `rm'.
2546 for ac_file in conftest.exe conftest conftest.*; do
2547 test -f "$ac_file" || continue
2548 case $ac_file in
2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551 break;;
2552 * ) break;;
2553 esac
2554 done
2555 else
2556 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2559 See \`config.log' for more details." >&2;}
2560 { (exit 1); exit 1; }; }
2563 rm -f conftest$ac_cv_exeext
2564 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2565 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2567 rm -f conftest.$ac_ext
2568 EXEEXT=$ac_cv_exeext
2569 ac_exeext=$EXEEXT
2570 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2571 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2572 if test "${ac_cv_objext+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2583 main ()
2587 return 0;
2589 _ACEOF
2590 rm -f conftest.o conftest.obj
2591 if { (ac_try="$ac_compile"
2592 case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_compile") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; then
2601 for ac_file in conftest.o conftest.obj conftest.*; do
2602 test -f "$ac_file" || continue;
2603 case $ac_file in
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2606 break;;
2607 esac
2608 done
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }
2620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2623 echo "${ECHO_T}$ac_cv_objext" >&6; }
2624 OBJEXT=$ac_cv_objext
2625 ac_objext=$OBJEXT
2626 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2639 main ()
2641 #ifndef __GNUC__
2642 choke me
2643 #endif
2646 return 0;
2648 _ACEOF
2649 rm -f conftest.$ac_objext
2650 if { (ac_try="$ac_compile"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compile") 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } && {
2663 test -z "$ac_c_werror_flag" ||
2664 test ! -s conftest.err
2665 } && test -s conftest.$ac_objext; then
2666 ac_compiler_gnu=yes
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2671 ac_compiler_gnu=no
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2680 GCC=`test $ac_compiler_gnu = yes && echo yes`
2681 ac_test_CFLAGS=${CFLAGS+set}
2682 ac_save_CFLAGS=$CFLAGS
2683 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2684 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2685 if test "${ac_cv_prog_cc_g+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 ac_save_c_werror_flag=$ac_c_werror_flag
2689 ac_c_werror_flag=yes
2690 ac_cv_prog_cc_g=no
2691 CFLAGS="-g"
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 main ()
2704 return 0;
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && {
2721 test -z "$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2723 } && test -s conftest.$ac_objext; then
2724 ac_cv_prog_cc_g=yes
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 CFLAGS=""
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2738 main ()
2742 return 0;
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compile") 2>conftest.er1
2753 ac_status=$?
2754 grep -v '^ *+' conftest.er1 >conftest.err
2755 rm -f conftest.er1
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } && {
2759 test -z "$ac_c_werror_flag" ||
2760 test ! -s conftest.err
2761 } && test -s conftest.$ac_objext; then
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 ac_c_werror_flag=$ac_save_c_werror_flag
2768 CFLAGS="-g"
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 main ()
2781 return 0;
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (ac_try="$ac_compile"
2786 case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_compile") 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest.$ac_objext; then
2801 ac_cv_prog_cc_g=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 ac_c_werror_flag=$ac_save_c_werror_flag
2818 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2820 if test "$ac_test_CFLAGS" = set; then
2821 CFLAGS=$ac_save_CFLAGS
2822 elif test $ac_cv_prog_cc_g = yes; then
2823 if test "$GCC" = yes; then
2824 CFLAGS="-g -O2"
2825 else
2826 CFLAGS="-g"
2828 else
2829 if test "$GCC" = yes; then
2830 CFLAGS="-O2"
2831 else
2832 CFLAGS=
2835 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2836 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_cc_c89+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 ac_cv_prog_cc_c89=no
2841 ac_save_CC=$CC
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 #include <stdarg.h>
2849 #include <stdio.h>
2850 #include <sys/types.h>
2851 #include <sys/stat.h>
2852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2853 struct buf { int x; };
2854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2855 static char *e (p, i)
2856 char **p;
2857 int i;
2859 return p[i];
2861 static char *f (char * (*g) (char **, int), char **p, ...)
2863 char *s;
2864 va_list v;
2865 va_start (v,p);
2866 s = g (p, va_arg (v,int));
2867 va_end (v);
2868 return s;
2871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2872 function prototypes and stuff, but not '\xHH' hex character constants.
2873 These don't provoke an error unfortunately, instead are silently treated
2874 as 'x'. The following induces an error, until -std is added to get
2875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2876 array size at least. It's necessary to write '\x00'==0 to get something
2877 that's true only with -std. */
2878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2881 inside strings and character constants. */
2882 #define FOO(x) 'x'
2883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2885 int test (int i, double x);
2886 struct s1 {int (*f) (int a);};
2887 struct s2 {int (*f) (double a);};
2888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 int argc;
2890 char **argv;
2892 main ()
2894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 return 0;
2898 _ACEOF
2899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC="$ac_save_CC $ac_arg"
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest.$ac_objext; then
2920 ac_cv_prog_cc_c89=$ac_arg
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2928 rm -f core conftest.err conftest.$ac_objext
2929 test "x$ac_cv_prog_cc_c89" != "xno" && break
2930 done
2931 rm -f conftest.$ac_ext
2932 CC=$ac_save_CC
2935 # AC_CACHE_VAL
2936 case "x$ac_cv_prog_cc_c89" in
2938 { echo "$as_me:$LINENO: result: none needed" >&5
2939 echo "${ECHO_T}none needed" >&6; } ;;
2940 xno)
2941 { echo "$as_me:$LINENO: result: unsupported" >&5
2942 echo "${ECHO_T}unsupported" >&6; } ;;
2944 CC="$CC $ac_cv_prog_cc_c89"
2945 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2946 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2947 esac
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 case $ac_cv_prog_cc_stdc in
2957 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2958 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2959 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_cc_c99+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 ac_cv_prog_cc_c99=no
2964 ac_save_CC=$CC
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h. */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2971 #include <stdarg.h>
2972 #include <stdbool.h>
2973 #include <stdlib.h>
2974 #include <wchar.h>
2975 #include <stdio.h>
2977 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2978 #define debug(...) fprintf (stderr, __VA_ARGS__)
2979 #define showlist(...) puts (#__VA_ARGS__)
2980 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2981 static void
2982 test_varargs_macros (void)
2984 int x = 1234;
2985 int y = 5678;
2986 debug ("Flag");
2987 debug ("X = %d\n", x);
2988 showlist (The first, second, and third items.);
2989 report (x>y, "x is %d but y is %d", x, y);
2992 // Check long long types.
2993 #define BIG64 18446744073709551615ull
2994 #define BIG32 4294967295ul
2995 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2996 #if !BIG_OK
2997 your preprocessor is broken;
2998 #endif
2999 #if BIG_OK
3000 #else
3001 your preprocessor is broken;
3002 #endif
3003 static long long int bignum = -9223372036854775807LL;
3004 static unsigned long long int ubignum = BIG64;
3006 struct incomplete_array
3008 int datasize;
3009 double data[];
3012 struct named_init {
3013 int number;
3014 const wchar_t *name;
3015 double average;
3018 typedef const char *ccp;
3020 static inline int
3021 test_restrict (ccp restrict text)
3023 // See if C++-style comments work.
3024 // Iterate through items via the restricted pointer.
3025 // Also check for declarations in for loops.
3026 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3027 continue;
3028 return 0;
3031 // Check varargs and va_copy.
3032 static void
3033 test_varargs (const char *format, ...)
3035 va_list args;
3036 va_start (args, format);
3037 va_list args_copy;
3038 va_copy (args_copy, args);
3040 const char *str;
3041 int number;
3042 float fnumber;
3044 while (*format)
3046 switch (*format++)
3048 case 's': // string
3049 str = va_arg (args_copy, const char *);
3050 break;
3051 case 'd': // int
3052 number = va_arg (args_copy, int);
3053 break;
3054 case 'f': // float
3055 fnumber = va_arg (args_copy, double);
3056 break;
3057 default:
3058 break;
3061 va_end (args_copy);
3062 va_end (args);
3066 main ()
3069 // Check bool.
3070 _Bool success = false;
3072 // Check restrict.
3073 if (test_restrict ("String literal") == 0)
3074 success = true;
3075 char *restrict newvar = "Another string";
3077 // Check varargs.
3078 test_varargs ("s, d' f .", "string", 65, 34.234);
3079 test_varargs_macros ();
3081 // Check flexible array members.
3082 struct incomplete_array *ia =
3083 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3084 ia->datasize = 10;
3085 for (int i = 0; i < ia->datasize; ++i)
3086 ia->data[i] = i * 1.234;
3088 // Check named initializers.
3089 struct named_init ni = {
3090 .number = 34,
3091 .name = L"Test wide string",
3092 .average = 543.34343,
3095 ni.number = 58;
3097 int dynamic_array[ni.number];
3098 dynamic_array[ni.number - 1] = 543;
3100 // work around unused variable warnings
3101 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3102 || dynamic_array[ni.number - 1] != 543);
3105 return 0;
3107 _ACEOF
3108 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3110 CC="$ac_save_CC $ac_arg"
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
3128 ac_cv_prog_cc_c99=$ac_arg
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3136 rm -f core conftest.err conftest.$ac_objext
3137 test "x$ac_cv_prog_cc_c99" != "xno" && break
3138 done
3139 rm -f conftest.$ac_ext
3140 CC=$ac_save_CC
3143 # AC_CACHE_VAL
3144 case "x$ac_cv_prog_cc_c99" in
3146 { echo "$as_me:$LINENO: result: none needed" >&5
3147 echo "${ECHO_T}none needed" >&6; } ;;
3148 xno)
3149 { echo "$as_me:$LINENO: result: unsupported" >&5
3150 echo "${ECHO_T}unsupported" >&6; } ;;
3152 CC="$CC $ac_cv_prog_cc_c99"
3153 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3154 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3155 esac
3156 if test "x$ac_cv_prog_cc_c99" != xno; then
3157 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3158 else
3159 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3160 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3161 if test "${ac_cv_prog_cc_c89+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 ac_cv_prog_cc_c89=no
3165 ac_save_CC=$CC
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <stdarg.h>
3173 #include <stdio.h>
3174 #include <sys/types.h>
3175 #include <sys/stat.h>
3176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3177 struct buf { int x; };
3178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3179 static char *e (p, i)
3180 char **p;
3181 int i;
3183 return p[i];
3185 static char *f (char * (*g) (char **, int), char **p, ...)
3187 char *s;
3188 va_list v;
3189 va_start (v,p);
3190 s = g (p, va_arg (v,int));
3191 va_end (v);
3192 return s;
3195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3196 function prototypes and stuff, but not '\xHH' hex character constants.
3197 These don't provoke an error unfortunately, instead are silently treated
3198 as 'x'. The following induces an error, until -std is added to get
3199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3200 array size at least. It's necessary to write '\x00'==0 to get something
3201 that's true only with -std. */
3202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3205 inside strings and character constants. */
3206 #define FOO(x) 'x'
3207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3209 int test (int i, double x);
3210 struct s1 {int (*f) (int a);};
3211 struct s2 {int (*f) (double a);};
3212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3213 int argc;
3214 char **argv;
3216 main ()
3218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3220 return 0;
3222 _ACEOF
3223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3226 CC="$ac_save_CC $ac_arg"
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } && {
3241 test -z "$ac_c_werror_flag" ||
3242 test ! -s conftest.err
3243 } && test -s conftest.$ac_objext; then
3244 ac_cv_prog_cc_c89=$ac_arg
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3252 rm -f core conftest.err conftest.$ac_objext
3253 test "x$ac_cv_prog_cc_c89" != "xno" && break
3254 done
3255 rm -f conftest.$ac_ext
3256 CC=$ac_save_CC
3259 # AC_CACHE_VAL
3260 case "x$ac_cv_prog_cc_c89" in
3262 { echo "$as_me:$LINENO: result: none needed" >&5
3263 echo "${ECHO_T}none needed" >&6; } ;;
3264 xno)
3265 { echo "$as_me:$LINENO: result: unsupported" >&5
3266 echo "${ECHO_T}unsupported" >&6; } ;;
3268 CC="$CC $ac_cv_prog_cc_c89"
3269 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3270 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3271 esac
3272 if test "x$ac_cv_prog_cc_c89" != xno; then
3273 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3274 else
3275 ac_cv_prog_cc_stdc=no
3282 esac
3283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3284 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 case $ac_cv_prog_cc_stdc in
3290 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3291 echo "${ECHO_T}unsupported" >&6; } ;;
3292 '') { echo "$as_me:$LINENO: result: none needed" >&5
3293 echo "${ECHO_T}none needed" >&6; } ;;
3294 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3295 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3296 esac
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (ac_try="$ac_cpp conftest.$ac_ext"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null && {
3352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 }; then
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 # Broken: fails on valid input.
3361 continue
3364 rm -f conftest.err conftest.$ac_ext
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393 continue
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3403 rm -f conftest.err conftest.$ac_ext
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 break
3412 done
3413 ac_cv_prog_CPP=$CPP
3416 CPP=$ac_cv_prog_CPP
3417 else
3418 ac_cv_prog_CPP=$CPP
3420 { echo "$as_me:$LINENO: result: $CPP" >&5
3421 echo "${ECHO_T}$CPP" >&6; }
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442 Syntax error
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 }; then
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Broken: fails on valid input.
3466 continue
3469 rm -f conftest.err conftest.$ac_ext
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <ac_nonexistent.h>
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 # Broken: success on invalid input.
3498 continue
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3508 rm -f conftest.err conftest.$ac_ext
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3515 else
3516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&2;}
3520 { (exit 1); exit 1; }; }
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 # Check for a compatible awk
3531 for ac_prog in gawk nawk
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_AWK+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$AWK"; then
3541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_AWK="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 AWK=$ac_cv_prog_AWK
3561 if test -n "$AWK"; then
3562 { echo "$as_me:$LINENO: result: $AWK" >&5
3563 echo "${ECHO_T}$AWK" >&6; }
3564 else
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3570 test -n "$AWK" && break
3571 done
3573 if test "$AWK" = ""; then
3574 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3575 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3576 { (exit 1); exit 1; }; }
3578 # Extract the first word of "mmake", so it can be a program name with args.
3579 set dummy mmake; ac_word=$2
3580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_MMAKE+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 if test -n "$MMAKE"; then
3586 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_MMAKE="mmake "
3596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 MMAKE=$ac_cv_prog_MMAKE
3606 if test -n "$MMAKE"; then
3607 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3608 echo "${ECHO_T}$MMAKE" >&6; }
3609 else
3610 { echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6; }
3616 # Perform some default variable assignments. Note all of these will be
3617 # Regenerated from the script, so there is no need to cache them.
3619 aros_host_cc="$CC"
3620 if test "$GCC" = "yes"; then
3621 aros_gcc_ld=`$CC -print-prog-name=ld`
3622 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3623 set dummy `basename $aros_gcc_ld`; ac_word=$2
3624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3626 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629 case $aros_host_ld in
3630 [\\/]* | ?:[\\/]*)
3631 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in `dirname $aros_gcc_ld`
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3645 done
3646 done
3647 IFS=$as_save_IFS
3650 esac
3652 aros_host_ld=$ac_cv_path_aros_host_ld
3653 if test -n "$aros_host_ld"; then
3654 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3655 echo "${ECHO_T}$aros_host_ld" >&6; }
3656 else
3657 { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3663 if test "$aros_host_ld" = ""; then
3664 # Extract the first word of "ld", so it can be a program name with args.
3665 set dummy ld; ac_word=$2
3666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3668 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 case $aros_host_ld in
3672 [\\/]* | ?:[\\/]*)
3673 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3689 IFS=$as_save_IFS
3692 esac
3694 aros_host_ld=$ac_cv_path_aros_host_ld
3695 if test -n "$aros_host_ld"; then
3696 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3697 echo "${ECHO_T}$aros_host_ld" >&6; }
3698 else
3699 { echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6; }
3705 if test "$aros_host_ld" = ""; then
3706 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3707 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3708 { (exit 1); exit 1; }; }
3710 aros_host_make="make"
3711 aros_host_cflags=$CFLAGS
3712 aros_host_ldflags=$LDFLAGS
3713 aros_host_debug="-g -O0"
3714 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3715 aros_host_mkargs="--no-print-directory"
3716 aros_host_incl="/usr/include"
3717 aros_host_exe_suffix="$EXEEXT"
3718 aros_host_lib_suffix=""
3720 for ac_prog in aclocal aclocal19
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3726 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 if test -n "$aros_host_aclocal"; then
3730 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_aros_host_aclocal="$ac_prog"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3743 done
3744 done
3745 IFS=$as_save_IFS
3749 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3750 if test -n "$aros_host_aclocal"; then
3751 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3752 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3753 else
3754 { echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6; }
3759 test -n "$aros_host_aclocal" && break
3760 done
3762 for ac_prog in autoconf autoconf259 autoconf253
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy $ac_prog; ac_word=$2
3766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3768 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 if test -n "$aros_host_autoconf"; then
3772 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 ac_cv_prog_aros_host_autoconf="$ac_prog"
3782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3787 IFS=$as_save_IFS
3791 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3792 if test -n "$aros_host_autoconf"; then
3793 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3794 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3795 else
3796 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3801 test -n "$aros_host_autoconf" && break
3802 done
3804 for ac_prog in autoheader autoheader259 autoheader253
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3810 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 if test -n "$aros_host_autoheader"; then
3814 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_aros_host_autoheader="$ac_prog"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3827 done
3828 done
3829 IFS=$as_save_IFS
3833 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3834 if test -n "$aros_host_autoheader"; then
3835 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3836 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3837 else
3838 { echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6; }
3843 test -n "$aros_host_autoheader" && break
3844 done
3846 for ac_prog in automake automake19
3848 # Extract the first word of "$ac_prog", so it can be a program name with args.
3849 set dummy $ac_prog; ac_word=$2
3850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3852 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 if test -n "$aros_host_automake"; then
3856 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_aros_host_automake="$ac_prog"
3866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3869 done
3870 done
3871 IFS=$as_save_IFS
3875 aros_host_automake=$ac_cv_prog_aros_host_automake
3876 if test -n "$aros_host_automake"; then
3877 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3878 echo "${ECHO_T}$aros_host_automake" >&6; }
3879 else
3880 { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3885 test -n "$aros_host_automake" && break
3886 done
3889 case "$aros_host_cc" in
3890 *gcc*)
3891 aros_host_cc_pipe="-pipe"
3893 icc)
3894 aros_host_cc_pipe=""
3897 aros_host_cc_pipe=""
3899 esac
3901 aros_target_cc_includes=""
3903 # This is the main host configuration section. It is where the host
3904 # can change the values of any variables it needs to change. We do
3905 # not look at anything that compiles to the target yet, we'll get
3906 # to that later.
3908 case "$host_os" in
3909 linux*)
3910 aros_host_arch="linux"
3911 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3912 case "$host_cpu" in
3913 *i?86*)
3914 aros_host_cpu="i386"
3916 *x86_64*)
3917 aros_host_cpu="x86_64"
3919 *m68k*)
3920 aros_host_cpu="m68k"
3922 *powerpc*)
3923 aros_host_cpu="ppc"
3926 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3927 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3928 aros_host_cpu="$host_cpu"
3930 esac
3933 freebsd*)
3934 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3935 aros_host_make="gmake"
3936 aros_host_arch="freebsd"
3937 aros_host_cpu="i386"
3939 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3942 case $host_os in
3943 freebsd[234]*)
3944 aros_object_format="elf_i386"
3948 aros_object_format="elf_i386_fbsd"
3950 esac
3954 darwin*)
3955 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3956 aros_host_arch="darwin"
3957 case "$host_cpu" in
3958 *i?86*)
3959 aros_host_cpu="i386"
3961 *powerpc*)
3962 aros_host_cpu="ppc"
3965 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3966 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3967 aros_host_cpu="$host_cpu"
3969 esac
3971 aros_host_ldflags="$aros_host_ldflags -liconv"
3975 netbsd*)
3976 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3977 aros_host_make="gmake"
3978 aros_host_arch="netbsd"
3979 case "$host_cpu" in
3980 *i?86*)
3981 aros_host_cpu="i386"
3983 *m68k*)
3984 aros_host_cpu="m68k"
3987 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3988 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3989 aros_host_cpu="$host_cpu"
3991 esac
3992 aros_host_lib_suffix=".0.0"
3995 openbsd*)
3996 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3997 aros_host_make="gmake"
3998 aros_host_arch="openbsd"
3999 case "$host_cpu" in
4000 *i?86*)
4001 aros_host_cpu="i386"
4004 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4005 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4006 aros_host_cpu="$host_cpu"
4008 esac
4011 solaris*)
4012 aros_host_arch="solaris"
4013 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4014 case "$host_cpu" in
4015 *sparc*)
4016 aros_host_cpu="sparc"
4019 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4020 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4021 aros_host_cpu="$host_cpu"
4023 esac
4026 morphos*)
4027 aros_host_arch="morphos"
4028 aros_host_cpu="ppc"
4031 amiga*)
4032 aros_host_arch="amiga"
4033 SORT="/gg/bin/sort"
4034 TEST="/gg/bin/test"
4035 UNIQ="/gg/bin/uniq"
4036 FOR="for"
4037 TOUCH="/gg/bin/touch"
4038 case "$host_cpu" in
4039 *m68k*)
4040 aros_host_cpu="m68k"
4042 *powerpc*)
4043 aros_host_cpu="ppc"
4046 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4047 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4048 aros_host_cpu="$host_cpu"
4050 esac
4053 cygwin*)
4054 aros_host_arch="cygwin"
4055 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4056 case "$host_cpu" in
4057 *i?86*)
4058 aros_host_cpu="i386"
4061 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4062 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4063 aros_host_cpu="$host_cpu"
4065 esac
4068 mingw32*)
4069 aros_host_arch="mingw32"
4070 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4071 case "$host_cpu" in
4072 *i?86*)
4073 aros_host_cpu="i386"
4076 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4077 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4078 aros_host_cpu="$host_cpu"
4080 esac
4083 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4084 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4085 { (exit 1); exit 1; }; }
4087 esac
4089 # Extract the first word of "ar", so it can be a program name with args.
4090 set dummy ar; ac_word=$2
4091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4093 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 if test -n "$aros_host_ar"; then
4097 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_aros_host_ar="ar cr"
4107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 aros_host_ar=$ac_cv_prog_aros_host_ar
4117 if test -n "$aros_host_ar"; then
4118 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4119 echo "${ECHO_T}$aros_host_ar" >&6; }
4120 else
4121 { echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6; }
4126 if test "$aros_host_ar" = ""; then
4127 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4128 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4129 { (exit 1); exit 1; }; }
4131 # Extract the first word of "ranlib", so it can be a program name with args.
4132 set dummy ranlib; ac_word=$2
4133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4135 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 if test -n "$aros_host_ranlib"; then
4139 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_aros_host_ranlib="ranlib "
4149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4152 done
4153 done
4154 IFS=$as_save_IFS
4158 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4159 if test -n "$aros_host_ranlib"; then
4160 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4161 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4162 else
4163 { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4168 if test "$aros_host_ranlib" = ""; then
4169 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4170 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4171 { (exit 1); exit 1; }; }
4173 # Extract the first word of "strip", so it can be a program name with args.
4174 set dummy strip; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 if test -n "$aros_host_strip"; then
4181 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190 ac_cv_prog_aros_host_strip="strip "
4191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 aros_host_strip=$ac_cv_prog_aros_host_strip
4201 if test -n "$aros_host_strip"; then
4202 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4203 echo "${ECHO_T}$aros_host_strip" >&6; }
4204 else
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4210 if test "$aros_host_strip" = ""; then
4211 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4212 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4213 { (exit 1); exit 1; }; }
4216 # Extract the first word of "rm", so it can be a program name with args.
4217 set dummy rm; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_prog_RM+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 if test -n "$RM"; then
4224 ac_cv_prog_RM="$RM" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_prog_RM="rm -rf"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4243 RM=$ac_cv_prog_RM
4244 if test -n "$RM"; then
4245 { echo "$as_me:$LINENO: result: $RM" >&5
4246 echo "${ECHO_T}$RM" >&6; }
4247 else
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4253 if test "$RM" = ""; then
4254 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4255 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4256 { (exit 1); exit 1; }; }
4258 # Extract the first word of "cp", so it can be a program name with args.
4259 set dummy cp; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_CP+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 if test -n "$CP"; then
4266 ac_cv_prog_CP="$CP" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_CP="cp "
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 CP=$ac_cv_prog_CP
4286 if test -n "$CP"; then
4287 { echo "$as_me:$LINENO: result: $CP" >&5
4288 echo "${ECHO_T}$CP" >&6; }
4289 else
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 if test "$CP" = ""; then
4296 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4297 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4298 { (exit 1); exit 1; }; }
4300 # Extract the first word of "mv", so it can be a program name with args.
4301 set dummy mv; ac_word=$2
4302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4304 if test "${ac_cv_prog_MV+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307 if test -n "$MV"; then
4308 ac_cv_prog_MV="$MV" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_MV="mv "
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 MV=$ac_cv_prog_MV
4328 if test -n "$MV"; then
4329 { echo "$as_me:$LINENO: result: $MV" >&5
4330 echo "${ECHO_T}$MV" >&6; }
4331 else
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 if test "$MV" = ""; then
4338 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4339 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4340 { (exit 1); exit 1; }; }
4342 # Extract the first word of "echo", so it can be a program name with args.
4343 set dummy echo; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_ECHO+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -n "$ECHO"; then
4350 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ECHO="echo "
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 ECHO=$ac_cv_prog_ECHO
4370 if test -n "$ECHO"; then
4371 { echo "$as_me:$LINENO: result: $ECHO" >&5
4372 echo "${ECHO_T}$ECHO" >&6; }
4373 else
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 if test "$ECHO" = ""; then
4380 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4381 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4382 { (exit 1); exit 1; }; }
4384 # Extract the first word of "mkdir", so it can be a program name with args.
4385 set dummy mkdir; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_MKDIR+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 if test -n "$MKDIR"; then
4392 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_MKDIR="mkdir -p"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 MKDIR=$ac_cv_prog_MKDIR
4412 if test -n "$MKDIR"; then
4413 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4414 echo "${ECHO_T}$MKDIR" >&6; }
4415 else
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test "$MKDIR" = ""; then
4422 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4423 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4424 { (exit 1); exit 1; }; }
4426 # Extract the first word of "touch", so it can be a program name with args.
4427 set dummy touch; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_TOUCH+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 if test -n "$TOUCH"; then
4434 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_TOUCH="touch "
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4453 TOUCH=$ac_cv_prog_TOUCH
4454 if test -n "$TOUCH"; then
4455 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4456 echo "${ECHO_T}$TOUCH" >&6; }
4457 else
4458 { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4463 if test "$TOUCH" = ""; then
4464 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4465 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4466 { (exit 1); exit 1; }; }
4468 # Extract the first word of "sort", so it can be a program name with args.
4469 set dummy sort; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_SORT+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test -n "$SORT"; then
4476 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_SORT="sort "
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 SORT=$ac_cv_prog_SORT
4496 if test -n "$SORT"; then
4497 { echo "$as_me:$LINENO: result: $SORT" >&5
4498 echo "${ECHO_T}$SORT" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 if test "$SORT" = ""; then
4506 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4507 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4508 { (exit 1); exit 1; }; }
4510 # Extract the first word of "uniq", so it can be a program name with args.
4511 set dummy uniq; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_UNIQ+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$UNIQ"; then
4518 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_UNIQ="uniq "
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4537 UNIQ=$ac_cv_prog_UNIQ
4538 if test -n "$UNIQ"; then
4539 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4540 echo "${ECHO_T}$UNIQ" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4547 if test "$UNIQ" = ""; then
4548 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4549 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4550 { (exit 1); exit 1; }; }
4552 # Extract the first word of "true", so it can be a program name with args.
4553 set dummy true; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_NOP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$NOP"; then
4560 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_NOP="true "
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4573 done
4574 done
4575 IFS=$as_save_IFS
4579 NOP=$ac_cv_prog_NOP
4580 if test -n "$NOP"; then
4581 { echo "$as_me:$LINENO: result: $NOP" >&5
4582 echo "${ECHO_T}$NOP" >&6; }
4583 else
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test "$NOP" = ""; then
4590 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4591 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4592 { (exit 1); exit 1; }; }
4594 # Extract the first word of "cat", so it can be a program name with args.
4595 set dummy cat; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_CAT+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$CAT"; then
4602 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_CAT="cat "
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 CAT=$ac_cv_prog_CAT
4622 if test -n "$CAT"; then
4623 { echo "$as_me:$LINENO: result: $CAT" >&5
4624 echo "${ECHO_T}$CAT" >&6; }
4625 else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4631 if test "$CAT" = ""; then
4632 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4633 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4634 { (exit 1); exit 1; }; }
4636 # Extract the first word of "bison", so it can be a program name with args.
4637 set dummy bison; ac_word=$2
4638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4640 if test "${ac_cv_prog_BISON+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$BISON"; then
4644 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_BISON="bison "
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4659 IFS=$as_save_IFS
4663 BISON=$ac_cv_prog_BISON
4664 if test -n "$BISON"; then
4665 { echo "$as_me:$LINENO: result: $BISON" >&5
4666 echo "${ECHO_T}$BISON" >&6; }
4667 else
4668 { echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6; }
4673 if test "$BISON" = ""; then
4674 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4675 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4676 { (exit 1); exit 1; }; }
4678 # Extract the first word of "flex", so it can be a program name with args.
4679 set dummy flex; ac_word=$2
4680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4682 if test "${ac_cv_prog_FLEX+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685 if test -n "$FLEX"; then
4686 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_FLEX="flex "
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4699 done
4700 done
4701 IFS=$as_save_IFS
4705 FLEX=$ac_cv_prog_FLEX
4706 if test -n "$FLEX"; then
4707 { echo "$as_me:$LINENO: result: $FLEX" >&5
4708 echo "${ECHO_T}$FLEX" >&6; }
4709 else
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 if test "$FLEX" = ""; then
4716 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4717 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4718 { (exit 1); exit 1; }; }
4720 # Extract the first word of "pngtopnm", so it can be a program name with args.
4721 set dummy pngtopnm; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 if test -n "$PNGTOPNM"; then
4728 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_PNGTOPNM="pngtopnm "
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4748 if test -n "$PNGTOPNM"; then
4749 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4750 echo "${ECHO_T}$PNGTOPNM" >&6; }
4751 else
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4757 if test "$PNGTOPNM" = ""; then
4758 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4759 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4760 { (exit 1); exit 1; }; }
4762 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4763 set dummy ppmtoilbm; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 if test -n "$PPMTOILBM"; then
4770 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4790 if test -n "$PPMTOILBM"; then
4791 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4792 echo "${ECHO_T}$PPMTOILBM" >&6; }
4793 else
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 if test "$PPMTOILBM" = ""; then
4800 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4801 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4802 { (exit 1); exit 1; }; }
4804 # Extract the first word of "sed", so it can be a program name with args.
4805 set dummy sed; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_SED+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 if test -n "$SED"; then
4812 ac_cv_prog_SED="$SED" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_SED="sed "
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 SED=$ac_cv_prog_SED
4832 if test -n "$SED"; then
4833 { echo "$as_me:$LINENO: result: $SED" >&5
4834 echo "${ECHO_T}$SED" >&6; }
4835 else
4836 { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4841 if test "$SED" = ""; then
4842 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4843 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4844 { (exit 1); exit 1; }; }
4846 # Extract the first word of "chmod", so it can be a program name with args.
4847 set dummy chmod; ac_word=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_CHMOD+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 if test -n "$CHMOD"; then
4854 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_CHMOD="chmod "
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 CHMOD=$ac_cv_prog_CHMOD
4874 if test -n "$CHMOD"; then
4875 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4876 echo "${ECHO_T}$CHMOD" >&6; }
4877 else
4878 { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4883 if test "$CHMOD" = ""; then
4884 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4885 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4886 { (exit 1); exit 1; }; }
4893 if test -n "$PYTHON"; then
4894 # If the user set $PYTHON, use it and don't search something else.
4895 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4896 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4897 prog="import sys, string
4898 # split strings by '.' and convert to numeric. Append some zeros
4899 # because we need at least 4 digits for the hex conversion.
4900 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4901 minverhex = 0
4902 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4903 sys.exit(sys.hexversion < minverhex)"
4904 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4905 ($PYTHON -c "$prog") >&5 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; then
4909 { echo "$as_me:$LINENO: result: yes" >&5
4910 echo "${ECHO_T}yes" >&6; }
4911 else
4912 { { echo "$as_me:$LINENO: error: too old" >&5
4913 echo "$as_me: error: too old" >&2;}
4914 { (exit 1); exit 1; }; }
4917 am_display_PYTHON=$PYTHON
4918 else
4919 # Otherwise, try each interpreter until we find one that satisfies
4920 # VERSION.
4921 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4922 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4923 if test "${am_cv_pathless_PYTHON+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4927 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
4928 test "$am_cv_pathless_PYTHON" = none && break
4929 prog="import sys, string
4930 # split strings by '.' and convert to numeric. Append some zeros
4931 # because we need at least 4 digits for the hex conversion.
4932 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4933 minverhex = 0
4934 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4935 sys.exit(sys.hexversion < minverhex)"
4936 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4937 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
4941 break
4944 done
4946 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4947 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4948 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4949 if test "$am_cv_pathless_PYTHON" = none; then
4950 PYTHON=:
4951 else
4952 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4953 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4956 if test "${ac_cv_path_PYTHON+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 case $PYTHON in
4960 [\\/]* | ?:[\\/]*)
4961 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4977 IFS=$as_save_IFS
4980 esac
4982 PYTHON=$ac_cv_path_PYTHON
4983 if test -n "$PYTHON"; then
4984 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4985 echo "${ECHO_T}$PYTHON" >&6; }
4986 else
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4993 am_display_PYTHON=$am_cv_pathless_PYTHON
4997 if test "$PYTHON" = :; then
4998 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4999 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5000 { (exit 1); exit 1; }; }
5001 else
5004 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5005 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5006 if test "${am_cv_python_version+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5011 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5012 echo "${ECHO_T}$am_cv_python_version" >&6; }
5013 PYTHON_VERSION=$am_cv_python_version
5017 PYTHON_PREFIX='${prefix}'
5019 PYTHON_EXEC_PREFIX='${exec_prefix}'
5023 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5024 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5025 if test "${am_cv_python_platform+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5030 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5031 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5032 PYTHON_PLATFORM=$am_cv_python_platform
5037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5038 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5039 if test "${am_cv_python_pythondir+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5043 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5045 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5046 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5047 pythondir=$am_cv_python_pythondir
5051 pkgpythondir=\${pythondir}/$PACKAGE
5054 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5055 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5056 if test "${am_cv_python_pyexecdir+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5060 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5062 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5063 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5064 pyexecdir=$am_cv_python_pyexecdir
5068 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5076 FOR=for
5078 IF=if
5080 TEST=test
5082 CMP=cmp
5086 # Check for some includes for the X11 HIDD and the kernel
5089 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5090 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5091 if test "${ac_cv_path_GREP+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 # Extract the first word of "grep ggrep" to use in msg output
5095 if test -z "$GREP"; then
5096 set dummy grep ggrep; ac_prog_name=$2
5097 if test "${ac_cv_path_GREP+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 ac_path_GREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in grep ggrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112 # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5117 ac_count=0
5118 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5119 while :
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 echo 'GREP' >> "conftest.nl"
5125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 ac_count=`expr $ac_count + 1`
5128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_GREP="$ac_path_GREP"
5131 ac_path_GREP_max=$ac_count
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5144 done
5145 IFS=$as_save_IFS
5150 GREP="$ac_cv_path_GREP"
5151 if test -z "$GREP"; then
5152 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5153 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5154 { (exit 1); exit 1; }; }
5157 else
5158 ac_cv_path_GREP=$GREP
5163 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5164 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5165 GREP="$ac_cv_path_GREP"
5168 { echo "$as_me:$LINENO: checking for egrep" >&5
5169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5170 if test "${ac_cv_path_EGREP+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5174 then ac_cv_path_EGREP="$GREP -E"
5175 else
5176 # Extract the first word of "egrep" to use in msg output
5177 if test -z "$EGREP"; then
5178 set dummy egrep; ac_prog_name=$2
5179 if test "${ac_cv_path_EGREP+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 ac_path_EGREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in egrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5193 # Check for GNU ac_path_EGREP and select it if it is found.
5194 # Check for GNU $ac_path_EGREP
5195 case `"$ac_path_EGREP" --version 2>&1` in
5196 *GNU*)
5197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5199 ac_count=0
5200 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5201 while :
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 echo 'EGREP' >> "conftest.nl"
5207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 ac_count=`expr $ac_count + 1`
5210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_EGREP="$ac_path_EGREP"
5213 ac_path_EGREP_max=$ac_count
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5217 done
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 esac
5222 $ac_path_EGREP_found && break 3
5223 done
5224 done
5226 done
5227 IFS=$as_save_IFS
5232 EGREP="$ac_cv_path_EGREP"
5233 if test -z "$EGREP"; then
5234 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5235 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5236 { (exit 1); exit 1; }; }
5239 else
5240 ac_cv_path_EGREP=$EGREP
5246 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5247 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5248 EGREP="$ac_cv_path_EGREP"
5251 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5253 if test "${ac_cv_header_stdc+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <stdlib.h>
5263 #include <stdarg.h>
5264 #include <string.h>
5265 #include <float.h>
5268 main ()
5272 return 0;
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (ac_try="$ac_compile"
5277 case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_compile") 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest.$ac_objext; then
5292 ac_cv_header_stdc=yes
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ac_cv_header_stdc=no
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 if test $ac_cv_header_stdc = yes; then
5303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <string.h>
5312 _ACEOF
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 $EGREP "memchr" >/dev/null 2>&1; then
5316 else
5317 ac_cv_header_stdc=no
5319 rm -f conftest*
5323 if test $ac_cv_header_stdc = yes; then
5324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 #include <stdlib.h>
5333 _ACEOF
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "free" >/dev/null 2>&1; then
5337 else
5338 ac_cv_header_stdc=no
5340 rm -f conftest*
5344 if test $ac_cv_header_stdc = yes; then
5345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5346 if test "$cross_compiling" = yes; then
5348 else
5349 cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h. */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h. */
5355 #include <ctype.h>
5356 #include <stdlib.h>
5357 #if ((' ' & 0x0FF) == 0x020)
5358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5360 #else
5361 # define ISLOWER(c) \
5362 (('a' <= (c) && (c) <= 'i') \
5363 || ('j' <= (c) && (c) <= 'r') \
5364 || ('s' <= (c) && (c) <= 'z'))
5365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5366 #endif
5368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5370 main ()
5372 int i;
5373 for (i = 0; i < 256; i++)
5374 if (XOR (islower (i), ISLOWER (i))
5375 || toupper (i) != TOUPPER (i))
5376 return 2;
5377 return 0;
5379 _ACEOF
5380 rm -f conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5391 { (case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_try") 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5401 else
5402 echo "$as_me: program exited with status $ac_status" >&5
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ( exit $ac_status )
5407 ac_cv_header_stdc=no
5409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5415 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5416 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5417 if test $ac_cv_header_stdc = yes; then
5419 cat >>confdefs.h <<\_ACEOF
5420 #define STDC_HEADERS 1
5421 _ACEOF
5425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5436 inttypes.h stdint.h unistd.h
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5452 #include <$ac_header>
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 eval "$as_ac_Header=yes"
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 eval "$as_ac_Header=no"
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 ac_res=`eval echo '${'$as_ac_Header'}'`
5482 { echo "$as_me:$LINENO: result: $ac_res" >&5
5483 echo "${ECHO_T}$ac_res" >&6; }
5484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5491 done
5503 for ac_header in sys/ipc.h sys/shm.h \
5504 sys/mmap.h sys/mman.h sysexits.h \
5505 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_res=`eval echo '${'$as_ac_Header'}'`
5516 { echo "$as_me:$LINENO: result: $ac_res" >&5
5517 echo "${ECHO_T}$ac_res" >&6; }
5518 else
5519 # Is the header compilable?
5520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 $ac_includes_default
5529 #include <$ac_header>
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5548 ac_header_compiler=yes
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ac_header_compiler=no
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5558 echo "${ECHO_T}$ac_header_compiler" >&6; }
5560 # Is the header present?
5561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #include <$ac_header>
5570 _ACEOF
5571 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } >/dev/null && {
5584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 }; then
5587 ac_header_preproc=yes
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 ac_header_preproc=no
5595 rm -f conftest.err conftest.$ac_ext
5596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5597 echo "${ECHO_T}$ac_header_preproc" >&6; }
5599 # So? What about this header?
5600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5601 yes:no: )
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5606 ac_header_preproc=yes
5608 no:yes:* )
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5623 esac
5624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629 eval "$as_ac_Header=\$ac_header_preproc"
5631 ac_res=`eval echo '${'$as_ac_Header'}'`
5632 { echo "$as_me:$LINENO: result: $ac_res" >&5
5633 echo "${ECHO_T}$ac_res" >&6; }
5636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5637 cat >>confdefs.h <<_ACEOF
5638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639 _ACEOF
5643 done
5647 for ac_header in sys/mount.h
5649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/param.h>
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 eval "$as_ac_Header=yes"
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 eval "$as_ac_Header=no"
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 ac_res=`eval echo '${'$as_ac_Header'}'`
5693 { echo "$as_me:$LINENO: result: $ac_res" >&5
5694 echo "${ECHO_T}$ac_res" >&6; }
5695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696 cat >>confdefs.h <<_ACEOF
5697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5698 _ACEOF
5702 done
5710 ac_header_dirent=no
5711 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5712 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5713 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5714 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <sys/types.h>
5725 #include <$ac_hdr>
5728 main ()
5730 if ((DIR *) 0)
5731 return 0;
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 eval "$as_ac_Header=yes"
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 eval "$as_ac_Header=no"
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 ac_res=`eval echo '${'$as_ac_Header'}'`
5764 { echo "$as_me:$LINENO: result: $ac_res" >&5
5765 echo "${ECHO_T}$ac_res" >&6; }
5766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5767 cat >>confdefs.h <<_ACEOF
5768 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5769 _ACEOF
5771 ac_header_dirent=$ac_hdr; break
5774 done
5775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5776 if test $ac_header_dirent = dirent.h; then
5777 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5778 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5779 if test "${ac_cv_search_opendir+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 ac_func_search_save_LIBS=$LIBS
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5790 /* Override any GCC internal prototype to avoid an error.
5791 Use char because int might match the return type of a GCC
5792 builtin and then its argument prototype would still apply. */
5793 #ifdef __cplusplus
5794 extern "C"
5795 #endif
5796 char opendir ();
5798 main ()
5800 return opendir ();
5802 return 0;
5804 _ACEOF
5805 for ac_lib in '' dir; do
5806 if test -z "$ac_lib"; then
5807 ac_res="none required"
5808 else
5809 ac_res=-l$ac_lib
5810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5812 rm -f conftest.$ac_objext conftest$ac_exeext
5813 if { (ac_try="$ac_link"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_link") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest$ac_exeext &&
5829 $as_test_x conftest$ac_exeext; then
5830 ac_cv_search_opendir=$ac_res
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5839 conftest$ac_exeext
5840 if test "${ac_cv_search_opendir+set}" = set; then
5841 break
5843 done
5844 if test "${ac_cv_search_opendir+set}" = set; then
5846 else
5847 ac_cv_search_opendir=no
5849 rm conftest.$ac_ext
5850 LIBS=$ac_func_search_save_LIBS
5852 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5853 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5854 ac_res=$ac_cv_search_opendir
5855 if test "$ac_res" != no; then
5856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5860 else
5861 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5862 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5863 if test "${ac_cv_search_opendir+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 ac_func_search_save_LIBS=$LIBS
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5874 /* Override any GCC internal prototype to avoid an error.
5875 Use char because int might match the return type of a GCC
5876 builtin and then its argument prototype would still apply. */
5877 #ifdef __cplusplus
5878 extern "C"
5879 #endif
5880 char opendir ();
5882 main ()
5884 return opendir ();
5886 return 0;
5888 _ACEOF
5889 for ac_lib in '' x; do
5890 if test -z "$ac_lib"; then
5891 ac_res="none required"
5892 else
5893 ac_res=-l$ac_lib
5894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (ac_try="$ac_link"
5898 case "(($ac_try" in
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5901 esac
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_link") 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_c_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest$ac_exeext &&
5913 $as_test_x conftest$ac_exeext; then
5914 ac_cv_search_opendir=$ac_res
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5923 conftest$ac_exeext
5924 if test "${ac_cv_search_opendir+set}" = set; then
5925 break
5927 done
5928 if test "${ac_cv_search_opendir+set}" = set; then
5930 else
5931 ac_cv_search_opendir=no
5933 rm conftest.$ac_ext
5934 LIBS=$ac_func_search_save_LIBS
5936 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5937 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5938 ac_res=$ac_cv_search_opendir
5939 if test "$ac_res" != no; then
5940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5946 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5947 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5948 if test "${ac_cv_header_stat_broken+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 #include <sys/stat.h>
5960 #if defined S_ISBLK && defined S_IFDIR
5961 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5962 #endif
5964 #if defined S_ISBLK && defined S_IFCHR
5965 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5966 #endif
5968 #if defined S_ISLNK && defined S_IFREG
5969 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5970 #endif
5972 #if defined S_ISSOCK && defined S_IFREG
5973 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5974 #endif
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_cv_header_stat_broken=no
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_cv_header_stat_broken=yes
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6006 if test $ac_cv_header_stat_broken = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define STAT_MACROS_BROKEN 1
6010 _ACEOF
6014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6016 if test "${ac_cv_header_stdc+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #include <stdlib.h>
6026 #include <stdarg.h>
6027 #include <string.h>
6028 #include <float.h>
6031 main ()
6035 return 0;
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 ac_cv_header_stdc=yes
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_cv_header_stdc=no
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 if test $ac_cv_header_stdc = yes; then
6066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <string.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev/null 2>&1; then
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <stdlib.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "free" >/dev/null 2>&1; then
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f conftest*
6107 if test $ac_cv_header_stdc = yes; then
6108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6109 if test "$cross_compiling" = yes; then
6111 else
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <ctype.h>
6119 #include <stdlib.h>
6120 #if ((' ' & 0x0FF) == 0x020)
6121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6123 #else
6124 # define ISLOWER(c) \
6125 (('a' <= (c) && (c) <= 'i') \
6126 || ('j' <= (c) && (c) <= 'r') \
6127 || ('s' <= (c) && (c) <= 'z'))
6128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6129 #endif
6131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6133 main ()
6135 int i;
6136 for (i = 0; i < 256; i++)
6137 if (XOR (islower (i), ISLOWER (i))
6138 || toupper (i) != TOUPPER (i))
6139 return 2;
6140 return 0;
6142 _ACEOF
6143 rm -f conftest$ac_exeext
6144 if { (ac_try="$ac_link"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_link") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6164 else
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ( exit $ac_status )
6170 ac_cv_header_stdc=no
6172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6179 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6180 if test $ac_cv_header_stdc = yes; then
6182 cat >>confdefs.h <<\_ACEOF
6183 #define STDC_HEADERS 1
6184 _ACEOF
6188 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6189 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6190 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <sys/types.h>
6200 #include <sys/wait.h>
6201 #ifndef WEXITSTATUS
6202 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6203 #endif
6204 #ifndef WIFEXITED
6205 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6206 #endif
6209 main ()
6211 int s;
6212 wait (&s);
6213 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_compile") 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && {
6232 test -z "$ac_c_werror_flag" ||
6233 test ! -s conftest.err
6234 } && test -s conftest.$ac_objext; then
6235 ac_cv_header_sys_wait_h=yes
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 ac_cv_header_sys_wait_h=no
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6246 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6247 if test $ac_cv_header_sys_wait_h = yes; then
6249 cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_SYS_WAIT_H 1
6251 _ACEOF
6255 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6256 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6257 if test "${ac_cv_header_time+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h. */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 #include <sys/types.h>
6267 #include <sys/time.h>
6268 #include <time.h>
6271 main ()
6273 if ((struct tm *) 0)
6274 return 0;
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_compile") 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest.$ac_objext; then
6296 ac_cv_header_time=yes
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_header_time=no
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6307 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6308 if test $ac_cv_header_time = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define TIME_WITH_SYS_TIME 1
6312 _ACEOF
6316 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6317 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6318 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6329 main ()
6331 static struct stat ac_aggr;
6332 if (ac_aggr.st_blksize)
6333 return 0;
6335 return 0;
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (ac_try="$ac_compile"
6340 case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compile") 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
6355 ac_cv_member_struct_stat_st_blksize=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6368 main ()
6370 static struct stat ac_aggr;
6371 if (sizeof ac_aggr.st_blksize)
6372 return 0;
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 ac_cv_member_struct_stat_st_blksize=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_cv_member_struct_stat_st_blksize=no
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6408 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6409 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6413 _ACEOF
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_ST_BLKSIZE 1
6418 _ACEOF
6423 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6424 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6425 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6436 main ()
6438 static struct stat ac_aggr;
6439 if (ac_aggr.st_blocks)
6440 return 0;
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 ac_cv_member_struct_stat_st_blocks=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6475 main ()
6477 static struct stat ac_aggr;
6478 if (sizeof ac_aggr.st_blocks)
6479 return 0;
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.$ac_objext; then
6501 ac_cv_member_struct_stat_st_blocks=yes
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_cv_member_struct_stat_st_blocks=no
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6516 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6518 cat >>confdefs.h <<_ACEOF
6519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6520 _ACEOF
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_ST_BLOCKS 1
6525 _ACEOF
6527 else
6528 case " $LIBOBJS " in
6529 *" fileblocks.$ac_objext "* ) ;;
6530 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6532 esac
6537 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6538 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6539 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6550 main ()
6552 static struct stat ac_aggr;
6553 if (ac_aggr.st_rdev)
6554 return 0;
6556 return 0;
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (ac_try="$ac_compile"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.$ac_objext; then
6576 ac_cv_member_struct_stat_st_rdev=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6589 main ()
6591 static struct stat ac_aggr;
6592 if (sizeof ac_aggr.st_rdev)
6593 return 0;
6595 return 0;
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (ac_try="$ac_compile"
6600 case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_compile") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest.$ac_objext; then
6615 ac_cv_member_struct_stat_st_rdev=yes
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_cv_member_struct_stat_st_rdev=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6629 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6630 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6632 cat >>confdefs.h <<_ACEOF
6633 #define HAVE_STRUCT_STAT_ST_RDEV 1
6634 _ACEOF
6637 cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_ST_RDEV 1
6639 _ACEOF
6644 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6646 if test "${ac_cv_struct_tm+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <sys/types.h>
6656 #include <time.h>
6659 main ()
6661 struct tm tm;
6662 int *p = &tm.tm_sec;
6663 return !p;
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (ac_try="$ac_compile"
6670 case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_compile") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest.$ac_objext; then
6685 ac_cv_struct_tm=time.h
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_cv_struct_tm=sys/time.h
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6696 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6697 if test $ac_cv_struct_tm = sys/time.h; then
6699 cat >>confdefs.h <<\_ACEOF
6700 #define TM_IN_SYS_TIME 1
6701 _ACEOF
6705 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6706 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6707 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <sys/types.h>
6717 #include <$ac_cv_struct_tm>
6721 main ()
6723 static struct tm ac_aggr;
6724 if (ac_aggr.tm_zone)
6725 return 0;
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_cv_member_struct_tm_tm_zone=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 #include <sys/types.h>
6759 #include <$ac_cv_struct_tm>
6763 main ()
6765 static struct tm ac_aggr;
6766 if (sizeof ac_aggr.tm_zone)
6767 return 0;
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (ac_try="$ac_compile"
6774 case "(($ac_try" in
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6777 esac
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6780 ac_status=$?
6781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6789 ac_cv_member_struct_tm_tm_zone=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_cv_member_struct_tm_tm_zone=no
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6803 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6804 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_STRUCT_TM_TM_ZONE 1
6808 _ACEOF
6813 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_TM_ZONE 1
6817 _ACEOF
6819 else
6820 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6821 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6822 if test "${ac_cv_have_decl_tzname+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <time.h>
6834 main ()
6836 #ifndef tzname
6837 (void) tzname;
6838 #endif
6841 return 0;
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 ac_cv_have_decl_tzname=yes
6862 else
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_have_decl_tzname=no
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6872 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6873 if test $ac_cv_have_decl_tzname = yes; then
6875 cat >>confdefs.h <<_ACEOF
6876 #define HAVE_DECL_TZNAME 1
6877 _ACEOF
6880 else
6881 cat >>confdefs.h <<_ACEOF
6882 #define HAVE_DECL_TZNAME 0
6883 _ACEOF
6889 { echo "$as_me:$LINENO: checking for tzname" >&5
6890 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6891 if test "${ac_cv_var_tzname+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h. */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 #include <time.h>
6901 #if !HAVE_DECL_TZNAME
6902 extern char *tzname[];
6903 #endif
6906 main ()
6908 return tzname[0][0];
6910 return 0;
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (ac_try="$ac_link"
6915 case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_link") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest$ac_exeext &&
6930 $as_test_x conftest$ac_exeext; then
6931 ac_cv_var_tzname=yes
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_var_tzname=no
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940 conftest$ac_exeext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6943 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6944 if test $ac_cv_var_tzname = yes; then
6946 cat >>confdefs.h <<\_ACEOF
6947 #define HAVE_TZNAME 1
6948 _ACEOF
6953 { echo "$as_me:$LINENO: checking for off_t" >&5
6954 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6955 if test "${ac_cv_type_off_t+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6965 typedef off_t ac__type_new_;
6967 main ()
6969 if ((ac__type_new_ *) 0)
6970 return 0;
6971 if (sizeof (ac__type_new_))
6972 return 0;
6974 return 0;
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6979 case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6994 ac_cv_type_off_t=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_cv_type_off_t=no
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7005 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7006 if test $ac_cv_type_off_t = yes; then
7008 else
7010 cat >>confdefs.h <<_ACEOF
7011 #define off_t long int
7012 _ACEOF
7016 { echo "$as_me:$LINENO: checking for pid_t" >&5
7017 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7018 if test "${ac_cv_type_pid_t+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 $ac_includes_default
7028 typedef pid_t ac__type_new_;
7030 main ()
7032 if ((ac__type_new_ *) 0)
7033 return 0;
7034 if (sizeof (ac__type_new_))
7035 return 0;
7037 return 0;
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_cv_type_pid_t=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_cv_type_pid_t=no
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7069 if test $ac_cv_type_pid_t = yes; then
7071 else
7073 cat >>confdefs.h <<_ACEOF
7074 #define pid_t int
7075 _ACEOF
7079 { echo "$as_me:$LINENO: checking for size_t" >&5
7080 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7081 if test "${ac_cv_type_size_t+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 typedef size_t ac__type_new_;
7093 main ()
7095 if ((ac__type_new_ *) 0)
7096 return 0;
7097 if (sizeof (ac__type_new_))
7098 return 0;
7100 return 0;
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7120 ac_cv_type_size_t=yes
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_type_size_t=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7131 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7132 if test $ac_cv_type_size_t = yes; then
7134 else
7136 cat >>confdefs.h <<_ACEOF
7137 #define size_t unsigned int
7138 _ACEOF
7142 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7143 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7144 if test "${ac_cv_type_uid_t+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <sys/types.h>
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "uid_t" >/dev/null 2>&1; then
7158 ac_cv_type_uid_t=yes
7159 else
7160 ac_cv_type_uid_t=no
7162 rm -f conftest*
7165 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7166 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7167 if test $ac_cv_type_uid_t = no; then
7169 cat >>confdefs.h <<\_ACEOF
7170 #define uid_t int
7171 _ACEOF
7174 cat >>confdefs.h <<\_ACEOF
7175 #define gid_t int
7176 _ACEOF
7181 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7182 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7183 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7194 main ()
7196 static struct tm ac_aggr;
7197 if (ac_aggr.tm_gmtoff)
7198 return 0;
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7205 case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_cv_member_struct_tm_tm_gmtoff=yes
7221 else
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7233 main ()
7235 static struct tm ac_aggr;
7236 if (sizeof ac_aggr.tm_gmtoff)
7237 return 0;
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_member_struct_tm_tm_gmtoff=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_member_struct_tm_tm_gmtoff=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7273 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7274 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7278 _ACEOF
7284 # Look for some functions
7299 for ac_func in getpagesize kqueue statfs statvfs \
7300 clone kse_create rfork_thread thr_create sa_register \
7301 getcontext makecontext setcontext sigaltstack swapcontext
7303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7317 #define $ac_func innocuous_$ac_func
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char $ac_func (); below.
7321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 <limits.h> exists even on freestanding compilers. */
7324 #ifdef __STDC__
7325 # include <limits.h>
7326 #else
7327 # include <assert.h>
7328 #endif
7330 #undef $ac_func
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7335 #ifdef __cplusplus
7336 extern "C"
7337 #endif
7338 char $ac_func ();
7339 /* The GNU C library defines this for functions which it implements
7340 to always fail with ENOSYS. Some functions are actually named
7341 something starting with __ and the normal name is an alias. */
7342 #if defined __stub_$ac_func || defined __stub___$ac_func
7343 choke me
7344 #endif
7347 main ()
7349 return $ac_func ();
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext conftest$ac_exeext
7355 if { (ac_try="$ac_link"
7356 case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_link") 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest$ac_exeext &&
7371 $as_test_x conftest$ac_exeext; then
7372 eval "$as_ac_var=yes"
7373 else
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 eval "$as_ac_var=no"
7380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7381 conftest$ac_exeext conftest.$ac_ext
7383 ac_res=`eval echo '${'$as_ac_var'}'`
7384 { echo "$as_me:$LINENO: result: $ac_res" >&5
7385 echo "${ECHO_T}$ac_res" >&6; }
7386 if test `eval echo '${'$as_ac_var'}'` = yes; then
7387 cat >>confdefs.h <<_ACEOF
7388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7389 _ACEOF
7392 done
7397 for ac_header in stdlib.h unistd.h
7399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 ac_res=`eval echo '${'$as_ac_Header'}'`
7407 { echo "$as_me:$LINENO: result: $ac_res" >&5
7408 echo "${ECHO_T}$ac_res" >&6; }
7409 else
7410 # Is the header compilable?
7411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7420 #include <$ac_header>
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_compile") 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && {
7436 test -z "$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 } && test -s conftest.$ac_objext; then
7439 ac_header_compiler=yes
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 ac_header_compiler=no
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6; }
7451 # Is the header present?
7452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <$ac_header>
7461 _ACEOF
7462 if { (ac_try="$ac_cpp conftest.$ac_ext"
7463 case "(($ac_try" in
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } >/dev/null && {
7475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 }; then
7478 ac_header_preproc=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 ac_header_preproc=no
7486 rm -f conftest.err conftest.$ac_ext
7487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7488 echo "${ECHO_T}$ac_header_preproc" >&6; }
7490 # So? What about this header?
7491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7492 yes:no: )
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7497 ac_header_preproc=yes
7499 no:yes:* )
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7514 esac
7515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 eval "$as_ac_Header=\$ac_header_preproc"
7522 ac_res=`eval echo '${'$as_ac_Header'}'`
7523 { echo "$as_me:$LINENO: result: $ac_res" >&5
7524 echo "${ECHO_T}$ac_res" >&6; }
7527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7528 cat >>confdefs.h <<_ACEOF
7529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7530 _ACEOF
7534 done
7537 for ac_func in getpagesize
7539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7553 #define $ac_func innocuous_$ac_func
7555 /* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char $ac_func (); below.
7557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7558 <limits.h> exists even on freestanding compilers. */
7560 #ifdef __STDC__
7561 # include <limits.h>
7562 #else
7563 # include <assert.h>
7564 #endif
7566 #undef $ac_func
7568 /* Override any GCC internal prototype to avoid an error.
7569 Use char because int might match the return type of a GCC
7570 builtin and then its argument prototype would still apply. */
7571 #ifdef __cplusplus
7572 extern "C"
7573 #endif
7574 char $ac_func ();
7575 /* The GNU C library defines this for functions which it implements
7576 to always fail with ENOSYS. Some functions are actually named
7577 something starting with __ and the normal name is an alias. */
7578 #if defined __stub_$ac_func || defined __stub___$ac_func
7579 choke me
7580 #endif
7583 main ()
7585 return $ac_func ();
7587 return 0;
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (ac_try="$ac_link"
7592 case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595 esac
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_link") 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest$ac_exeext &&
7607 $as_test_x conftest$ac_exeext; then
7608 eval "$as_ac_var=yes"
7609 else
7610 echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7613 eval "$as_ac_var=no"
7616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7617 conftest$ac_exeext conftest.$ac_ext
7619 ac_res=`eval echo '${'$as_ac_var'}'`
7620 { echo "$as_me:$LINENO: result: $ac_res" >&5
7621 echo "${ECHO_T}$ac_res" >&6; }
7622 if test `eval echo '${'$as_ac_var'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7625 _ACEOF
7628 done
7630 { echo "$as_me:$LINENO: checking for working mmap" >&5
7631 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7632 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 if test "$cross_compiling" = yes; then
7636 ac_cv_func_mmap_fixed_mapped=no
7637 else
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 /* malloc might have been renamed as rpl_malloc. */
7646 #undef malloc
7648 /* Thanks to Mike Haertel and Jim Avera for this test.
7649 Here is a matrix of mmap possibilities:
7650 mmap private not fixed
7651 mmap private fixed at somewhere currently unmapped
7652 mmap private fixed at somewhere already mapped
7653 mmap shared not fixed
7654 mmap shared fixed at somewhere currently unmapped
7655 mmap shared fixed at somewhere already mapped
7656 For private mappings, we should verify that changes cannot be read()
7657 back from the file, nor mmap's back from the file at a different
7658 address. (There have been systems where private was not correctly
7659 implemented like the infamous i386 svr4.0, and systems where the
7660 VM page cache was not coherent with the file system buffer cache
7661 like early versions of FreeBSD and possibly contemporary NetBSD.)
7662 For shared mappings, we should conversely verify that changes get
7663 propagated back to all the places they're supposed to be.
7665 Grep wants private fixed already mapped.
7666 The main things grep needs to know about mmap are:
7667 * does it exist and is it safe to write into the mmap'd area
7668 * how to use it (BSD variants) */
7670 #include <fcntl.h>
7671 #include <sys/mman.h>
7673 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7674 char *malloc ();
7675 #endif
7677 /* This mess was copied from the GNU getpagesize.h. */
7678 #ifndef HAVE_GETPAGESIZE
7679 /* Assume that all systems that can run configure have sys/param.h. */
7680 # ifndef HAVE_SYS_PARAM_H
7681 # define HAVE_SYS_PARAM_H 1
7682 # endif
7684 # ifdef _SC_PAGESIZE
7685 # define getpagesize() sysconf(_SC_PAGESIZE)
7686 # else /* no _SC_PAGESIZE */
7687 # ifdef HAVE_SYS_PARAM_H
7688 # include <sys/param.h>
7689 # ifdef EXEC_PAGESIZE
7690 # define getpagesize() EXEC_PAGESIZE
7691 # else /* no EXEC_PAGESIZE */
7692 # ifdef NBPG
7693 # define getpagesize() NBPG * CLSIZE
7694 # ifndef CLSIZE
7695 # define CLSIZE 1
7696 # endif /* no CLSIZE */
7697 # else /* no NBPG */
7698 # ifdef NBPC
7699 # define getpagesize() NBPC
7700 # else /* no NBPC */
7701 # ifdef PAGESIZE
7702 # define getpagesize() PAGESIZE
7703 # endif /* PAGESIZE */
7704 # endif /* no NBPC */
7705 # endif /* no NBPG */
7706 # endif /* no EXEC_PAGESIZE */
7707 # else /* no HAVE_SYS_PARAM_H */
7708 # define getpagesize() 8192 /* punt totally */
7709 # endif /* no HAVE_SYS_PARAM_H */
7710 # endif /* no _SC_PAGESIZE */
7712 #endif /* no HAVE_GETPAGESIZE */
7715 main ()
7717 char *data, *data2, *data3;
7718 int i, pagesize;
7719 int fd;
7721 pagesize = getpagesize ();
7723 /* First, make a file with some known garbage in it. */
7724 data = (char *) malloc (pagesize);
7725 if (!data)
7726 return 1;
7727 for (i = 0; i < pagesize; ++i)
7728 *(data + i) = rand ();
7729 umask (0);
7730 fd = creat ("conftest.mmap", 0600);
7731 if (fd < 0)
7732 return 1;
7733 if (write (fd, data, pagesize) != pagesize)
7734 return 1;
7735 close (fd);
7737 /* Next, try to mmap the file at a fixed address which already has
7738 something else allocated at it. If we can, also make sure that
7739 we see the same garbage. */
7740 fd = open ("conftest.mmap", O_RDWR);
7741 if (fd < 0)
7742 return 1;
7743 data2 = (char *) malloc (2 * pagesize);
7744 if (!data2)
7745 return 1;
7746 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7747 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7748 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7749 return 1;
7750 for (i = 0; i < pagesize; ++i)
7751 if (*(data + i) != *(data2 + i))
7752 return 1;
7754 /* Finally, make sure that changes to the mapped area do not
7755 percolate back to the file as seen by read(). (This is a bug on
7756 some variants of i386 svr4.0.) */
7757 for (i = 0; i < pagesize; ++i)
7758 *(data2 + i) = *(data2 + i) + 1;
7759 data3 = (char *) malloc (pagesize);
7760 if (!data3)
7761 return 1;
7762 if (read (fd, data3, pagesize) != pagesize)
7763 return 1;
7764 for (i = 0; i < pagesize; ++i)
7765 if (*(data + i) != *(data3 + i))
7766 return 1;
7767 close (fd);
7768 return 0;
7770 _ACEOF
7771 rm -f conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_link") 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_cv_func_mmap_fixed_mapped=yes
7792 else
7793 echo "$as_me: program exited with status $ac_status" >&5
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ( exit $ac_status )
7798 ac_cv_func_mmap_fixed_mapped=no
7800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7805 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7806 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7807 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7809 cat >>confdefs.h <<\_ACEOF
7810 #define HAVE_MMAP 1
7811 _ACEOF
7814 rm -f conftest.mmap
7819 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7820 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7821 aros_config_ldflags=""
7823 aros_shared_default=yes
7825 aros_shared_cflags="-fPIC"
7826 aros_shared_aflags=""
7827 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7828 aros_kernel_ldflags="-Wl,-rpath,./lib"
7830 aros_target_ar_flags="cr"
7831 aros_target_nm_flags="-C -ul"
7832 aros_target_strip_flags="--strip-unneeded -R.comment"
7834 aros_compiler_libs=
7836 aros_target_genmap="-Wl,-Map -Xlinker"
7838 # Native flavour stuff
7839 aros_bochs_hack="0"
7840 aros_serial_debug="0"
7842 # Palm native flavour stuff
7843 aros_palm_debug_hack="0"
7845 # Unix flavour stuff
7846 aros_nesting_supervisor="0"
7848 # Collect-aros stuff: "-ius" to ignore undefined symbols
7849 ignore_undefined_symbols=""
7851 #-----------------------------------------------------------------------------
7854 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7855 # it switched on by default, and we use the host compiler, so it compiles AROS
7856 # code with this enabled resulting in link failures as we don't have support
7857 # for it.
7859 # We use two methods to disable it. For the host compiler (used to compile
7860 # some hosted modules), we test to see if the compiler supports stack
7861 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7862 # work on all platforms.
7864 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7865 # (this is done unconditionally, as it should have no effect on compilers
7866 # without the stack protection feature). This may be specific to the way that
7867 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7868 # strong enough to disable it in a generic way though, so we'll live with it
7869 # until another vendor ships GCC with it enabled in a different way, and deal
7870 # with it then.
7873 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7874 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7875 save_cflags="$CFLAGS"
7876 CFLAGS="$CFLAGS -fno-stack-protector"
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7885 main ()
7889 return 0;
7891 _ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7894 case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7909 use_no_stack_protector="yes"
7910 else
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 use_no_stack_protector="no"
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7919 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7920 if test "x-$use_no_stack_protector" = "x-yes" ; then
7921 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7923 CFLAGS="$save_cflags"
7925 #-----------------------------------------------------------------------------
7927 { echo "$as_me:$LINENO: checking for type of build" >&5
7928 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7929 # Check whether --enable-build_type was given.
7930 if test "${enable_build_type+set}" = set; then
7931 enableval=$enable_build_type; build_type=$enableval
7932 else
7933 build_type="personal"
7937 if test "$build_type" = "nightly"; then
7938 build_type_string="NIGHTLY"
7939 elif test "$build_type" = "snapshot"; then
7940 build_type_string="SNAPSHOT"
7941 elif test "$build_type" = "milestone"; then
7942 build_type_string="MILESTONE"
7943 elif test "$build_type" = "release"; then
7944 build_type_string="RELEASE"
7945 else
7946 build_type_string="PERSONAL"
7947 build_type="personal"
7950 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7952 { echo "$as_me:$LINENO: result: $build_type" >&5
7953 echo "${ECHO_T}$build_type" >&6; }
7955 #-----------------------------------------------------------------------------
7956 all_debug_types="messages stack mungwall modules symbols"
7958 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7959 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7960 # Check whether --enable-debug was given.
7961 if test "${enable_debug+set}" = set; then
7962 enableval=$enable_debug; debug="$enableval"
7963 else
7964 debug=""
7968 if test "$debug" = "" -o "$debug" = "no"; then
7969 debug="none"
7970 elif test "$debug" = "yes"; then
7971 debug="all"
7974 if test "$debug" = "all" ; then
7975 debug=$all_debug_types
7976 for d in $all_debug_types; do
7977 export aros_${d}_debug="1"
7978 done
7979 else
7980 for d in $all_debug_types; do
7981 export aros_${d}_debug="0"
7982 done
7985 if test "$debug" != "none"; then
7986 debug=`echo $debug | sed s/,/\ /g`
7987 for d in $debug; do
7988 found="0"
7989 for d2 in $all_debug_types; do
7990 if test "$d2" = "$d"; then
7991 found="1"
7992 break
7994 done
7995 if test "$found" = "0"; then
7996 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7997 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7998 { (exit 1); exit 1; }; }
8000 export aros_${d}_debug="1"
8001 done
8002 aros_debug="yes"
8004 { echo "$as_me:$LINENO: result: $debug" >&5
8005 echo "${ECHO_T}$debug" >&6; }
8007 if test "$aros_messages_debug" = "1"; then
8008 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8009 else
8010 aros_messages_debug=""
8012 if test "$aros_symbols_debug" = "1"; then
8013 aros_symbols_debug="-g"
8014 else
8015 aros_symbols_debug=""
8018 # These are the flags to pass when compiling debugged programs
8019 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8020 aros_debug_aflags=""
8021 aros_debug_ldflags="$aros_symbols_debug"
8023 #-----------------------------------------------------------------------------
8024 # Checking for distcc and ccache.
8026 # Always apply the transforms in this particular order. Basically you should
8027 # always run 'ccache distcc compiler' in that order for the best performance.
8029 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8030 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8031 # Check whether --enable-distcc was given.
8032 if test "${enable_distcc+set}" = set; then
8033 enableval=$enable_distcc; distcc="$enableval"
8034 else
8035 distcc="no"
8038 if test "$distcc" != "" -a "$distcc" != "no"; then
8039 # AC_CHECK_PROG will print out the result in this case
8040 # Extract the first word of "distcc", so it can be a program name with args.
8041 set dummy distcc; ac_word=$2
8042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8044 if test "${ac_cv_path_DISTCC+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047 case $DISTCC in
8048 [\\/]* | ?:[\\/]*)
8049 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053 for as_dir in $PATH
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8063 done
8064 done
8065 IFS=$as_save_IFS
8067 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8069 esac
8071 DISTCC=$ac_cv_path_DISTCC
8072 if test -n "$DISTCC"; then
8073 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8074 echo "${ECHO_T}$DISTCC" >&6; }
8075 else
8076 { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8081 else
8082 { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8086 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8087 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8088 # Check whether --enable-ccache was given.
8089 if test "${enable_ccache+set}" = set; then
8090 enableval=$enable_ccache; ccache="$enableval"
8091 else
8092 ccache="no"
8095 if test "$ccache" != "" -a "$ccache" != "no"; then
8096 # AC_CHECK_PROG will print out the result in this case
8097 # Extract the first word of "ccache", so it can be a program name with args.
8098 set dummy ccache; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_prog_CCACHE+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 if test -n "$CCACHE"; then
8105 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_CCACHE="ccache"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8118 done
8119 done
8120 IFS=$as_save_IFS
8124 CCACHE=$ac_cv_prog_CCACHE
8125 if test -n "$CCACHE"; then
8126 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8127 echo "${ECHO_T}$CCACHE" >&6; }
8128 else
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 else
8135 { echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6; }
8139 #-----------------------------------------------------------------------------
8140 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8141 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8143 # Check whether --with-optimization was given.
8144 if test "${with_optimization+set}" = set; then
8145 withval=$with_optimization; optimization="$withval"
8146 else
8147 optimization="unknown"
8150 if test "$optimization" = "unknown"; then
8151 if test "$debug" != "none"; then
8152 optimization="-O0"
8153 else
8154 optimization="-O2"
8157 aros_config_cflags="$aros_config_cflags $optimization"
8158 { echo "$as_me:$LINENO: result: $optimization" >&5
8159 echo "${ECHO_T}$optimization" >&6; }
8161 #-----------------------------------------------------------------------------
8162 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8163 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8164 # Check whether --enable-target_variant was given.
8165 if test "${enable_target_variant+set}" = set; then
8166 enableval=$enable_target_variant; target_variant=$enableval
8167 else
8168 target_variant="none"
8171 if test "$target_variant" = "none"; then
8172 aros_target_variant=""
8173 aros_target_suffix=""
8174 else
8175 aros_target_variant="$target_variant"
8176 aros_target_suffix="-$target_variant"
8178 { echo "$as_me:$LINENO: result: $enableval" >&5
8179 echo "${ECHO_T}$enableval" >&6; }
8181 target_bootloader="none"
8183 #-----------------------------------------------------------------------------
8184 # This is the target configuration switch.
8185 case "$target_os" in
8186 linux*)
8187 aros_target_arch="linux"
8188 case "$target_cpu" in
8189 *m68k*)
8190 aros_target_cpu="m68k"
8191 aros_object_format="m68kelf"
8192 aros_flavour="emulcompat"
8193 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8194 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8195 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8196 gcc_target_cpu="mc68000"
8198 *i?86*)
8199 aros_target_cpu="i386"
8200 aros_object_format="elf_i386"
8201 aros_flavour="emulation"
8202 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8203 aros_default_wbdepth=8
8204 gcc_target_cpu="i386"
8206 *x86_64*)
8207 aros_target_cpu="x86_64"
8208 aros_object_format="elf_x86_64"
8209 aros_flavour="emulation"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8211 aros_default_wbdepth=8
8212 gcc_target_cpu="x86_64"
8214 *powerpc*)
8215 aros_target_cpu="ppc"
8216 aros_object_format="elf32ppc"
8217 aros_flavour="emulation"
8218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8219 aros_default_wbdepth=8
8220 gcc_target_cpu="ppc"
8223 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8224 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8225 { (exit 1); exit 1; }; }
8227 esac
8231 aros_target_arch="pc"
8232 aros_shared_default="no"
8233 target_bootloader="grub"
8234 case "$target_cpu" in
8235 *i?86*)
8236 aros_target_cpu="i386"
8239 if test "$aros_object_format" = "" ; then
8240 aros_object_format="elf_i386"
8242 aros_flavour="standalone"
8243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8244 aros_kernel_ldflags=""
8245 aros_default_wbwidth=640
8246 aros_default_wbheight=480
8247 gcc_target_cpu="i386"
8249 *x86_64*)
8250 aros_target_cpu="x86_64"
8251 if test "$aros_object_format" = "" ; then
8252 aros_object_format="elf_x86_64"
8254 aros_flavour="standalone"
8255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8256 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8257 aros_kernel_ldflags=""
8258 aros_default_wbwidth=640
8259 aros_default_wbheight=480
8260 gcc_target_cpu="x86_64"
8263 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8264 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8265 { (exit 1); exit 1; }; }
8267 esac
8270 prep)
8271 aros_target_arch="prep"
8272 aros_shared_default="no"
8273 aros_target_cpu="ppc"
8274 aros_object_format="elf32ppc"
8275 aros_flavour="ppcnative"
8276 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8277 aros_kernel_ldflags=""
8278 aros_default_wbwidth=640
8279 aros_default_wbheight=480
8280 gcc_target_cpu="ppc"
8281 case "$target_cpu" in
8282 *cross*)
8283 aros_target_cc="ppc-linux-gcc -pipe"
8284 aros_target_ld="ppc-linux-ld"
8285 aros_target_as="ppc-linux-as"
8286 aros_target_ar="ppc-linux-ar"
8287 aros_target_ranlib="ppc-linux-ranlib"
8288 aros_target_nm="ppc-linux-nm"
8289 aros_target_strip="ppc-linux-strip"
8290 aros_target_objcopy="ppc-linux-objcopy"
8291 aros_target_objdump="ppc-linux-objdump"
8292 aros_shared_ld="ppc-linux-ld"
8293 aros_kernel_ld="ppc-linux-ld"
8297 esac
8300 freebsd*)
8301 aros_target_arch="freebsd"
8302 aros_target_cpu="i386"
8303 aros_flavour="emulation"
8304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8305 gcc_target_cpu="i386"
8307 aros_target_strip_flags="-x"
8310 darwin*)
8311 aros_target_arch="darwin"
8312 aros_target_cpu="i386"
8313 aros_flavour="emulation"
8314 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8315 gcc_target_cpu="i386"
8317 aros_target_strip_flags="-x"
8320 netbsd*)
8321 aros_target_arch="netbsd"
8322 case "$target_cpu" in
8323 *m68k*)
8324 aros_target_cpu="m68k"
8325 aros_object_format="m68kelf"
8326 aros_flavour="emulcompat"
8327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8328 gcc_target_cpu="mc68000"
8330 *i?86*)
8331 aros_target_cpu="i386"
8332 aros_object_format="elf_i386"
8333 aros_flavour="emulation"
8334 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8335 aros_default_wbdepth=8
8336 gcc_target_cpu="i386"
8339 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8340 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8341 { (exit 1); exit 1; }; }
8343 esac
8344 aros_target_genmap="-Wl,-M -Xlinker >"
8345 aros_flavour="emulation"
8346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8349 openbsd*)
8350 aros_target_arch="openbsd"
8351 case "$target_cpu" in
8352 *i?86*)
8353 aros_target_cpu="i386"
8354 aros_object_format="elf_i386"
8355 aros_flavour="emulation"
8356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8357 gcc_target_cpu="i386"
8360 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8361 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8362 { (exit 1); exit 1; }; }
8364 esac
8365 aros_target_genmap="-Wl,-M -Xlinker >"
8366 aros_target_nm_flags="-u"
8367 aros_flavour="emulation"
8370 solaris*)
8371 aros_target_arch="solaris"
8372 case "$target_cpu" in
8373 *sparc*)
8374 aros_target_cpu="sparc"
8375 aros_object_format="elf_sparc"
8376 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8377 gcc_target_cpu="sparc"
8380 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8381 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8382 { (exit 1); exit 1; }; }
8384 esac
8385 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8386 aros_flavour="emulation"
8389 morphos*)
8390 aros_target_arch="morphos"
8391 aros_shared_default="no"
8392 aros_target_cpu="ppc"
8393 aros_object_format="elf_ppc"
8394 aros_flavour="nativecompat"
8395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8396 gcc_target_cpu="ppc"
8399 sam440)
8400 aros_target_arch="sam440"
8401 aros_shared_default="no"
8402 aros_target_cpu="ppc"
8403 aros_object_format="elf32ppc"
8404 aros_flavour="ppcnative"
8405 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8406 aros_kernel_ldflags=""
8407 aros_default_wbwidth=640
8408 aros_default_wbheight=480
8409 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8410 gcc_target_cpu="powerpc"
8411 case "$target_cpu" in
8412 *powerpc*)
8413 aros_target_cc="powerpc-linux-gcc -pipe"
8414 aros_target_ld="powerpc-linux-ld"
8415 aros_target_as="powerpc-linux-as"
8416 aros_target_ar="powerpc-linux-ar"
8417 aros_target_ranlib="powerpc-linux-ranlib"
8418 aros_target_nm="powerpc-linux-nm"
8419 aros_target_strip="powerpc-linux-strip"
8420 aros_target_objcopy="powerpc-linux-objcopy"
8421 aros_target_objdump="powerpc-linux-objdump"
8422 aros_shared_ld="powerpc-linux-ld"
8423 aros_kernel_ld="powerpc-linux-ld"
8427 esac
8430 amiga*)
8431 aros_target_arch="amiga"
8432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8433 aros_shared_default="no"
8435 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8437 case "$target_cpu" in
8438 *m68k*)
8439 aros_target_cpu="m68k"
8440 aros_object_format="m68kelf"
8441 aros_flavour="nativecompat"
8442 gcc_target_cpu="mc68000"
8444 *ppc*)
8445 aros_cpu="ppc"
8446 aros_flavour="native"
8447 gcc_target_cpu="ppc"
8450 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8451 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8452 { (exit 1); exit 1; }; }
8454 esac
8457 cygwin*)
8458 aros_target_arch="cygwin"
8459 aros_shared_default="no"
8460 case "$target_cpu" in
8461 *i?86*)
8462 aros_target_cpu="i386"
8463 aros_object_format="elf_i386"
8464 aros_flavour="emulation"
8465 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8466 aros_shared_cflags=""
8467 aros_default_wbdepth=8
8468 gcc_target_cpu="i386"
8471 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8472 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8473 { (exit 1); exit 1; }; }
8475 esac
8478 mingw32*)
8479 aros_target_arch="mingw32"
8480 aros_shared_default="no"
8481 case "$target_cpu" in
8482 *i?86*)
8483 aros_target_cpu="i386"
8484 aros_object_format="elf_i386"
8485 aros_flavour="emulation"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8487 aros_shared_cflags=""
8488 aros_default_wbdepth=8
8489 gcc_target_cpu="i386"
8492 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8493 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8494 { (exit 1); exit 1; }; }
8496 esac
8498 pp*)
8499 aros_target_arch="pp"
8500 aros_shared_default="no"
8501 case "$target_cpu" in
8502 *m68k*)
8503 aros_target_cpu="m68k"
8504 aros_object_format="m68kelf"
8505 aros_flavour="palmnative"
8506 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8507 aros_kernel_ldflags=""
8508 aros_default_wbwidth=160
8509 aros_default_wbheight=160
8510 aros_default_wbdepth=1
8511 aros_target_cc="m68k-elf-gcc -pipe"
8512 aros_target_ld="$(which m68k-elf-ld)"
8513 aros_target_as="m68k-elf-gcc -pipe"
8514 aros_shared_ld="m68k-elf-gcc"
8515 aros_kernel_ld="m68k-elf-gcc"
8516 aros_target_ar="m68k-elf-ar"
8517 aros_target_ar_flags="cru"
8518 aros_target_ranlib="m68k-elf-ranlib"
8519 aros_target_nm="m68k-elf-nm"
8520 aros_target_objcopy="m68k-elf-objcopy"
8521 aros_target_objdump="m68k-elf-objdump"
8522 aros_compiler_libs="-lgcc1"
8523 aros_shared_default=no
8524 aros_shared_cflags="-fpic"
8525 aros_shared_aflags=""
8526 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8527 aros_kernel_ldflags="-Wl,-rpath,./lib"
8528 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8529 aros_debug_aflags=""
8530 aros_debug_ldflags="$aros_symbols_debug"
8531 aros_mungwall_debug="0"
8532 aros_modules_debug="0"
8533 gcc_target_cpu="mc68000"
8534 ignore_undefined_symbols="-ius"
8537 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8538 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8539 { (exit 1); exit 1; }; }
8541 esac
8544 mac*)
8545 aros_target_arch="mac"
8546 aros_shared_default="no"
8547 case "$target_cpu" in
8548 *m68k*)
8549 aros_target_cpu="m68k"
8550 aros_object_format="m68kelf"
8551 aros_flavour="mac68knative"
8552 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8553 aros_default_wbwidth=512
8554 aros_default_wbheight=384
8555 aros_default_wbdepth=8
8556 aros_target_cc="m68k-elf-gcc -pipe"
8557 aros_target_ld="$(which m68k-elf-ld)"
8558 aros_target_as="m68k-elf-gcc -pipe"
8559 aros_shared_ld="m68k-elf-gcc"
8560 aros_kernel_ld="m68k-elf-gcc"
8561 aros_target_ar="m68k-elf-ar"
8562 aros_target_ar_flags="cru"
8563 aros_target_ranlib="m68k-elf-ranlib"
8564 aros_target_nm="m68k-elf-nm"
8565 aros_target_objcopy="m68k-elf-objcopy"
8566 aros_target_objdump="m68k-elf-objdump"
8567 aros_compiler_libs="-lgcc1"
8568 aros_shared_default=no
8569 aros_shared_cflags="-fpic"
8570 aros_shared_aflags=""
8571 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8572 aros_kernel_ldflags="-Wl,-rpath,./lib"
8573 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8574 aros_debug_aflags=""
8575 aros_debug_ldflags="$aros_symbols_debug"
8576 aros_mungwall_debug="0"
8577 aros_modules_debug="0"
8578 gcc_target_cpu="mc68000"
8579 ignore_undefined_symbols="-ius"
8582 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8583 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8584 { (exit 1); exit 1; }; }
8586 esac
8590 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8591 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8592 { (exit 1); exit 1; }; }
8594 esac
8596 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8597 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8598 # Check whether --enable-bootloader was given.
8599 if test "${enable_bootloader+set}" = set; then
8600 enableval=$enable_bootloader; target_bootloader=$enableval
8601 else
8602 target_bootloader=$target_bootloader
8605 if test "$target_bootloader" = "none"; then
8606 aros_target_bootloader=""
8607 else
8608 aros_target_bootloader="$target_bootloader"
8610 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8611 echo "${ECHO_T}$target_bootloader" >&6; }
8613 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8614 # for target code)
8615 cross_compiling=no
8616 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8617 cross_compiling=yes
8619 if test "$aros_host_arch" == "darwin" ; then
8620 cross_compiling=yes
8623 # Set prefix for target compiler etc. if we're cross-compiling
8624 # (should possibly be earlier but needs to be after AC_PROG_CC)
8625 if test "$cross_compiling" = "yes" ; then
8626 target_tool_prefix=${target_cpu}-elf-
8627 CC=${target_tool_prefix}gcc
8630 # Find all the tools we need to compile. This could be cross-compiling
8631 # though! If that is the case we use the GNU form of the target and
8632 # simply add this to the front of the binary name. This is rather simple,
8633 # but it should work under most circumstances.
8635 # The default tools are to use the same as the host, but only if the
8636 # host and target CPU are the same. With GCC this is normally enough.
8639 aros_cc_pre=""
8640 aros_shared_ld="$aros_host_ld"
8642 aros_target_mkdep="$aros_host_mkdep"
8643 aros_target_incl_def="$aros_host_incl"
8645 # Extract the first word of "$CC", so it can be a program name with args.
8646 set dummy $CC; ac_word=$2
8647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8649 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 case $aros_kernel_cc in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8673 esac
8675 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8676 if test -n "$aros_kernel_cc"; then
8677 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8678 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8679 else
8680 { echo "$as_me:$LINENO: result: no" >&5
8681 echo "${ECHO_T}no" >&6; }
8686 # The default tools executables to be linked to.
8688 if test "$cross_compiling" = "yes" ; then
8689 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8690 set dummy ${target_tool_prefix}as; ac_word=$2
8691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8693 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696 case $aros_target_as_ln in
8697 [\\/]* | ?:[\\/]*)
8698 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8717 esac
8719 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8720 if test -n "$aros_target_as_ln"; then
8721 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8722 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8723 else
8724 { echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6; }
8729 else
8730 if test "$GCC" = "yes"; then
8731 aros_gcc_as=`$CC -print-prog-name=as`
8732 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8733 set dummy `basename $aros_gcc_as`; ac_word=$2
8734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8736 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739 case $aros_target_as_ln in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in `dirname $aros_gcc_as`
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8760 esac
8762 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8763 if test -n "$aros_target_as_ln"; then
8764 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8765 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8766 else
8767 { echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6; }
8773 if test "$aros_target_as_ln" = ""; then
8774 # Extract the first word of "as", so it can be a program name with args.
8775 set dummy as; ac_word=$2
8776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8778 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 case $aros_target_as_ln in
8782 [\\/]* | ?:[\\/]*)
8783 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8797 done
8798 done
8799 IFS=$as_save_IFS
8802 esac
8804 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8805 if test -n "$aros_target_as_ln"; then
8806 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8807 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8808 else
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8817 if test "$aros_target_as_ln" = ""; then
8818 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8819 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8820 { (exit 1); exit 1; }; }
8823 if test "$cross_compiling" = "yes" ; then
8824 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8825 set dummy ${target_tool_prefix}ld; ac_word=$2
8826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8828 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831 case $aros_kernel_ld in
8832 [\\/]* | ?:[\\/]*)
8833 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8847 done
8848 done
8849 IFS=$as_save_IFS
8852 esac
8854 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8855 if test -n "$aros_kernel_ld"; then
8856 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8857 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8858 else
8859 { echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6; }
8864 else
8865 if test "$GCC" = "yes"; then
8866 aros_gcc_ld=`$CC -print-prog-name=ld`
8867 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8868 set dummy `basename $aros_gcc_ld`; ac_word=$2
8869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8871 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874 case $aros_kernel_ld in
8875 [\\/]* | ?:[\\/]*)
8876 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in `dirname $aros_gcc_ld`
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8886 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8892 IFS=$as_save_IFS
8895 esac
8897 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8898 if test -n "$aros_kernel_ld"; then
8899 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8900 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8901 else
8902 { echo "$as_me:$LINENO: result: no" >&5
8903 echo "${ECHO_T}no" >&6; }
8908 if test "$aros_kernel_ld" = ""; then
8909 # Extract the first word of "ld", so it can be a program name with args.
8910 set dummy ld; ac_word=$2
8911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8913 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 case $aros_kernel_ld in
8917 [\\/]* | ?:[\\/]*)
8918 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8932 done
8933 done
8934 IFS=$as_save_IFS
8937 esac
8939 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8940 if test -n "$aros_kernel_ld"; then
8941 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8942 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8943 else
8944 { echo "$as_me:$LINENO: result: no" >&5
8945 echo "${ECHO_T}no" >&6; }
8952 if test "$aros_kernel_ld" = ""; then
8953 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8954 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8955 { (exit 1); exit 1; }; }
8958 if test "$cross_compiling" = "yes" ; then
8959 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8960 set dummy ${target_tool_prefix}ar; ac_word=$2
8961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8963 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 case $aros_target_ar_ln in
8967 [\\/]* | ?:[\\/]*)
8968 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8987 esac
8989 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8990 if test -n "$aros_target_ar_ln"; then
8991 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8992 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8993 else
8994 { echo "$as_me:$LINENO: result: no" >&5
8995 echo "${ECHO_T}no" >&6; }
8999 else
9000 if test "$GCC" = "yes"; then
9001 aros_gcc_ar=`$CC -print-prog-name=ar`
9002 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9003 set dummy `basename $aros_gcc_ar`; ac_word=$2
9004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9006 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009 case $aros_target_ar_ln in
9010 [\\/]* | ?:[\\/]*)
9011 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in `dirname $aros_gcc_ar`
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9025 done
9026 done
9027 IFS=$as_save_IFS
9030 esac
9032 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9033 if test -n "$aros_target_ar_ln"; then
9034 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9035 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9036 else
9037 { echo "$as_me:$LINENO: result: no" >&5
9038 echo "${ECHO_T}no" >&6; }
9043 if test "$aros_target_ar_ln" = ""; then
9044 # Extract the first word of "ar", so it can be a program name with args.
9045 set dummy ar; ac_word=$2
9046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9048 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 case $aros_target_ar_ln in
9052 [\\/]* | ?:[\\/]*)
9053 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9063 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9069 IFS=$as_save_IFS
9072 esac
9074 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9075 if test -n "$aros_target_ar_ln"; then
9076 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9077 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9078 else
9079 { echo "$as_me:$LINENO: result: no" >&5
9080 echo "${ECHO_T}no" >&6; }
9087 if test "$aros_target_ar_ln" = ""; then
9088 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9089 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9090 { (exit 1); exit 1; }; }
9093 if test "$cross_compiling" = "yes" ; then
9094 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9095 set dummy ${target_tool_prefix}nm; ac_word=$2
9096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9098 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 case $aros_target_nm_ln in
9102 [\\/]* | ?:[\\/]*)
9103 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9122 esac
9124 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9125 if test -n "$aros_target_nm_ln"; then
9126 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9127 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9128 else
9129 { echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6; }
9134 else
9135 if test "$GCC" = "yes"; then
9136 aros_gcc_nm=`$CC -print-prog-name=nm`
9137 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9138 set dummy `basename $aros_gcc_nm`; ac_word=$2
9139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9141 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144 case $aros_target_nm_ln in
9145 [\\/]* | ?:[\\/]*)
9146 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in `dirname $aros_gcc_nm`
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9165 esac
9167 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9168 if test -n "$aros_target_nm_ln"; then
9169 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9170 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9171 else
9172 { echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6; }
9178 if test "$aros_target_nm_ln" = ""; then
9179 # Extract the first word of "nm", so it can be a program name with args.
9180 set dummy nm; ac_word=$2
9181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9183 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186 case $aros_target_nm_ln in
9187 [\\/]* | ?:[\\/]*)
9188 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9198 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9202 done
9203 done
9204 IFS=$as_save_IFS
9207 esac
9209 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9210 if test -n "$aros_target_nm_ln"; then
9211 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9212 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9213 else
9214 { echo "$as_me:$LINENO: result: no" >&5
9215 echo "${ECHO_T}no" >&6; }
9222 if test "$aros_target_nm_ln" = ""; then
9223 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9224 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9225 { (exit 1); exit 1; }; }
9228 if test "$cross_compiling" = "yes" ; then
9229 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9230 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9233 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 case $aros_target_objcopy_ln in
9237 [\\/]* | ?:[\\/]*)
9238 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 for as_dir in $PATH
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9248 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 break 2
9252 done
9253 done
9254 IFS=$as_save_IFS
9257 esac
9259 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9260 if test -n "$aros_target_objcopy_ln"; then
9261 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9262 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9263 else
9264 { echo "$as_me:$LINENO: result: no" >&5
9265 echo "${ECHO_T}no" >&6; }
9269 else
9270 if test "$GCC" = "yes"; then
9271 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9272 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9273 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9276 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 case $aros_target_objcopy_ln in
9280 [\\/]* | ?:[\\/]*)
9281 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 for as_dir in `dirname $aros_gcc_objcopy`
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9291 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 break 2
9295 done
9296 done
9297 IFS=$as_save_IFS
9300 esac
9302 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9303 if test -n "$aros_target_objcopy_ln"; then
9304 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9305 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9306 else
9307 { echo "$as_me:$LINENO: result: no" >&5
9308 echo "${ECHO_T}no" >&6; }
9313 if test "$aros_target_objcopy_ln" = ""; then
9314 # Extract the first word of "objcopy", so it can be a program name with args.
9315 set dummy objcopy; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 case $aros_target_objcopy_ln in
9322 [\\/]* | ?:[\\/]*)
9323 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9342 esac
9344 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9345 if test -n "$aros_target_objcopy_ln"; then
9346 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9347 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9348 else
9349 { echo "$as_me:$LINENO: result: no" >&5
9350 echo "${ECHO_T}no" >&6; }
9357 if test "$aros_target_objcopy_ln" = ""; then
9358 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9359 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9360 { (exit 1); exit 1; }; }
9363 if test "$cross_compiling" = "yes" ; then
9364 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9365 set dummy ${target_tool_prefix}objdump; ac_word=$2
9366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9368 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 case $aros_target_objdump_ln in
9372 [\\/]* | ?:[\\/]*)
9373 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 for as_dir in $PATH
9379 IFS=$as_save_IFS
9380 test -z "$as_dir" && as_dir=.
9381 for ac_exec_ext in '' $ac_executable_extensions; do
9382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9383 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 break 2
9387 done
9388 done
9389 IFS=$as_save_IFS
9392 esac
9394 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9395 if test -n "$aros_target_objdump_ln"; then
9396 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9397 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9398 else
9399 { echo "$as_me:$LINENO: result: no" >&5
9400 echo "${ECHO_T}no" >&6; }
9404 else
9405 if test "$GCC" = "yes"; then
9406 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9407 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9408 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9411 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 case $aros_target_objdump_ln in
9415 [\\/]* | ?:[\\/]*)
9416 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in `dirname $aros_gcc_objdump`
9422 IFS=$as_save_IFS
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9428 break 2
9430 done
9431 done
9432 IFS=$as_save_IFS
9435 esac
9437 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9438 if test -n "$aros_target_objdump_ln"; then
9439 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9440 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9441 else
9442 { echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6; }
9448 if test "$aros_target_objdump_ln" = ""; then
9449 # Extract the first word of "objdump", so it can be a program name with args.
9450 set dummy objdump; ac_word=$2
9451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9453 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 case $aros_target_objdump_ln in
9457 [\\/]* | ?:[\\/]*)
9458 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 for as_dir in $PATH
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9468 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 break 2
9472 done
9473 done
9474 IFS=$as_save_IFS
9477 esac
9479 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9480 if test -n "$aros_target_objdump_ln"; then
9481 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9482 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9483 else
9484 { echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6; }
9492 if test "$aros_target_objdump_ln" = ""; then
9493 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9494 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9495 { (exit 1); exit 1; }; }
9498 if test "$cross_compiling" = "yes" ; then
9499 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9500 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9503 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 case $aros_target_ranlib_ln in
9507 [\\/]* | ?:[\\/]*)
9508 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 for as_dir in $PATH
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9518 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9522 done
9523 done
9524 IFS=$as_save_IFS
9527 esac
9529 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9530 if test -n "$aros_target_ranlib_ln"; then
9531 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9532 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9533 else
9534 { echo "$as_me:$LINENO: result: no" >&5
9535 echo "${ECHO_T}no" >&6; }
9539 else
9540 if test "$GCC" = "yes"; then
9541 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9542 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9543 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9546 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 case $aros_target_ranlib_ln in
9550 [\\/]* | ?:[\\/]*)
9551 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in `dirname $aros_gcc_ranlib`
9557 IFS=$as_save_IFS
9558 test -z "$as_dir" && as_dir=.
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9563 break 2
9565 done
9566 done
9567 IFS=$as_save_IFS
9570 esac
9572 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9573 if test -n "$aros_target_ranlib_ln"; then
9574 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9575 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9576 else
9577 { echo "$as_me:$LINENO: result: no" >&5
9578 echo "${ECHO_T}no" >&6; }
9583 if test "$aros_target_ranlib_ln" = ""; then
9584 # Extract the first word of "ranlib", so it can be a program name with args.
9585 set dummy ranlib; ac_word=$2
9586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9588 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591 case $aros_target_ranlib_ln in
9592 [\\/]* | ?:[\\/]*)
9593 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $PATH
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9607 done
9608 done
9609 IFS=$as_save_IFS
9612 esac
9614 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9615 if test -n "$aros_target_ranlib_ln"; then
9616 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9617 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9618 else
9619 { echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6; }
9627 if test "$aros_target_ranlib_ln" = ""; then
9628 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9629 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9630 { (exit 1); exit 1; }; }
9633 if test "$cross_compiling" = "yes" ; then
9634 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9635 set dummy ${target_tool_prefix}strip; ac_word=$2
9636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9638 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 case $aros_target_strip_ln in
9642 [\\/]* | ?:[\\/]*)
9643 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647 for as_dir in $PATH
9649 IFS=$as_save_IFS
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9653 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 break 2
9657 done
9658 done
9659 IFS=$as_save_IFS
9662 esac
9664 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9665 if test -n "$aros_target_strip_ln"; then
9666 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9667 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9668 else
9669 { echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6; }
9674 else
9675 if test "$GCC" = "yes"; then
9676 aros_gcc_strip=`$CC -print-prog-name=strip`
9677 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9678 set dummy `basename $aros_gcc_strip`; ac_word=$2
9679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9681 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 case $aros_target_strip_ln in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in `dirname $aros_gcc_strip`
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9700 done
9701 done
9702 IFS=$as_save_IFS
9705 esac
9707 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9708 if test -n "$aros_target_strip_ln"; then
9709 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9710 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9711 else
9712 { echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6; }
9718 if test "$aros_target_strip_ln" = ""; then
9719 # Extract the first word of "strip", so it can be a program name with args.
9720 set dummy strip; ac_word=$2
9721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9723 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 case $aros_target_strip_ln in
9727 [\\/]* | ?:[\\/]*)
9728 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9747 esac
9749 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9750 if test -n "$aros_target_strip_ln"; then
9751 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9752 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9753 else
9754 { echo "$as_me:$LINENO: result: no" >&5
9755 echo "${ECHO_T}no" >&6; }
9762 if test "$aros_target_strip_ln" = ""; then
9763 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9764 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9765 { (exit 1); exit 1; }; }
9768 if test "$GCC" = "yes"; then
9769 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9772 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9773 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9774 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9775 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9776 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9777 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9778 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9780 # aros_cc_pre is a variable that is added to the front of the compiler name
9781 # in the generated aros-gcc shell script. We need this to enable the cache
9782 # to work across cleaned builds. Also, support DISTCC using the correct
9783 # environment variable.
9786 if test "x${DISTCC}" != "x" ; then
9787 if test "x${CCACHE}" != "x" ; then
9788 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9789 else
9790 aros_cc_pre="${DISTCC} "
9792 else
9793 if test "x${CCACHE}" != "x" ; then
9794 aros_cc_pre="${CCACHE} "
9798 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9800 aros_target_nostdinc_cflags=-nostdinc
9802 aros_target_nostartup_ldflags=-nostartfiles
9804 aros_target_nix_ldflags=-nix
9806 aros_target_detach_ldflags=-detach
9808 aros_target_nostdlib_ldflags=-nostdlib
9811 # Target tools
9812 aros_target_cc="${prefix}-gcc"
9813 aros_target_as="${prefix}-as"
9814 aros_target_ld="${prefix}-ld"
9815 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9816 aros_target_objcopy=${prefix}-objcopy
9817 aros_target_objdump=${prefix}-objdump
9818 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9819 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9820 aros_kernel_nm="${prefix}-nm"
9821 aros_target_strip=${prefix}-strip
9824 # Find the system include path. We can suggest that an alternative is
9825 # used if we don't get it correct. The default is to use /usr/include.
9826 # Which is set in the aros_target_incl_def variable.
9828 # Check whether --enable-includes was given.
9829 if test "${enable_includes+set}" = set; then
9830 enableval=$enable_includes; aros_target_incl=$enable_includes
9831 else
9832 aros_target_incl=$aros_target_incl_def
9836 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9837 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9838 if test "$aros_target_cc_includes" = "" ; then
9839 #try to guess where the directory is
9840 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9841 if ! test -d $aros_target_cc_includes; then
9842 #the directory doesn't exist, we need to do some more work
9843 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9845 #these are the headers we're looling for
9846 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9847 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9848 zutil.h"
9850 dirs=
9851 for h in $headers; do
9852 #which other headers each of the above headers needs?
9853 deps=$(echo "#include <$h>" | \
9854 $aros_host_cc -E -M - 2>/dev/null | \
9855 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9857 #copy all the needed headers to a directory beneath gendir
9858 for d in $deps; do
9859 h=$(basename $d)
9860 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9861 sed -n "s,^.*/include\(/.*\),\1,p")
9862 ! test -d $dir && mkdir -p $dir
9863 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9864 done
9865 done
9868 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9869 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9871 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9872 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9874 # Check whether --with-resolution was given.
9875 if test "${with_resolution+set}" = set; then
9876 withval=$with_resolution; resolution=$withval
9877 else
9878 resolution=none
9881 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9882 if test "$resolution" = "yes" ; then
9883 resolution="none"
9885 if test "$resolution" = "no" ; then
9886 resolution="none"
9888 if test "$resolution" != "none" ; then
9889 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9890 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9891 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9893 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9894 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9895 aros_cv_default_wbwidth=$aros_default_wbwidth
9896 aros_cv_default_wbheight=$aros_default_wbheight
9897 aros_cv_default_wbdepth=$aros_default_wbdepth
9899 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9900 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9901 # Check whether --enable-bochs_hack was given.
9902 if test "${enable_bochs_hack+set}" = set; then
9903 enableval=$enable_bochs_hack; bochs_hack="yes"
9904 else
9905 bochs_hack="no"
9908 if test "$bochs_hack" = "yes" ; then
9909 aros_bochs_hack="1"
9911 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9912 echo "${ECHO_T}$bochs_hack" >&6; }
9914 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9915 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9917 # Check whether --with-serial-debug was given.
9918 if test "${with_serial_debug+set}" = set; then
9919 withval=$with_serial_debug; serial_debug=$withval
9920 else
9921 serial_debug=none
9924 if test "$serial_debug" = "yes" ; then
9925 serial_debug="2"
9927 if test "$serial_debug" = "no" ; then
9928 serial_debug="none"
9930 if test "$serial_debug" != "none" ; then
9931 aros_serial_debug=$serial_debug
9932 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9933 echo "${ECHO_T}on port $serial_debug" >&6; }
9934 else
9935 { echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6; }
9939 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9940 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9941 # Check whether --enable-palm_debug_hack was given.
9942 if test "${enable_palm_debug_hack+set}" = set; then
9943 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9944 else
9945 palm_debug_hack="no"
9948 if test "$palm_debug_hack" = "yes" ; then
9949 aros_palm_debug_hack="1"
9951 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9952 echo "${ECHO_T}$palm_debug_hack" >&6; }
9955 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9956 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9957 # Check whether --enable-nesting_supervisor was given.
9958 if test "${enable_nesting_supervisor+set}" = set; then
9959 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9960 else
9961 nesting_supervisor="no"
9964 if test "$nesting_supervisor" = "yes" ; then
9965 aros_nesting_supervisor="1"
9967 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9968 echo "${ECHO_T}$nesting_supervisor" >&6; }
9971 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9973 { echo "$as_me:$LINENO: checking for dlopen" >&5
9974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9975 if test "${ac_cv_func_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define dlopen innocuous_dlopen
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char dlopen (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9993 #ifdef __STDC__
9994 # include <limits.h>
9995 #else
9996 # include <assert.h>
9997 #endif
9999 #undef dlopen
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char dlopen ();
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined __stub_dlopen || defined __stub___dlopen
10012 choke me
10013 #endif
10016 main ()
10018 return dlopen ();
10020 return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext &&
10040 $as_test_x conftest$ac_exeext; then
10041 ac_cv_func_dlopen=yes
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_func_dlopen=no
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050 conftest$ac_exeext conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10053 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10054 if test $ac_cv_func_dlopen = yes; then
10055 have_dl="yes"
10056 else
10057 have_dl="no"
10060 if test "x-$have_dl" = "x-no" ; then
10061 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10062 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10063 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-ldl $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char dlopen ();
10083 main ()
10085 return dlopen ();
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (ac_try="$ac_link"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_link") 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest$ac_exeext &&
10107 $as_test_x conftest$ac_exeext; then
10108 ac_cv_lib_dl_dlopen=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_lib_dl_dlopen=no
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10122 if test $ac_cv_lib_dl_dlopen = yes; then
10123 have_dl="yes"
10124 aros_host_ldflags="$aros_host_ldflags -ldl"
10125 else
10126 have_dl="no"
10130 if test "x-$have_dl" = "x-no" ; then
10131 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10132 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10133 { (exit 1); exit 1; }; }
10137 # Check whether --enable-x11_hidd was given.
10138 if test "${enable_x11_hidd+set}" = set; then
10139 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10140 else
10141 x11_hidd="auto"
10144 case "x-$x11_hidd" in
10145 x-yes|x-no|x-auto) ;;
10146 *) x11_hidd="auto" ;;
10147 esac
10149 if test "x-$x11_hidd" != "x-no" ; then
10151 { echo "$as_me:$LINENO: checking for X" >&5
10152 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10155 # Check whether --with-x was given.
10156 if test "${with_x+set}" = set; then
10157 withval=$with_x;
10160 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10161 if test "x$with_x" = xno; then
10162 # The user explicitly disabled X.
10163 have_x=disabled
10164 else
10165 case $x_includes,$x_libraries in #(
10166 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10167 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10168 { (exit 1); exit 1; }; };; #(
10169 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172 # One or both of the vars are not set, and there is no cached value.
10173 ac_x_includes=no ac_x_libraries=no
10174 rm -f -r conftest.dir
10175 if mkdir conftest.dir; then
10176 cd conftest.dir
10177 cat >Imakefile <<'_ACEOF'
10178 incroot:
10179 @echo incroot='${INCROOT}'
10180 usrlibdir:
10181 @echo usrlibdir='${USRLIBDIR}'
10182 libdir:
10183 @echo libdir='${LIBDIR}'
10184 _ACEOF
10185 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10187 for ac_var in incroot usrlibdir libdir; do
10188 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10189 done
10190 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10191 for ac_extension in a so sl; do
10192 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10193 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10194 ac_im_usrlibdir=$ac_im_libdir; break
10196 done
10197 # Screen out bogus values from the imake configuration. They are
10198 # bogus both because they are the default anyway, and because
10199 # using them would break gcc on systems where it needs fixed includes.
10200 case $ac_im_incroot in
10201 /usr/include) ac_x_includes= ;;
10202 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10203 esac
10204 case $ac_im_usrlibdir in
10205 /usr/lib | /lib) ;;
10206 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10207 esac
10209 cd ..
10210 rm -f -r conftest.dir
10213 # Standard set of common directories for X headers.
10214 # Check X11 before X11Rn because it is often a symlink to the current release.
10215 ac_x_header_dirs='
10216 /usr/X11/include
10217 /usr/X11R6/include
10218 /usr/X11R5/include
10219 /usr/X11R4/include
10221 /usr/include/X11
10222 /usr/include/X11R6
10223 /usr/include/X11R5
10224 /usr/include/X11R4
10226 /usr/local/X11/include
10227 /usr/local/X11R6/include
10228 /usr/local/X11R5/include
10229 /usr/local/X11R4/include
10231 /usr/local/include/X11
10232 /usr/local/include/X11R6
10233 /usr/local/include/X11R5
10234 /usr/local/include/X11R4
10236 /usr/X386/include
10237 /usr/x386/include
10238 /usr/XFree86/include/X11
10240 /usr/include
10241 /usr/local/include
10242 /usr/unsupported/include
10243 /usr/athena/include
10244 /usr/local/x11r5/include
10245 /usr/lpp/Xamples/include
10247 /usr/openwin/include
10248 /usr/openwin/share/include'
10250 if test "$ac_x_includes" = no; then
10251 # Guess where to find include files, by looking for Xlib.h.
10252 # First, try using that file with no special directory specified.
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <X11/Xlib.h>
10260 _ACEOF
10261 if { (ac_try="$ac_cpp conftest.$ac_ext"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } >/dev/null && {
10274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 }; then
10277 # We can compile using X headers with no special include directory.
10278 ac_x_includes=
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 for ac_dir in $ac_x_header_dirs; do
10284 if test -r "$ac_dir/X11/Xlib.h"; then
10285 ac_x_includes=$ac_dir
10286 break
10288 done
10291 rm -f conftest.err conftest.$ac_ext
10292 fi # $ac_x_includes = no
10294 if test "$ac_x_libraries" = no; then
10295 # Check for the libraries.
10296 # See if we find them without any special options.
10297 # Don't add to $LIBS permanently.
10298 ac_save_LIBS=$LIBS
10299 LIBS="-lX11 $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 #include <X11/Xlib.h>
10308 main ()
10310 XrmInitialize ()
10312 return 0;
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (ac_try="$ac_link"
10317 case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320 esac
10321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_link") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest$ac_exeext &&
10332 $as_test_x conftest$ac_exeext; then
10333 LIBS=$ac_save_LIBS
10334 # We can link X programs with no special library path.
10335 ac_x_libraries=
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 LIBS=$ac_save_LIBS
10341 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10343 # Don't even attempt the hair of trying to link an X program!
10344 for ac_extension in a so sl; do
10345 if test -r "$ac_dir/libX11.$ac_extension"; then
10346 ac_x_libraries=$ac_dir
10347 break 2
10349 done
10350 done
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355 fi # $ac_x_libraries = no
10357 case $ac_x_includes,$ac_x_libraries in #(
10358 no,* | *,no | *\'*)
10359 # Didn't find X, or a directory has "'" in its name.
10360 ac_cv_have_x="have_x=no";; #(
10362 # Record where we found X for the cache.
10363 ac_cv_have_x="have_x=yes\
10364 ac_x_includes='$ac_x_includes'\
10365 ac_x_libraries='$ac_x_libraries'"
10366 esac
10368 ;; #(
10369 *) have_x=yes;;
10370 esac
10371 eval "$ac_cv_have_x"
10372 fi # $with_x != no
10374 if test "$have_x" != yes; then
10375 { echo "$as_me:$LINENO: result: $have_x" >&5
10376 echo "${ECHO_T}$have_x" >&6; }
10377 no_x=yes
10378 else
10379 # If each of the values was on the command line, it overrides each guess.
10380 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10381 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10382 # Update the cache value to reflect the command line values.
10383 ac_cv_have_x="have_x=yes\
10384 ac_x_includes='$x_includes'\
10385 ac_x_libraries='$x_libraries'"
10386 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10387 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10391 x_cflags=
10392 for path in $x_libraries
10394 x_cflags="$x_cflags -L$path"
10395 done
10397 for path in $x_includes
10399 x_cflags="$x_cflags -I$path"
10400 done
10402 if test "x-$no_x" = "x-yes" ; then
10404 if test "x-$x11_hidd" != "x-auto" ; then
10405 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10406 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10407 { (exit 1); exit 1; }; }
10410 else
10411 x11_hidd_target=kernel-x11gfx
10414 # Check whether --enable-x11_shm was given.
10415 if test "${enable_x11_shm+set}" = set; then
10416 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10417 else
10418 x11_hidd_shm="auto"
10421 case "x-$x11_hidd_shm" in
10422 x-yes|x-no|x-auto) ;;
10423 *) x11_hidd_shm="auto" ;;
10424 esac
10426 have_xshm=no
10428 if test "x-$x11_hidd_shm" != "x-no" ; then
10431 for ac_header in sys/ipc.h
10433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 ac_res=`eval echo '${'$as_ac_Header'}'`
10441 { echo "$as_me:$LINENO: result: $ac_res" >&5
10442 echo "${ECHO_T}$ac_res" >&6; }
10443 else
10444 # Is the header compilable?
10445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 $ac_includes_default
10454 #include <$ac_header>
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_compile") 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest.$ac_objext; then
10473 ac_header_compiler=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_header_compiler=no
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10483 echo "${ECHO_T}$ac_header_compiler" >&6; }
10485 # Is the header present?
10486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <$ac_header>
10495 _ACEOF
10496 if { (ac_try="$ac_cpp conftest.$ac_ext"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } >/dev/null && {
10509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 }; then
10512 ac_header_preproc=yes
10513 else
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10517 ac_header_preproc=no
10520 rm -f conftest.err conftest.$ac_ext
10521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10522 echo "${ECHO_T}$ac_header_preproc" >&6; }
10524 # So? What about this header?
10525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10526 yes:no: )
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10531 ac_header_preproc=yes
10533 no:yes:* )
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10548 esac
10549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 eval "$as_ac_Header=\$ac_header_preproc"
10556 ac_res=`eval echo '${'$as_ac_Header'}'`
10557 { echo "$as_me:$LINENO: result: $ac_res" >&5
10558 echo "${ECHO_T}$ac_res" >&6; }
10561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10562 cat >>confdefs.h <<_ACEOF
10563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10564 _ACEOF
10568 done
10571 for ac_header in sys/shm.h
10573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 ac_res=`eval echo '${'$as_ac_Header'}'`
10581 { echo "$as_me:$LINENO: result: $ac_res" >&5
10582 echo "${ECHO_T}$ac_res" >&6; }
10583 else
10584 # Is the header compilable?
10585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 $ac_includes_default
10594 #include <$ac_header>
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_compile") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest.$ac_objext; then
10613 ac_header_compiler=yes
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_header_compiler=no
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10623 echo "${ECHO_T}$ac_header_compiler" >&6; }
10625 # Is the header present?
10626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 #include <$ac_header>
10635 _ACEOF
10636 if { (ac_try="$ac_cpp conftest.$ac_ext"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } >/dev/null && {
10649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 }; then
10652 ac_header_preproc=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_header_preproc=no
10660 rm -f conftest.err conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662 echo "${ECHO_T}$ac_header_preproc" >&6; }
10664 # So? What about this header?
10665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10666 yes:no: )
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10673 no:yes:* )
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10688 esac
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 eval "$as_ac_Header=\$ac_header_preproc"
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704 _ACEOF
10708 done
10711 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10713 save_cflags="$CFLAGS"
10714 CFLAGS="$CFLAGS $x_cflags"
10715 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10716 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10717 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-lXext $LIBS"
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h. */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char XShmQueryExtension ();
10737 main ()
10739 return XShmQueryExtension ();
10741 return 0;
10743 _ACEOF
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext &&
10761 $as_test_x conftest$ac_exeext; then
10762 ac_cv_lib_Xext_XShmQueryExtension=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_cv_lib_Xext_XShmQueryExtension=no
10770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10775 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10776 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10777 have_xshm=yes
10780 CFLAGS="$save_cflags"
10784 if test "x-$have_xshm" = "x-yes" ; then
10785 DO_XSHM_SUPPORT="1"
10786 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10787 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10788 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10789 { (exit 1); exit 1; }; }
10790 else
10791 DO_XSHM_SUPPORT="0"
10795 # Check whether --enable-x11_vidmode was given.
10796 if test "${enable_x11_vidmode+set}" = set; then
10797 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10798 else
10799 x11_hidd_vidmode="auto"
10802 case "x-$x11_hidd_vidmode" in
10803 x-yes|x-no|x-auto) ;;
10804 *) x11_hidd_vidmode="auto" ;;
10805 esac
10807 have_vidmode=no
10809 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10811 save_cflags="$CFLAGS"
10812 CFLAGS="$CFLAGS $x_cflags"
10813 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10814 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10815 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-lXxf86vm $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char XF86VidModeQueryExtension ();
10835 main ()
10837 return XF86VidModeQueryExtension ();
10839 return 0;
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10872 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10873 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10874 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10875 have_vidmode=yes
10878 CFLAGS="$save_cflags"
10881 if test "x-$have_vidmode" = "x-yes" ; then
10882 DO_VIDMODE_SUPPORT="1"
10883 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10884 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10885 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10886 { (exit 1); exit 1; }; }
10887 else
10888 DO_VIDMODE_SUPPORT="0"
10892 aros_host_x11_includes=$x_includes
10893 aros_host_x11_libdirs=$x_libraries
10897 # Check whether --enable-sdl_hidd was given.
10898 if test "${enable_sdl_hidd+set}" = set; then
10899 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10900 else
10901 sdl_hidd="auto"
10904 case "x-$sdl_hidd" in
10905 x-yes|x-no|x-auto) ;;
10906 *) sdl_hidd="auto" ;;
10907 esac
10909 if test "x-$sdl_hidd" != "x-no" ; then
10912 # Check whether --with-sdl-prefix was given.
10913 if test "${with_sdl_prefix+set}" = set; then
10914 withval=$with_sdl_prefix; sdl_prefix="$withval"
10915 else
10916 sdl_prefix=""
10920 # Check whether --with-sdl-exec-prefix was given.
10921 if test "${with_sdl_exec_prefix+set}" = set; then
10922 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10923 else
10924 sdl_exec_prefix=""
10927 # Check whether --enable-sdltest was given.
10928 if test "${enable_sdltest+set}" = set; then
10929 enableval=$enable_sdltest;
10930 else
10931 enable_sdltest=yes
10935 if test x$sdl_exec_prefix != x ; then
10936 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10937 if test x${SDL_CONFIG+set} != xset ; then
10938 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10941 if test x$sdl_prefix != x ; then
10942 sdl_args="$sdl_args --prefix=$sdl_prefix"
10943 if test x${SDL_CONFIG+set} != xset ; then
10944 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10948 if test "x$prefix" != xNONE; then
10949 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10951 # Extract the first word of "sdl-config", so it can be a program name with args.
10952 set dummy sdl-config; ac_word=$2
10953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10955 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 case $SDL_CONFIG in
10959 [\\/]* | ?:[\\/]*)
10960 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
10969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 break 2
10974 done
10975 done
10976 IFS=$as_save_IFS
10978 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10980 esac
10982 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10983 if test -n "$SDL_CONFIG"; then
10984 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10985 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10986 else
10987 { echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6; }
10992 min_sdl_version=1.2.10
10993 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10994 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10995 no_sdl=""
10996 if test "$SDL_CONFIG" = "no" ; then
10997 no_sdl=yes
10998 else
10999 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11000 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11002 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11004 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11006 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11008 if test "x$enable_sdltest" = "xyes" ; then
11009 ac_save_CFLAGS="$CFLAGS"
11010 ac_save_CXXFLAGS="$CXXFLAGS"
11011 ac_save_LIBS="$LIBS"
11012 CFLAGS="$CFLAGS $SDL_CFLAGS"
11013 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11014 LIBS="$LIBS $SDL_LIBS"
11015 rm -f conf.sdltest
11016 if test "$cross_compiling" = yes; then
11017 echo $ac_n "cross compiling; assumed OK... $ac_c"
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11026 #include <stdio.h>
11027 #include <stdlib.h>
11028 #include <string.h>
11029 #include "SDL.h"
11031 char*
11032 my_strdup (char *str)
11034 char *new_str;
11036 if (str)
11038 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11039 strcpy (new_str, str);
11041 else
11042 new_str = NULL;
11044 return new_str;
11047 int main (int argc, char *argv[])
11049 int major, minor, micro;
11050 char *tmp_version;
11052 /* This hangs on some systems (?)
11053 system ("touch conf.sdltest");
11055 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11057 /* HP/UX 9 (%@#!) writes to sscanf strings */
11058 tmp_version = my_strdup("$min_sdl_version");
11059 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11060 printf("%s, bad version string\n", "$min_sdl_version");
11061 exit(1);
11064 if (($sdl_major_version > major) ||
11065 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11066 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11068 return 0;
11070 else
11072 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11073 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11074 printf("*** best to upgrade to the required version.\n");
11075 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11076 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11077 printf("*** config.cache before re-running configure\n");
11078 return 1;
11083 _ACEOF
11084 rm -f conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11105 else
11106 echo "$as_me: program exited with status $ac_status" >&5
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ( exit $ac_status )
11111 no_sdl=yes
11113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11117 CFLAGS="$ac_save_CFLAGS"
11118 CXXFLAGS="$ac_save_CXXFLAGS"
11119 LIBS="$ac_save_LIBS"
11122 if test "x$no_sdl" = x ; then
11123 { echo "$as_me:$LINENO: result: yes" >&5
11124 echo "${ECHO_T}yes" >&6; }
11125 have_sdl="yes"
11126 else
11127 { echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6; }
11129 if test "$SDL_CONFIG" = "no" ; then
11130 echo "*** The sdl-config script installed by SDL could not be found"
11131 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11132 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11133 echo "*** full path to sdl-config."
11134 else
11135 if test -f conf.sdltest ; then
11137 else
11138 echo "*** Could not run SDL test program, checking why..."
11139 CFLAGS="$CFLAGS $SDL_CFLAGS"
11140 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11141 LIBS="$LIBS $SDL_LIBS"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 #include <stdio.h>
11150 #include "SDL.h"
11152 int main(int argc, char *argv[])
11153 { return 0; }
11154 #undef main
11155 #define main K_and_R_C_main
11158 main ()
11160 return 0;
11162 return 0;
11164 _ACEOF
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_link") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest$ac_exeext &&
11182 $as_test_x conftest$ac_exeext; then
11183 echo "*** The test program compiled, but did not run. This usually means"
11184 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11185 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11186 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11187 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11188 echo "*** is required on your system"
11189 echo "***"
11190 echo "*** If you have an old version installed, it is best to remove it, although"
11191 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 echo "*** The test program failed to compile or link. See the file config.log for the"
11197 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11198 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11199 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203 conftest$ac_exeext conftest.$ac_ext
11204 CFLAGS="$ac_save_CFLAGS"
11205 CXXFLAGS="$ac_save_CXXFLAGS"
11206 LIBS="$ac_save_LIBS"
11209 SDL_CFLAGS=""
11210 SDL_LIBS=""
11211 have_sdl="no"
11215 rm -f conf.sdltest
11218 if test "x-$have_sdl" != "x-yes" ; then
11220 if test "x-$sdl_hidd" != "x-auto" ; then
11221 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11222 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11223 { (exit 1); exit 1; }; }
11226 else
11227 sdl_hidd_target=kernel-hidd-sdl
11228 aros_host_sdl_cflags=SDL_CFLAGS
11229 aros_host_sdl_libs=SDL_LIBS
11236 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11237 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11238 # Check whether --enable-dbus was given.
11239 if test "${enable_dbus+set}" = set; then
11240 enableval=$enable_dbus; dbus="yes"
11241 else
11242 dbus="no"
11245 if test "$dbus" = "yes" ; then
11246 ENABLE_DBUS=1
11247 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11248 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11249 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11250 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11251 else
11252 ENABLE_DBUS=0
11254 { echo "$as_me:$LINENO: result: $dbus" >&5
11255 echo "${ECHO_T}$dbus" >&6; }
11259 # Generic
11266 # Host related
11289 # Target Related
11329 # Graphics Related
11344 # Native version related
11348 # Palm native version related
11351 # Unix/Hosted version related
11354 # DBUS related
11361 # Debug related
11367 # Collect-aros stuff: "-ius" to ignore undefined symbols
11370 # C compiler related
11373 case "$aros_flavour" in
11374 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11375 aros_flavour="emulation" ;;
11376 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11377 aros_flavour="emulation" ;;
11378 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11379 aros_flavour="standalone";;
11380 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11381 aros_flavour="native" ;;
11382 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11383 aros_flavour="native" ;;
11384 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11385 aros_flavour="linklib" ;;
11386 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11387 aros_flavour="palmnative" ;;
11388 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11389 aros_flavour="mac68knative" ;;
11390 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11391 aros_flavour="ppcnative" ;;
11392 esac
11394 if test ! -d ${aros_inc_dir} ; then
11395 ${MKDIR} ${aros_inc_dir}
11397 if test ! -d ${aros_geninc_dir} ; then
11398 ${MKDIR} ${aros_geninc_dir}
11400 if test ! -d ${aros_hostcfg_dir} ; then
11401 ${MKDIR} ${aros_hostcfg_dir}
11403 if test ! -d ${aros_targetcfg_dir} ; then
11404 ${MKDIR} ${aros_targetcfg_dir}
11406 if test ! -d ${aros_tools_dir} ; then
11407 ${MKDIR} ${aros_tools_dir}
11409 if test ! -d ${aros_scripts_dir} ; then
11410 ${MKDIR} ${aros_scripts_dir}
11413 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11416 ac_config_commands="$ac_config_commands compiler_executable"
11418 ac_config_commands="$ac_config_commands genshared_executable"
11420 ac_config_commands="$ac_config_commands genmf_executable"
11422 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11425 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"
11428 cat >confcache <<\_ACEOF
11429 # This file is a shell script that caches the results of configure
11430 # tests run on this system so they can be shared between configure
11431 # scripts and configure runs, see configure's option --config-cache.
11432 # It is not useful on other systems. If it contains results you don't
11433 # want to keep, you may remove or edit it.
11435 # config.status only pays attention to the cache file if you give it
11436 # the --recheck option to rerun configure.
11438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11440 # following values.
11442 _ACEOF
11444 # The following way of writing the cache mishandles newlines in values,
11445 # but we know of no workaround that is simple, portable, and efficient.
11446 # So, we kill variables containing newlines.
11447 # Ultrix sh set writes to stderr and can't be redirected directly,
11448 # and sets the high bit in the cache file unless we assign to the vars.
11450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11451 eval ac_val=\$$ac_var
11452 case $ac_val in #(
11453 *${as_nl}*)
11454 case $ac_var in #(
11455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11457 esac
11458 case $ac_var in #(
11459 _ | IFS | as_nl) ;; #(
11460 *) $as_unset $ac_var ;;
11461 esac ;;
11462 esac
11463 done
11465 (set) 2>&1 |
11466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11467 *${as_nl}ac_space=\ *)
11468 # `set' does not quote correctly, so add quotes (double-quote
11469 # substitution turns \\\\ into \\, and sed turns \\ into \).
11470 sed -n \
11471 "s/'/'\\\\''/g;
11472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11473 ;; #(
11475 # `set' quotes correctly as required by POSIX, so do not add quotes.
11476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11478 esac |
11479 sort
11481 sed '
11482 /^ac_cv_env_/b end
11483 t clear
11484 :clear
11485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11486 t end
11487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11488 :end' >>confcache
11489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11490 if test -w "$cache_file"; then
11491 test "x$cache_file" != "x/dev/null" &&
11492 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11493 echo "$as_me: updating cache $cache_file" >&6;}
11494 cat confcache >$cache_file
11495 else
11496 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11497 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11500 rm -f confcache
11502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11503 # Let make expand exec_prefix.
11504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11506 DEFS=-DHAVE_CONFIG_H
11508 ac_libobjs=
11509 ac_ltlibobjs=
11510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11511 # 1. Remove the extension, and $U if already installed.
11512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11513 ac_i=`echo "$ac_i" | sed "$ac_script"`
11514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11515 # will be set to the directory where LIBOBJS objects are built.
11516 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11517 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11518 done
11519 LIBOBJS=$ac_libobjs
11521 LTLIBOBJS=$ac_ltlibobjs
11525 : ${CONFIG_STATUS=./config.status}
11526 ac_clean_files_save=$ac_clean_files
11527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11530 cat >$CONFIG_STATUS <<_ACEOF
11531 #! $SHELL
11532 # Generated by $as_me.
11533 # Run this file to recreate the current configuration.
11534 # Compiler output produced by configure, useful for debugging
11535 # configure, is in config.log if it exists.
11537 debug=false
11538 ac_cs_recheck=false
11539 ac_cs_silent=false
11540 SHELL=\${CONFIG_SHELL-$SHELL}
11541 _ACEOF
11543 cat >>$CONFIG_STATUS <<\_ACEOF
11544 ## --------------------- ##
11545 ## M4sh Initialization. ##
11546 ## --------------------- ##
11548 # Be more Bourne compatible
11549 DUALCASE=1; export DUALCASE # for MKS sh
11550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11551 emulate sh
11552 NULLCMD=:
11553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11554 # is contrary to our usage. Disable this feature.
11555 alias -g '${1+"$@"}'='"$@"'
11556 setopt NO_GLOB_SUBST
11557 else
11558 case `(set -o) 2>/dev/null` in
11559 *posix*) set -o posix ;;
11560 esac
11567 # PATH needs CR
11568 # Avoid depending upon Character Ranges.
11569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11572 as_cr_digits='0123456789'
11573 as_cr_alnum=$as_cr_Letters$as_cr_digits
11575 # The user is always right.
11576 if test "${PATH_SEPARATOR+set}" != set; then
11577 echo "#! /bin/sh" >conf$$.sh
11578 echo "exit 0" >>conf$$.sh
11579 chmod +x conf$$.sh
11580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11581 PATH_SEPARATOR=';'
11582 else
11583 PATH_SEPARATOR=:
11585 rm -f conf$$.sh
11588 # Support unset when possible.
11589 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11590 as_unset=unset
11591 else
11592 as_unset=false
11596 # IFS
11597 # We need space, tab and new line, in precisely that order. Quoting is
11598 # there to prevent editors from complaining about space-tab.
11599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11600 # splitting by setting IFS to empty value.)
11601 as_nl='
11603 IFS=" "" $as_nl"
11605 # Find who we are. Look in the path if we contain no directory separator.
11606 case $0 in
11607 *[\\/]* ) as_myself=$0 ;;
11608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11614 done
11615 IFS=$as_save_IFS
11618 esac
11619 # We did not find ourselves, most probably we were run as `sh COMMAND'
11620 # in which case we are not to be found in the path.
11621 if test "x$as_myself" = x; then
11622 as_myself=$0
11624 if test ! -f "$as_myself"; then
11625 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11626 { (exit 1); exit 1; }
11629 # Work around bugs in pre-3.0 UWIN ksh.
11630 for as_var in ENV MAIL MAILPATH
11631 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11632 done
11633 PS1='$ '
11634 PS2='> '
11635 PS4='+ '
11637 # NLS nuisances.
11638 for as_var in \
11639 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11640 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11641 LC_TELEPHONE LC_TIME
11643 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11644 eval $as_var=C; export $as_var
11645 else
11646 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11648 done
11650 # Required to use basename.
11651 if expr a : '\(a\)' >/dev/null 2>&1 &&
11652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11653 as_expr=expr
11654 else
11655 as_expr=false
11658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11659 as_basename=basename
11660 else
11661 as_basename=false
11665 # Name of the executable.
11666 as_me=`$as_basename -- "$0" ||
11667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11668 X"$0" : 'X\(//\)$' \| \
11669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11670 echo X/"$0" |
11671 sed '/^.*\/\([^/][^/]*\)\/*$/{
11672 s//\1/
11675 /^X\/\(\/\/\)$/{
11676 s//\1/
11679 /^X\/\(\/\).*/{
11680 s//\1/
11683 s/.*/./; q'`
11685 # CDPATH.
11686 $as_unset CDPATH
11690 as_lineno_1=$LINENO
11691 as_lineno_2=$LINENO
11692 test "x$as_lineno_1" != "x$as_lineno_2" &&
11693 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11695 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11696 # uniformly replaced by the line number. The first 'sed' inserts a
11697 # line-number line after each line using $LINENO; the second 'sed'
11698 # does the real work. The second script uses 'N' to pair each
11699 # line-number line with the line containing $LINENO, and appends
11700 # trailing '-' during substitution so that $LINENO is not a special
11701 # case at line end.
11702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11703 # scripts with optimization help from Paolo Bonzini. Blame Lee
11704 # E. McMahon (1931-1989) for sed's syntax. :-)
11705 sed -n '
11707 /[$]LINENO/=
11708 ' <$as_myself |
11709 sed '
11710 s/[$]LINENO.*/&-/
11711 t lineno
11713 :lineno
11715 :loop
11716 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11717 t loop
11718 s/-\n.*//
11719 ' >$as_me.lineno &&
11720 chmod +x "$as_me.lineno" ||
11721 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11722 { (exit 1); exit 1; }; }
11724 # Don't try to exec as it changes $[0], causing all sort of problems
11725 # (the dirname of $[0] is not the place where we might find the
11726 # original and so on. Autoconf is especially sensitive to this).
11727 . "./$as_me.lineno"
11728 # Exit status is that of the last command.
11729 exit
11733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11734 as_dirname=dirname
11735 else
11736 as_dirname=false
11739 ECHO_C= ECHO_N= ECHO_T=
11740 case `echo -n x` in
11741 -n*)
11742 case `echo 'x\c'` in
11743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11744 *) ECHO_C='\c';;
11745 esac;;
11747 ECHO_N='-n';;
11748 esac
11750 if expr a : '\(a\)' >/dev/null 2>&1 &&
11751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11752 as_expr=expr
11753 else
11754 as_expr=false
11757 rm -f conf$$ conf$$.exe conf$$.file
11758 if test -d conf$$.dir; then
11759 rm -f conf$$.dir/conf$$.file
11760 else
11761 rm -f conf$$.dir
11762 mkdir conf$$.dir
11764 echo >conf$$.file
11765 if ln -s conf$$.file conf$$ 2>/dev/null; then
11766 as_ln_s='ln -s'
11767 # ... but there are two gotchas:
11768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11770 # In both cases, we have to default to `cp -p'.
11771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11772 as_ln_s='cp -p'
11773 elif ln conf$$.file conf$$ 2>/dev/null; then
11774 as_ln_s=ln
11775 else
11776 as_ln_s='cp -p'
11778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11779 rmdir conf$$.dir 2>/dev/null
11781 if mkdir -p . 2>/dev/null; then
11782 as_mkdir_p=:
11783 else
11784 test -d ./-p && rmdir ./-p
11785 as_mkdir_p=false
11788 if test -x / >/dev/null 2>&1; then
11789 as_test_x='test -x'
11790 else
11791 if ls -dL / >/dev/null 2>&1; then
11792 as_ls_L_option=L
11793 else
11794 as_ls_L_option=
11796 as_test_x='
11797 eval sh -c '\''
11798 if test -d "$1"; then
11799 test -d "$1/.";
11800 else
11801 case $1 in
11802 -*)set "./$1";;
11803 esac;
11804 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11805 ???[sx]*):;;*)false;;esac;fi
11806 '\'' sh
11809 as_executable_p=$as_test_x
11811 # Sed expression to map a string onto a valid CPP name.
11812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11814 # Sed expression to map a string onto a valid variable name.
11815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11818 exec 6>&1
11820 # Save the log message, to keep $[0] and so on meaningful, and to
11821 # report actual input values of CONFIG_FILES etc. instead of their
11822 # values after options handling.
11823 ac_log="
11824 This file was extended by $as_me, which was
11825 generated by GNU Autoconf 2.61. Invocation command line was
11827 CONFIG_FILES = $CONFIG_FILES
11828 CONFIG_HEADERS = $CONFIG_HEADERS
11829 CONFIG_LINKS = $CONFIG_LINKS
11830 CONFIG_COMMANDS = $CONFIG_COMMANDS
11831 $ $0 $@
11833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11836 _ACEOF
11838 cat >>$CONFIG_STATUS <<_ACEOF
11839 # Files that config.status was made for.
11840 config_files="$ac_config_files"
11841 config_headers="$ac_config_headers"
11842 config_commands="$ac_config_commands"
11844 _ACEOF
11846 cat >>$CONFIG_STATUS <<\_ACEOF
11847 ac_cs_usage="\
11848 \`$as_me' instantiates files from templates according to the
11849 current configuration.
11851 Usage: $0 [OPTIONS] [FILE]...
11853 -h, --help print this help, then exit
11854 -V, --version print version number and configuration settings, then exit
11855 -q, --quiet do not print progress messages
11856 -d, --debug don't remove temporary files
11857 --recheck update $as_me by reconfiguring in the same conditions
11858 --file=FILE[:TEMPLATE]
11859 instantiate the configuration file FILE
11860 --header=FILE[:TEMPLATE]
11861 instantiate the configuration header FILE
11863 Configuration files:
11864 $config_files
11866 Configuration headers:
11867 $config_headers
11869 Configuration commands:
11870 $config_commands
11872 Report bugs to <bug-autoconf@gnu.org>."
11874 _ACEOF
11875 cat >>$CONFIG_STATUS <<_ACEOF
11876 ac_cs_version="\\
11877 config.status
11878 configured by $0, generated by GNU Autoconf 2.61,
11879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11881 Copyright (C) 2006 Free Software Foundation, Inc.
11882 This config.status script is free software; the Free Software Foundation
11883 gives unlimited permission to copy, distribute and modify it."
11885 ac_pwd='$ac_pwd'
11886 srcdir='$srcdir'
11887 _ACEOF
11889 cat >>$CONFIG_STATUS <<\_ACEOF
11890 # If no file are specified by the user, then we need to provide default
11891 # value. By we need to know if files were specified by the user.
11892 ac_need_defaults=:
11893 while test $# != 0
11895 case $1 in
11896 --*=*)
11897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11899 ac_shift=:
11902 ac_option=$1
11903 ac_optarg=$2
11904 ac_shift=shift
11906 esac
11908 case $ac_option in
11909 # Handling of the options.
11910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11911 ac_cs_recheck=: ;;
11912 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11913 echo "$ac_cs_version"; exit ;;
11914 --debug | --debu | --deb | --de | --d | -d )
11915 debug=: ;;
11916 --file | --fil | --fi | --f )
11917 $ac_shift
11918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11919 ac_need_defaults=false;;
11920 --header | --heade | --head | --hea )
11921 $ac_shift
11922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11923 ac_need_defaults=false;;
11924 --he | --h)
11925 # Conflict between --help and --header
11926 { echo "$as_me: error: ambiguous option: $1
11927 Try \`$0 --help' for more information." >&2
11928 { (exit 1); exit 1; }; };;
11929 --help | --hel | -h )
11930 echo "$ac_cs_usage"; exit ;;
11931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11933 ac_cs_silent=: ;;
11935 # This is an error.
11936 -*) { echo "$as_me: error: unrecognized option: $1
11937 Try \`$0 --help' for more information." >&2
11938 { (exit 1); exit 1; }; } ;;
11940 *) ac_config_targets="$ac_config_targets $1"
11941 ac_need_defaults=false ;;
11943 esac
11944 shift
11945 done
11947 ac_configure_extra_args=
11949 if $ac_cs_silent; then
11950 exec 6>/dev/null
11951 ac_configure_extra_args="$ac_configure_extra_args --silent"
11954 _ACEOF
11955 cat >>$CONFIG_STATUS <<_ACEOF
11956 if \$ac_cs_recheck; then
11957 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11958 CONFIG_SHELL=$SHELL
11959 export CONFIG_SHELL
11960 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11963 _ACEOF
11964 cat >>$CONFIG_STATUS <<\_ACEOF
11965 exec 5>>config.log
11967 echo
11968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11969 ## Running $as_me. ##
11970 _ASBOX
11971 echo "$ac_log"
11972 } >&5
11974 _ACEOF
11975 cat >>$CONFIG_STATUS <<_ACEOF
11977 # INIT-COMMANDS
11980 aros_tools_dir=${aros_tools_dir}
11981 aros_target_cpu=${aros_target_cpu}
11982 aros_target_arch=${aros_target_arch}
11983 aros_target_suffix=${aros_target_suffix}
11984 aros_target_nm_ln=${aros_target_nm_ln}
11985 aros_target_as_ln=${aros_target_as_ln}
11986 aros_target_ar_ln=${aros_target_ar_ln}
11987 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11988 aros_target_objdump_ln=${aros_target_objdump_ln}
11989 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11990 aros_target_strip_ln=${aros_target_strip_ln}
11993 aros_scripts_dir=${aros_scripts_dir}
11995 aros_tools_dir=${aros_tools_dir}
11998 _ACEOF
12000 cat >>$CONFIG_STATUS <<\_ACEOF
12002 # Handling of arguments.
12003 for ac_config_target in $ac_config_targets
12005 case $ac_config_target in
12006 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12007 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12008 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
12009 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12010 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
12011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12012 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
12013 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12014 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12015 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12016 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12017 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12018 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12019 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12020 "${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" ;;
12021 "${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" ;;
12022 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
12023 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12024 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
12025 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12027 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12028 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12029 { (exit 1); exit 1; }; };;
12030 esac
12031 done
12034 # If the user did not use the arguments to specify the items to instantiate,
12035 # then the envvar interface is used. Set only those that are not.
12036 # We use the long form for the default assignment because of an extremely
12037 # bizarre bug on SunOS 4.1.3.
12038 if $ac_need_defaults; then
12039 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12040 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12044 # Have a temporary directory for convenience. Make it in the build tree
12045 # simply because there is no reason against having it here, and in addition,
12046 # creating and moving files from /tmp can sometimes cause problems.
12047 # Hook for its removal unless debugging.
12048 # Note that there is a small window in which the directory will not be cleaned:
12049 # after its creation but before its name has been assigned to `$tmp'.
12050 $debug ||
12052 tmp=
12053 trap 'exit_status=$?
12054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12056 trap '{ (exit 1); exit 1; }' 1 2 13 15
12058 # Create a (secure) tmp directory for tmp files.
12061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12062 test -n "$tmp" && test -d "$tmp"
12063 } ||
12065 tmp=./conf$$-$RANDOM
12066 (umask 077 && mkdir "$tmp")
12067 } ||
12069 echo "$me: cannot create a temporary directory in ." >&2
12070 { (exit 1); exit 1; }
12074 # Set up the sed scripts for CONFIG_FILES section.
12077 # No need to generate the scripts if there are no CONFIG_FILES.
12078 # This happens for instance when ./config.status config.h
12079 if test -n "$CONFIG_FILES"; then
12081 _ACEOF
12085 ac_delim='%!_!# '
12086 for ac_last_try in false false false false false :; do
12087 cat >conf$$subs.sed <<_ACEOF
12088 SHELL!$SHELL$ac_delim
12089 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12090 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12091 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12092 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12093 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12094 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12095 exec_prefix!$exec_prefix$ac_delim
12096 prefix!$prefix$ac_delim
12097 program_transform_name!$program_transform_name$ac_delim
12098 bindir!$bindir$ac_delim
12099 sbindir!$sbindir$ac_delim
12100 libexecdir!$libexecdir$ac_delim
12101 datarootdir!$datarootdir$ac_delim
12102 datadir!$datadir$ac_delim
12103 sysconfdir!$sysconfdir$ac_delim
12104 sharedstatedir!$sharedstatedir$ac_delim
12105 localstatedir!$localstatedir$ac_delim
12106 includedir!$includedir$ac_delim
12107 oldincludedir!$oldincludedir$ac_delim
12108 docdir!$docdir$ac_delim
12109 infodir!$infodir$ac_delim
12110 htmldir!$htmldir$ac_delim
12111 dvidir!$dvidir$ac_delim
12112 pdfdir!$pdfdir$ac_delim
12113 psdir!$psdir$ac_delim
12114 libdir!$libdir$ac_delim
12115 localedir!$localedir$ac_delim
12116 mandir!$mandir$ac_delim
12117 DEFS!$DEFS$ac_delim
12118 ECHO_C!$ECHO_C$ac_delim
12119 ECHO_N!$ECHO_N$ac_delim
12120 ECHO_T!$ECHO_T$ac_delim
12121 LIBS!$LIBS$ac_delim
12122 build_alias!$build_alias$ac_delim
12123 host_alias!$host_alias$ac_delim
12124 target_alias!$target_alias$ac_delim
12125 build!$build$ac_delim
12126 build_cpu!$build_cpu$ac_delim
12127 build_vendor!$build_vendor$ac_delim
12128 build_os!$build_os$ac_delim
12129 host!$host$ac_delim
12130 host_cpu!$host_cpu$ac_delim
12131 host_vendor!$host_vendor$ac_delim
12132 host_os!$host_os$ac_delim
12133 CC!$CC$ac_delim
12134 CFLAGS!$CFLAGS$ac_delim
12135 LDFLAGS!$LDFLAGS$ac_delim
12136 CPPFLAGS!$CPPFLAGS$ac_delim
12137 ac_ct_CC!$ac_ct_CC$ac_delim
12138 EXEEXT!$EXEEXT$ac_delim
12139 OBJEXT!$OBJEXT$ac_delim
12140 CPP!$CPP$ac_delim
12141 AWK!$AWK$ac_delim
12142 MMAKE!$MMAKE$ac_delim
12143 aros_host_ld!$aros_host_ld$ac_delim
12144 aros_host_aclocal!$aros_host_aclocal$ac_delim
12145 aros_host_autoconf!$aros_host_autoconf$ac_delim
12146 aros_host_autoheader!$aros_host_autoheader$ac_delim
12147 aros_host_automake!$aros_host_automake$ac_delim
12148 aros_host_ar!$aros_host_ar$ac_delim
12149 aros_host_ranlib!$aros_host_ranlib$ac_delim
12150 aros_host_strip!$aros_host_strip$ac_delim
12151 RM!$RM$ac_delim
12152 CP!$CP$ac_delim
12153 MV!$MV$ac_delim
12154 ECHO!$ECHO$ac_delim
12155 MKDIR!$MKDIR$ac_delim
12156 TOUCH!$TOUCH$ac_delim
12157 SORT!$SORT$ac_delim
12158 UNIQ!$UNIQ$ac_delim
12159 NOP!$NOP$ac_delim
12160 CAT!$CAT$ac_delim
12161 BISON!$BISON$ac_delim
12162 FLEX!$FLEX$ac_delim
12163 PNGTOPNM!$PNGTOPNM$ac_delim
12164 PPMTOILBM!$PPMTOILBM$ac_delim
12165 SED!$SED$ac_delim
12166 CHMOD!$CHMOD$ac_delim
12167 PYTHON!$PYTHON$ac_delim
12168 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12169 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12170 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12171 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12172 pythondir!$pythondir$ac_delim
12173 pkgpythondir!$pkgpythondir$ac_delim
12174 pyexecdir!$pyexecdir$ac_delim
12175 pkgpyexecdir!$pkgpyexecdir$ac_delim
12176 FOR!$FOR$ac_delim
12177 IF!$IF$ac_delim
12178 TEST!$TEST$ac_delim
12179 CMP!$CMP$ac_delim
12180 GREP!$GREP$ac_delim
12181 EGREP!$EGREP$ac_delim
12182 LIBOBJS!$LIBOBJS$ac_delim
12183 DISTCC!$DISTCC$ac_delim
12184 CCACHE!$CCACHE$ac_delim
12185 _ACEOF
12187 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12188 break
12189 elif $ac_last_try; then
12190 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12192 { (exit 1); exit 1; }; }
12193 else
12194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12196 done
12198 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12199 if test -n "$ac_eof"; then
12200 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12201 ac_eof=`expr $ac_eof + 1`
12204 cat >>$CONFIG_STATUS <<_ACEOF
12205 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12207 _ACEOF
12208 sed '
12209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12210 s/^/s,@/; s/!/@,|#_!!_#|/
12213 s/'"$ac_delim"'$/,g/; t
12214 s/$/\\/; p
12215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12216 ' >>$CONFIG_STATUS <conf$$subs.sed
12217 rm -f conf$$subs.sed
12218 cat >>$CONFIG_STATUS <<_ACEOF
12219 CEOF$ac_eof
12220 _ACEOF
12223 ac_delim='%!_!# '
12224 for ac_last_try in false false false false false :; do
12225 cat >conf$$subs.sed <<_ACEOF
12226 aros_kernel_cc!$aros_kernel_cc$ac_delim
12227 aros_target_as_ln!$aros_target_as_ln$ac_delim
12228 aros_kernel_ld!$aros_kernel_ld$ac_delim
12229 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12230 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12231 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12232 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12233 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12234 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12235 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12236 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12237 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12238 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12239 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12240 XMKMF!$XMKMF$ac_delim
12241 SDL_CONFIG!$SDL_CONFIG$ac_delim
12242 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12243 SDL_LIBS!$SDL_LIBS$ac_delim
12244 aros_arch!$aros_arch$ac_delim
12245 aros_cpu!$aros_cpu$ac_delim
12246 aros_flavour!$aros_flavour$ac_delim
12247 aros_flavour_uc!$aros_flavour_uc$ac_delim
12248 TOPDIR!$TOPDIR$ac_delim
12249 aros_cc_pre!$aros_cc_pre$ac_delim
12250 aros_host_arch!$aros_host_arch$ac_delim
12251 aros_host_cpu!$aros_host_cpu$ac_delim
12252 aros_host_cc!$aros_host_cc$ac_delim
12253 aros_host_make!$aros_host_make$ac_delim
12254 aros_host_cflags!$aros_host_cflags$ac_delim
12255 aros_host_ldflags!$aros_host_ldflags$ac_delim
12256 aros_host_debug!$aros_host_debug$ac_delim
12257 aros_host_mkdep!$aros_host_mkdep$ac_delim
12258 aros_host_mkargs!$aros_host_mkargs$ac_delim
12259 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12260 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12261 aros_tools_dir!$aros_tools_dir$ac_delim
12262 aros_target_bootloader!$aros_target_bootloader$ac_delim
12263 aros_target_arch!$aros_target_arch$ac_delim
12264 aros_target_cpu!$aros_target_cpu$ac_delim
12265 aros_target_variant!$aros_target_variant$ac_delim
12266 aros_target_suffix!$aros_target_suffix$ac_delim
12267 aros_target_incl!$aros_target_incl$ac_delim
12268 aros_target_ar!$aros_target_ar$ac_delim
12269 aros_target_ranlib!$aros_target_ranlib$ac_delim
12270 aros_kernel_nm!$aros_kernel_nm$ac_delim
12271 aros_target_cc!$aros_target_cc$ac_delim
12272 aros_target_as!$aros_target_as$ac_delim
12273 aros_target_ld!$aros_target_ld$ac_delim
12274 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12275 aros_target_cc_path!$aros_target_cc_path$ac_delim
12276 aros_target_objdump!$aros_target_objdump$ac_delim
12277 aros_target_objcopy!$aros_target_objcopy$ac_delim
12278 aros_target_strip!$aros_target_strip$ac_delim
12279 aros_target_nm!$aros_target_nm$ac_delim
12280 aros_shared_default!$aros_shared_default$ac_delim
12281 aros_shared_ld!$aros_shared_ld$ac_delim
12282 aros_object_format!$aros_object_format$ac_delim
12283 aros_compiler_libs!$aros_compiler_libs$ac_delim
12284 aros_config_cflags!$aros_config_cflags$ac_delim
12285 aros_config_aflags!$aros_config_aflags$ac_delim
12286 aros_config_ldflags!$aros_config_ldflags$ac_delim
12287 aros_shared_cflags!$aros_shared_cflags$ac_delim
12288 aros_shared_aflags!$aros_shared_aflags$ac_delim
12289 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12290 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12291 aros_debug_cflags!$aros_debug_cflags$ac_delim
12292 aros_debug_aflags!$aros_debug_aflags$ac_delim
12293 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12294 aros_target_genmap!$aros_target_genmap$ac_delim
12295 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12296 x11_hidd_target!$x11_hidd_target$ac_delim
12297 sdl_hidd_target!$sdl_hidd_target$ac_delim
12298 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12299 aros_default_wbheight!$aros_default_wbheight$ac_delim
12300 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12301 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12302 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12303 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
12304 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
12305 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
12306 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
12307 aros_bochs_hack!$aros_bochs_hack$ac_delim
12308 aros_serial_debug!$aros_serial_debug$ac_delim
12309 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12310 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12311 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12312 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12313 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12314 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12315 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12316 aros_debug!$aros_debug$ac_delim
12317 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12318 aros_stack_debug!$aros_stack_debug$ac_delim
12319 aros_modules_debug!$aros_modules_debug$ac_delim
12320 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12321 gcc_target_cpu!$gcc_target_cpu$ac_delim
12322 LTLIBOBJS!$LTLIBOBJS$ac_delim
12323 _ACEOF
12325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12326 break
12327 elif $ac_last_try; then
12328 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12329 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12330 { (exit 1); exit 1; }; }
12331 else
12332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12334 done
12336 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12337 if test -n "$ac_eof"; then
12338 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12339 ac_eof=`expr $ac_eof + 1`
12342 cat >>$CONFIG_STATUS <<_ACEOF
12343 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12345 _ACEOF
12346 sed '
12347 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12348 s/^/s,@/; s/!/@,|#_!!_#|/
12351 s/'"$ac_delim"'$/,g/; t
12352 s/$/\\/; p
12353 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12354 ' >>$CONFIG_STATUS <conf$$subs.sed
12355 rm -f conf$$subs.sed
12356 cat >>$CONFIG_STATUS <<_ACEOF
12357 CEOF$ac_eof
12358 _ACEOF
12361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12363 # trailing colons and then remove the whole line if VPATH becomes empty
12364 # (actually we leave an empty line to preserve line numbers).
12365 if test "x$srcdir" = x.; then
12366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12367 s/:*\$(srcdir):*/:/
12368 s/:*\${srcdir}:*/:/
12369 s/:*@srcdir@:*/:/
12370 s/^\([^=]*=[ ]*\):*/\1/
12371 s/:*$//
12372 s/^[^=]*=[ ]*$//
12376 cat >>$CONFIG_STATUS <<\_ACEOF
12377 fi # test -n "$CONFIG_FILES"
12380 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12382 case $ac_tag in
12383 :[FHLC]) ac_mode=$ac_tag; continue;;
12384 esac
12385 case $ac_mode$ac_tag in
12386 :[FHL]*:*);;
12387 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12388 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12389 { (exit 1); exit 1; }; };;
12390 :[FH]-) ac_tag=-:-;;
12391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12392 esac
12393 ac_save_IFS=$IFS
12394 IFS=:
12395 set x $ac_tag
12396 IFS=$ac_save_IFS
12397 shift
12398 ac_file=$1
12399 shift
12401 case $ac_mode in
12402 :L) ac_source=$1;;
12403 :[FH])
12404 ac_file_inputs=
12405 for ac_f
12407 case $ac_f in
12408 -) ac_f="$tmp/stdin";;
12409 *) # Look for the file first in the build tree, then in the source tree
12410 # (if the path is not absolute). The absolute path cannot be DOS-style,
12411 # because $ac_f cannot contain `:'.
12412 test -f "$ac_f" ||
12413 case $ac_f in
12414 [\\/$]*) false;;
12415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12416 esac ||
12417 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12418 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12419 { (exit 1); exit 1; }; };;
12420 esac
12421 ac_file_inputs="$ac_file_inputs $ac_f"
12422 done
12424 # Let's still pretend it is `configure' which instantiates (i.e., don't
12425 # use $as_me), people would be surprised to read:
12426 # /* config.h. Generated by config.status. */
12427 configure_input="Generated from "`IFS=:
12428 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12429 if test x"$ac_file" != x-; then
12430 configure_input="$ac_file. $configure_input"
12431 { echo "$as_me:$LINENO: creating $ac_file" >&5
12432 echo "$as_me: creating $ac_file" >&6;}
12435 case $ac_tag in
12436 *:-:* | *:-) cat >"$tmp/stdin";;
12437 esac
12439 esac
12441 ac_dir=`$as_dirname -- "$ac_file" ||
12442 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12443 X"$ac_file" : 'X\(//\)[^/]' \| \
12444 X"$ac_file" : 'X\(//\)$' \| \
12445 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12446 echo X"$ac_file" |
12447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12448 s//\1/
12451 /^X\(\/\/\)[^/].*/{
12452 s//\1/
12455 /^X\(\/\/\)$/{
12456 s//\1/
12459 /^X\(\/\).*/{
12460 s//\1/
12463 s/.*/./; q'`
12464 { as_dir="$ac_dir"
12465 case $as_dir in #(
12466 -*) as_dir=./$as_dir;;
12467 esac
12468 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12469 as_dirs=
12470 while :; do
12471 case $as_dir in #(
12472 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12473 *) as_qdir=$as_dir;;
12474 esac
12475 as_dirs="'$as_qdir' $as_dirs"
12476 as_dir=`$as_dirname -- "$as_dir" ||
12477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12478 X"$as_dir" : 'X\(//\)[^/]' \| \
12479 X"$as_dir" : 'X\(//\)$' \| \
12480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12481 echo X"$as_dir" |
12482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12483 s//\1/
12486 /^X\(\/\/\)[^/].*/{
12487 s//\1/
12490 /^X\(\/\/\)$/{
12491 s//\1/
12494 /^X\(\/\).*/{
12495 s//\1/
12498 s/.*/./; q'`
12499 test -d "$as_dir" && break
12500 done
12501 test -z "$as_dirs" || eval "mkdir $as_dirs"
12502 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12503 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12504 { (exit 1); exit 1; }; }; }
12505 ac_builddir=.
12507 case "$ac_dir" in
12508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12511 # A ".." for each directory in $ac_dir_suffix.
12512 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12513 case $ac_top_builddir_sub in
12514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12516 esac ;;
12517 esac
12518 ac_abs_top_builddir=$ac_pwd
12519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12520 # for backward compatibility:
12521 ac_top_builddir=$ac_top_build_prefix
12523 case $srcdir in
12524 .) # We are building in place.
12525 ac_srcdir=.
12526 ac_top_srcdir=$ac_top_builddir_sub
12527 ac_abs_top_srcdir=$ac_pwd ;;
12528 [\\/]* | ?:[\\/]* ) # Absolute name.
12529 ac_srcdir=$srcdir$ac_dir_suffix;
12530 ac_top_srcdir=$srcdir
12531 ac_abs_top_srcdir=$srcdir ;;
12532 *) # Relative name.
12533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12534 ac_top_srcdir=$ac_top_build_prefix$srcdir
12535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12536 esac
12537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12540 case $ac_mode in
12543 # CONFIG_FILE
12546 _ACEOF
12548 cat >>$CONFIG_STATUS <<\_ACEOF
12549 # If the template does not know about datarootdir, expand it.
12550 # FIXME: This hack should be removed a few years after 2.60.
12551 ac_datarootdir_hack=; ac_datarootdir_seen=
12553 case `sed -n '/datarootdir/ {
12557 /@datadir@/p
12558 /@docdir@/p
12559 /@infodir@/p
12560 /@localedir@/p
12561 /@mandir@/p
12562 ' $ac_file_inputs` in
12563 *datarootdir*) ac_datarootdir_seen=yes;;
12564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12565 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12566 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12567 _ACEOF
12568 cat >>$CONFIG_STATUS <<_ACEOF
12569 ac_datarootdir_hack='
12570 s&@datadir@&$datadir&g
12571 s&@docdir@&$docdir&g
12572 s&@infodir@&$infodir&g
12573 s&@localedir@&$localedir&g
12574 s&@mandir@&$mandir&g
12575 s&\\\${datarootdir}&$datarootdir&g' ;;
12576 esac
12577 _ACEOF
12579 # Neutralize VPATH when `$srcdir' = `.'.
12580 # Shell code in configure.ac might set extrasub.
12581 # FIXME: do we really want to maintain this feature?
12582 cat >>$CONFIG_STATUS <<_ACEOF
12583 sed "$ac_vpsub
12584 $extrasub
12585 _ACEOF
12586 cat >>$CONFIG_STATUS <<\_ACEOF
12588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12589 s&@configure_input@&$configure_input&;t t
12590 s&@top_builddir@&$ac_top_builddir_sub&;t t
12591 s&@srcdir@&$ac_srcdir&;t t
12592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12593 s&@top_srcdir@&$ac_top_srcdir&;t t
12594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12595 s&@builddir@&$ac_builddir&;t t
12596 s&@abs_builddir@&$ac_abs_builddir&;t t
12597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12598 $ac_datarootdir_hack
12599 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
12601 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12602 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12603 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12604 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12605 which seems to be undefined. Please make sure it is defined." >&5
12606 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12607 which seems to be undefined. Please make sure it is defined." >&2;}
12609 rm -f "$tmp/stdin"
12610 case $ac_file in
12611 -) cat "$tmp/out"; rm -f "$tmp/out";;
12612 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12613 esac
12617 # CONFIG_HEADER
12619 _ACEOF
12621 # Transform confdefs.h into a sed script `conftest.defines', that
12622 # substitutes the proper values into config.h.in to produce config.h.
12623 rm -f conftest.defines conftest.tail
12624 # First, append a space to every undef/define line, to ease matching.
12625 echo 's/$/ /' >conftest.defines
12626 # Then, protect against being on the right side of a sed subst, or in
12627 # an unquoted here document, in config.status. If some macros were
12628 # called several times there might be several #defines for the same
12629 # symbol, which is useless. But do not sort them, since the last
12630 # AC_DEFINE must be honored.
12631 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12632 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12633 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12634 # PARAMS is the parameter list in the macro definition--in most cases, it's
12635 # just an empty string.
12636 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12637 ac_dB='\\)[ (].*,\\1define\\2'
12638 ac_dC=' '
12639 ac_dD=' ,'
12641 uniq confdefs.h |
12642 sed -n '
12643 t rset
12644 :rset
12645 s/^[ ]*#[ ]*define[ ][ ]*//
12646 t ok
12649 s/[\\&,]/\\&/g
12650 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12651 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12652 ' >>conftest.defines
12654 # Remove the space that was appended to ease matching.
12655 # Then replace #undef with comments. This is necessary, for
12656 # example, in the case of _POSIX_SOURCE, which is predefined and required
12657 # on some systems where configure will not decide to define it.
12658 # (The regexp can be short, since the line contains either #define or #undef.)
12659 echo 's/ $//
12660 s,^[ #]*u.*,/* & */,' >>conftest.defines
12662 # Break up conftest.defines:
12663 ac_max_sed_lines=50
12665 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12666 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12667 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12668 # et cetera.
12669 ac_in='$ac_file_inputs'
12670 ac_out='"$tmp/out1"'
12671 ac_nxt='"$tmp/out2"'
12673 while :
12675 # Write a here document:
12676 cat >>$CONFIG_STATUS <<_ACEOF
12677 # First, check the format of the line:
12678 cat >"\$tmp/defines.sed" <<\\CEOF
12679 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12680 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12682 :def
12683 _ACEOF
12684 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12685 echo 'CEOF
12686 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12687 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12688 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12689 grep . conftest.tail >/dev/null || break
12690 rm -f conftest.defines
12691 mv conftest.tail conftest.defines
12692 done
12693 rm -f conftest.defines conftest.tail
12695 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12696 cat >>$CONFIG_STATUS <<\_ACEOF
12697 if test x"$ac_file" != x-; then
12698 echo "/* $configure_input */" >"$tmp/config.h"
12699 cat "$ac_result" >>"$tmp/config.h"
12700 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12701 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12702 echo "$as_me: $ac_file is unchanged" >&6;}
12703 else
12704 rm -f $ac_file
12705 mv "$tmp/config.h" $ac_file
12707 else
12708 echo "/* $configure_input */"
12709 cat "$ac_result"
12711 rm -f "$tmp/out12"
12714 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12715 echo "$as_me: executing $ac_file commands" >&6;}
12717 esac
12720 case $ac_file$ac_mode in
12721 "compiler_executable":C)
12722 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12723 mkdir -p $prefix
12724 prefix="${prefix}/${aros_target_cpu}-aros"
12725 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12727 echo ${prefix}
12728 echo ${prefix2}
12729 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12731 ln -sf ${prefix2}-gcc ${prefix}-gcc
12732 ln -sf ${prefix2}-ld ${prefix}-ld
12734 ln -sf $aros_target_as_ln ${prefix}-as
12735 ln -sf $aros_target_nm_ln ${prefix}-nm
12736 ln -sf $aros_target_ar_ln ${prefix}-ar
12737 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12738 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12739 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12740 ln -sf $aros_target_strip_ln ${prefix}-strip
12742 ln -sf $aros_target_as_ln ${prefix2}-as
12743 ln -sf $aros_target_nm_ln ${prefix2}-nm
12744 ln -sf $aros_target_ar_ln ${prefix2}-ar
12745 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12746 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12747 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12748 ln -sf $aros_target_strip_ln ${prefix2}-strip
12750 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12751 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12752 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12755 esac
12756 done # for ac_tag
12759 { (exit 0); exit 0; }
12760 _ACEOF
12761 chmod +x $CONFIG_STATUS
12762 ac_clean_files=$ac_clean_files_save
12765 # configure is writing to config.log, and then calls config.status.
12766 # config.status does its own redirection, appending to config.log.
12767 # Unfortunately, on DOS this fails, as config.log is still kept open
12768 # by configure, so config.status won't be able to write to it; its
12769 # output is simply discarded. So we exec the FD to /dev/null,
12770 # effectively closing config.log, so it can be properly (re)opened and
12771 # appended to by config.status. When coming back to configure, we
12772 # need to make the FD available again.
12773 if test "$no_create" != yes; then
12774 ac_cs_success=:
12775 ac_config_status_args=
12776 test "$silent" = yes &&
12777 ac_config_status_args="$ac_config_status_args --quiet"
12778 exec 5>/dev/null
12779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12780 exec 5>>config.log
12781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12782 # would make configure fail if this is the last instruction.
12783 $ac_cs_success || { (exit 1); exit 1; }
12788 #XXX compatability...
12789 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12791 if test -n "$aros_shared_cflags" ; then
12792 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12793 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg