Fixes for clean targets.
[cake.git] / configure
blobac7495339f8b90a321a1dea6a7affcb6c8b486f7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 LIBLZO
714 aros_kernel_cc
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_target_nostdinc_cflags
724 aros_target_nostartup_ldflags
725 aros_target_nix_ldflags
726 aros_target_detach_ldflags
727 aros_target_nostdlib_ldflags
728 XMKMF
729 SDL_CONFIG
730 SDL_CFLAGS
731 SDL_LIBS
732 aros_arch
733 aros_cpu
734 aros_flavour
735 aros_flavour_uc
736 TOPDIR
737 aros_cc_pre
738 aros_host_arch
739 aros_host_cpu
740 aros_host_cc
741 aros_host_make
742 aros_host_cflags
743 aros_host_ldflags
744 aros_host_debug
745 aros_host_mkdep
746 aros_host_mkargs
747 aros_host_exe_suffix
748 aros_host_lib_suffix
749 aros_tools_dir
750 aros_target_bootloader
751 aros_target_arch
752 aros_target_cpu
753 aros_target_variant
754 aros_target_suffix
755 aros_target_incl
756 aros_target_ar
757 aros_target_ranlib
758 aros_kernel_nm
759 aros_target_cc
760 aros_target_as
761 aros_target_ld
762 aros_target_cc_includes
763 aros_target_cc_path
764 aros_target_objdump
765 aros_target_objcopy
766 aros_target_strip
767 aros_target_nm
768 aros_shared_default
769 aros_shared_ld
770 aros_object_format
771 aros_compiler_libs
772 aros_config_cflags
773 aros_config_aflags
774 aros_config_ldflags
775 aros_shared_cflags
776 aros_shared_aflags
777 aros_shared_ldflags
778 aros_kernel_ldflags
779 aros_debug_cflags
780 aros_debug_aflags
781 aros_debug_ldflags
782 aros_target_genmap
783 aros_target_strip_flags
784 x11_hidd_target
785 sdl_hidd_target
786 aros_default_wbwidth
787 aros_default_wbheight
788 aros_default_wbdepth
789 DO_XSHM_SUPPORT
790 DO_VIDMODE_SUPPORT
791 aros_host_x11_includes
792 aros_host_x11_libdirs
793 aros_host_sdl_cflags
794 aros_host_sdl_libs
795 aros_bochs_hack
796 aros_serial_debug
797 aros_palm_debug_hack
798 aros_nesting_supervisor
799 ENABLE_DBUS
800 DBUS_CFLAGS
801 DBUS_LIBFLAGS
802 KERNEL_DBUS_KOBJ
803 KERNEL_DBUS_INCLUDES
804 aros_debug
805 aros_mungwall_debug
806 aros_stack_debug
807 aros_modules_debug
808 ignore_undefined_symbols
809 gcc_target_cpu
810 LTLIBOBJS'
811 ac_subst_files=''
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
821 XMKMF'
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
890 ac_dashdash=yes ;;
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
909 --config-cache | -C)
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
931 eval enable_$ac_feature=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
943 -enable-* | --enable-*)
944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1156 eval with_$ac_package=no ;;
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 esac
1199 done
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
1207 # Be sure to have absolute directory names.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
1220 done
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 echo X"$0" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1274 /^X\(\/\/\)$/{
1275 s//\1/
1278 /^X\(\/\).*/{
1279 s//\1/
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1287 else
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures this package to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1379 cat <<\_ACEOF
1381 X features:
1382 --x-includes=DIR X include files are in DIR
1383 --x-libraries=DIR X library files are in DIR
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1391 if test -n "$ac_init_help"; then
1393 cat <<\_ACEOF
1395 Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-build-type=TYPE
1399 Select the build type. Available types are:
1400 personal, nightly, snapshot, milestone, release. Do
1401 NOT use this option unless you know what you are
1402 doing! (default=personal)
1403 --enable-debug=list Enable different types of debug. Commas or
1404 whitespaces can be used to separate the items in the
1405 list. Available types of debug are: all, none,
1406 messages, stack, mungwall, modules, symbols. If no
1407 list is provided then "all" is assumed.
1408 (default=none)
1409 --enable-distcc Use distcc as a front end to the compiler
1410 (default=no).
1411 --enable-ccache Use ccache as a front end to the compiler
1412 (default=no).
1413 --enable-target-variant=NAME
1414 Enable a specific target variant(default=none)
1415 --enable-bootloader=NAME
1416 Enable a specific bootloader
1417 --enable-includes=dir Alternative system include directory
1418 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1419 (default=no)
1420 --enable-palm-debug-hack
1421 Enable palm debug output hack in palm native
1422 (default=no)
1423 --enable-nesting-supervisor
1424 Enable nesting supervisor support in unix
1425 (default=no)
1426 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1427 --enable-x11-shm use X11 shared memory (default=auto)
1428 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1429 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1430 --disable-sdltest Do not try to compile and run a test SDL program
1431 --enable-dbus Enable DBUS support via dbus.library (default=no)
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-optimization=FLAGS
1437 Use optimization flags FLAGS (default=-O2).
1438 --with-resolution=XRESxYRESxDEPTH
1439 Default resolution of the initial WorkbenchScreen
1440 --with-serial-debug Enable serial debug output in native (default=no)
1441 --with-x use the X Window System
1442 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1443 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CPP C preprocessor
1454 XMKMF Path to xmkmf, Makefile generator for X Window System
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 _ACEOF
1460 ac_status=$?
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" || continue
1467 ac_builddir=.
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 configure
1520 generated by GNU Autoconf 2.61
1522 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1523 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527 exit
1529 cat >config.log <<_ACEOF
1530 This file contains any messages produced by compilers while
1531 running configure, to aid debugging if configure makes a mistake.
1533 It was created by $as_me, which was
1534 generated by GNU Autoconf 2.61. Invocation command line was
1536 $ $0 $@
1538 _ACEOF
1539 exec 5>>config.log
1541 cat <<_ASUNAME
1542 ## --------- ##
1543 ## Platform. ##
1544 ## --------- ##
1546 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1547 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1548 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1549 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1550 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1553 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1555 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1556 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1557 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1558 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1559 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1560 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1561 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1563 _ASUNAME
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 echo "PATH: $as_dir"
1571 done
1572 IFS=$as_save_IFS
1574 } >&5
1576 cat >&5 <<_ACEOF
1579 ## ----------- ##
1580 ## Core tests. ##
1581 ## ----------- ##
1583 _ACEOF
1586 # Keep a trace of the command line.
1587 # Strip out --no-create and --no-recursion so they do not pile up.
1588 # Strip out --silent because we don't want to record it for future runs.
1589 # Also quote any args containing shell meta-characters.
1590 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_configure_args=
1592 ac_configure_args0=
1593 ac_configure_args1=
1594 ac_must_keep_next=false
1595 for ac_pass in 1 2
1597 for ac_arg
1599 case $ac_arg in
1600 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1602 | -silent | --silent | --silen | --sile | --sil)
1603 continue ;;
1604 *\'*)
1605 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1606 esac
1607 case $ac_pass in
1608 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1611 if test $ac_must_keep_next = true; then
1612 ac_must_keep_next=false # Got value, back to normal.
1613 else
1614 case $ac_arg in
1615 *=* | --config-cache | -C | -disable-* | --disable-* \
1616 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1617 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1618 | -with-* | --with-* | -without-* | --without-* | --x)
1619 case "$ac_configure_args0 " in
1620 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1621 esac
1623 -* ) ac_must_keep_next=true ;;
1624 esac
1626 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 esac
1629 done
1630 done
1631 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1632 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634 # When interrupted or exit'd, cleanup temporary files, and complete
1635 # config.log. We remove comments because anyway the quotes in there
1636 # would cause problems or look ugly.
1637 # WARNING: Use '\'' to represent an apostrophe within the trap.
1638 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1639 trap 'exit_status=$?
1640 # Save into config.log some information that might help in debugging.
1642 echo
1644 cat <<\_ASBOX
1645 ## ---------------- ##
1646 ## Cache variables. ##
1647 ## ---------------- ##
1648 _ASBOX
1649 echo
1650 # The following way of writing the cache mishandles newlines in values,
1652 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1653 eval ac_val=\$$ac_var
1654 case $ac_val in #(
1655 *${as_nl}*)
1656 case $ac_var in #(
1657 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1658 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1659 esac
1660 case $ac_var in #(
1661 _ | IFS | as_nl) ;; #(
1662 *) $as_unset $ac_var ;;
1663 esac ;;
1664 esac
1665 done
1666 (set) 2>&1 |
1667 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1668 *${as_nl}ac_space=\ *)
1669 sed -n \
1670 "s/'\''/'\''\\\\'\'''\''/g;
1671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1672 ;; #(
1674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676 esac |
1677 sort
1679 echo
1681 cat <<\_ASBOX
1682 ## ----------------- ##
1683 ## Output variables. ##
1684 ## ----------------- ##
1685 _ASBOX
1686 echo
1687 for ac_var in $ac_subst_vars
1689 eval ac_val=\$$ac_var
1690 case $ac_val in
1691 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692 esac
1693 echo "$ac_var='\''$ac_val'\''"
1694 done | sort
1695 echo
1697 if test -n "$ac_subst_files"; then
1698 cat <<\_ASBOX
1699 ## ------------------- ##
1700 ## File substitutions. ##
1701 ## ------------------- ##
1702 _ASBOX
1703 echo
1704 for ac_var in $ac_subst_files
1706 eval ac_val=\$$ac_var
1707 case $ac_val in
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 esac
1710 echo "$ac_var='\''$ac_val'\''"
1711 done | sort
1712 echo
1715 if test -s confdefs.h; then
1716 cat <<\_ASBOX
1717 ## ----------- ##
1718 ## confdefs.h. ##
1719 ## ----------- ##
1720 _ASBOX
1721 echo
1722 cat confdefs.h
1723 echo
1725 test "$ac_signal" != 0 &&
1726 echo "$as_me: caught signal $ac_signal"
1727 echo "$as_me: exit $exit_status"
1728 } >&5
1729 rm -f core *.core core.conftest.* &&
1730 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1731 exit $exit_status
1733 for ac_signal in 1 2 13 15; do
1734 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 done
1736 ac_signal=0
1738 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1739 rm -f -r conftest* confdefs.h
1741 # Predefined preprocessor variables.
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 _ACEOF
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 _ACEOF
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 _ACEOF
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 _ACEOF
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 _ACEOF
1768 # Let the site file select an alternate cache file if it wants to.
1769 # Prefer explicitly selected file to automatically selected ones.
1770 if test -n "$CONFIG_SITE"; then
1771 set x "$CONFIG_SITE"
1772 elif test "x$prefix" != xNONE; then
1773 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1774 else
1775 set x "$ac_default_prefix/share/config.site" \
1776 "$ac_default_prefix/etc/config.site"
1778 shift
1779 for ac_site_file
1781 if test -r "$ac_site_file"; then
1782 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1783 echo "$as_me: loading site script $ac_site_file" >&6;}
1784 sed 's/^/| /' "$ac_site_file" >&5
1785 . "$ac_site_file"
1787 done
1789 if test -r "$cache_file"; then
1790 # Some versions of bash will fail to source /dev/null (special
1791 # files actually), so we avoid doing that.
1792 if test -f "$cache_file"; then
1793 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1794 echo "$as_me: loading cache $cache_file" >&6;}
1795 case $cache_file in
1796 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1797 *) . "./$cache_file";;
1798 esac
1800 else
1801 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1802 echo "$as_me: creating cache $cache_file" >&6;}
1803 >$cache_file
1806 # Check that the precious variables saved in the cache have kept the same
1807 # value.
1808 ac_cache_corrupted=false
1809 for ac_var in $ac_precious_vars; do
1810 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1811 eval ac_new_set=\$ac_env_${ac_var}_set
1812 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1813 eval ac_new_val=\$ac_env_${ac_var}_value
1814 case $ac_old_set,$ac_new_set in
1815 set,)
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1819 ,set)
1820 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1822 ac_cache_corrupted=: ;;
1823 ,);;
1825 if test "x$ac_old_val" != "x$ac_new_val"; then
1826 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1827 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1828 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1829 echo "$as_me: former value: $ac_old_val" >&2;}
1830 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1831 echo "$as_me: current value: $ac_new_val" >&2;}
1832 ac_cache_corrupted=:
1833 fi;;
1834 esac
1835 # Pass precious variables to config.status.
1836 if test "$ac_new_set" = set; then
1837 case $ac_new_val in
1838 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 *) ac_arg=$ac_var=$ac_new_val ;;
1840 esac
1841 case " $ac_configure_args " in
1842 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1843 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 esac
1846 done
1847 if $ac_cache_corrupted; then
1848 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1849 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1851 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1852 { (exit 1); exit 1; }; }
1871 ac_ext=c
1872 ac_cpp='$CPP $CPPFLAGS'
1873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 ac_aux_dir=
1880 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1881 if test -f "$ac_dir/install-sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install-sh -c"
1884 break
1885 elif test -f "$ac_dir/install.sh"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/install.sh -c"
1888 break
1889 elif test -f "$ac_dir/shtool"; then
1890 ac_aux_dir=$ac_dir
1891 ac_install_sh="$ac_aux_dir/shtool install -c"
1892 break
1894 done
1895 if test -z "$ac_aux_dir"; then
1896 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1897 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1898 { (exit 1); exit 1; }; }
1901 # These three variables are undocumented and unsupported,
1902 # and are intended to be withdrawn in a future Autoconf release.
1903 # They can cause serious problems if a builder's source tree is in a directory
1904 # whose full name contains unusual characters.
1905 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1906 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1907 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1911 # Check what host we are running on.
1912 # If a target is not suggested, we use this one.
1913 # Note that what we call a target, Autoconf calls a host.
1914 # Make sure we can run config.sub.
1915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1916 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1917 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1918 { (exit 1); exit 1; }; }
1920 { echo "$as_me:$LINENO: checking build system type" >&5
1921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1928 test "x$ac_build_alias" = x &&
1929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 echo "${ECHO_T}$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1941 *-*-*) ;;
1942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 echo "$as_me: error: invalid value of canonical build" >&2;}
1944 { (exit 1); exit 1; }; };;
1945 esac
1946 build=$ac_cv_build
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_build
1949 shift
1950 build_cpu=$1
1951 build_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1955 build_os=$*
1956 IFS=$ac_save_IFS
1957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1960 { echo "$as_me:$LINENO: checking host system type" >&5
1961 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1962 if test "${ac_cv_host+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 if test "x$host_alias" = x; then
1966 ac_cv_host=$ac_cv_build
1967 else
1968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1970 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1975 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1976 echo "${ECHO_T}$ac_cv_host" >&6; }
1977 case $ac_cv_host in
1978 *-*-*) ;;
1979 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1980 echo "$as_me: error: invalid value of canonical host" >&2;}
1981 { (exit 1); exit 1; }; };;
1982 esac
1983 host=$ac_cv_host
1984 ac_save_IFS=$IFS; IFS='-'
1985 set x $ac_cv_host
1986 shift
1987 host_cpu=$1
1988 host_vendor=$2
1989 shift; shift
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1992 host_os=$*
1993 IFS=$ac_save_IFS
1994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1998 # The AROS target is slightly different to the normal GNU style
1999 # format. We don't have the middle part, and we reverse the order
2000 # of the $(CPU) and $(OS) bits.
2002 # Don't strip the version of the target yet, it might be
2003 # useful on some systems.
2005 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2006 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2008 if test "$target" = "NONE" ; then
2009 target=$host_os-$host_cpu
2010 cross_compile=no
2011 else
2012 if test "$target" = "" ; then
2013 target=$host_os-$host_cpu
2014 cross_compile=no
2015 else
2016 cross_compile=yes
2019 { echo "$as_me:$LINENO: result: $target" >&5
2020 echo "${ECHO_T}$target" >&6; }
2022 #don't know where else to put this...
2023 TOPDIR=$PWD
2025 # Parse the target field into something useful.
2027 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2028 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2031 aros_default_wbwidth=800
2032 aros_default_wbheight=600
2033 aros_default_wbdepth=4
2036 # The first step is to find the host binaries.
2037 # Check for a compiler.
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043 if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2067 IFS=$as_save_IFS
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073 { echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6; }
2075 else
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2082 if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "gcc", so it can be a program name with args.
2085 set dummy gcc; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_ac_ct_CC="gcc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2105 done
2106 done
2107 IFS=$as_save_IFS
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6; }
2115 else
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2120 if test "x$ac_ct_CC" = x; then
2121 CC=""
2122 else
2123 case $cross_compiling:$ac_tool_warned in
2124 yes:)
2125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet. If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&5
2128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2129 whose name does not start with the host triplet. If you think this
2130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2131 ac_tool_warned=yes ;;
2132 esac
2133 CC=$ac_ct_CC
2135 else
2136 CC="$ac_cv_prog_CC"
2139 if test -z "$CC"; then
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}cc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2164 IFS=$as_save_IFS
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2180 if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191 ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2211 if test $ac_prog_rejected = yes; then
2212 # We found a bogon in the path, so make sure we never use it.
2213 set dummy $ac_cv_prog_CC
2214 shift
2215 if test $# != 0; then
2216 # We chose a different compiler from the bogus one.
2217 # However, it has the same basename, so the bogon will be chosen
2218 # first if we set CC to just the basename; use the full file name.
2219 shift
2220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 for ac_prog in cl.exe
2240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2261 done
2262 done
2263 IFS=$as_save_IFS
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2277 test -n "$CC" && break
2278 done
2280 if test -z "$CC"; then
2281 ac_ct_CC=$CC
2282 for ac_prog in cl.exe
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_prog_ac_ct_CC="$ac_prog"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2305 done
2306 done
2307 IFS=$as_save_IFS
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6; }
2315 else
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2321 test -n "$ac_ct_CC" && break
2322 done
2324 if test "x$ac_ct_CC" = x; then
2325 CC=""
2326 else
2327 case $cross_compiling:$ac_tool_warned in
2328 yes:)
2329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&5
2332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet. If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2335 ac_tool_warned=yes ;;
2336 esac
2337 CC=$ac_ct_CC
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO: checking for C compiler version" >&5
2352 ac_compiler=`set X $ac_compile; echo $2`
2353 { (ac_try="$ac_compiler --version >&5"
2354 case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler --version >&5") 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363 { (ac_try="$ac_compiler -v >&5"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -v >&5") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (ac_try="$ac_compiler -V >&5"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler -V >&5") 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2392 main ()
2396 return 0;
2398 _ACEOF
2399 ac_clean_files_save=$ac_clean_files
2400 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2401 # Try to create an executable without -o first, disregard a.out.
2402 # It will help us diagnose broken compilers, and finding out an intuition
2403 # of exeext.
2404 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2405 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2406 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2408 # List of possible output files, starting from the most likely.
2409 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2410 # only as a last resort. b.out is created by i960 compilers.
2411 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2413 # The IRIX 6 linker writes into existing files which may not be
2414 # executable, retaining their permissions. Remove them first so a
2415 # subsequent execution test works.
2416 ac_rmfiles=
2417 for ac_file in $ac_files
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2422 esac
2423 done
2424 rm -f $ac_rmfiles
2426 if { (ac_try="$ac_link_default"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link_default") 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2438 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2439 # so that the user can short-circuit this test for compilers unknown to
2440 # Autoconf.
2441 for ac_file in $ac_files ''
2443 test -f "$ac_file" || continue
2444 case $ac_file in
2445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2447 [ab].out )
2448 # We found the default executable, but exeext='' is most
2449 # certainly right.
2450 break;;
2451 *.* )
2452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2453 then :; else
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 # We set ac_cv_exeext here because the later test for it is not
2457 # safe: cross compilers may not add the suffix if given an `-o'
2458 # argument, so we may need to know it at that point already.
2459 # Even if this section looks crufty: it has the advantage of
2460 # actually working.
2461 break;;
2463 break;;
2464 esac
2465 done
2466 test "$ac_cv_exeext" = no && ac_cv_exeext=
2468 else
2469 ac_file=''
2472 { echo "$as_me:$LINENO: result: $ac_file" >&5
2473 echo "${ECHO_T}$ac_file" >&6; }
2474 if test -z "$ac_file"; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: C compiler cannot create executables
2481 See \`config.log' for more details." >&2;}
2482 { (exit 77); exit 77; }; }
2485 ac_exeext=$ac_cv_exeext
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2492 # If not cross compiling, check that we can run a simple program.
2493 if test "$cross_compiling" != yes; then
2494 if { ac_try='./$ac_file'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 cross_compiling=no
2505 else
2506 if test "$cross_compiling" = maybe; then
2507 cross_compiling=yes
2508 else
2509 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: cannot run C compiled programs.
2513 If you meant to cross compile, use \`--host'.
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2522 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2523 ac_clean_files=$ac_clean_files_save
2524 # Check that the compiler produces executables we can run. If not, either
2525 # the compiler is broken, or we cross compile.
2526 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2527 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2528 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2529 echo "${ECHO_T}$cross_compiling" >&6; }
2531 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2532 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2533 if { (ac_try="$ac_link"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_link") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; then
2543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2545 # work properly (i.e., refer to `conftest.exe'), while it won't with
2546 # `rm'.
2547 for ac_file in conftest.exe conftest conftest.*; do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 break;;
2553 * ) break;;
2554 esac
2555 done
2556 else
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest$ac_cv_exeext
2565 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2566 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2568 rm -f conftest.$ac_ext
2569 EXEEXT=$ac_cv_exeext
2570 ac_exeext=$EXEEXT
2571 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2573 if test "${ac_cv_objext+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2584 main ()
2588 return 0;
2590 _ACEOF
2591 rm -f conftest.o conftest.obj
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
2602 for ac_file in conftest.o conftest.obj conftest.*; do
2603 test -f "$ac_file" || continue;
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609 done
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624 echo "${ECHO_T}$ac_cv_objext" >&6; }
2625 OBJEXT=$ac_cv_objext
2626 ac_objext=$OBJEXT
2627 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2642 #ifndef __GNUC__
2643 choke me
2644 #endif
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (ac_try="$ac_compile"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } && {
2664 test -z "$ac_c_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest.$ac_objext; then
2667 ac_compiler_gnu=yes
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_compiler_gnu=no
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2679 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2691 ac_cv_prog_cc_g=no
2692 CFLAGS="-g"
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 main ()
2705 return 0;
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
2725 ac_cv_prog_cc_g=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 CFLAGS=""
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 main ()
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 ac_c_werror_flag=$ac_save_c_werror_flag
2769 CFLAGS="-g"
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
2802 ac_cv_prog_cc_g=yes
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_c_werror_flag=$ac_save_c_werror_flag
2819 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2821 if test "$ac_test_CFLAGS" = set; then
2822 CFLAGS=$ac_save_CFLAGS
2823 elif test $ac_cv_prog_cc_g = yes; then
2824 if test "$GCC" = yes; then
2825 CFLAGS="-g -O2"
2826 else
2827 CFLAGS="-g"
2829 else
2830 if test "$GCC" = yes; then
2831 CFLAGS="-O2"
2832 else
2833 CFLAGS=
2836 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2837 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_cc_c89+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_prog_cc_c89=no
2842 ac_save_CC=$CC
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <stdarg.h>
2850 #include <stdio.h>
2851 #include <sys/types.h>
2852 #include <sys/stat.h>
2853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2854 struct buf { int x; };
2855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856 static char *e (p, i)
2857 char **p;
2858 int i;
2860 return p[i];
2862 static char *f (char * (*g) (char **, int), char **p, ...)
2864 char *s;
2865 va_list v;
2866 va_start (v,p);
2867 s = g (p, va_arg (v,int));
2868 va_end (v);
2869 return s;
2872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2873 function prototypes and stuff, but not '\xHH' hex character constants.
2874 These don't provoke an error unfortunately, instead are silently treated
2875 as 'x'. The following induces an error, until -std is added to get
2876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2877 array size at least. It's necessary to write '\x00'==0 to get something
2878 that's true only with -std. */
2879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2882 inside strings and character constants. */
2883 #define FOO(x) 'x'
2884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2893 main ()
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 return 0;
2899 _ACEOF
2900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903 CC="$ac_save_CC $ac_arg"
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 ac_cv_prog_cc_c89=$ac_arg
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2929 rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
2931 done
2932 rm -f conftest.$ac_ext
2933 CC=$ac_save_CC
2936 # AC_CACHE_VAL
2937 case "x$ac_cv_prog_cc_c89" in
2939 { echo "$as_me:$LINENO: result: none needed" >&5
2940 echo "${ECHO_T}none needed" >&6; } ;;
2941 xno)
2942 { echo "$as_me:$LINENO: result: unsupported" >&5
2943 echo "${ECHO_T}unsupported" >&6; } ;;
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2948 esac
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 case $ac_cv_prog_cc_stdc in
2958 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2959 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2960 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2961 if test "${ac_cv_prog_cc_c99+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 ac_cv_prog_cc_c99=no
2965 ac_save_CC=$CC
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <stdarg.h>
2973 #include <stdbool.h>
2974 #include <stdlib.h>
2975 #include <wchar.h>
2976 #include <stdio.h>
2978 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2979 #define debug(...) fprintf (stderr, __VA_ARGS__)
2980 #define showlist(...) puts (#__VA_ARGS__)
2981 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2982 static void
2983 test_varargs_macros (void)
2985 int x = 1234;
2986 int y = 5678;
2987 debug ("Flag");
2988 debug ("X = %d\n", x);
2989 showlist (The first, second, and third items.);
2990 report (x>y, "x is %d but y is %d", x, y);
2993 // Check long long types.
2994 #define BIG64 18446744073709551615ull
2995 #define BIG32 4294967295ul
2996 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2997 #if !BIG_OK
2998 your preprocessor is broken;
2999 #endif
3000 #if BIG_OK
3001 #else
3002 your preprocessor is broken;
3003 #endif
3004 static long long int bignum = -9223372036854775807LL;
3005 static unsigned long long int ubignum = BIG64;
3007 struct incomplete_array
3009 int datasize;
3010 double data[];
3013 struct named_init {
3014 int number;
3015 const wchar_t *name;
3016 double average;
3019 typedef const char *ccp;
3021 static inline int
3022 test_restrict (ccp restrict text)
3024 // See if C++-style comments work.
3025 // Iterate through items via the restricted pointer.
3026 // Also check for declarations in for loops.
3027 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3028 continue;
3029 return 0;
3032 // Check varargs and va_copy.
3033 static void
3034 test_varargs (const char *format, ...)
3036 va_list args;
3037 va_start (args, format);
3038 va_list args_copy;
3039 va_copy (args_copy, args);
3041 const char *str;
3042 int number;
3043 float fnumber;
3045 while (*format)
3047 switch (*format++)
3049 case 's': // string
3050 str = va_arg (args_copy, const char *);
3051 break;
3052 case 'd': // int
3053 number = va_arg (args_copy, int);
3054 break;
3055 case 'f': // float
3056 fnumber = va_arg (args_copy, double);
3057 break;
3058 default:
3059 break;
3062 va_end (args_copy);
3063 va_end (args);
3067 main ()
3070 // Check bool.
3071 _Bool success = false;
3073 // Check restrict.
3074 if (test_restrict ("String literal") == 0)
3075 success = true;
3076 char *restrict newvar = "Another string";
3078 // Check varargs.
3079 test_varargs ("s, d' f .", "string", 65, 34.234);
3080 test_varargs_macros ();
3082 // Check flexible array members.
3083 struct incomplete_array *ia =
3084 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3085 ia->datasize = 10;
3086 for (int i = 0; i < ia->datasize; ++i)
3087 ia->data[i] = i * 1.234;
3089 // Check named initializers.
3090 struct named_init ni = {
3091 .number = 34,
3092 .name = L"Test wide string",
3093 .average = 543.34343,
3096 ni.number = 58;
3098 int dynamic_array[ni.number];
3099 dynamic_array[ni.number - 1] = 543;
3101 // work around unused variable warnings
3102 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3103 || dynamic_array[ni.number - 1] != 543);
3106 return 0;
3108 _ACEOF
3109 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3111 CC="$ac_save_CC $ac_arg"
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } && {
3126 test -z "$ac_c_werror_flag" ||
3127 test ! -s conftest.err
3128 } && test -s conftest.$ac_objext; then
3129 ac_cv_prog_cc_c99=$ac_arg
3130 else
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3137 rm -f core conftest.err conftest.$ac_objext
3138 test "x$ac_cv_prog_cc_c99" != "xno" && break
3139 done
3140 rm -f conftest.$ac_ext
3141 CC=$ac_save_CC
3144 # AC_CACHE_VAL
3145 case "x$ac_cv_prog_cc_c99" in
3147 { echo "$as_me:$LINENO: result: none needed" >&5
3148 echo "${ECHO_T}none needed" >&6; } ;;
3149 xno)
3150 { echo "$as_me:$LINENO: result: unsupported" >&5
3151 echo "${ECHO_T}unsupported" >&6; } ;;
3153 CC="$CC $ac_cv_prog_cc_c99"
3154 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3155 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3156 esac
3157 if test "x$ac_cv_prog_cc_c99" != xno; then
3158 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3159 else
3160 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3161 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_c89+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_cv_prog_cc_c89=no
3166 ac_save_CC=$CC
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173 #include <stdarg.h>
3174 #include <stdio.h>
3175 #include <sys/types.h>
3176 #include <sys/stat.h>
3177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3178 struct buf { int x; };
3179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3180 static char *e (p, i)
3181 char **p;
3182 int i;
3184 return p[i];
3186 static char *f (char * (*g) (char **, int), char **p, ...)
3188 char *s;
3189 va_list v;
3190 va_start (v,p);
3191 s = g (p, va_arg (v,int));
3192 va_end (v);
3193 return s;
3196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3197 function prototypes and stuff, but not '\xHH' hex character constants.
3198 These don't provoke an error unfortunately, instead are silently treated
3199 as 'x'. The following induces an error, until -std is added to get
3200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3201 array size at least. It's necessary to write '\x00'==0 to get something
3202 that's true only with -std. */
3203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3206 inside strings and character constants. */
3207 #define FOO(x) 'x'
3208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210 int test (int i, double x);
3211 struct s1 {int (*f) (int a);};
3212 struct s2 {int (*f) (double a);};
3213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3214 int argc;
3215 char **argv;
3217 main ()
3219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 return 0;
3223 _ACEOF
3224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 CC="$ac_save_CC $ac_arg"
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_c_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.$ac_objext; then
3245 ac_cv_prog_cc_c89=$ac_arg
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3253 rm -f core conftest.err conftest.$ac_objext
3254 test "x$ac_cv_prog_cc_c89" != "xno" && break
3255 done
3256 rm -f conftest.$ac_ext
3257 CC=$ac_save_CC
3260 # AC_CACHE_VAL
3261 case "x$ac_cv_prog_cc_c89" in
3263 { echo "$as_me:$LINENO: result: none needed" >&5
3264 echo "${ECHO_T}none needed" >&6; } ;;
3265 xno)
3266 { echo "$as_me:$LINENO: result: unsupported" >&5
3267 echo "${ECHO_T}unsupported" >&6; } ;;
3269 CC="$CC $ac_cv_prog_cc_c89"
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3272 esac
3273 if test "x$ac_cv_prog_cc_c89" != xno; then
3274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3275 else
3276 ac_cv_prog_cc_stdc=no
3283 esac
3284 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3285 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 case $ac_cv_prog_cc_stdc in
3291 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3292 echo "${ECHO_T}unsupported" >&6; } ;;
3293 '') { echo "$as_me:$LINENO: result: none needed" >&5
3294 echo "${ECHO_T}none needed" >&6; } ;;
3295 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3297 esac
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3309 CPP=
3311 if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3318 ac_preproc_ok=false
3319 for ac_c_preproc_warn_flag in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 Syntax error
3339 _ACEOF
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 }; then
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3362 continue
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3404 rm -f conftest.err conftest.$ac_ext
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410 break
3413 done
3414 ac_cv_prog_CPP=$CPP
3417 CPP=$ac_cv_prog_CPP
3418 else
3419 ac_cv_prog_CPP=$CPP
3421 { echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6; }
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 }; then
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3467 continue
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 }; then
3498 # Broken: success on invalid input.
3499 continue
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3505 ac_preproc_ok=:
3506 break
3509 rm -f conftest.err conftest.$ac_ext
3511 done
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3516 else
3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 # Check for a compatible awk
3532 for ac_prog in gawk nawk
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3538 if test "${ac_cv_prog_AWK+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 if test -n "$AWK"; then
3542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_AWK="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 AWK=$ac_cv_prog_AWK
3562 if test -n "$AWK"; then
3563 { echo "$as_me:$LINENO: result: $AWK" >&5
3564 echo "${ECHO_T}$AWK" >&6; }
3565 else
3566 { echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6; }
3571 test -n "$AWK" && break
3572 done
3574 if test "$AWK" = ""; then
3575 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3576 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3577 { (exit 1); exit 1; }; }
3579 # Extract the first word of "mmake", so it can be a program name with args.
3580 set dummy mmake; ac_word=$2
3581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583 if test "${ac_cv_prog_MMAKE+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 if test -n "$MMAKE"; then
3587 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_MMAKE="mmake "
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 MMAKE=$ac_cv_prog_MMAKE
3607 if test -n "$MMAKE"; then
3608 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3609 echo "${ECHO_T}$MMAKE" >&6; }
3610 else
3611 { echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6; }
3617 # Perform some default variable assignments. Note all of these will be
3618 # Regenerated from the script, so there is no need to cache them.
3620 aros_host_cc="$CC"
3621 if test "$GCC" = "yes"; then
3622 aros_gcc_ld=`$CC -print-prog-name=ld`
3623 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3624 set dummy `basename $aros_gcc_ld`; ac_word=$2
3625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3627 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 case $aros_host_ld in
3631 [\\/]* | ?:[\\/]*)
3632 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in `dirname $aros_gcc_ld`
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3651 esac
3653 aros_host_ld=$ac_cv_path_aros_host_ld
3654 if test -n "$aros_host_ld"; then
3655 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3656 echo "${ECHO_T}$aros_host_ld" >&6; }
3657 else
3658 { echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6; }
3664 if test "$aros_host_ld" = ""; then
3665 # Extract the first word of "ld", so it can be a program name with args.
3666 set dummy ld; ac_word=$2
3667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 case $aros_host_ld in
3673 [\\/]* | ?:[\\/]*)
3674 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3693 esac
3695 aros_host_ld=$ac_cv_path_aros_host_ld
3696 if test -n "$aros_host_ld"; then
3697 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3698 echo "${ECHO_T}$aros_host_ld" >&6; }
3699 else
3700 { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3706 if test "$aros_host_ld" = ""; then
3707 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3708 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3709 { (exit 1); exit 1; }; }
3711 aros_host_make="make"
3712 aros_host_cflags=$CFLAGS
3713 aros_host_ldflags=$LDFLAGS
3714 aros_host_debug="-g -O0"
3715 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3716 aros_host_mkargs="--no-print-directory"
3717 aros_host_incl="/usr/include"
3718 aros_host_exe_suffix="$EXEEXT"
3719 aros_host_lib_suffix=""
3721 for ac_prog in aclocal aclocal19
3723 # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3727 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if test -n "$aros_host_aclocal"; then
3731 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_aros_host_aclocal="$ac_prog"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3744 done
3745 done
3746 IFS=$as_save_IFS
3750 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3751 if test -n "$aros_host_aclocal"; then
3752 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3753 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3754 else
3755 { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3760 test -n "$aros_host_aclocal" && break
3761 done
3763 for ac_prog in autoconf autoconf259 autoconf253
3765 # Extract the first word of "$ac_prog", so it can be a program name with args.
3766 set dummy $ac_prog; ac_word=$2
3767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3769 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 if test -n "$aros_host_autoconf"; then
3773 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782 ac_cv_prog_aros_host_autoconf="$ac_prog"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3786 done
3787 done
3788 IFS=$as_save_IFS
3792 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3793 if test -n "$aros_host_autoconf"; then
3794 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3795 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3796 else
3797 { echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6; }
3802 test -n "$aros_host_autoconf" && break
3803 done
3805 for ac_prog in autoheader autoheader259 autoheader253
3807 # Extract the first word of "$ac_prog", so it can be a program name with args.
3808 set dummy $ac_prog; ac_word=$2
3809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$aros_host_autoheader"; then
3815 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_aros_host_autoheader="$ac_prog"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3830 IFS=$as_save_IFS
3834 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3835 if test -n "$aros_host_autoheader"; then
3836 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3837 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3838 else
3839 { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3844 test -n "$aros_host_autoheader" && break
3845 done
3847 for ac_prog in automake automake19
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3853 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 if test -n "$aros_host_automake"; then
3857 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_aros_host_automake="$ac_prog"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 aros_host_automake=$ac_cv_prog_aros_host_automake
3877 if test -n "$aros_host_automake"; then
3878 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3879 echo "${ECHO_T}$aros_host_automake" >&6; }
3880 else
3881 { echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6; }
3886 test -n "$aros_host_automake" && break
3887 done
3890 case "$aros_host_cc" in
3891 *gcc*)
3892 aros_host_cc_pipe="-pipe"
3894 icc)
3895 aros_host_cc_pipe=""
3898 aros_host_cc_pipe=""
3900 esac
3902 aros_target_cc_includes=""
3904 # This is the main host configuration section. It is where the host
3905 # can change the values of any variables it needs to change. We do
3906 # not look at anything that compiles to the target yet, we'll get
3907 # to that later.
3909 case "$host_os" in
3910 linux*)
3911 aros_host_arch="linux"
3912 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3913 case "$host_cpu" in
3914 *i?86*)
3915 aros_host_cpu="i386"
3917 *x86_64*)
3918 aros_host_cpu="x86_64"
3920 *m68k*)
3921 aros_host_cpu="m68k"
3923 *powerpc*)
3924 aros_host_cpu="ppc"
3927 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3928 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3929 aros_host_cpu="$host_cpu"
3931 esac
3934 freebsd*)
3935 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3936 aros_host_make="gmake"
3937 aros_host_arch="freebsd"
3938 aros_host_cpu="i386"
3940 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3943 case $host_os in
3944 freebsd[234]*)
3945 aros_object_format="elf_i386"
3949 aros_object_format="elf_i386_fbsd"
3951 esac
3955 darwin*)
3956 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3957 aros_host_arch="darwin"
3958 case "$host_cpu" in
3959 *i?86*)
3960 aros_host_cpu="i386"
3962 *powerpc*)
3963 aros_host_cpu="ppc"
3966 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3967 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3968 aros_host_cpu="$host_cpu"
3970 esac
3972 aros_host_ldflags="$aros_host_ldflags -liconv"
3976 netbsd*)
3977 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3978 aros_host_make="gmake"
3979 aros_host_arch="netbsd"
3980 case "$host_cpu" in
3981 *i?86*)
3982 aros_host_cpu="i386"
3984 *m68k*)
3985 aros_host_cpu="m68k"
3988 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3989 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3990 aros_host_cpu="$host_cpu"
3992 esac
3993 aros_host_lib_suffix=".0.0"
3996 openbsd*)
3997 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3998 aros_host_make="gmake"
3999 aros_host_arch="openbsd"
4000 case "$host_cpu" in
4001 *i?86*)
4002 aros_host_cpu="i386"
4005 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4006 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4007 aros_host_cpu="$host_cpu"
4009 esac
4012 solaris*)
4013 aros_host_arch="solaris"
4014 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4015 case "$host_cpu" in
4016 *sparc*)
4017 aros_host_cpu="sparc"
4020 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4021 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4022 aros_host_cpu="$host_cpu"
4024 esac
4027 morphos*)
4028 aros_host_arch="morphos"
4029 aros_host_cpu="ppc"
4032 amiga*)
4033 aros_host_arch="amiga"
4034 SORT="/gg/bin/sort"
4035 TEST="/gg/bin/test"
4036 UNIQ="/gg/bin/uniq"
4037 FOR="for"
4038 TOUCH="/gg/bin/touch"
4039 case "$host_cpu" in
4040 *m68k*)
4041 aros_host_cpu="m68k"
4043 *powerpc*)
4044 aros_host_cpu="ppc"
4047 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4048 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4049 aros_host_cpu="$host_cpu"
4051 esac
4054 cygwin*)
4055 aros_host_arch="cygwin"
4056 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4057 case "$host_cpu" in
4058 *i?86*)
4059 aros_host_cpu="i386"
4062 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4063 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4064 aros_host_cpu="$host_cpu"
4066 esac
4069 mingw32*)
4070 aros_host_arch="mingw32"
4071 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4072 case "$host_cpu" in
4073 *i?86*)
4074 aros_host_cpu="i386"
4077 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4078 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4079 aros_host_cpu="$host_cpu"
4081 esac
4084 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4085 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4086 { (exit 1); exit 1; }; }
4088 esac
4090 # Extract the first word of "ar", so it can be a program name with args.
4091 set dummy ar; ac_word=$2
4092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4094 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 if test -n "$aros_host_ar"; then
4098 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_aros_host_ar="ar cr"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4111 done
4112 done
4113 IFS=$as_save_IFS
4117 aros_host_ar=$ac_cv_prog_aros_host_ar
4118 if test -n "$aros_host_ar"; then
4119 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4120 echo "${ECHO_T}$aros_host_ar" >&6; }
4121 else
4122 { echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6; }
4127 if test "$aros_host_ar" = ""; then
4128 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4129 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4130 { (exit 1); exit 1; }; }
4132 # Extract the first word of "ranlib", so it can be a program name with args.
4133 set dummy ranlib; ac_word=$2
4134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4136 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 if test -n "$aros_host_ranlib"; then
4140 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 ac_cv_prog_aros_host_ranlib="ranlib "
4150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4153 done
4154 done
4155 IFS=$as_save_IFS
4159 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4160 if test -n "$aros_host_ranlib"; then
4161 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4162 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4163 else
4164 { echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6; }
4169 if test "$aros_host_ranlib" = ""; then
4170 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4171 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4172 { (exit 1); exit 1; }; }
4174 # Extract the first word of "strip", so it can be a program name with args.
4175 set dummy strip; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 if test -n "$aros_host_strip"; then
4182 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_aros_host_strip="strip "
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 aros_host_strip=$ac_cv_prog_aros_host_strip
4202 if test -n "$aros_host_strip"; then
4203 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4204 echo "${ECHO_T}$aros_host_strip" >&6; }
4205 else
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4211 if test "$aros_host_strip" = ""; then
4212 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4213 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4214 { (exit 1); exit 1; }; }
4217 # Extract the first word of "rm", so it can be a program name with args.
4218 set dummy rm; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_RM+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test -n "$RM"; then
4225 ac_cv_prog_RM="$RM" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_RM="rm -rf"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 RM=$ac_cv_prog_RM
4245 if test -n "$RM"; then
4246 { echo "$as_me:$LINENO: result: $RM" >&5
4247 echo "${ECHO_T}$RM" >&6; }
4248 else
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4254 if test "$RM" = ""; then
4255 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4256 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4257 { (exit 1); exit 1; }; }
4259 # Extract the first word of "cp", so it can be a program name with args.
4260 set dummy cp; ac_word=$2
4261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4263 if test "${ac_cv_prog_CP+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if test -n "$CP"; then
4267 ac_cv_prog_CP="$CP" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CP="cp "
4277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4286 CP=$ac_cv_prog_CP
4287 if test -n "$CP"; then
4288 { echo "$as_me:$LINENO: result: $CP" >&5
4289 echo "${ECHO_T}$CP" >&6; }
4290 else
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4296 if test "$CP" = ""; then
4297 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4298 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4299 { (exit 1); exit 1; }; }
4301 # Extract the first word of "mv", so it can be a program name with args.
4302 set dummy mv; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_MV+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 if test -n "$MV"; then
4309 ac_cv_prog_MV="$MV" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_MV="mv "
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 MV=$ac_cv_prog_MV
4329 if test -n "$MV"; then
4330 { echo "$as_me:$LINENO: result: $MV" >&5
4331 echo "${ECHO_T}$MV" >&6; }
4332 else
4333 { echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6; }
4338 if test "$MV" = ""; then
4339 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4340 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4341 { (exit 1); exit 1; }; }
4343 # Extract the first word of "echo", so it can be a program name with args.
4344 set dummy echo; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_prog_ECHO+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 if test -n "$ECHO"; then
4351 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ECHO="echo "
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 ECHO=$ac_cv_prog_ECHO
4371 if test -n "$ECHO"; then
4372 { echo "$as_me:$LINENO: result: $ECHO" >&5
4373 echo "${ECHO_T}$ECHO" >&6; }
4374 else
4375 { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4380 if test "$ECHO" = ""; then
4381 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4382 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4383 { (exit 1); exit 1; }; }
4385 # Extract the first word of "mkdir", so it can be a program name with args.
4386 set dummy mkdir; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_MKDIR+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$MKDIR"; then
4393 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_MKDIR="mkdir -p"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 MKDIR=$ac_cv_prog_MKDIR
4413 if test -n "$MKDIR"; then
4414 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4415 echo "${ECHO_T}$MKDIR" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test "$MKDIR" = ""; then
4423 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4424 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4425 { (exit 1); exit 1; }; }
4427 # Extract the first word of "touch", so it can be a program name with args.
4428 set dummy touch; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_TOUCH+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 if test -n "$TOUCH"; then
4435 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_TOUCH="touch "
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 TOUCH=$ac_cv_prog_TOUCH
4455 if test -n "$TOUCH"; then
4456 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4457 echo "${ECHO_T}$TOUCH" >&6; }
4458 else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test "$TOUCH" = ""; then
4465 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4466 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4467 { (exit 1); exit 1; }; }
4469 # Extract the first word of "sort", so it can be a program name with args.
4470 set dummy sort; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_prog_SORT+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 if test -n "$SORT"; then
4477 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_SORT="sort "
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4496 SORT=$ac_cv_prog_SORT
4497 if test -n "$SORT"; then
4498 { echo "$as_me:$LINENO: result: $SORT" >&5
4499 echo "${ECHO_T}$SORT" >&6; }
4500 else
4501 { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4506 if test "$SORT" = ""; then
4507 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4508 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4509 { (exit 1); exit 1; }; }
4511 # Extract the first word of "uniq", so it can be a program name with args.
4512 set dummy uniq; ac_word=$2
4513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4515 if test "${ac_cv_prog_UNIQ+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 if test -n "$UNIQ"; then
4519 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_UNIQ="uniq "
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 UNIQ=$ac_cv_prog_UNIQ
4539 if test -n "$UNIQ"; then
4540 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4541 echo "${ECHO_T}$UNIQ" >&6; }
4542 else
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 if test "$UNIQ" = ""; then
4549 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4550 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4551 { (exit 1); exit 1; }; }
4553 # Extract the first word of "true", so it can be a program name with args.
4554 set dummy true; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_prog_NOP+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 if test -n "$NOP"; then
4561 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_NOP="true "
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 NOP=$ac_cv_prog_NOP
4581 if test -n "$NOP"; then
4582 { echo "$as_me:$LINENO: result: $NOP" >&5
4583 echo "${ECHO_T}$NOP" >&6; }
4584 else
4585 { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4590 if test "$NOP" = ""; then
4591 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4592 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4593 { (exit 1); exit 1; }; }
4595 # Extract the first word of "cat", so it can be a program name with args.
4596 set dummy cat; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_CAT+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$CAT"; then
4603 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_CAT="cat "
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 CAT=$ac_cv_prog_CAT
4623 if test -n "$CAT"; then
4624 { echo "$as_me:$LINENO: result: $CAT" >&5
4625 echo "${ECHO_T}$CAT" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test "$CAT" = ""; then
4633 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4634 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4635 { (exit 1); exit 1; }; }
4637 # Extract the first word of "bison", so it can be a program name with args.
4638 set dummy bison; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BISON+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$BISON"; then
4645 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_BISON="bison "
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4664 BISON=$ac_cv_prog_BISON
4665 if test -n "$BISON"; then
4666 { echo "$as_me:$LINENO: result: $BISON" >&5
4667 echo "${ECHO_T}$BISON" >&6; }
4668 else
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 if test "$BISON" = ""; then
4675 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4676 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4677 { (exit 1); exit 1; }; }
4679 # Extract the first word of "flex", so it can be a program name with args.
4680 set dummy flex; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_FLEX+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 if test -n "$FLEX"; then
4687 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_FLEX="flex "
4697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4700 done
4701 done
4702 IFS=$as_save_IFS
4706 FLEX=$ac_cv_prog_FLEX
4707 if test -n "$FLEX"; then
4708 { echo "$as_me:$LINENO: result: $FLEX" >&5
4709 echo "${ECHO_T}$FLEX" >&6; }
4710 else
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4716 if test "$FLEX" = ""; then
4717 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4718 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4719 { (exit 1); exit 1; }; }
4721 # Extract the first word of "pngtopnm", so it can be a program name with args.
4722 set dummy pngtopnm; ac_word=$2
4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4725 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 if test -n "$PNGTOPNM"; then
4729 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_PNGTOPNM="pngtopnm "
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4749 if test -n "$PNGTOPNM"; then
4750 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4751 echo "${ECHO_T}$PNGTOPNM" >&6; }
4752 else
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4758 if test "$PNGTOPNM" = ""; then
4759 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4760 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4761 { (exit 1); exit 1; }; }
4763 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4764 set dummy ppmtoilbm; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 if test -n "$PPMTOILBM"; then
4771 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4791 if test -n "$PPMTOILBM"; then
4792 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4793 echo "${ECHO_T}$PPMTOILBM" >&6; }
4794 else
4795 { echo "$as_me:$LINENO: result: no" >&5
4796 echo "${ECHO_T}no" >&6; }
4800 if test "$PPMTOILBM" = ""; then
4801 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4802 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4803 { (exit 1); exit 1; }; }
4805 # Extract the first word of "sed", so it can be a program name with args.
4806 set dummy sed; ac_word=$2
4807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4809 if test "${ac_cv_prog_SED+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 if test -n "$SED"; then
4813 ac_cv_prog_SED="$SED" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_SED="sed "
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 SED=$ac_cv_prog_SED
4833 if test -n "$SED"; then
4834 { echo "$as_me:$LINENO: result: $SED" >&5
4835 echo "${ECHO_T}$SED" >&6; }
4836 else
4837 { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4842 if test "$SED" = ""; then
4843 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4844 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4845 { (exit 1); exit 1; }; }
4847 # Extract the first word of "chmod", so it can be a program name with args.
4848 set dummy chmod; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_CHMOD+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$CHMOD"; then
4855 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_CHMOD="chmod "
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4870 IFS=$as_save_IFS
4874 CHMOD=$ac_cv_prog_CHMOD
4875 if test -n "$CHMOD"; then
4876 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4877 echo "${ECHO_T}$CHMOD" >&6; }
4878 else
4879 { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4884 if test "$CHMOD" = ""; then
4885 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4886 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4887 { (exit 1); exit 1; }; }
4894 if test -n "$PYTHON"; then
4895 # If the user set $PYTHON, use it and don't search something else.
4896 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4897 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4898 prog="import sys, string
4899 # split strings by '.' and convert to numeric. Append some zeros
4900 # because we need at least 4 digits for the hex conversion.
4901 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4902 minverhex = 0
4903 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4904 sys.exit(sys.hexversion < minverhex)"
4905 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4906 ($PYTHON -c "$prog") >&5 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 { echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6; }
4912 else
4913 { { echo "$as_me:$LINENO: error: too old" >&5
4914 echo "$as_me: error: too old" >&2;}
4915 { (exit 1); exit 1; }; }
4918 am_display_PYTHON=$PYTHON
4919 else
4920 # Otherwise, try each interpreter until we find one that satisfies
4921 # VERSION.
4922 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4923 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4924 if test "${am_cv_pathless_PYTHON+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4928 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
4929 test "$am_cv_pathless_PYTHON" = none && break
4930 prog="import sys, string
4931 # split strings by '.' and convert to numeric. Append some zeros
4932 # because we need at least 4 digits for the hex conversion.
4933 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4934 minverhex = 0
4935 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4936 sys.exit(sys.hexversion < minverhex)"
4937 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4938 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; then
4942 break
4945 done
4947 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4948 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4949 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4950 if test "$am_cv_pathless_PYTHON" = none; then
4951 PYTHON=:
4952 else
4953 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4954 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_path_PYTHON+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 case $PYTHON in
4961 [\\/]* | ?:[\\/]*)
4962 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4981 esac
4983 PYTHON=$ac_cv_path_PYTHON
4984 if test -n "$PYTHON"; then
4985 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4986 echo "${ECHO_T}$PYTHON" >&6; }
4987 else
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4994 am_display_PYTHON=$am_cv_pathless_PYTHON
4998 if test "$PYTHON" = :; then
4999 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5000 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5001 { (exit 1); exit 1; }; }
5002 else
5005 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5006 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5007 if test "${am_cv_python_version+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5012 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5013 echo "${ECHO_T}$am_cv_python_version" >&6; }
5014 PYTHON_VERSION=$am_cv_python_version
5018 PYTHON_PREFIX='${prefix}'
5020 PYTHON_EXEC_PREFIX='${exec_prefix}'
5024 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5025 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5026 if test "${am_cv_python_platform+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5031 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5032 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5033 PYTHON_PLATFORM=$am_cv_python_platform
5038 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5039 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5040 if test "${am_cv_python_pythondir+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5044 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5046 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5047 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5048 pythondir=$am_cv_python_pythondir
5052 pkgpythondir=\${pythondir}/$PACKAGE
5055 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5056 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5057 if test "${am_cv_python_pyexecdir+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5061 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5063 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5064 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5065 pyexecdir=$am_cv_python_pyexecdir
5069 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5077 FOR=for
5079 IF=if
5081 TEST=test
5083 CMP=cmp
5087 # Check for some includes for the X11 HIDD and the kernel
5090 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5091 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_GREP+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 # Extract the first word of "grep ggrep" to use in msg output
5096 if test -z "$GREP"; then
5097 set dummy grep ggrep; ac_prog_name=$2
5098 if test "${ac_cv_path_GREP+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 ac_count=0
5119 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5120 while :
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 ac_count=`expr $ac_count + 1`
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5141 $ac_path_GREP_found && break 3
5142 done
5143 done
5145 done
5146 IFS=$as_save_IFS
5151 GREP="$ac_cv_path_GREP"
5152 if test -z "$GREP"; then
5153 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5154 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5155 { (exit 1); exit 1; }; }
5158 else
5159 ac_cv_path_GREP=$GREP
5164 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5165 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5166 GREP="$ac_cv_path_GREP"
5169 { echo "$as_me:$LINENO: checking for egrep" >&5
5170 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 # Extract the first word of "egrep" to use in msg output
5178 if test -z "$EGREP"; then
5179 set dummy egrep; ac_prog_name=$2
5180 if test "${ac_cv_path_EGREP+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 ac_path_EGREP_found=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_prog in egrep; do
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5194 # Check for GNU ac_path_EGREP and select it if it is found.
5195 # Check for GNU $ac_path_EGREP
5196 case `"$ac_path_EGREP" --version 2>&1` in
5197 *GNU*)
5198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5200 ac_count=0
5201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5202 while :
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 echo 'EGREP' >> "conftest.nl"
5208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210 ac_count=`expr $ac_count + 1`
5211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_EGREP="$ac_path_EGREP"
5214 ac_path_EGREP_max=$ac_count
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5218 done
5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 esac
5223 $ac_path_EGREP_found && break 3
5224 done
5225 done
5227 done
5228 IFS=$as_save_IFS
5233 EGREP="$ac_cv_path_EGREP"
5234 if test -z "$EGREP"; then
5235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5236 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5237 { (exit 1); exit 1; }; }
5240 else
5241 ac_cv_path_EGREP=$EGREP
5247 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5248 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5249 EGREP="$ac_cv_path_EGREP"
5252 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5254 if test "${ac_cv_header_stdc+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <stdlib.h>
5264 #include <stdarg.h>
5265 #include <string.h>
5266 #include <float.h>
5269 main ()
5273 return 0;
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_compile") 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && {
5290 test -z "$ac_c_werror_flag" ||
5291 test ! -s conftest.err
5292 } && test -s conftest.$ac_objext; then
5293 ac_cv_header_stdc=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 ac_cv_header_stdc=no
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 if test $ac_cv_header_stdc = yes; then
5304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <string.h>
5313 _ACEOF
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "memchr" >/dev/null 2>&1; then
5317 else
5318 ac_cv_header_stdc=no
5320 rm -f conftest*
5324 if test $ac_cv_header_stdc = yes; then
5325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <stdlib.h>
5334 _ACEOF
5335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5336 $EGREP "free" >/dev/null 2>&1; then
5338 else
5339 ac_cv_header_stdc=no
5341 rm -f conftest*
5345 if test $ac_cv_header_stdc = yes; then
5346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5347 if test "$cross_compiling" = yes; then
5349 else
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <ctype.h>
5357 #include <stdlib.h>
5358 #if ((' ' & 0x0FF) == 0x020)
5359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5361 #else
5362 # define ISLOWER(c) \
5363 (('a' <= (c) && (c) <= 'i') \
5364 || ('j' <= (c) && (c) <= 'r') \
5365 || ('s' <= (c) && (c) <= 'z'))
5366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5367 #endif
5369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5371 main ()
5373 int i;
5374 for (i = 0; i < 256; i++)
5375 if (XOR (islower (i), ISLOWER (i))
5376 || toupper (i) != TOUPPER (i))
5377 return 2;
5378 return 0;
5380 _ACEOF
5381 rm -f conftest$ac_exeext
5382 if { (ac_try="$ac_link"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_link") 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5392 { (case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_try") 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5402 else
5403 echo "$as_me: program exited with status $ac_status" >&5
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ( exit $ac_status )
5408 ac_cv_header_stdc=no
5410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5416 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5417 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5418 if test $ac_cv_header_stdc = yes; then
5420 cat >>confdefs.h <<\_ACEOF
5421 #define STDC_HEADERS 1
5422 _ACEOF
5426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5436 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5437 inttypes.h stdint.h unistd.h
5439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5453 #include <$ac_header>
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5457 case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 eval "$as_ac_Header=yes"
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 eval "$as_ac_Header=no"
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_res=`eval echo '${'$as_ac_Header'}'`
5483 { echo "$as_me:$LINENO: result: $ac_res" >&5
5484 echo "${ECHO_T}$ac_res" >&6; }
5485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 _ACEOF
5492 done
5504 for ac_header in sys/ipc.h sys/shm.h \
5505 sys/mmap.h sys/mman.h sysexits.h \
5506 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_res=`eval echo '${'$as_ac_Header'}'`
5517 { echo "$as_me:$LINENO: result: $ac_res" >&5
5518 echo "${ECHO_T}$ac_res" >&6; }
5519 else
5520 # Is the header compilable?
5521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 $ac_includes_default
5530 #include <$ac_header>
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_header_compiler=yes
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 ac_header_compiler=no
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5559 echo "${ECHO_T}$ac_header_compiler" >&6; }
5561 # Is the header present?
5562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <$ac_header>
5571 _ACEOF
5572 if { (ac_try="$ac_cpp conftest.$ac_ext"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev/null && {
5585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 }; then
5588 ac_header_preproc=yes
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_header_preproc=no
5596 rm -f conftest.err conftest.$ac_ext
5597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5598 echo "${ECHO_T}$ac_header_preproc" >&6; }
5600 # So? What about this header?
5601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5602 yes:no: )
5603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5607 ac_header_preproc=yes
5609 no:yes:* )
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5624 esac
5625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 eval "$as_ac_Header=\$ac_header_preproc"
5632 ac_res=`eval echo '${'$as_ac_Header'}'`
5633 { echo "$as_me:$LINENO: result: $ac_res" >&5
5634 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5640 _ACEOF
5644 done
5648 for ac_header in sys/mount.h
5650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <sys/param.h>
5664 #include <$ac_header>
5665 _ACEOF
5666 rm -f conftest.$ac_objext
5667 if { (ac_try="$ac_compile"
5668 case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_compile") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } && {
5680 test -z "$ac_c_werror_flag" ||
5681 test ! -s conftest.err
5682 } && test -s conftest.$ac_objext; then
5683 eval "$as_ac_Header=yes"
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 eval "$as_ac_Header=no"
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 ac_res=`eval echo '${'$as_ac_Header'}'`
5694 { echo "$as_me:$LINENO: result: $ac_res" >&5
5695 echo "${ECHO_T}$ac_res" >&6; }
5696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5697 cat >>confdefs.h <<_ACEOF
5698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5699 _ACEOF
5703 done
5711 ac_header_dirent=no
5712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5713 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5714 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5715 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <sys/types.h>
5726 #include <$ac_hdr>
5729 main ()
5731 if ((DIR *) 0)
5732 return 0;
5734 return 0;
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 eval "$as_ac_Header=yes"
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 eval "$as_ac_Header=no"
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 ac_res=`eval echo '${'$as_ac_Header'}'`
5765 { echo "$as_me:$LINENO: result: $ac_res" >&5
5766 echo "${ECHO_T}$ac_res" >&6; }
5767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5768 cat >>confdefs.h <<_ACEOF
5769 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5770 _ACEOF
5772 ac_header_dirent=$ac_hdr; break
5775 done
5776 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5777 if test $ac_header_dirent = dirent.h; then
5778 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5779 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5780 if test "${ac_cv_search_opendir+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 ac_func_search_save_LIBS=$LIBS
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5791 /* Override any GCC internal prototype to avoid an error.
5792 Use char because int might match the return type of a GCC
5793 builtin and then its argument prototype would still apply. */
5794 #ifdef __cplusplus
5795 extern "C"
5796 #endif
5797 char opendir ();
5799 main ()
5801 return opendir ();
5803 return 0;
5805 _ACEOF
5806 for ac_lib in '' dir; do
5807 if test -z "$ac_lib"; then
5808 ac_res="none required"
5809 else
5810 ac_res=-l$ac_lib
5811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5813 rm -f conftest.$ac_objext conftest$ac_exeext
5814 if { (ac_try="$ac_link"
5815 case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_link") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && {
5827 test -z "$ac_c_werror_flag" ||
5828 test ! -s conftest.err
5829 } && test -s conftest$ac_exeext &&
5830 $as_test_x conftest$ac_exeext; then
5831 ac_cv_search_opendir=$ac_res
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5840 conftest$ac_exeext
5841 if test "${ac_cv_search_opendir+set}" = set; then
5842 break
5844 done
5845 if test "${ac_cv_search_opendir+set}" = set; then
5847 else
5848 ac_cv_search_opendir=no
5850 rm conftest.$ac_ext
5851 LIBS=$ac_func_search_save_LIBS
5853 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5854 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5855 ac_res=$ac_cv_search_opendir
5856 if test "$ac_res" != no; then
5857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5861 else
5862 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5864 if test "${ac_cv_search_opendir+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 ac_func_search_save_LIBS=$LIBS
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5875 /* Override any GCC internal prototype to avoid an error.
5876 Use char because int might match the return type of a GCC
5877 builtin and then its argument prototype would still apply. */
5878 #ifdef __cplusplus
5879 extern "C"
5880 #endif
5881 char opendir ();
5883 main ()
5885 return opendir ();
5887 return 0;
5889 _ACEOF
5890 for ac_lib in '' x; do
5891 if test -z "$ac_lib"; then
5892 ac_res="none required"
5893 else
5894 ac_res=-l$ac_lib
5895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5897 rm -f conftest.$ac_objext conftest$ac_exeext
5898 if { (ac_try="$ac_link"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_link") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest$ac_exeext &&
5914 $as_test_x conftest$ac_exeext; then
5915 ac_cv_search_opendir=$ac_res
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5924 conftest$ac_exeext
5925 if test "${ac_cv_search_opendir+set}" = set; then
5926 break
5928 done
5929 if test "${ac_cv_search_opendir+set}" = set; then
5931 else
5932 ac_cv_search_opendir=no
5934 rm conftest.$ac_ext
5935 LIBS=$ac_func_search_save_LIBS
5937 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5938 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5939 ac_res=$ac_cv_search_opendir
5940 if test "$ac_res" != no; then
5941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5947 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5948 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5949 if test "${ac_cv_header_stat_broken+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <sys/types.h>
5959 #include <sys/stat.h>
5961 #if defined S_ISBLK && defined S_IFDIR
5962 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5963 #endif
5965 #if defined S_ISBLK && defined S_IFCHR
5966 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5967 #endif
5969 #if defined S_ISLNK && defined S_IFREG
5970 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5971 #endif
5973 #if defined S_ISSOCK && defined S_IFREG
5974 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5975 #endif
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (ac_try="$ac_compile"
5980 case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 ac_cv_header_stat_broken=no
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_header_stat_broken=yes
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6006 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6007 if test $ac_cv_header_stat_broken = yes; then
6009 cat >>confdefs.h <<\_ACEOF
6010 #define STAT_MACROS_BROKEN 1
6011 _ACEOF
6015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6017 if test "${ac_cv_header_stdc+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <stdlib.h>
6027 #include <stdarg.h>
6028 #include <string.h>
6029 #include <float.h>
6032 main ()
6036 return 0;
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_cv_header_stdc=yes
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 ac_cv_header_stdc=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 if test $ac_cv_header_stdc = yes; then
6067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <string.h>
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "memchr" >/dev/null 2>&1; then
6080 else
6081 ac_cv_header_stdc=no
6083 rm -f conftest*
6087 if test $ac_cv_header_stdc = yes; then
6088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <stdlib.h>
6097 _ACEOF
6098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6099 $EGREP "free" >/dev/null 2>&1; then
6101 else
6102 ac_cv_header_stdc=no
6104 rm -f conftest*
6108 if test $ac_cv_header_stdc = yes; then
6109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6110 if test "$cross_compiling" = yes; then
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <ctype.h>
6120 #include <stdlib.h>
6121 #if ((' ' & 0x0FF) == 0x020)
6122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6124 #else
6125 # define ISLOWER(c) \
6126 (('a' <= (c) && (c) <= 'i') \
6127 || ('j' <= (c) && (c) <= 'r') \
6128 || ('s' <= (c) && (c) <= 'z'))
6129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6130 #endif
6132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6134 main ()
6136 int i;
6137 for (i = 0; i < 256; i++)
6138 if (XOR (islower (i), ISLOWER (i))
6139 || toupper (i) != TOUPPER (i))
6140 return 2;
6141 return 0;
6143 _ACEOF
6144 rm -f conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_link") 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6165 else
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 ( exit $ac_status )
6171 ac_cv_header_stdc=no
6173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6179 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6180 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6181 if test $ac_cv_header_stdc = yes; then
6183 cat >>confdefs.h <<\_ACEOF
6184 #define STDC_HEADERS 1
6185 _ACEOF
6189 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6190 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6191 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <sys/types.h>
6201 #include <sys/wait.h>
6202 #ifndef WEXITSTATUS
6203 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6204 #endif
6205 #ifndef WIFEXITED
6206 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6207 #endif
6210 main ()
6212 int s;
6213 wait (&s);
6214 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6216 return 0;
6218 _ACEOF
6219 rm -f conftest.$ac_objext
6220 if { (ac_try="$ac_compile"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.$ac_objext; then
6236 ac_cv_header_sys_wait_h=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_cv_header_sys_wait_h=no
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6247 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6248 if test $ac_cv_header_sys_wait_h = yes; then
6250 cat >>confdefs.h <<\_ACEOF
6251 #define HAVE_SYS_WAIT_H 1
6252 _ACEOF
6256 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6257 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6258 if test "${ac_cv_header_time+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 #include <sys/time.h>
6269 #include <time.h>
6272 main ()
6274 if ((struct tm *) 0)
6275 return 0;
6277 return 0;
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (ac_try="$ac_compile"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_compile") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest.$ac_objext; then
6297 ac_cv_header_time=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_cv_header_time=no
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6308 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6309 if test $ac_cv_header_time = yes; then
6311 cat >>confdefs.h <<\_ACEOF
6312 #define TIME_WITH_SYS_TIME 1
6313 _ACEOF
6317 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6318 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6319 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6330 main ()
6332 static struct stat ac_aggr;
6333 if (ac_aggr.st_blksize)
6334 return 0;
6336 return 0;
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6341 case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compile") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } && {
6353 test -z "$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest.$ac_objext; then
6356 ac_cv_member_struct_stat_st_blksize=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 $ac_includes_default
6369 main ()
6371 static struct stat ac_aggr;
6372 if (sizeof ac_aggr.st_blksize)
6373 return 0;
6375 return 0;
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 ac_cv_member_struct_stat_st_blksize=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_cv_member_struct_stat_st_blksize=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6409 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6410 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6414 _ACEOF
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_ST_BLKSIZE 1
6419 _ACEOF
6424 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6425 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6426 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6437 main ()
6439 static struct stat ac_aggr;
6440 if (ac_aggr.st_blocks)
6441 return 0;
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 ac_cv_member_struct_stat_st_blocks=yes
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6476 main ()
6478 static struct stat ac_aggr;
6479 if (sizeof ac_aggr.st_blocks)
6480 return 0;
6482 return 0;
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 ac_cv_member_struct_stat_st_blocks=yes
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_cv_member_struct_stat_st_blocks=no
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6516 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6517 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6521 _ACEOF
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_ST_BLOCKS 1
6526 _ACEOF
6528 else
6529 case " $LIBOBJS " in
6530 *" fileblocks.$ac_objext "* ) ;;
6531 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6533 esac
6538 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6539 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6540 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6551 main ()
6553 static struct stat ac_aggr;
6554 if (ac_aggr.st_rdev)
6555 return 0;
6557 return 0;
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_compile") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest.$ac_objext; then
6577 ac_cv_member_struct_stat_st_rdev=yes
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6590 main ()
6592 static struct stat ac_aggr;
6593 if (sizeof ac_aggr.st_rdev)
6594 return 0;
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 ac_cv_member_struct_stat_st_rdev=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_member_struct_stat_st_rdev=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6630 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6631 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6633 cat >>confdefs.h <<_ACEOF
6634 #define HAVE_STRUCT_STAT_ST_RDEV 1
6635 _ACEOF
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_ST_RDEV 1
6640 _ACEOF
6645 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6646 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6647 if test "${ac_cv_struct_tm+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <sys/types.h>
6657 #include <time.h>
6660 main ()
6662 struct tm tm;
6663 int *p = &tm.tm_sec;
6664 return !p;
6666 return 0;
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (ac_try="$ac_compile"
6671 case "(($ac_try" in
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6674 esac
6675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_compile") 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest.$ac_objext; then
6686 ac_cv_struct_tm=time.h
6687 else
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_cv_struct_tm=sys/time.h
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6697 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6698 if test $ac_cv_struct_tm = sys/time.h; then
6700 cat >>confdefs.h <<\_ACEOF
6701 #define TM_IN_SYS_TIME 1
6702 _ACEOF
6706 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6707 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6708 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <sys/types.h>
6718 #include <$ac_cv_struct_tm>
6722 main ()
6724 static struct tm ac_aggr;
6725 if (ac_aggr.tm_zone)
6726 return 0;
6728 return 0;
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (ac_try="$ac_compile"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_cv_member_struct_tm_tm_zone=yes
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <sys/types.h>
6760 #include <$ac_cv_struct_tm>
6764 main ()
6766 static struct tm ac_aggr;
6767 if (sizeof ac_aggr.tm_zone)
6768 return 0;
6770 return 0;
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (ac_try="$ac_compile"
6775 case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778 esac
6779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 ac_cv_member_struct_tm_tm_zone=yes
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 ac_cv_member_struct_tm_tm_zone=no
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6804 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6805 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STRUCT_TM_TM_ZONE 1
6809 _ACEOF
6814 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_TM_ZONE 1
6818 _ACEOF
6820 else
6821 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6822 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6823 if test "${ac_cv_have_decl_tzname+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <time.h>
6835 main ()
6837 #ifndef tzname
6838 (void) tzname;
6839 #endif
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (ac_try="$ac_compile"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 ac_cv_have_decl_tzname=yes
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_cv_have_decl_tzname=no
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6873 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6874 if test $ac_cv_have_decl_tzname = yes; then
6876 cat >>confdefs.h <<_ACEOF
6877 #define HAVE_DECL_TZNAME 1
6878 _ACEOF
6881 else
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_DECL_TZNAME 0
6884 _ACEOF
6890 { echo "$as_me:$LINENO: checking for tzname" >&5
6891 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6892 if test "${ac_cv_var_tzname+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <time.h>
6902 #if !HAVE_DECL_TZNAME
6903 extern char *tzname[];
6904 #endif
6907 main ()
6909 return tzname[0][0];
6911 return 0;
6913 _ACEOF
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest$ac_exeext &&
6931 $as_test_x conftest$ac_exeext; then
6932 ac_cv_var_tzname=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_var_tzname=no
6940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941 conftest$ac_exeext conftest.$ac_ext
6943 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6944 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6945 if test $ac_cv_var_tzname = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_TZNAME 1
6949 _ACEOF
6954 { echo "$as_me:$LINENO: checking for off_t" >&5
6955 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6956 if test "${ac_cv_type_off_t+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 typedef off_t ac__type_new_;
6968 main ()
6970 if ((ac__type_new_ *) 0)
6971 return 0;
6972 if (sizeof (ac__type_new_))
6973 return 0;
6975 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_type_off_t=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_cv_type_off_t=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7006 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7007 if test $ac_cv_type_off_t = yes; then
7009 else
7011 cat >>confdefs.h <<_ACEOF
7012 #define off_t long int
7013 _ACEOF
7017 { echo "$as_me:$LINENO: checking for pid_t" >&5
7018 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7019 if test "${ac_cv_type_pid_t+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029 typedef pid_t ac__type_new_;
7031 main ()
7033 if ((ac__type_new_ *) 0)
7034 return 0;
7035 if (sizeof (ac__type_new_))
7036 return 0;
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_type_pid_t=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_type_pid_t=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7069 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7070 if test $ac_cv_type_pid_t = yes; then
7072 else
7074 cat >>confdefs.h <<_ACEOF
7075 #define pid_t int
7076 _ACEOF
7080 { echo "$as_me:$LINENO: checking for size_t" >&5
7081 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7082 if test "${ac_cv_type_size_t+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 typedef size_t ac__type_new_;
7094 main ()
7096 if ((ac__type_new_ *) 0)
7097 return 0;
7098 if (sizeof (ac__type_new_))
7099 return 0;
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 ac_cv_type_size_t=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 ac_cv_type_size_t=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7132 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7133 if test $ac_cv_type_size_t = yes; then
7135 else
7137 cat >>confdefs.h <<_ACEOF
7138 #define size_t unsigned int
7139 _ACEOF
7143 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7144 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7145 if test "${ac_cv_type_uid_t+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #include <sys/types.h>
7156 _ACEOF
7157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158 $EGREP "uid_t" >/dev/null 2>&1; then
7159 ac_cv_type_uid_t=yes
7160 else
7161 ac_cv_type_uid_t=no
7163 rm -f conftest*
7166 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7167 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7168 if test $ac_cv_type_uid_t = no; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define uid_t int
7172 _ACEOF
7175 cat >>confdefs.h <<\_ACEOF
7176 #define gid_t int
7177 _ACEOF
7182 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7183 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7184 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7195 main ()
7197 static struct tm ac_aggr;
7198 if (ac_aggr.tm_gmtoff)
7199 return 0;
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 ac_cv_member_struct_tm_tm_gmtoff=yes
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 $ac_includes_default
7234 main ()
7236 static struct tm ac_aggr;
7237 if (sizeof ac_aggr.tm_gmtoff)
7238 return 0;
7240 return 0;
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 ac_cv_member_struct_tm_tm_gmtoff=yes
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_member_struct_tm_tm_gmtoff=no
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7274 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7275 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7279 _ACEOF
7285 # Look for some functions
7300 for ac_func in getpagesize kqueue statfs statvfs \
7301 clone kse_create rfork_thread thr_create sa_register \
7302 getcontext makecontext setcontext sigaltstack swapcontext
7304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7318 #define $ac_func innocuous_$ac_func
7320 /* System header to define __stub macros and hopefully few prototypes,
7321 which can conflict with char $ac_func (); below.
7322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323 <limits.h> exists even on freestanding compilers. */
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7331 #undef $ac_func
7333 /* Override any GCC internal prototype to avoid an error.
7334 Use char because int might match the return type of a GCC
7335 builtin and then its argument prototype would still apply. */
7336 #ifdef __cplusplus
7337 extern "C"
7338 #endif
7339 char $ac_func ();
7340 /* The GNU C library defines this for functions which it implements
7341 to always fail with ENOSYS. Some functions are actually named
7342 something starting with __ and the normal name is an alias. */
7343 #if defined __stub_$ac_func || defined __stub___$ac_func
7344 choke me
7345 #endif
7348 main ()
7350 return $ac_func ();
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext conftest$ac_exeext
7356 if { (ac_try="$ac_link"
7357 case "(($ac_try" in
7358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359 *) ac_try_echo=$ac_try;;
7360 esac
7361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362 (eval "$ac_link") 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } && {
7369 test -z "$ac_c_werror_flag" ||
7370 test ! -s conftest.err
7371 } && test -s conftest$ac_exeext &&
7372 $as_test_x conftest$ac_exeext; then
7373 eval "$as_ac_var=yes"
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 eval "$as_ac_var=no"
7381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7382 conftest$ac_exeext conftest.$ac_ext
7384 ac_res=`eval echo '${'$as_ac_var'}'`
7385 { echo "$as_me:$LINENO: result: $ac_res" >&5
7386 echo "${ECHO_T}$ac_res" >&6; }
7387 if test `eval echo '${'$as_ac_var'}'` = yes; then
7388 cat >>confdefs.h <<_ACEOF
7389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7390 _ACEOF
7393 done
7398 for ac_header in stdlib.h unistd.h
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 ac_res=`eval echo '${'$as_ac_Header'}'`
7408 { echo "$as_me:$LINENO: result: $ac_res" >&5
7409 echo "${ECHO_T}$ac_res" >&6; }
7410 else
7411 # Is the header compilable?
7412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 $ac_includes_default
7421 #include <$ac_header>
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7425 case "(($ac_try" in
7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427 *) ac_try_echo=$ac_try;;
7428 esac
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 ac_header_compiler=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_header_compiler=no
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7450 echo "${ECHO_T}$ac_header_compiler" >&6; }
7452 # Is the header present?
7453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 #include <$ac_header>
7462 _ACEOF
7463 if { (ac_try="$ac_cpp conftest.$ac_ext"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } >/dev/null && {
7476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 }; then
7479 ac_header_preproc=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_header_preproc=no
7487 rm -f conftest.err conftest.$ac_ext
7488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6; }
7491 # So? What about this header?
7492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7493 yes:no: )
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7498 ac_header_preproc=yes
7500 no:yes:* )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7515 esac
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 eval "$as_ac_Header=\$ac_header_preproc"
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524 { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7531 _ACEOF
7535 done
7538 for ac_func in getpagesize
7540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7554 #define $ac_func innocuous_$ac_func
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func (); below.
7558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7559 <limits.h> exists even on freestanding compilers. */
7561 #ifdef __STDC__
7562 # include <limits.h>
7563 #else
7564 # include <assert.h>
7565 #endif
7567 #undef $ac_func
7569 /* Override any GCC internal prototype to avoid an error.
7570 Use char because int might match the return type of a GCC
7571 builtin and then its argument prototype would still apply. */
7572 #ifdef __cplusplus
7573 extern "C"
7574 #endif
7575 char $ac_func ();
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined __stub_$ac_func || defined __stub___$ac_func
7580 choke me
7581 #endif
7584 main ()
7586 return $ac_func ();
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (ac_try="$ac_link"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_link") 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest$ac_exeext &&
7608 $as_test_x conftest$ac_exeext; then
7609 eval "$as_ac_var=yes"
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 eval "$as_ac_var=no"
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618 conftest$ac_exeext conftest.$ac_ext
7620 ac_res=`eval echo '${'$as_ac_var'}'`
7621 { echo "$as_me:$LINENO: result: $ac_res" >&5
7622 echo "${ECHO_T}$ac_res" >&6; }
7623 if test `eval echo '${'$as_ac_var'}'` = yes; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7626 _ACEOF
7629 done
7631 { echo "$as_me:$LINENO: checking for working mmap" >&5
7632 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7633 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 if test "$cross_compiling" = yes; then
7637 ac_cv_func_mmap_fixed_mapped=no
7638 else
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 /* malloc might have been renamed as rpl_malloc. */
7647 #undef malloc
7649 /* Thanks to Mike Haertel and Jim Avera for this test.
7650 Here is a matrix of mmap possibilities:
7651 mmap private not fixed
7652 mmap private fixed at somewhere currently unmapped
7653 mmap private fixed at somewhere already mapped
7654 mmap shared not fixed
7655 mmap shared fixed at somewhere currently unmapped
7656 mmap shared fixed at somewhere already mapped
7657 For private mappings, we should verify that changes cannot be read()
7658 back from the file, nor mmap's back from the file at a different
7659 address. (There have been systems where private was not correctly
7660 implemented like the infamous i386 svr4.0, and systems where the
7661 VM page cache was not coherent with the file system buffer cache
7662 like early versions of FreeBSD and possibly contemporary NetBSD.)
7663 For shared mappings, we should conversely verify that changes get
7664 propagated back to all the places they're supposed to be.
7666 Grep wants private fixed already mapped.
7667 The main things grep needs to know about mmap are:
7668 * does it exist and is it safe to write into the mmap'd area
7669 * how to use it (BSD variants) */
7671 #include <fcntl.h>
7672 #include <sys/mman.h>
7674 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7675 char *malloc ();
7676 #endif
7678 /* This mess was copied from the GNU getpagesize.h. */
7679 #ifndef HAVE_GETPAGESIZE
7680 /* Assume that all systems that can run configure have sys/param.h. */
7681 # ifndef HAVE_SYS_PARAM_H
7682 # define HAVE_SYS_PARAM_H 1
7683 # endif
7685 # ifdef _SC_PAGESIZE
7686 # define getpagesize() sysconf(_SC_PAGESIZE)
7687 # else /* no _SC_PAGESIZE */
7688 # ifdef HAVE_SYS_PARAM_H
7689 # include <sys/param.h>
7690 # ifdef EXEC_PAGESIZE
7691 # define getpagesize() EXEC_PAGESIZE
7692 # else /* no EXEC_PAGESIZE */
7693 # ifdef NBPG
7694 # define getpagesize() NBPG * CLSIZE
7695 # ifndef CLSIZE
7696 # define CLSIZE 1
7697 # endif /* no CLSIZE */
7698 # else /* no NBPG */
7699 # ifdef NBPC
7700 # define getpagesize() NBPC
7701 # else /* no NBPC */
7702 # ifdef PAGESIZE
7703 # define getpagesize() PAGESIZE
7704 # endif /* PAGESIZE */
7705 # endif /* no NBPC */
7706 # endif /* no NBPG */
7707 # endif /* no EXEC_PAGESIZE */
7708 # else /* no HAVE_SYS_PARAM_H */
7709 # define getpagesize() 8192 /* punt totally */
7710 # endif /* no HAVE_SYS_PARAM_H */
7711 # endif /* no _SC_PAGESIZE */
7713 #endif /* no HAVE_GETPAGESIZE */
7716 main ()
7718 char *data, *data2, *data3;
7719 int i, pagesize;
7720 int fd;
7722 pagesize = getpagesize ();
7724 /* First, make a file with some known garbage in it. */
7725 data = (char *) malloc (pagesize);
7726 if (!data)
7727 return 1;
7728 for (i = 0; i < pagesize; ++i)
7729 *(data + i) = rand ();
7730 umask (0);
7731 fd = creat ("conftest.mmap", 0600);
7732 if (fd < 0)
7733 return 1;
7734 if (write (fd, data, pagesize) != pagesize)
7735 return 1;
7736 close (fd);
7738 /* Next, try to mmap the file at a fixed address which already has
7739 something else allocated at it. If we can, also make sure that
7740 we see the same garbage. */
7741 fd = open ("conftest.mmap", O_RDWR);
7742 if (fd < 0)
7743 return 1;
7744 data2 = (char *) malloc (2 * pagesize);
7745 if (!data2)
7746 return 1;
7747 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7748 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7749 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7750 return 1;
7751 for (i = 0; i < pagesize; ++i)
7752 if (*(data + i) != *(data2 + i))
7753 return 1;
7755 /* Finally, make sure that changes to the mapped area do not
7756 percolate back to the file as seen by read(). (This is a bug on
7757 some variants of i386 svr4.0.) */
7758 for (i = 0; i < pagesize; ++i)
7759 *(data2 + i) = *(data2 + i) + 1;
7760 data3 = (char *) malloc (pagesize);
7761 if (!data3)
7762 return 1;
7763 if (read (fd, data3, pagesize) != pagesize)
7764 return 1;
7765 for (i = 0; i < pagesize; ++i)
7766 if (*(data + i) != *(data3 + i))
7767 return 1;
7768 close (fd);
7769 return 0;
7771 _ACEOF
7772 rm -f conftest$ac_exeext
7773 if { (ac_try="$ac_link"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_link") 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7783 { (case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_try") 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_cv_func_mmap_fixed_mapped=yes
7793 else
7794 echo "$as_me: program exited with status $ac_status" >&5
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ( exit $ac_status )
7799 ac_cv_func_mmap_fixed_mapped=no
7801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7806 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7807 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7808 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7810 cat >>confdefs.h <<\_ACEOF
7811 #define HAVE_MMAP 1
7812 _ACEOF
7815 rm -f conftest.mmap
7820 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7821 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7822 aros_config_ldflags=""
7824 aros_shared_default=yes
7826 aros_shared_cflags="-fPIC"
7827 aros_shared_aflags=""
7828 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7829 aros_kernel_ldflags="-Wl,-rpath,./lib"
7831 aros_target_ar_flags="cr"
7832 aros_target_nm_flags="-C -ul"
7833 aros_target_strip_flags="--strip-unneeded -R.comment"
7835 aros_compiler_libs=
7837 aros_target_genmap="-Wl,-Map -Xlinker"
7839 # Native flavour stuff
7840 aros_bochs_hack="0"
7841 aros_serial_debug="0"
7843 # Palm native flavour stuff
7844 aros_palm_debug_hack="0"
7846 # Unix flavour stuff
7847 aros_nesting_supervisor="0"
7849 # Collect-aros stuff: "-ius" to ignore undefined symbols
7850 ignore_undefined_symbols=""
7852 #-----------------------------------------------------------------------------
7855 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7856 # it switched on by default, and we use the host compiler, so it compiles AROS
7857 # code with this enabled resulting in link failures as we don't have support
7858 # for it.
7860 # We use two methods to disable it. For the host compiler (used to compile
7861 # some hosted modules), we test to see if the compiler supports stack
7862 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7863 # work on all platforms.
7865 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7866 # (this is done unconditionally, as it should have no effect on compilers
7867 # without the stack protection feature). This may be specific to the way that
7868 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7869 # strong enough to disable it in a generic way though, so we'll live with it
7870 # until another vendor ships GCC with it enabled in a different way, and deal
7871 # with it then.
7874 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7875 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7876 save_cflags="$CFLAGS"
7877 CFLAGS="$CFLAGS -fno-stack-protector"
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7886 main ()
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7895 case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_compile") 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest.$ac_objext; then
7910 use_no_stack_protector="yes"
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 use_no_stack_protector="no"
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7920 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7921 if test "x-$use_no_stack_protector" = "x-yes" ; then
7922 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
7924 CFLAGS="$save_cflags"
7926 #-----------------------------------------------------------------------------
7928 { echo "$as_me:$LINENO: checking for type of build" >&5
7929 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7930 # Check whether --enable-build_type was given.
7931 if test "${enable_build_type+set}" = set; then
7932 enableval=$enable_build_type; build_type=$enableval
7933 else
7934 build_type="personal"
7938 if test "$build_type" = "nightly"; then
7939 build_type_string="NIGHTLY"
7940 elif test "$build_type" = "snapshot"; then
7941 build_type_string="SNAPSHOT"
7942 elif test "$build_type" = "milestone"; then
7943 build_type_string="MILESTONE"
7944 elif test "$build_type" = "release"; then
7945 build_type_string="RELEASE"
7946 else
7947 build_type_string="PERSONAL"
7948 build_type="personal"
7951 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7953 { echo "$as_me:$LINENO: result: $build_type" >&5
7954 echo "${ECHO_T}$build_type" >&6; }
7956 #-----------------------------------------------------------------------------
7957 all_debug_types="messages stack mungwall modules symbols"
7959 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7960 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7961 # Check whether --enable-debug was given.
7962 if test "${enable_debug+set}" = set; then
7963 enableval=$enable_debug; debug="$enableval"
7964 else
7965 debug=""
7969 if test "$debug" = "" -o "$debug" = "no"; then
7970 debug="none"
7971 elif test "$debug" = "yes"; then
7972 debug="all"
7975 if test "$debug" = "all" ; then
7976 debug=$all_debug_types
7977 for d in $all_debug_types; do
7978 export aros_${d}_debug="1"
7979 done
7980 else
7981 for d in $all_debug_types; do
7982 export aros_${d}_debug="0"
7983 done
7986 if test "$debug" != "none"; then
7987 debug=`echo $debug | sed s/,/\ /g`
7988 for d in $debug; do
7989 found="0"
7990 for d2 in $all_debug_types; do
7991 if test "$d2" = "$d"; then
7992 found="1"
7993 break
7995 done
7996 if test "$found" = "0"; then
7997 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7998 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7999 { (exit 1); exit 1; }; }
8001 export aros_${d}_debug="1"
8002 done
8003 aros_debug="yes"
8005 { echo "$as_me:$LINENO: result: $debug" >&5
8006 echo "${ECHO_T}$debug" >&6; }
8008 if test "$aros_messages_debug" = "1"; then
8009 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8010 else
8011 aros_messages_debug=""
8013 if test "$aros_symbols_debug" = "1"; then
8014 aros_symbols_debug="-g"
8015 else
8016 aros_symbols_debug=""
8019 # These are the flags to pass when compiling debugged programs
8020 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8021 aros_debug_aflags=""
8022 aros_debug_ldflags="$aros_symbols_debug"
8024 #-----------------------------------------------------------------------------
8025 # Checking for distcc and ccache.
8027 # Always apply the transforms in this particular order. Basically you should
8028 # always run 'ccache distcc compiler' in that order for the best performance.
8030 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8031 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8032 # Check whether --enable-distcc was given.
8033 if test "${enable_distcc+set}" = set; then
8034 enableval=$enable_distcc; distcc="$enableval"
8035 else
8036 distcc="no"
8039 if test "$distcc" != "" -a "$distcc" != "no"; then
8040 # AC_CHECK_PROG will print out the result in this case
8041 # Extract the first word of "distcc", so it can be a program name with args.
8042 set dummy distcc; ac_word=$2
8043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8045 if test "${ac_cv_path_DISTCC+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048 case $DISTCC in
8049 [\\/]* | ?:[\\/]*)
8050 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8064 done
8065 done
8066 IFS=$as_save_IFS
8068 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8070 esac
8072 DISTCC=$ac_cv_path_DISTCC
8073 if test -n "$DISTCC"; then
8074 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8075 echo "${ECHO_T}$DISTCC" >&6; }
8076 else
8077 { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8082 else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8087 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8088 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8089 # Check whether --enable-ccache was given.
8090 if test "${enable_ccache+set}" = set; then
8091 enableval=$enable_ccache; ccache="$enableval"
8092 else
8093 ccache="no"
8096 if test "$ccache" != "" -a "$ccache" != "no"; then
8097 # AC_CHECK_PROG will print out the result in this case
8098 # Extract the first word of "ccache", so it can be a program name with args.
8099 set dummy ccache; ac_word=$2
8100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8102 if test "${ac_cv_prog_CCACHE+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 if test -n "$CCACHE"; then
8106 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_prog_CCACHE="ccache"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8119 done
8120 done
8121 IFS=$as_save_IFS
8125 CCACHE=$ac_cv_prog_CCACHE
8126 if test -n "$CCACHE"; then
8127 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8128 echo "${ECHO_T}$CCACHE" >&6; }
8129 else
8130 { echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6; }
8135 else
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8140 #-----------------------------------------------------------------------------
8141 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8142 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8144 # Check whether --with-optimization was given.
8145 if test "${with_optimization+set}" = set; then
8146 withval=$with_optimization; optimization="$withval"
8147 else
8148 optimization="unknown"
8151 if test "$optimization" = "unknown"; then
8152 if test "$debug" != "none"; then
8153 optimization="-O0"
8154 else
8155 optimization="-O2"
8158 aros_config_cflags="$aros_config_cflags $optimization"
8159 { echo "$as_me:$LINENO: result: $optimization" >&5
8160 echo "${ECHO_T}$optimization" >&6; }
8162 #-----------------------------------------------------------------------------
8163 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8164 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8165 # Check whether --enable-target_variant was given.
8166 if test "${enable_target_variant+set}" = set; then
8167 enableval=$enable_target_variant; target_variant=$enableval
8168 else
8169 target_variant="none"
8172 if test "$target_variant" = "none"; then
8173 aros_target_variant=""
8174 aros_target_suffix=""
8175 else
8176 aros_target_variant="$target_variant"
8177 aros_target_suffix="-$target_variant"
8179 { echo "$as_me:$LINENO: result: $enableval" >&5
8180 echo "${ECHO_T}$enableval" >&6; }
8182 target_bootloader="none"
8184 #-----------------------------------------------------------------------------
8185 # This is the target configuration switch.
8186 case "$target_os" in
8187 linux*)
8188 aros_target_arch="linux"
8189 case "$target_cpu" in
8190 *m68k*)
8191 aros_target_cpu="m68k"
8192 aros_object_format="m68kelf"
8193 aros_flavour="emulcompat"
8194 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8195 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8196 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8197 gcc_target_cpu="mc68000"
8199 *i?86*)
8200 aros_target_cpu="i386"
8201 aros_object_format="elf_i386"
8202 aros_flavour="emulation"
8203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8204 aros_default_wbdepth=8
8205 gcc_target_cpu="i386"
8207 *x86_64*)
8208 aros_target_cpu="x86_64"
8209 aros_object_format="elf_x86_64"
8210 aros_flavour="emulation"
8211 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8212 aros_default_wbdepth=8
8213 gcc_target_cpu="x86_64"
8215 *powerpc*)
8216 aros_target_cpu="ppc"
8217 aros_object_format="elf32ppc"
8218 aros_flavour="emulation"
8219 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8220 aros_default_wbdepth=8
8221 gcc_target_cpu="ppc"
8224 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8225 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8226 { (exit 1); exit 1; }; }
8228 esac
8232 aros_target_arch="pc"
8233 aros_shared_default="no"
8234 target_bootloader="grub"
8235 case "$target_cpu" in
8236 *i?86*)
8237 aros_target_cpu="i386"
8240 if test "$aros_object_format" = "" ; then
8241 aros_object_format="elf_i386"
8243 aros_flavour="standalone"
8244 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8245 aros_kernel_ldflags=""
8246 aros_default_wbwidth=640
8247 aros_default_wbheight=480
8248 gcc_target_cpu="i386"
8250 *x86_64*)
8251 aros_target_cpu="x86_64"
8252 if test "$aros_object_format" = "" ; then
8253 aros_object_format="elf_x86_64"
8255 aros_flavour="standalone"
8256 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8257 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8258 aros_kernel_ldflags=""
8259 aros_default_wbwidth=640
8260 aros_default_wbheight=480
8261 gcc_target_cpu="x86_64"
8264 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8265 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8266 { (exit 1); exit 1; }; }
8268 esac
8271 prep)
8272 aros_target_arch="prep"
8273 aros_shared_default="no"
8274 aros_target_cpu="ppc"
8275 aros_object_format="elf32ppc"
8276 aros_flavour="ppcnative"
8277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8278 aros_kernel_ldflags=""
8279 aros_default_wbwidth=640
8280 aros_default_wbheight=480
8281 gcc_target_cpu="ppc"
8282 case "$target_cpu" in
8283 *cross*)
8284 aros_target_cc="ppc-linux-gcc -pipe"
8285 aros_target_ld="ppc-linux-ld"
8286 aros_target_as="ppc-linux-as"
8287 aros_target_ar="ppc-linux-ar"
8288 aros_target_ranlib="ppc-linux-ranlib"
8289 aros_target_nm="ppc-linux-nm"
8290 aros_target_strip="ppc-linux-strip"
8291 aros_target_objcopy="ppc-linux-objcopy"
8292 aros_target_objdump="ppc-linux-objdump"
8293 aros_shared_ld="ppc-linux-ld"
8294 aros_kernel_ld="ppc-linux-ld"
8298 esac
8301 freebsd*)
8302 aros_target_arch="freebsd"
8303 aros_target_cpu="i386"
8304 aros_flavour="emulation"
8305 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8306 gcc_target_cpu="i386"
8308 aros_target_strip_flags="-x"
8311 darwin*)
8312 aros_target_arch="darwin"
8313 aros_target_cpu="i386"
8314 aros_flavour="emulation"
8315 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8316 gcc_target_cpu="i386"
8318 aros_target_strip_flags="-x"
8321 netbsd*)
8322 aros_target_arch="netbsd"
8323 case "$target_cpu" in
8324 *m68k*)
8325 aros_target_cpu="m68k"
8326 aros_object_format="m68kelf"
8327 aros_flavour="emulcompat"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8329 gcc_target_cpu="mc68000"
8331 *i?86*)
8332 aros_target_cpu="i386"
8333 aros_object_format="elf_i386"
8334 aros_flavour="emulation"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8336 aros_default_wbdepth=8
8337 gcc_target_cpu="i386"
8340 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8341 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8342 { (exit 1); exit 1; }; }
8344 esac
8345 aros_target_genmap="-Wl,-M -Xlinker >"
8346 aros_flavour="emulation"
8347 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8350 openbsd*)
8351 aros_target_arch="openbsd"
8352 case "$target_cpu" in
8353 *i?86*)
8354 aros_target_cpu="i386"
8355 aros_object_format="elf_i386"
8356 aros_flavour="emulation"
8357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8358 gcc_target_cpu="i386"
8361 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8362 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8363 { (exit 1); exit 1; }; }
8365 esac
8366 aros_target_genmap="-Wl,-M -Xlinker >"
8367 aros_target_nm_flags="-u"
8368 aros_flavour="emulation"
8371 solaris*)
8372 aros_target_arch="solaris"
8373 case "$target_cpu" in
8374 *sparc*)
8375 aros_target_cpu="sparc"
8376 aros_object_format="elf_sparc"
8377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8378 gcc_target_cpu="sparc"
8381 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8382 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8383 { (exit 1); exit 1; }; }
8385 esac
8386 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8387 aros_flavour="emulation"
8390 morphos*)
8391 aros_target_arch="morphos"
8392 aros_shared_default="no"
8393 aros_target_cpu="ppc"
8394 aros_object_format="elf_ppc"
8395 aros_flavour="nativecompat"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8397 gcc_target_cpu="ppc"
8400 sam440)
8401 aros_target_arch="sam440"
8402 aros_shared_default="no"
8403 aros_target_cpu="ppc"
8404 aros_object_format="elf32ppc"
8405 aros_flavour="ppcnative"
8406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8407 aros_kernel_ldflags=""
8408 aros_default_wbwidth=640
8409 aros_default_wbheight=480
8410 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8411 gcc_target_cpu="powerpc"
8412 case "$target_cpu" in
8413 *powerpc*)
8414 aros_target_cc="powerpc-linux-gcc -pipe"
8415 aros_target_ld="powerpc-linux-ld"
8416 aros_target_as="powerpc-linux-as"
8417 aros_target_ar="powerpc-linux-ar"
8418 aros_target_ranlib="powerpc-linux-ranlib"
8419 aros_target_nm="powerpc-linux-nm"
8420 aros_target_strip="powerpc-linux-strip"
8421 aros_target_objcopy="powerpc-linux-objcopy"
8422 aros_target_objdump="powerpc-linux-objdump"
8423 aros_shared_ld="powerpc-linux-ld"
8424 aros_kernel_ld="powerpc-linux-ld"
8428 esac
8431 amiga*)
8432 aros_target_arch="amiga"
8433 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8434 aros_shared_default="no"
8436 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8438 case "$target_cpu" in
8439 *m68k*)
8440 aros_target_cpu="m68k"
8441 aros_object_format="m68kelf"
8442 aros_flavour="nativecompat"
8443 gcc_target_cpu="mc68000"
8445 *ppc*)
8446 aros_cpu="ppc"
8447 aros_flavour="native"
8448 gcc_target_cpu="ppc"
8451 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8452 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8453 { (exit 1); exit 1; }; }
8455 esac
8458 cygwin*)
8459 aros_target_arch="cygwin"
8460 aros_shared_default="no"
8461 case "$target_cpu" in
8462 *i?86*)
8463 aros_target_cpu="i386"
8464 aros_object_format="elf_i386"
8465 aros_flavour="emulation"
8466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8467 aros_shared_cflags=""
8468 aros_default_wbdepth=8
8469 gcc_target_cpu="i386"
8472 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8473 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8474 { (exit 1); exit 1; }; }
8476 esac
8479 mingw32*)
8480 aros_target_arch="mingw32"
8481 aros_shared_default="no"
8482 case "$target_cpu" in
8483 *i?86*)
8484 aros_target_cpu="i386"
8485 aros_object_format="elf_i386"
8486 aros_flavour="emulation"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8488 aros_shared_cflags=""
8489 aros_default_wbdepth=8
8490 gcc_target_cpu="i386"
8493 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8494 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8495 { (exit 1); exit 1; }; }
8497 esac
8499 pp*)
8500 aros_target_arch="pp"
8501 aros_shared_default="no"
8502 case "$target_cpu" in
8503 *m68k*)
8504 aros_target_cpu="m68k"
8505 aros_object_format="m68kelf"
8506 aros_flavour="palmnative"
8507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8508 aros_kernel_ldflags=""
8509 aros_default_wbwidth=160
8510 aros_default_wbheight=160
8511 aros_default_wbdepth=1
8512 aros_target_cc="m68k-elf-gcc -pipe"
8513 aros_target_ld="$(which m68k-elf-ld)"
8514 aros_target_as="m68k-elf-gcc -pipe"
8515 aros_shared_ld="m68k-elf-gcc"
8516 aros_kernel_ld="m68k-elf-gcc"
8517 aros_target_ar="m68k-elf-ar"
8518 aros_target_ar_flags="cru"
8519 aros_target_ranlib="m68k-elf-ranlib"
8520 aros_target_nm="m68k-elf-nm"
8521 aros_target_objcopy="m68k-elf-objcopy"
8522 aros_target_objdump="m68k-elf-objdump"
8523 aros_compiler_libs="-lgcc1"
8524 aros_shared_default=no
8525 aros_shared_cflags="-fpic"
8526 aros_shared_aflags=""
8527 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8528 aros_kernel_ldflags="-Wl,-rpath,./lib"
8529 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8530 aros_debug_aflags=""
8531 aros_debug_ldflags="$aros_symbols_debug"
8532 aros_mungwall_debug="0"
8533 aros_modules_debug="0"
8534 gcc_target_cpu="mc68000"
8535 ignore_undefined_symbols="-ius"
8538 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8539 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8540 { (exit 1); exit 1; }; }
8542 esac
8545 mac*)
8546 aros_target_arch="mac"
8547 aros_shared_default="no"
8548 case "$target_cpu" in
8549 *m68k*)
8550 aros_target_cpu="m68k"
8551 aros_object_format="m68kelf"
8552 aros_flavour="mac68knative"
8553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8554 aros_default_wbwidth=512
8555 aros_default_wbheight=384
8556 aros_default_wbdepth=8
8557 aros_target_cc="m68k-elf-gcc -pipe"
8558 aros_target_ld="$(which m68k-elf-ld)"
8559 aros_target_as="m68k-elf-gcc -pipe"
8560 aros_shared_ld="m68k-elf-gcc"
8561 aros_kernel_ld="m68k-elf-gcc"
8562 aros_target_ar="m68k-elf-ar"
8563 aros_target_ar_flags="cru"
8564 aros_target_ranlib="m68k-elf-ranlib"
8565 aros_target_nm="m68k-elf-nm"
8566 aros_target_objcopy="m68k-elf-objcopy"
8567 aros_target_objdump="m68k-elf-objdump"
8568 aros_compiler_libs="-lgcc1"
8569 aros_shared_default=no
8570 aros_shared_cflags="-fpic"
8571 aros_shared_aflags=""
8572 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8573 aros_kernel_ldflags="-Wl,-rpath,./lib"
8574 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8575 aros_debug_aflags=""
8576 aros_debug_ldflags="$aros_symbols_debug"
8577 aros_mungwall_debug="0"
8578 aros_modules_debug="0"
8579 gcc_target_cpu="mc68000"
8580 ignore_undefined_symbols="-ius"
8583 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8584 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8585 { (exit 1); exit 1; }; }
8587 esac
8591 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8592 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8593 { (exit 1); exit 1; }; }
8595 esac
8597 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8598 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8599 # Check whether --enable-bootloader was given.
8600 if test "${enable_bootloader+set}" = set; then
8601 enableval=$enable_bootloader; target_bootloader=$enableval
8602 else
8603 target_bootloader=$target_bootloader
8606 if test "$target_bootloader" = "none"; then
8607 aros_target_bootloader=""
8608 else
8609 aros_target_bootloader="$target_bootloader"
8611 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8612 echo "${ECHO_T}$target_bootloader" >&6; }
8614 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8615 aros_liblzo_check="no"
8616 case "$aros_target_bootloader" in
8617 grub2*)
8618 case "$target_cpu" in
8619 *i?86*)
8620 aros_liblzo_check="yes"
8622 *x86_64*)
8623 aros_liblzo_check="yes"
8627 esac
8632 esac
8634 if test "$aros_liblzo_check" = "yes"; then
8635 # There are three possibilities. LZO version 2 installed with the name
8636 # liblzo2, with the name liblzo, and LZO version 1.
8637 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8638 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8639 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-llzo2 $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h. */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 char __lzo_init_v2 ();
8659 main ()
8661 return __lzo_init_v2 ();
8663 return 0;
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_link") 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest$ac_exeext &&
8683 $as_test_x conftest$ac_exeext; then
8684 ac_cv_lib_lzo2___lzo_init_v2=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_cv_lib_lzo2___lzo_init_v2=no
8692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8697 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8698 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8699 LIBLZO="-llzo2"
8700 else
8701 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8702 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8703 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 ac_check_lib_save_LIBS=$LIBS
8707 LIBS="-llzo $LIBS"
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 /* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 char __lzo_init_v2 ();
8723 main ()
8725 return __lzo_init_v2 ();
8727 return 0;
8729 _ACEOF
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (ac_try="$ac_link"
8732 case "(($ac_try" in
8733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734 *) ac_try_echo=$ac_try;;
8735 esac
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737 (eval "$ac_link") 2>conftest.er1
8738 ac_status=$?
8739 grep -v '^ *+' conftest.er1 >conftest.err
8740 rm -f conftest.er1
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } && {
8744 test -z "$ac_c_werror_flag" ||
8745 test ! -s conftest.err
8746 } && test -s conftest$ac_exeext &&
8747 $as_test_x conftest$ac_exeext; then
8748 ac_cv_lib_lzo___lzo_init_v2=yes
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_cv_lib_lzo___lzo_init_v2=no
8756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8757 conftest$ac_exeext conftest.$ac_ext
8758 LIBS=$ac_check_lib_save_LIBS
8760 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8761 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8762 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8763 LIBLZO="-llzo"
8764 else
8765 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8766 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8767 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-llzo $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8782 #ifdef __cplusplus
8783 extern "C"
8784 #endif
8785 char __lzo_init2 ();
8787 main ()
8789 return __lzo_init2 ();
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (ac_try="$ac_link"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_link") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest$ac_exeext &&
8811 $as_test_x conftest$ac_exeext; then
8812 ac_cv_lib_lzo___lzo_init2=yes
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_lib_lzo___lzo_init2=no
8820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8821 conftest$ac_exeext conftest.$ac_ext
8822 LIBS=$ac_check_lib_save_LIBS
8824 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8825 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8826 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8827 LIBLZO="-llzo"
8828 else
8829 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8830 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
8831 { (exit 1); exit 1; }; }
8840 LIBS="$LIBS $LIBLZO"
8841 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
8842 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
8843 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
8853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8854 #define lzo1x_999_compress innocuous_lzo1x_999_compress
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char lzo1x_999_compress (); below.
8858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8859 <limits.h> exists even on freestanding compilers. */
8861 #ifdef __STDC__
8862 # include <limits.h>
8863 #else
8864 # include <assert.h>
8865 #endif
8867 #undef lzo1x_999_compress
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char lzo1x_999_compress ();
8876 /* The GNU C library defines this for functions which it implements
8877 to always fail with ENOSYS. Some functions are actually named
8878 something starting with __ and the normal name is an alias. */
8879 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
8880 choke me
8881 #endif
8884 main ()
8886 return lzo1x_999_compress ();
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8893 case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && {
8905 test -z "$ac_c_werror_flag" ||
8906 test ! -s conftest.err
8907 } && test -s conftest$ac_exeext &&
8908 $as_test_x conftest$ac_exeext; then
8909 ac_cv_func_lzo1x_999_compress=yes
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 ac_cv_func_lzo1x_999_compress=no
8917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8918 conftest$ac_exeext conftest.$ac_ext
8920 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
8921 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
8922 if test $ac_cv_func_lzo1x_999_compress = yes; then
8924 else
8925 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
8926 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
8927 { (exit 1); exit 1; }; }
8931 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
8934 for ac_header in lzo/lzo1x.h lzo1x.h
8936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 ac_res=`eval echo '${'$as_ac_Header'}'`
8944 { echo "$as_me:$LINENO: result: $ac_res" >&5
8945 echo "${ECHO_T}$ac_res" >&6; }
8946 else
8947 # Is the header compilable?
8948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 $ac_includes_default
8957 #include <$ac_header>
8958 _ACEOF
8959 rm -f conftest.$ac_objext
8960 if { (ac_try="$ac_compile"
8961 case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_compile") 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest.$ac_objext; then
8976 ac_header_compiler=yes
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_header_compiler=no
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8986 echo "${ECHO_T}$ac_header_compiler" >&6; }
8988 # Is the header present?
8989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 #include <$ac_header>
8998 _ACEOF
8999 if { (ac_try="$ac_cpp conftest.$ac_ext"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } >/dev/null && {
9012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 }; then
9015 ac_header_preproc=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_header_preproc=no
9023 rm -f conftest.err conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9025 echo "${ECHO_T}$ac_header_preproc" >&6; }
9027 # So? What about this header?
9028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029 yes:no: )
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9034 ac_header_preproc=yes
9036 no:yes:* )
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051 esac
9052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 eval "$as_ac_Header=\$ac_header_preproc"
9059 ac_res=`eval echo '${'$as_ac_Header'}'`
9060 { echo "$as_me:$LINENO: result: $ac_res" >&5
9061 echo "${ECHO_T}$ac_res" >&6; }
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067 _ACEOF
9071 done
9075 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9076 # for target code)
9077 cross_compiling=no
9078 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9079 cross_compiling=yes
9081 if test "$aros_host_arch" == "darwin" ; then
9082 cross_compiling=yes
9085 # Set prefix for target compiler etc. if we're cross-compiling
9086 # (should possibly be earlier but needs to be after AC_PROG_CC)
9087 if test "$cross_compiling" = "yes" ; then
9088 target_tool_prefix=${target_cpu}-elf-
9089 CC=${target_tool_prefix}gcc
9092 # Find all the tools we need to compile. This could be cross-compiling
9093 # though! If that is the case we use the GNU form of the target and
9094 # simply add this to the front of the binary name. This is rather simple,
9095 # but it should work under most circumstances.
9097 # The default tools are to use the same as the host, but only if the
9098 # host and target CPU are the same. With GCC this is normally enough.
9101 aros_cc_pre=""
9102 aros_shared_ld="$aros_host_ld"
9104 aros_target_mkdep="$aros_host_mkdep"
9105 aros_target_incl_def="$aros_host_incl"
9107 # Extract the first word of "$CC", so it can be a program name with args.
9108 set dummy $CC; ac_word=$2
9109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9111 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 case $aros_kernel_cc in
9115 [\\/]* | ?:[\\/]*)
9116 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9135 esac
9137 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9138 if test -n "$aros_kernel_cc"; then
9139 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9140 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9141 else
9142 { echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6; }
9148 # The default tools executables to be linked to.
9150 if test "$cross_compiling" = "yes" ; then
9151 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9152 set dummy ${target_tool_prefix}as; ac_word=$2
9153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9155 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 case $aros_target_as_ln in
9159 [\\/]* | ?:[\\/]*)
9160 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9174 done
9175 done
9176 IFS=$as_save_IFS
9179 esac
9181 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9182 if test -n "$aros_target_as_ln"; then
9183 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9184 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9185 else
9186 { echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6; }
9191 else
9192 if test "$GCC" = "yes"; then
9193 aros_gcc_as=`$CC -print-prog-name=as`
9194 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9195 set dummy `basename $aros_gcc_as`; ac_word=$2
9196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9198 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 case $aros_target_as_ln in
9202 [\\/]* | ?:[\\/]*)
9203 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 for as_dir in `dirname $aros_gcc_as`
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9213 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9217 done
9218 done
9219 IFS=$as_save_IFS
9222 esac
9224 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9225 if test -n "$aros_target_as_ln"; then
9226 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9227 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9228 else
9229 { echo "$as_me:$LINENO: result: no" >&5
9230 echo "${ECHO_T}no" >&6; }
9235 if test "$aros_target_as_ln" = ""; then
9236 # Extract the first word of "as", so it can be a program name with args.
9237 set dummy as; ac_word=$2
9238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9240 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 case $aros_target_as_ln in
9244 [\\/]* | ?:[\\/]*)
9245 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 for as_dir in $PATH
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9255 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9257 break 2
9259 done
9260 done
9261 IFS=$as_save_IFS
9264 esac
9266 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9267 if test -n "$aros_target_as_ln"; then
9268 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9269 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9270 else
9271 { echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6; }
9279 if test "$aros_target_as_ln" = ""; then
9280 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9281 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9282 { (exit 1); exit 1; }; }
9285 if test "$cross_compiling" = "yes" ; then
9286 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9287 set dummy ${target_tool_prefix}ld; ac_word=$2
9288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9290 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 case $aros_kernel_ld in
9294 [\\/]* | ?:[\\/]*)
9295 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9314 esac
9316 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9317 if test -n "$aros_kernel_ld"; then
9318 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9319 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9320 else
9321 { echo "$as_me:$LINENO: result: no" >&5
9322 echo "${ECHO_T}no" >&6; }
9326 else
9327 if test "$GCC" = "yes"; then
9328 aros_gcc_ld=`$CC -print-prog-name=ld`
9329 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9330 set dummy `basename $aros_gcc_ld`; ac_word=$2
9331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 case $aros_kernel_ld in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in `dirname $aros_gcc_ld`
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9352 done
9353 done
9354 IFS=$as_save_IFS
9357 esac
9359 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9360 if test -n "$aros_kernel_ld"; then
9361 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9362 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9363 else
9364 { echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6; }
9370 if test "$aros_kernel_ld" = ""; then
9371 # Extract the first word of "ld", so it can be a program name with args.
9372 set dummy ld; ac_word=$2
9373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9375 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 case $aros_kernel_ld in
9379 [\\/]* | ?:[\\/]*)
9380 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9394 done
9395 done
9396 IFS=$as_save_IFS
9399 esac
9401 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9402 if test -n "$aros_kernel_ld"; then
9403 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9404 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9405 else
9406 { echo "$as_me:$LINENO: result: no" >&5
9407 echo "${ECHO_T}no" >&6; }
9414 if test "$aros_kernel_ld" = ""; then
9415 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9416 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9417 { (exit 1); exit 1; }; }
9420 if test "$cross_compiling" = "yes" ; then
9421 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9422 set dummy ${target_tool_prefix}ar; ac_word=$2
9423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9425 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 case $aros_target_ar_ln in
9429 [\\/]* | ?:[\\/]*)
9430 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9449 esac
9451 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9452 if test -n "$aros_target_ar_ln"; then
9453 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9454 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9455 else
9456 { echo "$as_me:$LINENO: result: no" >&5
9457 echo "${ECHO_T}no" >&6; }
9461 else
9462 if test "$GCC" = "yes"; then
9463 aros_gcc_ar=`$CC -print-prog-name=ar`
9464 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9465 set dummy `basename $aros_gcc_ar`; ac_word=$2
9466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9468 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 case $aros_target_ar_ln in
9472 [\\/]* | ?:[\\/]*)
9473 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477 for as_dir in `dirname $aros_gcc_ar`
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9487 done
9488 done
9489 IFS=$as_save_IFS
9492 esac
9494 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9495 if test -n "$aros_target_ar_ln"; then
9496 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9497 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9498 else
9499 { echo "$as_me:$LINENO: result: no" >&5
9500 echo "${ECHO_T}no" >&6; }
9505 if test "$aros_target_ar_ln" = ""; then
9506 # Extract the first word of "ar", so it can be a program name with args.
9507 set dummy ar; ac_word=$2
9508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9510 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513 case $aros_target_ar_ln in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9534 esac
9536 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9537 if test -n "$aros_target_ar_ln"; then
9538 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9539 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9540 else
9541 { echo "$as_me:$LINENO: result: no" >&5
9542 echo "${ECHO_T}no" >&6; }
9549 if test "$aros_target_ar_ln" = ""; then
9550 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9551 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9552 { (exit 1); exit 1; }; }
9555 if test "$cross_compiling" = "yes" ; then
9556 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9557 set dummy ${target_tool_prefix}nm; ac_word=$2
9558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9560 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 case $aros_target_nm_ln in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9584 esac
9586 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9587 if test -n "$aros_target_nm_ln"; then
9588 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9589 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9590 else
9591 { echo "$as_me:$LINENO: result: no" >&5
9592 echo "${ECHO_T}no" >&6; }
9596 else
9597 if test "$GCC" = "yes"; then
9598 aros_gcc_nm=`$CC -print-prog-name=nm`
9599 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9600 set dummy `basename $aros_gcc_nm`; ac_word=$2
9601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9603 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 case $aros_target_nm_ln in
9607 [\\/]* | ?:[\\/]*)
9608 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in `dirname $aros_gcc_nm`
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9622 done
9623 done
9624 IFS=$as_save_IFS
9627 esac
9629 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9630 if test -n "$aros_target_nm_ln"; then
9631 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9632 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9633 else
9634 { echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6; }
9640 if test "$aros_target_nm_ln" = ""; then
9641 # Extract the first word of "nm", so it can be a program name with args.
9642 set dummy nm; ac_word=$2
9643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9645 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 case $aros_target_nm_ln in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9672 if test -n "$aros_target_nm_ln"; then
9673 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9674 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9675 else
9676 { echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6; }
9684 if test "$aros_target_nm_ln" = ""; then
9685 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9686 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9687 { (exit 1); exit 1; }; }
9690 if test "$cross_compiling" = "yes" ; then
9691 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9692 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9695 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 case $aros_target_objcopy_ln in
9699 [\\/]* | ?:[\\/]*)
9700 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9714 done
9715 done
9716 IFS=$as_save_IFS
9719 esac
9721 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9722 if test -n "$aros_target_objcopy_ln"; then
9723 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9724 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9725 else
9726 { echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6; }
9731 else
9732 if test "$GCC" = "yes"; then
9733 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9734 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9735 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9738 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 case $aros_target_objcopy_ln in
9742 [\\/]* | ?:[\\/]*)
9743 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in `dirname $aros_gcc_objcopy`
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9753 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9757 done
9758 done
9759 IFS=$as_save_IFS
9762 esac
9764 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9765 if test -n "$aros_target_objcopy_ln"; then
9766 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9767 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9768 else
9769 { echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6; }
9775 if test "$aros_target_objcopy_ln" = ""; then
9776 # Extract the first word of "objcopy", so it can be a program name with args.
9777 set dummy objcopy; ac_word=$2
9778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9780 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 case $aros_target_objcopy_ln in
9784 [\\/]* | ?:[\\/]*)
9785 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9801 IFS=$as_save_IFS
9804 esac
9806 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9807 if test -n "$aros_target_objcopy_ln"; then
9808 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9809 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9810 else
9811 { echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6; }
9819 if test "$aros_target_objcopy_ln" = ""; then
9820 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9821 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9822 { (exit 1); exit 1; }; }
9825 if test "$cross_compiling" = "yes" ; then
9826 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9827 set dummy ${target_tool_prefix}objdump; ac_word=$2
9828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9830 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 case $aros_target_objdump_ln in
9834 [\\/]* | ?:[\\/]*)
9835 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 for as_dir in $PATH
9841 IFS=$as_save_IFS
9842 test -z "$as_dir" && as_dir=.
9843 for ac_exec_ext in '' $ac_executable_extensions; do
9844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9845 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 break 2
9849 done
9850 done
9851 IFS=$as_save_IFS
9854 esac
9856 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9857 if test -n "$aros_target_objdump_ln"; then
9858 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9859 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9860 else
9861 { echo "$as_me:$LINENO: result: no" >&5
9862 echo "${ECHO_T}no" >&6; }
9866 else
9867 if test "$GCC" = "yes"; then
9868 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9869 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9870 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9873 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 case $aros_target_objdump_ln in
9877 [\\/]* | ?:[\\/]*)
9878 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in `dirname $aros_gcc_objdump`
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9892 done
9893 done
9894 IFS=$as_save_IFS
9897 esac
9899 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9900 if test -n "$aros_target_objdump_ln"; then
9901 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9902 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9903 else
9904 { echo "$as_me:$LINENO: result: no" >&5
9905 echo "${ECHO_T}no" >&6; }
9910 if test "$aros_target_objdump_ln" = ""; then
9911 # Extract the first word of "objdump", so it can be a program name with args.
9912 set dummy objdump; ac_word=$2
9913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9915 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918 case $aros_target_objdump_ln in
9919 [\\/]* | ?:[\\/]*)
9920 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9934 done
9935 done
9936 IFS=$as_save_IFS
9939 esac
9941 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9942 if test -n "$aros_target_objdump_ln"; then
9943 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9944 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9945 else
9946 { echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6; }
9954 if test "$aros_target_objdump_ln" = ""; then
9955 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9956 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9957 { (exit 1); exit 1; }; }
9960 if test "$cross_compiling" = "yes" ; then
9961 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9962 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9965 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 case $aros_target_ranlib_ln in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9989 esac
9991 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9992 if test -n "$aros_target_ranlib_ln"; then
9993 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9994 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9995 else
9996 { echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6; }
10001 else
10002 if test "$GCC" = "yes"; then
10003 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10004 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10005 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10008 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 case $aros_target_ranlib_ln in
10012 [\\/]* | ?:[\\/]*)
10013 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in `dirname $aros_gcc_ranlib`
10019 IFS=$as_save_IFS
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10023 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10025 break 2
10027 done
10028 done
10029 IFS=$as_save_IFS
10032 esac
10034 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10035 if test -n "$aros_target_ranlib_ln"; then
10036 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10037 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10038 else
10039 { echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6; }
10045 if test "$aros_target_ranlib_ln" = ""; then
10046 # Extract the first word of "ranlib", so it can be a program name with args.
10047 set dummy ranlib; ac_word=$2
10048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10050 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 case $aros_target_ranlib_ln in
10054 [\\/]* | ?:[\\/]*)
10055 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10071 IFS=$as_save_IFS
10074 esac
10076 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10077 if test -n "$aros_target_ranlib_ln"; then
10078 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10079 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10080 else
10081 { echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6; }
10089 if test "$aros_target_ranlib_ln" = ""; then
10090 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10091 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10092 { (exit 1); exit 1; }; }
10095 if test "$cross_compiling" = "yes" ; then
10096 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10097 set dummy ${target_tool_prefix}strip; ac_word=$2
10098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10100 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 case $aros_target_strip_ln in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10124 esac
10126 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10127 if test -n "$aros_target_strip_ln"; then
10128 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10129 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10130 else
10131 { echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6; }
10136 else
10137 if test "$GCC" = "yes"; then
10138 aros_gcc_strip=`$CC -print-prog-name=strip`
10139 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10140 set dummy `basename $aros_gcc_strip`; ac_word=$2
10141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10143 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 case $aros_target_strip_ln in
10147 [\\/]* | ?:[\\/]*)
10148 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in `dirname $aros_gcc_strip`
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10167 esac
10169 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10170 if test -n "$aros_target_strip_ln"; then
10171 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10172 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10173 else
10174 { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10180 if test "$aros_target_strip_ln" = ""; then
10181 # Extract the first word of "strip", so it can be a program name with args.
10182 set dummy strip; ac_word=$2
10183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10185 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 case $aros_target_strip_ln in
10189 [\\/]* | ?:[\\/]*)
10190 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10206 IFS=$as_save_IFS
10209 esac
10211 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10212 if test -n "$aros_target_strip_ln"; then
10213 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10214 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10215 else
10216 { echo "$as_me:$LINENO: result: no" >&5
10217 echo "${ECHO_T}no" >&6; }
10224 if test "$aros_target_strip_ln" = ""; then
10225 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10226 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10227 { (exit 1); exit 1; }; }
10230 if test "$GCC" = "yes"; then
10231 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10234 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10235 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10236 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10237 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10238 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10239 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10240 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10242 # aros_cc_pre is a variable that is added to the front of the compiler name
10243 # in the generated aros-gcc shell script. We need this to enable the cache
10244 # to work across cleaned builds. Also, support DISTCC using the correct
10245 # environment variable.
10248 if test "x${DISTCC}" != "x" ; then
10249 if test "x${CCACHE}" != "x" ; then
10250 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10251 else
10252 aros_cc_pre="${DISTCC} "
10254 else
10255 if test "x${CCACHE}" != "x" ; then
10256 aros_cc_pre="${CCACHE} "
10260 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10262 aros_target_nostdinc_cflags=-nostdinc
10264 aros_target_nostartup_ldflags=-nostartfiles
10266 aros_target_nix_ldflags=-nix
10268 aros_target_detach_ldflags=-detach
10270 aros_target_nostdlib_ldflags=-nostdlib
10273 # Target tools
10274 aros_target_cc="${prefix}-gcc"
10275 aros_target_as="${prefix}-as"
10276 aros_target_ld="${prefix}-ld"
10277 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10278 aros_target_objcopy=${prefix}-objcopy
10279 aros_target_objdump=${prefix}-objdump
10280 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10281 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10282 aros_kernel_nm="${prefix}-nm"
10283 aros_target_strip=${prefix}-strip
10286 # Find the system include path. We can suggest that an alternative is
10287 # used if we don't get it correct. The default is to use /usr/include.
10288 # Which is set in the aros_target_incl_def variable.
10290 # Check whether --enable-includes was given.
10291 if test "${enable_includes+set}" = set; then
10292 enableval=$enable_includes; aros_target_incl=$enable_includes
10293 else
10294 aros_target_incl=$aros_target_incl_def
10298 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10299 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10300 if test "$aros_target_cc_includes" = "" ; then
10301 #try to guess where the directory is
10302 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10303 if ! test -d $aros_target_cc_includes; then
10304 #the directory doesn't exist, we need to do some more work
10305 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10307 #these are the headers we're looling for
10308 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10309 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10310 zutil.h"
10312 dirs=
10313 for h in $headers; do
10314 #which other headers each of the above headers needs?
10315 deps=$(echo "#include <$h>" | \
10316 $aros_host_cc -E -M - 2>/dev/null | \
10317 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10319 #copy all the needed headers to a directory beneath gendir
10320 for d in $deps; do
10321 h=$(basename $d)
10322 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10323 sed -n "s,^.*/include\(/.*\),\1,p")
10324 ! test -d $dir && mkdir -p $dir
10325 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10326 done
10327 done
10330 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10331 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10333 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10334 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10336 # Check whether --with-resolution was given.
10337 if test "${with_resolution+set}" = set; then
10338 withval=$with_resolution; resolution=$withval
10339 else
10340 resolution=none
10343 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10344 if test "$resolution" = "yes" ; then
10345 resolution="none"
10347 if test "$resolution" = "no" ; then
10348 resolution="none"
10350 if test "$resolution" != "none" ; then
10351 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10352 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10353 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10355 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10356 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10357 aros_cv_default_wbwidth=$aros_default_wbwidth
10358 aros_cv_default_wbheight=$aros_default_wbheight
10359 aros_cv_default_wbdepth=$aros_default_wbdepth
10361 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10362 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
10363 # Check whether --enable-bochs_hack was given.
10364 if test "${enable_bochs_hack+set}" = set; then
10365 enableval=$enable_bochs_hack; bochs_hack="yes"
10366 else
10367 bochs_hack="no"
10370 if test "$bochs_hack" = "yes" ; then
10371 aros_bochs_hack="1"
10373 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
10374 echo "${ECHO_T}$bochs_hack" >&6; }
10376 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
10377 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
10379 # Check whether --with-serial-debug was given.
10380 if test "${with_serial_debug+set}" = set; then
10381 withval=$with_serial_debug; serial_debug=$withval
10382 else
10383 serial_debug=none
10386 if test "$serial_debug" = "yes" ; then
10387 serial_debug="2"
10389 if test "$serial_debug" = "no" ; then
10390 serial_debug="none"
10392 if test "$serial_debug" != "none" ; then
10393 aros_serial_debug=$serial_debug
10394 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
10395 echo "${ECHO_T}on port $serial_debug" >&6; }
10396 else
10397 { echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6; }
10401 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
10402 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
10403 # Check whether --enable-palm_debug_hack was given.
10404 if test "${enable_palm_debug_hack+set}" = set; then
10405 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10406 else
10407 palm_debug_hack="no"
10410 if test "$palm_debug_hack" = "yes" ; then
10411 aros_palm_debug_hack="1"
10413 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
10414 echo "${ECHO_T}$palm_debug_hack" >&6; }
10417 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
10418 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
10419 # Check whether --enable-nesting_supervisor was given.
10420 if test "${enable_nesting_supervisor+set}" = set; then
10421 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10422 else
10423 nesting_supervisor="no"
10426 if test "$nesting_supervisor" = "yes" ; then
10427 aros_nesting_supervisor="1"
10429 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
10430 echo "${ECHO_T}$nesting_supervisor" >&6; }
10433 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10435 { echo "$as_me:$LINENO: checking for dlopen" >&5
10436 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10437 if test "${ac_cv_func_dlopen+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10448 #define dlopen innocuous_dlopen
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char dlopen (); below.
10452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10453 <limits.h> exists even on freestanding compilers. */
10455 #ifdef __STDC__
10456 # include <limits.h>
10457 #else
10458 # include <assert.h>
10459 #endif
10461 #undef dlopen
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 char dlopen ();
10470 /* The GNU C library defines this for functions which it implements
10471 to always fail with ENOSYS. Some functions are actually named
10472 something starting with __ and the normal name is an alias. */
10473 #if defined __stub_dlopen || defined __stub___dlopen
10474 choke me
10475 #endif
10478 main ()
10480 return dlopen ();
10482 return 0;
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest$ac_exeext &&
10502 $as_test_x conftest$ac_exeext; then
10503 ac_cv_func_dlopen=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_func_dlopen=no
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512 conftest$ac_exeext conftest.$ac_ext
10514 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10516 if test $ac_cv_func_dlopen = yes; then
10517 have_dl="yes"
10518 else
10519 have_dl="no"
10522 if test "x-$have_dl" = "x-no" ; then
10523 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-ldl $LIBS"
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10537 /* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply. */
10540 #ifdef __cplusplus
10541 extern "C"
10542 #endif
10543 char dlopen ();
10545 main ()
10547 return dlopen ();
10549 return 0;
10551 _ACEOF
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext &&
10569 $as_test_x conftest$ac_exeext; then
10570 ac_cv_lib_dl_dlopen=yes
10571 else
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_cv_lib_dl_dlopen=no
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10584 if test $ac_cv_lib_dl_dlopen = yes; then
10585 have_dl="yes"
10586 aros_host_ldflags="$aros_host_ldflags -ldl"
10587 else
10588 have_dl="no"
10592 if test "x-$have_dl" = "x-no" ; then
10593 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10594 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10595 { (exit 1); exit 1; }; }
10599 # Check whether --enable-x11_hidd was given.
10600 if test "${enable_x11_hidd+set}" = set; then
10601 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10602 else
10603 x11_hidd="auto"
10606 case "x-$x11_hidd" in
10607 x-yes|x-no|x-auto) ;;
10608 *) x11_hidd="auto" ;;
10609 esac
10611 if test "x-$x11_hidd" != "x-no" ; then
10613 { echo "$as_me:$LINENO: checking for X" >&5
10614 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10617 # Check whether --with-x was given.
10618 if test "${with_x+set}" = set; then
10619 withval=$with_x;
10622 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10623 if test "x$with_x" = xno; then
10624 # The user explicitly disabled X.
10625 have_x=disabled
10626 else
10627 case $x_includes,$x_libraries in #(
10628 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10629 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10630 { (exit 1); exit 1; }; };; #(
10631 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634 # One or both of the vars are not set, and there is no cached value.
10635 ac_x_includes=no ac_x_libraries=no
10636 rm -f -r conftest.dir
10637 if mkdir conftest.dir; then
10638 cd conftest.dir
10639 cat >Imakefile <<'_ACEOF'
10640 incroot:
10641 @echo incroot='${INCROOT}'
10642 usrlibdir:
10643 @echo usrlibdir='${USRLIBDIR}'
10644 libdir:
10645 @echo libdir='${LIBDIR}'
10646 _ACEOF
10647 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10649 for ac_var in incroot usrlibdir libdir; do
10650 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10651 done
10652 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10653 for ac_extension in a so sl; do
10654 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10655 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10656 ac_im_usrlibdir=$ac_im_libdir; break
10658 done
10659 # Screen out bogus values from the imake configuration. They are
10660 # bogus both because they are the default anyway, and because
10661 # using them would break gcc on systems where it needs fixed includes.
10662 case $ac_im_incroot in
10663 /usr/include) ac_x_includes= ;;
10664 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10665 esac
10666 case $ac_im_usrlibdir in
10667 /usr/lib | /lib) ;;
10668 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10669 esac
10671 cd ..
10672 rm -f -r conftest.dir
10675 # Standard set of common directories for X headers.
10676 # Check X11 before X11Rn because it is often a symlink to the current release.
10677 ac_x_header_dirs='
10678 /usr/X11/include
10679 /usr/X11R6/include
10680 /usr/X11R5/include
10681 /usr/X11R4/include
10683 /usr/include/X11
10684 /usr/include/X11R6
10685 /usr/include/X11R5
10686 /usr/include/X11R4
10688 /usr/local/X11/include
10689 /usr/local/X11R6/include
10690 /usr/local/X11R5/include
10691 /usr/local/X11R4/include
10693 /usr/local/include/X11
10694 /usr/local/include/X11R6
10695 /usr/local/include/X11R5
10696 /usr/local/include/X11R4
10698 /usr/X386/include
10699 /usr/x386/include
10700 /usr/XFree86/include/X11
10702 /usr/include
10703 /usr/local/include
10704 /usr/unsupported/include
10705 /usr/athena/include
10706 /usr/local/x11r5/include
10707 /usr/lpp/Xamples/include
10709 /usr/openwin/include
10710 /usr/openwin/share/include'
10712 if test "$ac_x_includes" = no; then
10713 # Guess where to find include files, by looking for Xlib.h.
10714 # First, try using that file with no special directory specified.
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 #include <X11/Xlib.h>
10722 _ACEOF
10723 if { (ac_try="$ac_cpp conftest.$ac_ext"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } >/dev/null && {
10736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 }; then
10739 # We can compile using X headers with no special include directory.
10740 ac_x_includes=
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 for ac_dir in $ac_x_header_dirs; do
10746 if test -r "$ac_dir/X11/Xlib.h"; then
10747 ac_x_includes=$ac_dir
10748 break
10750 done
10753 rm -f conftest.err conftest.$ac_ext
10754 fi # $ac_x_includes = no
10756 if test "$ac_x_libraries" = no; then
10757 # Check for the libraries.
10758 # See if we find them without any special options.
10759 # Don't add to $LIBS permanently.
10760 ac_save_LIBS=$LIBS
10761 LIBS="-lX11 $LIBS"
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h. */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 #include <X11/Xlib.h>
10770 main ()
10772 XrmInitialize ()
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_link") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest$ac_exeext &&
10794 $as_test_x conftest$ac_exeext; then
10795 LIBS=$ac_save_LIBS
10796 # We can link X programs with no special library path.
10797 ac_x_libraries=
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 LIBS=$ac_save_LIBS
10803 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10805 # Don't even attempt the hair of trying to link an X program!
10806 for ac_extension in a so sl; do
10807 if test -r "$ac_dir/libX11.$ac_extension"; then
10808 ac_x_libraries=$ac_dir
10809 break 2
10811 done
10812 done
10815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10816 conftest$ac_exeext conftest.$ac_ext
10817 fi # $ac_x_libraries = no
10819 case $ac_x_includes,$ac_x_libraries in #(
10820 no,* | *,no | *\'*)
10821 # Didn't find X, or a directory has "'" in its name.
10822 ac_cv_have_x="have_x=no";; #(
10824 # Record where we found X for the cache.
10825 ac_cv_have_x="have_x=yes\
10826 ac_x_includes='$ac_x_includes'\
10827 ac_x_libraries='$ac_x_libraries'"
10828 esac
10830 ;; #(
10831 *) have_x=yes;;
10832 esac
10833 eval "$ac_cv_have_x"
10834 fi # $with_x != no
10836 if test "$have_x" != yes; then
10837 { echo "$as_me:$LINENO: result: $have_x" >&5
10838 echo "${ECHO_T}$have_x" >&6; }
10839 no_x=yes
10840 else
10841 # If each of the values was on the command line, it overrides each guess.
10842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10844 # Update the cache value to reflect the command line values.
10845 ac_cv_have_x="have_x=yes\
10846 ac_x_includes='$x_includes'\
10847 ac_x_libraries='$x_libraries'"
10848 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10849 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10853 x_cflags=
10854 for path in $x_libraries
10856 x_cflags="$x_cflags -L$path"
10857 done
10859 for path in $x_includes
10861 x_cflags="$x_cflags -I$path"
10862 done
10864 if test "x-$no_x" = "x-yes" ; then
10866 if test "x-$x11_hidd" != "x-auto" ; then
10867 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10868 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10869 { (exit 1); exit 1; }; }
10872 else
10873 x11_hidd_target=kernel-x11gfx
10876 # Check whether --enable-x11_shm was given.
10877 if test "${enable_x11_shm+set}" = set; then
10878 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10879 else
10880 x11_hidd_shm="auto"
10883 case "x-$x11_hidd_shm" in
10884 x-yes|x-no|x-auto) ;;
10885 *) x11_hidd_shm="auto" ;;
10886 esac
10888 have_xshm=no
10890 if test "x-$x11_hidd_shm" != "x-no" ; then
10893 for ac_header in sys/ipc.h
10895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 ac_res=`eval echo '${'$as_ac_Header'}'`
10903 { echo "$as_me:$LINENO: result: $ac_res" >&5
10904 echo "${ECHO_T}$ac_res" >&6; }
10905 else
10906 # Is the header compilable?
10907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10916 #include <$ac_header>
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.$ac_objext; then
10935 ac_header_compiler=yes
10936 else
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_header_compiler=no
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10945 echo "${ECHO_T}$ac_header_compiler" >&6; }
10947 # Is the header present?
10948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <$ac_header>
10957 _ACEOF
10958 if { (ac_try="$ac_cpp conftest.$ac_ext"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } >/dev/null && {
10971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 }; then
10974 ac_header_preproc=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_header_preproc=no
10982 rm -f conftest.err conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10984 echo "${ECHO_T}$ac_header_preproc" >&6; }
10986 # So? What about this header?
10987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10988 yes:no: )
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10993 ac_header_preproc=yes
10995 no:yes:* )
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11010 esac
11011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 eval "$as_ac_Header=\$ac_header_preproc"
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11026 _ACEOF
11030 done
11033 for ac_header in sys/shm.h
11035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 ac_res=`eval echo '${'$as_ac_Header'}'`
11043 { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11045 else
11046 # Is the header compilable?
11047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 $ac_includes_default
11056 #include <$ac_header>
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (ac_try="$ac_compile"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_compile") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && {
11072 test -z "$ac_c_werror_flag" ||
11073 test ! -s conftest.err
11074 } && test -s conftest.$ac_objext; then
11075 ac_header_compiler=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_header_compiler=no
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11085 echo "${ECHO_T}$ac_header_compiler" >&6; }
11087 # Is the header present?
11088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <$ac_header>
11097 _ACEOF
11098 if { (ac_try="$ac_cpp conftest.$ac_ext"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } >/dev/null && {
11111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 }; then
11114 ac_header_preproc=yes
11115 else
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_preproc=no
11122 rm -f conftest.err conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11124 echo "${ECHO_T}$ac_header_preproc" >&6; }
11126 # So? What about this header?
11127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11128 yes:no: )
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11133 ac_header_preproc=yes
11135 no:yes:* )
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11150 esac
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 eval "$as_ac_Header=\$ac_header_preproc"
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166 _ACEOF
11170 done
11173 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11175 save_cflags="$CFLAGS"
11176 CFLAGS="$CFLAGS $x_cflags"
11177 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11178 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11179 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lXext $LIBS"
11184 cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h. */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194 #ifdef __cplusplus
11195 extern "C"
11196 #endif
11197 char XShmQueryExtension ();
11199 main ()
11201 return XShmQueryExtension ();
11203 return 0;
11205 _ACEOF
11206 rm -f conftest.$ac_objext conftest$ac_exeext
11207 if { (ac_try="$ac_link"
11208 case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211 esac
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_link") 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && {
11220 test -z "$ac_c_werror_flag" ||
11221 test ! -s conftest.err
11222 } && test -s conftest$ac_exeext &&
11223 $as_test_x conftest$ac_exeext; then
11224 ac_cv_lib_Xext_XShmQueryExtension=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_cv_lib_Xext_XShmQueryExtension=no
11232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11233 conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11236 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11237 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11238 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11239 have_xshm=yes
11242 CFLAGS="$save_cflags"
11246 if test "x-$have_xshm" = "x-yes" ; then
11247 DO_XSHM_SUPPORT="1"
11248 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11249 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11250 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11251 { (exit 1); exit 1; }; }
11252 else
11253 DO_XSHM_SUPPORT="0"
11257 # Check whether --enable-x11_vidmode was given.
11258 if test "${enable_x11_vidmode+set}" = set; then
11259 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11260 else
11261 x11_hidd_vidmode="auto"
11264 case "x-$x11_hidd_vidmode" in
11265 x-yes|x-no|x-auto) ;;
11266 *) x11_hidd_vidmode="auto" ;;
11267 esac
11269 have_vidmode=no
11271 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11273 save_cflags="$CFLAGS"
11274 CFLAGS="$CFLAGS $x_cflags"
11275 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11276 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11277 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 ac_check_lib_save_LIBS=$LIBS
11281 LIBS="-lXxf86vm $LIBS"
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char XF86VidModeQueryExtension ();
11297 main ()
11299 return XF86VidModeQueryExtension ();
11301 return 0;
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_link") 2>conftest.er1
11312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && {
11318 test -z "$ac_c_werror_flag" ||
11319 test ! -s conftest.err
11320 } && test -s conftest$ac_exeext &&
11321 $as_test_x conftest$ac_exeext; then
11322 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11323 else
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11331 conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11334 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11335 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11336 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11337 have_vidmode=yes
11340 CFLAGS="$save_cflags"
11343 if test "x-$have_vidmode" = "x-yes" ; then
11344 DO_VIDMODE_SUPPORT="1"
11345 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11346 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
11347 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
11348 { (exit 1); exit 1; }; }
11349 else
11350 DO_VIDMODE_SUPPORT="0"
11354 aros_host_x11_includes=$x_includes
11355 aros_host_x11_libdirs=$x_libraries
11359 # Check whether --enable-sdl_hidd was given.
11360 if test "${enable_sdl_hidd+set}" = set; then
11361 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11362 else
11363 sdl_hidd="auto"
11366 case "x-$sdl_hidd" in
11367 x-yes|x-no|x-auto) ;;
11368 *) sdl_hidd="auto" ;;
11369 esac
11371 if test "x-$sdl_hidd" != "x-no" ; then
11374 # Check whether --with-sdl-prefix was given.
11375 if test "${with_sdl_prefix+set}" = set; then
11376 withval=$with_sdl_prefix; sdl_prefix="$withval"
11377 else
11378 sdl_prefix=""
11382 # Check whether --with-sdl-exec-prefix was given.
11383 if test "${with_sdl_exec_prefix+set}" = set; then
11384 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11385 else
11386 sdl_exec_prefix=""
11389 # Check whether --enable-sdltest was given.
11390 if test "${enable_sdltest+set}" = set; then
11391 enableval=$enable_sdltest;
11392 else
11393 enable_sdltest=yes
11397 if test x$sdl_exec_prefix != x ; then
11398 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11399 if test x${SDL_CONFIG+set} != xset ; then
11400 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11403 if test x$sdl_prefix != x ; then
11404 sdl_args="$sdl_args --prefix=$sdl_prefix"
11405 if test x${SDL_CONFIG+set} != xset ; then
11406 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11410 if test "x$prefix" != xNONE; then
11411 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11413 # Extract the first word of "sdl-config", so it can be a program name with args.
11414 set dummy sdl-config; ac_word=$2
11415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11417 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 case $SDL_CONFIG in
11421 [\\/]* | ?:[\\/]*)
11422 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11436 done
11437 done
11438 IFS=$as_save_IFS
11440 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11442 esac
11444 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11445 if test -n "$SDL_CONFIG"; then
11446 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
11447 echo "${ECHO_T}$SDL_CONFIG" >&6; }
11448 else
11449 { echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6; }
11454 min_sdl_version=1.2.10
11455 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
11456 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
11457 no_sdl=""
11458 if test "$SDL_CONFIG" = "no" ; then
11459 no_sdl=yes
11460 else
11461 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11462 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11464 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11466 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11468 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11470 if test "x$enable_sdltest" = "xyes" ; then
11471 ac_save_CFLAGS="$CFLAGS"
11472 ac_save_CXXFLAGS="$CXXFLAGS"
11473 ac_save_LIBS="$LIBS"
11474 CFLAGS="$CFLAGS $SDL_CFLAGS"
11475 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11476 LIBS="$LIBS $SDL_LIBS"
11477 rm -f conf.sdltest
11478 if test "$cross_compiling" = yes; then
11479 echo $ac_n "cross compiling; assumed OK... $ac_c"
11480 else
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11488 #include <stdio.h>
11489 #include <stdlib.h>
11490 #include <string.h>
11491 #include "SDL.h"
11493 char*
11494 my_strdup (char *str)
11496 char *new_str;
11498 if (str)
11500 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11501 strcpy (new_str, str);
11503 else
11504 new_str = NULL;
11506 return new_str;
11509 int main (int argc, char *argv[])
11511 int major, minor, micro;
11512 char *tmp_version;
11514 /* This hangs on some systems (?)
11515 system ("touch conf.sdltest");
11517 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11519 /* HP/UX 9 (%@#!) writes to sscanf strings */
11520 tmp_version = my_strdup("$min_sdl_version");
11521 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11522 printf("%s, bad version string\n", "$min_sdl_version");
11523 exit(1);
11526 if (($sdl_major_version > major) ||
11527 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11528 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11530 return 0;
11532 else
11534 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11535 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11536 printf("*** best to upgrade to the required version.\n");
11537 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11538 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11539 printf("*** config.cache before re-running configure\n");
11540 return 1;
11545 _ACEOF
11546 rm -f conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11567 else
11568 echo "$as_me: program exited with status $ac_status" >&5
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ( exit $ac_status )
11573 no_sdl=yes
11575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11579 CFLAGS="$ac_save_CFLAGS"
11580 CXXFLAGS="$ac_save_CXXFLAGS"
11581 LIBS="$ac_save_LIBS"
11584 if test "x$no_sdl" = x ; then
11585 { echo "$as_me:$LINENO: result: yes" >&5
11586 echo "${ECHO_T}yes" >&6; }
11587 have_sdl="yes"
11588 else
11589 { echo "$as_me:$LINENO: result: no" >&5
11590 echo "${ECHO_T}no" >&6; }
11591 if test "$SDL_CONFIG" = "no" ; then
11592 echo "*** The sdl-config script installed by SDL could not be found"
11593 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11594 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11595 echo "*** full path to sdl-config."
11596 else
11597 if test -f conf.sdltest ; then
11599 else
11600 echo "*** Could not run SDL test program, checking why..."
11601 CFLAGS="$CFLAGS $SDL_CFLAGS"
11602 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11603 LIBS="$LIBS $SDL_LIBS"
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11611 #include <stdio.h>
11612 #include "SDL.h"
11614 int main(int argc, char *argv[])
11615 { return 0; }
11616 #undef main
11617 #define main K_and_R_C_main
11620 main ()
11622 return 0;
11624 return 0;
11626 _ACEOF
11627 rm -f conftest.$ac_objext conftest$ac_exeext
11628 if { (ac_try="$ac_link"
11629 case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_link") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest$ac_exeext &&
11644 $as_test_x conftest$ac_exeext; then
11645 echo "*** The test program compiled, but did not run. This usually means"
11646 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11647 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11648 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11649 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11650 echo "*** is required on your system"
11651 echo "***"
11652 echo "*** If you have an old version installed, it is best to remove it, although"
11653 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11654 else
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 echo "*** The test program failed to compile or link. See the file config.log for the"
11659 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11660 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11661 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11665 conftest$ac_exeext conftest.$ac_ext
11666 CFLAGS="$ac_save_CFLAGS"
11667 CXXFLAGS="$ac_save_CXXFLAGS"
11668 LIBS="$ac_save_LIBS"
11671 SDL_CFLAGS=""
11672 SDL_LIBS=""
11673 have_sdl="no"
11677 rm -f conf.sdltest
11680 if test "x-$have_sdl" != "x-yes" ; then
11682 if test "x-$sdl_hidd" != "x-auto" ; then
11683 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11684 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11685 { (exit 1); exit 1; }; }
11688 else
11689 sdl_hidd_target=kernel-hidd-sdl
11690 aros_host_sdl_cflags=SDL_CFLAGS
11691 aros_host_sdl_libs=SDL_LIBS
11698 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11699 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11700 # Check whether --enable-dbus was given.
11701 if test "${enable_dbus+set}" = set; then
11702 enableval=$enable_dbus; dbus="yes"
11703 else
11704 dbus="no"
11707 if test "$dbus" = "yes" ; then
11708 ENABLE_DBUS=1
11709 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11710 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11711 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11712 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11713 else
11714 ENABLE_DBUS=0
11716 { echo "$as_me:$LINENO: result: $dbus" >&5
11717 echo "${ECHO_T}$dbus" >&6; }
11721 # Generic
11728 # Host related
11751 # Target Related
11791 # Graphics Related
11806 # Native version related
11810 # Palm native version related
11813 # Unix/Hosted version related
11816 # DBUS related
11823 # Debug related
11829 # Collect-aros stuff: "-ius" to ignore undefined symbols
11832 # C compiler related
11835 case "$aros_flavour" in
11836 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11837 aros_flavour="emulation" ;;
11838 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11839 aros_flavour="emulation" ;;
11840 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11841 aros_flavour="standalone";;
11842 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11843 aros_flavour="native" ;;
11844 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11845 aros_flavour="native" ;;
11846 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11847 aros_flavour="linklib" ;;
11848 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11849 aros_flavour="palmnative" ;;
11850 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11851 aros_flavour="mac68knative" ;;
11852 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11853 aros_flavour="ppcnative" ;;
11854 esac
11856 if test ! -d ${aros_inc_dir} ; then
11857 ${MKDIR} ${aros_inc_dir}
11859 if test ! -d ${aros_geninc_dir} ; then
11860 ${MKDIR} ${aros_geninc_dir}
11862 if test ! -d ${aros_hostcfg_dir} ; then
11863 ${MKDIR} ${aros_hostcfg_dir}
11865 if test ! -d ${aros_targetcfg_dir} ; then
11866 ${MKDIR} ${aros_targetcfg_dir}
11868 if test ! -d ${aros_tools_dir} ; then
11869 ${MKDIR} ${aros_tools_dir}
11871 if test ! -d ${aros_scripts_dir} ; then
11872 ${MKDIR} ${aros_scripts_dir}
11875 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11878 ac_config_commands="$ac_config_commands compiler_executable"
11880 ac_config_commands="$ac_config_commands genshared_executable"
11882 ac_config_commands="$ac_config_commands genmf_executable"
11884 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11887 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"
11890 cat >confcache <<\_ACEOF
11891 # This file is a shell script that caches the results of configure
11892 # tests run on this system so they can be shared between configure
11893 # scripts and configure runs, see configure's option --config-cache.
11894 # It is not useful on other systems. If it contains results you don't
11895 # want to keep, you may remove or edit it.
11897 # config.status only pays attention to the cache file if you give it
11898 # the --recheck option to rerun configure.
11900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11902 # following values.
11904 _ACEOF
11906 # The following way of writing the cache mishandles newlines in values,
11907 # but we know of no workaround that is simple, portable, and efficient.
11908 # So, we kill variables containing newlines.
11909 # Ultrix sh set writes to stderr and can't be redirected directly,
11910 # and sets the high bit in the cache file unless we assign to the vars.
11912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11913 eval ac_val=\$$ac_var
11914 case $ac_val in #(
11915 *${as_nl}*)
11916 case $ac_var in #(
11917 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11919 esac
11920 case $ac_var in #(
11921 _ | IFS | as_nl) ;; #(
11922 *) $as_unset $ac_var ;;
11923 esac ;;
11924 esac
11925 done
11927 (set) 2>&1 |
11928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11929 *${as_nl}ac_space=\ *)
11930 # `set' does not quote correctly, so add quotes (double-quote
11931 # substitution turns \\\\ into \\, and sed turns \\ into \).
11932 sed -n \
11933 "s/'/'\\\\''/g;
11934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11935 ;; #(
11937 # `set' quotes correctly as required by POSIX, so do not add quotes.
11938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11940 esac |
11941 sort
11943 sed '
11944 /^ac_cv_env_/b end
11945 t clear
11946 :clear
11947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11948 t end
11949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11950 :end' >>confcache
11951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11952 if test -w "$cache_file"; then
11953 test "x$cache_file" != "x/dev/null" &&
11954 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11955 echo "$as_me: updating cache $cache_file" >&6;}
11956 cat confcache >$cache_file
11957 else
11958 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11959 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11962 rm -f confcache
11964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11965 # Let make expand exec_prefix.
11966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11968 DEFS=-DHAVE_CONFIG_H
11970 ac_libobjs=
11971 ac_ltlibobjs=
11972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11973 # 1. Remove the extension, and $U if already installed.
11974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11975 ac_i=`echo "$ac_i" | sed "$ac_script"`
11976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11977 # will be set to the directory where LIBOBJS objects are built.
11978 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11979 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11980 done
11981 LIBOBJS=$ac_libobjs
11983 LTLIBOBJS=$ac_ltlibobjs
11987 : ${CONFIG_STATUS=./config.status}
11988 ac_clean_files_save=$ac_clean_files
11989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11992 cat >$CONFIG_STATUS <<_ACEOF
11993 #! $SHELL
11994 # Generated by $as_me.
11995 # Run this file to recreate the current configuration.
11996 # Compiler output produced by configure, useful for debugging
11997 # configure, is in config.log if it exists.
11999 debug=false
12000 ac_cs_recheck=false
12001 ac_cs_silent=false
12002 SHELL=\${CONFIG_SHELL-$SHELL}
12003 _ACEOF
12005 cat >>$CONFIG_STATUS <<\_ACEOF
12006 ## --------------------- ##
12007 ## M4sh Initialization. ##
12008 ## --------------------- ##
12010 # Be more Bourne compatible
12011 DUALCASE=1; export DUALCASE # for MKS sh
12012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12013 emulate sh
12014 NULLCMD=:
12015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12016 # is contrary to our usage. Disable this feature.
12017 alias -g '${1+"$@"}'='"$@"'
12018 setopt NO_GLOB_SUBST
12019 else
12020 case `(set -o) 2>/dev/null` in
12021 *posix*) set -o posix ;;
12022 esac
12029 # PATH needs CR
12030 # Avoid depending upon Character Ranges.
12031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12034 as_cr_digits='0123456789'
12035 as_cr_alnum=$as_cr_Letters$as_cr_digits
12037 # The user is always right.
12038 if test "${PATH_SEPARATOR+set}" != set; then
12039 echo "#! /bin/sh" >conf$$.sh
12040 echo "exit 0" >>conf$$.sh
12041 chmod +x conf$$.sh
12042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12043 PATH_SEPARATOR=';'
12044 else
12045 PATH_SEPARATOR=:
12047 rm -f conf$$.sh
12050 # Support unset when possible.
12051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12052 as_unset=unset
12053 else
12054 as_unset=false
12058 # IFS
12059 # We need space, tab and new line, in precisely that order. Quoting is
12060 # there to prevent editors from complaining about space-tab.
12061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12062 # splitting by setting IFS to empty value.)
12063 as_nl='
12065 IFS=" "" $as_nl"
12067 # Find who we are. Look in the path if we contain no directory separator.
12068 case $0 in
12069 *[\\/]* ) as_myself=$0 ;;
12070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12076 done
12077 IFS=$as_save_IFS
12080 esac
12081 # We did not find ourselves, most probably we were run as `sh COMMAND'
12082 # in which case we are not to be found in the path.
12083 if test "x$as_myself" = x; then
12084 as_myself=$0
12086 if test ! -f "$as_myself"; then
12087 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12088 { (exit 1); exit 1; }
12091 # Work around bugs in pre-3.0 UWIN ksh.
12092 for as_var in ENV MAIL MAILPATH
12093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12094 done
12095 PS1='$ '
12096 PS2='> '
12097 PS4='+ '
12099 # NLS nuisances.
12100 for as_var in \
12101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12103 LC_TELEPHONE LC_TIME
12105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12106 eval $as_var=C; export $as_var
12107 else
12108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12110 done
12112 # Required to use basename.
12113 if expr a : '\(a\)' >/dev/null 2>&1 &&
12114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12115 as_expr=expr
12116 else
12117 as_expr=false
12120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12121 as_basename=basename
12122 else
12123 as_basename=false
12127 # Name of the executable.
12128 as_me=`$as_basename -- "$0" ||
12129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12130 X"$0" : 'X\(//\)$' \| \
12131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12132 echo X/"$0" |
12133 sed '/^.*\/\([^/][^/]*\)\/*$/{
12134 s//\1/
12137 /^X\/\(\/\/\)$/{
12138 s//\1/
12141 /^X\/\(\/\).*/{
12142 s//\1/
12145 s/.*/./; q'`
12147 # CDPATH.
12148 $as_unset CDPATH
12152 as_lineno_1=$LINENO
12153 as_lineno_2=$LINENO
12154 test "x$as_lineno_1" != "x$as_lineno_2" &&
12155 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12158 # uniformly replaced by the line number. The first 'sed' inserts a
12159 # line-number line after each line using $LINENO; the second 'sed'
12160 # does the real work. The second script uses 'N' to pair each
12161 # line-number line with the line containing $LINENO, and appends
12162 # trailing '-' during substitution so that $LINENO is not a special
12163 # case at line end.
12164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12165 # scripts with optimization help from Paolo Bonzini. Blame Lee
12166 # E. McMahon (1931-1989) for sed's syntax. :-)
12167 sed -n '
12169 /[$]LINENO/=
12170 ' <$as_myself |
12171 sed '
12172 s/[$]LINENO.*/&-/
12173 t lineno
12175 :lineno
12177 :loop
12178 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12179 t loop
12180 s/-\n.*//
12181 ' >$as_me.lineno &&
12182 chmod +x "$as_me.lineno" ||
12183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12184 { (exit 1); exit 1; }; }
12186 # Don't try to exec as it changes $[0], causing all sort of problems
12187 # (the dirname of $[0] is not the place where we might find the
12188 # original and so on. Autoconf is especially sensitive to this).
12189 . "./$as_me.lineno"
12190 # Exit status is that of the last command.
12191 exit
12195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12196 as_dirname=dirname
12197 else
12198 as_dirname=false
12201 ECHO_C= ECHO_N= ECHO_T=
12202 case `echo -n x` in
12203 -n*)
12204 case `echo 'x\c'` in
12205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12206 *) ECHO_C='\c';;
12207 esac;;
12209 ECHO_N='-n';;
12210 esac
12212 if expr a : '\(a\)' >/dev/null 2>&1 &&
12213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12214 as_expr=expr
12215 else
12216 as_expr=false
12219 rm -f conf$$ conf$$.exe conf$$.file
12220 if test -d conf$$.dir; then
12221 rm -f conf$$.dir/conf$$.file
12222 else
12223 rm -f conf$$.dir
12224 mkdir conf$$.dir
12226 echo >conf$$.file
12227 if ln -s conf$$.file conf$$ 2>/dev/null; then
12228 as_ln_s='ln -s'
12229 # ... but there are two gotchas:
12230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12232 # In both cases, we have to default to `cp -p'.
12233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12234 as_ln_s='cp -p'
12235 elif ln conf$$.file conf$$ 2>/dev/null; then
12236 as_ln_s=ln
12237 else
12238 as_ln_s='cp -p'
12240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12241 rmdir conf$$.dir 2>/dev/null
12243 if mkdir -p . 2>/dev/null; then
12244 as_mkdir_p=:
12245 else
12246 test -d ./-p && rmdir ./-p
12247 as_mkdir_p=false
12250 if test -x / >/dev/null 2>&1; then
12251 as_test_x='test -x'
12252 else
12253 if ls -dL / >/dev/null 2>&1; then
12254 as_ls_L_option=L
12255 else
12256 as_ls_L_option=
12258 as_test_x='
12259 eval sh -c '\''
12260 if test -d "$1"; then
12261 test -d "$1/.";
12262 else
12263 case $1 in
12264 -*)set "./$1";;
12265 esac;
12266 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12267 ???[sx]*):;;*)false;;esac;fi
12268 '\'' sh
12271 as_executable_p=$as_test_x
12273 # Sed expression to map a string onto a valid CPP name.
12274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12276 # Sed expression to map a string onto a valid variable name.
12277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12280 exec 6>&1
12282 # Save the log message, to keep $[0] and so on meaningful, and to
12283 # report actual input values of CONFIG_FILES etc. instead of their
12284 # values after options handling.
12285 ac_log="
12286 This file was extended by $as_me, which was
12287 generated by GNU Autoconf 2.61. Invocation command line was
12289 CONFIG_FILES = $CONFIG_FILES
12290 CONFIG_HEADERS = $CONFIG_HEADERS
12291 CONFIG_LINKS = $CONFIG_LINKS
12292 CONFIG_COMMANDS = $CONFIG_COMMANDS
12293 $ $0 $@
12295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12298 _ACEOF
12300 cat >>$CONFIG_STATUS <<_ACEOF
12301 # Files that config.status was made for.
12302 config_files="$ac_config_files"
12303 config_headers="$ac_config_headers"
12304 config_commands="$ac_config_commands"
12306 _ACEOF
12308 cat >>$CONFIG_STATUS <<\_ACEOF
12309 ac_cs_usage="\
12310 \`$as_me' instantiates files from templates according to the
12311 current configuration.
12313 Usage: $0 [OPTIONS] [FILE]...
12315 -h, --help print this help, then exit
12316 -V, --version print version number and configuration settings, then exit
12317 -q, --quiet do not print progress messages
12318 -d, --debug don't remove temporary files
12319 --recheck update $as_me by reconfiguring in the same conditions
12320 --file=FILE[:TEMPLATE]
12321 instantiate the configuration file FILE
12322 --header=FILE[:TEMPLATE]
12323 instantiate the configuration header FILE
12325 Configuration files:
12326 $config_files
12328 Configuration headers:
12329 $config_headers
12331 Configuration commands:
12332 $config_commands
12334 Report bugs to <bug-autoconf@gnu.org>."
12336 _ACEOF
12337 cat >>$CONFIG_STATUS <<_ACEOF
12338 ac_cs_version="\\
12339 config.status
12340 configured by $0, generated by GNU Autoconf 2.61,
12341 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12343 Copyright (C) 2006 Free Software Foundation, Inc.
12344 This config.status script is free software; the Free Software Foundation
12345 gives unlimited permission to copy, distribute and modify it."
12347 ac_pwd='$ac_pwd'
12348 srcdir='$srcdir'
12349 _ACEOF
12351 cat >>$CONFIG_STATUS <<\_ACEOF
12352 # If no file are specified by the user, then we need to provide default
12353 # value. By we need to know if files were specified by the user.
12354 ac_need_defaults=:
12355 while test $# != 0
12357 case $1 in
12358 --*=*)
12359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12361 ac_shift=:
12364 ac_option=$1
12365 ac_optarg=$2
12366 ac_shift=shift
12368 esac
12370 case $ac_option in
12371 # Handling of the options.
12372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12373 ac_cs_recheck=: ;;
12374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12375 echo "$ac_cs_version"; exit ;;
12376 --debug | --debu | --deb | --de | --d | -d )
12377 debug=: ;;
12378 --file | --fil | --fi | --f )
12379 $ac_shift
12380 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12381 ac_need_defaults=false;;
12382 --header | --heade | --head | --hea )
12383 $ac_shift
12384 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12385 ac_need_defaults=false;;
12386 --he | --h)
12387 # Conflict between --help and --header
12388 { echo "$as_me: error: ambiguous option: $1
12389 Try \`$0 --help' for more information." >&2
12390 { (exit 1); exit 1; }; };;
12391 --help | --hel | -h )
12392 echo "$ac_cs_usage"; exit ;;
12393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12395 ac_cs_silent=: ;;
12397 # This is an error.
12398 -*) { echo "$as_me: error: unrecognized option: $1
12399 Try \`$0 --help' for more information." >&2
12400 { (exit 1); exit 1; }; } ;;
12402 *) ac_config_targets="$ac_config_targets $1"
12403 ac_need_defaults=false ;;
12405 esac
12406 shift
12407 done
12409 ac_configure_extra_args=
12411 if $ac_cs_silent; then
12412 exec 6>/dev/null
12413 ac_configure_extra_args="$ac_configure_extra_args --silent"
12416 _ACEOF
12417 cat >>$CONFIG_STATUS <<_ACEOF
12418 if \$ac_cs_recheck; then
12419 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12420 CONFIG_SHELL=$SHELL
12421 export CONFIG_SHELL
12422 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12425 _ACEOF
12426 cat >>$CONFIG_STATUS <<\_ACEOF
12427 exec 5>>config.log
12429 echo
12430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12431 ## Running $as_me. ##
12432 _ASBOX
12433 echo "$ac_log"
12434 } >&5
12436 _ACEOF
12437 cat >>$CONFIG_STATUS <<_ACEOF
12439 # INIT-COMMANDS
12442 aros_tools_dir=${aros_tools_dir}
12443 aros_target_cpu=${aros_target_cpu}
12444 aros_target_arch=${aros_target_arch}
12445 aros_target_suffix=${aros_target_suffix}
12446 aros_target_nm_ln=${aros_target_nm_ln}
12447 aros_target_as_ln=${aros_target_as_ln}
12448 aros_target_ar_ln=${aros_target_ar_ln}
12449 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12450 aros_target_objdump_ln=${aros_target_objdump_ln}
12451 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12452 aros_target_strip_ln=${aros_target_strip_ln}
12455 aros_scripts_dir=${aros_scripts_dir}
12457 aros_tools_dir=${aros_tools_dir}
12460 _ACEOF
12462 cat >>$CONFIG_STATUS <<\_ACEOF
12464 # Handling of arguments.
12465 for ac_config_target in $ac_config_targets
12467 case $ac_config_target in
12468 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12469 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12470 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
12471 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12472 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
12473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12474 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
12475 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12476 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12477 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12478 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12479 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12480 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12481 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12482 "${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" ;;
12483 "${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" ;;
12484 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
12485 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12486 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
12487 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12489 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12490 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12491 { (exit 1); exit 1; }; };;
12492 esac
12493 done
12496 # If the user did not use the arguments to specify the items to instantiate,
12497 # then the envvar interface is used. Set only those that are not.
12498 # We use the long form for the default assignment because of an extremely
12499 # bizarre bug on SunOS 4.1.3.
12500 if $ac_need_defaults; then
12501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12506 # Have a temporary directory for convenience. Make it in the build tree
12507 # simply because there is no reason against having it here, and in addition,
12508 # creating and moving files from /tmp can sometimes cause problems.
12509 # Hook for its removal unless debugging.
12510 # Note that there is a small window in which the directory will not be cleaned:
12511 # after its creation but before its name has been assigned to `$tmp'.
12512 $debug ||
12514 tmp=
12515 trap 'exit_status=$?
12516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12518 trap '{ (exit 1); exit 1; }' 1 2 13 15
12520 # Create a (secure) tmp directory for tmp files.
12523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12524 test -n "$tmp" && test -d "$tmp"
12525 } ||
12527 tmp=./conf$$-$RANDOM
12528 (umask 077 && mkdir "$tmp")
12529 } ||
12531 echo "$me: cannot create a temporary directory in ." >&2
12532 { (exit 1); exit 1; }
12536 # Set up the sed scripts for CONFIG_FILES section.
12539 # No need to generate the scripts if there are no CONFIG_FILES.
12540 # This happens for instance when ./config.status config.h
12541 if test -n "$CONFIG_FILES"; then
12543 _ACEOF
12547 ac_delim='%!_!# '
12548 for ac_last_try in false false false false false :; do
12549 cat >conf$$subs.sed <<_ACEOF
12550 SHELL!$SHELL$ac_delim
12551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12557 exec_prefix!$exec_prefix$ac_delim
12558 prefix!$prefix$ac_delim
12559 program_transform_name!$program_transform_name$ac_delim
12560 bindir!$bindir$ac_delim
12561 sbindir!$sbindir$ac_delim
12562 libexecdir!$libexecdir$ac_delim
12563 datarootdir!$datarootdir$ac_delim
12564 datadir!$datadir$ac_delim
12565 sysconfdir!$sysconfdir$ac_delim
12566 sharedstatedir!$sharedstatedir$ac_delim
12567 localstatedir!$localstatedir$ac_delim
12568 includedir!$includedir$ac_delim
12569 oldincludedir!$oldincludedir$ac_delim
12570 docdir!$docdir$ac_delim
12571 infodir!$infodir$ac_delim
12572 htmldir!$htmldir$ac_delim
12573 dvidir!$dvidir$ac_delim
12574 pdfdir!$pdfdir$ac_delim
12575 psdir!$psdir$ac_delim
12576 libdir!$libdir$ac_delim
12577 localedir!$localedir$ac_delim
12578 mandir!$mandir$ac_delim
12579 DEFS!$DEFS$ac_delim
12580 ECHO_C!$ECHO_C$ac_delim
12581 ECHO_N!$ECHO_N$ac_delim
12582 ECHO_T!$ECHO_T$ac_delim
12583 LIBS!$LIBS$ac_delim
12584 build_alias!$build_alias$ac_delim
12585 host_alias!$host_alias$ac_delim
12586 target_alias!$target_alias$ac_delim
12587 build!$build$ac_delim
12588 build_cpu!$build_cpu$ac_delim
12589 build_vendor!$build_vendor$ac_delim
12590 build_os!$build_os$ac_delim
12591 host!$host$ac_delim
12592 host_cpu!$host_cpu$ac_delim
12593 host_vendor!$host_vendor$ac_delim
12594 host_os!$host_os$ac_delim
12595 CC!$CC$ac_delim
12596 CFLAGS!$CFLAGS$ac_delim
12597 LDFLAGS!$LDFLAGS$ac_delim
12598 CPPFLAGS!$CPPFLAGS$ac_delim
12599 ac_ct_CC!$ac_ct_CC$ac_delim
12600 EXEEXT!$EXEEXT$ac_delim
12601 OBJEXT!$OBJEXT$ac_delim
12602 CPP!$CPP$ac_delim
12603 AWK!$AWK$ac_delim
12604 MMAKE!$MMAKE$ac_delim
12605 aros_host_ld!$aros_host_ld$ac_delim
12606 aros_host_aclocal!$aros_host_aclocal$ac_delim
12607 aros_host_autoconf!$aros_host_autoconf$ac_delim
12608 aros_host_autoheader!$aros_host_autoheader$ac_delim
12609 aros_host_automake!$aros_host_automake$ac_delim
12610 aros_host_ar!$aros_host_ar$ac_delim
12611 aros_host_ranlib!$aros_host_ranlib$ac_delim
12612 aros_host_strip!$aros_host_strip$ac_delim
12613 RM!$RM$ac_delim
12614 CP!$CP$ac_delim
12615 MV!$MV$ac_delim
12616 ECHO!$ECHO$ac_delim
12617 MKDIR!$MKDIR$ac_delim
12618 TOUCH!$TOUCH$ac_delim
12619 SORT!$SORT$ac_delim
12620 UNIQ!$UNIQ$ac_delim
12621 NOP!$NOP$ac_delim
12622 CAT!$CAT$ac_delim
12623 BISON!$BISON$ac_delim
12624 FLEX!$FLEX$ac_delim
12625 PNGTOPNM!$PNGTOPNM$ac_delim
12626 PPMTOILBM!$PPMTOILBM$ac_delim
12627 SED!$SED$ac_delim
12628 CHMOD!$CHMOD$ac_delim
12629 PYTHON!$PYTHON$ac_delim
12630 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12631 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12632 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12633 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12634 pythondir!$pythondir$ac_delim
12635 pkgpythondir!$pkgpythondir$ac_delim
12636 pyexecdir!$pyexecdir$ac_delim
12637 pkgpyexecdir!$pkgpyexecdir$ac_delim
12638 FOR!$FOR$ac_delim
12639 IF!$IF$ac_delim
12640 TEST!$TEST$ac_delim
12641 CMP!$CMP$ac_delim
12642 GREP!$GREP$ac_delim
12643 EGREP!$EGREP$ac_delim
12644 LIBOBJS!$LIBOBJS$ac_delim
12645 DISTCC!$DISTCC$ac_delim
12646 CCACHE!$CCACHE$ac_delim
12647 _ACEOF
12649 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12650 break
12651 elif $ac_last_try; then
12652 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12654 { (exit 1); exit 1; }; }
12655 else
12656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12658 done
12660 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12661 if test -n "$ac_eof"; then
12662 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12663 ac_eof=`expr $ac_eof + 1`
12666 cat >>$CONFIG_STATUS <<_ACEOF
12667 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12669 _ACEOF
12670 sed '
12671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12672 s/^/s,@/; s/!/@,|#_!!_#|/
12675 s/'"$ac_delim"'$/,g/; t
12676 s/$/\\/; p
12677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12678 ' >>$CONFIG_STATUS <conf$$subs.sed
12679 rm -f conf$$subs.sed
12680 cat >>$CONFIG_STATUS <<_ACEOF
12681 CEOF$ac_eof
12682 _ACEOF
12685 ac_delim='%!_!# '
12686 for ac_last_try in false false false false false :; do
12687 cat >conf$$subs.sed <<_ACEOF
12688 LIBLZO!$LIBLZO$ac_delim
12689 aros_kernel_cc!$aros_kernel_cc$ac_delim
12690 aros_target_as_ln!$aros_target_as_ln$ac_delim
12691 aros_kernel_ld!$aros_kernel_ld$ac_delim
12692 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12693 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12694 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12695 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12696 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12697 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12698 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12699 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12700 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12701 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12702 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12703 XMKMF!$XMKMF$ac_delim
12704 SDL_CONFIG!$SDL_CONFIG$ac_delim
12705 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12706 SDL_LIBS!$SDL_LIBS$ac_delim
12707 aros_arch!$aros_arch$ac_delim
12708 aros_cpu!$aros_cpu$ac_delim
12709 aros_flavour!$aros_flavour$ac_delim
12710 aros_flavour_uc!$aros_flavour_uc$ac_delim
12711 TOPDIR!$TOPDIR$ac_delim
12712 aros_cc_pre!$aros_cc_pre$ac_delim
12713 aros_host_arch!$aros_host_arch$ac_delim
12714 aros_host_cpu!$aros_host_cpu$ac_delim
12715 aros_host_cc!$aros_host_cc$ac_delim
12716 aros_host_make!$aros_host_make$ac_delim
12717 aros_host_cflags!$aros_host_cflags$ac_delim
12718 aros_host_ldflags!$aros_host_ldflags$ac_delim
12719 aros_host_debug!$aros_host_debug$ac_delim
12720 aros_host_mkdep!$aros_host_mkdep$ac_delim
12721 aros_host_mkargs!$aros_host_mkargs$ac_delim
12722 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12723 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12724 aros_tools_dir!$aros_tools_dir$ac_delim
12725 aros_target_bootloader!$aros_target_bootloader$ac_delim
12726 aros_target_arch!$aros_target_arch$ac_delim
12727 aros_target_cpu!$aros_target_cpu$ac_delim
12728 aros_target_variant!$aros_target_variant$ac_delim
12729 aros_target_suffix!$aros_target_suffix$ac_delim
12730 aros_target_incl!$aros_target_incl$ac_delim
12731 aros_target_ar!$aros_target_ar$ac_delim
12732 aros_target_ranlib!$aros_target_ranlib$ac_delim
12733 aros_kernel_nm!$aros_kernel_nm$ac_delim
12734 aros_target_cc!$aros_target_cc$ac_delim
12735 aros_target_as!$aros_target_as$ac_delim
12736 aros_target_ld!$aros_target_ld$ac_delim
12737 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12738 aros_target_cc_path!$aros_target_cc_path$ac_delim
12739 aros_target_objdump!$aros_target_objdump$ac_delim
12740 aros_target_objcopy!$aros_target_objcopy$ac_delim
12741 aros_target_strip!$aros_target_strip$ac_delim
12742 aros_target_nm!$aros_target_nm$ac_delim
12743 aros_shared_default!$aros_shared_default$ac_delim
12744 aros_shared_ld!$aros_shared_ld$ac_delim
12745 aros_object_format!$aros_object_format$ac_delim
12746 aros_compiler_libs!$aros_compiler_libs$ac_delim
12747 aros_config_cflags!$aros_config_cflags$ac_delim
12748 aros_config_aflags!$aros_config_aflags$ac_delim
12749 aros_config_ldflags!$aros_config_ldflags$ac_delim
12750 aros_shared_cflags!$aros_shared_cflags$ac_delim
12751 aros_shared_aflags!$aros_shared_aflags$ac_delim
12752 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12753 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12754 aros_debug_cflags!$aros_debug_cflags$ac_delim
12755 aros_debug_aflags!$aros_debug_aflags$ac_delim
12756 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12757 aros_target_genmap!$aros_target_genmap$ac_delim
12758 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12759 x11_hidd_target!$x11_hidd_target$ac_delim
12760 sdl_hidd_target!$sdl_hidd_target$ac_delim
12761 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12762 aros_default_wbheight!$aros_default_wbheight$ac_delim
12763 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12764 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12765 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12766 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
12767 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
12768 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
12769 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
12770 aros_bochs_hack!$aros_bochs_hack$ac_delim
12771 aros_serial_debug!$aros_serial_debug$ac_delim
12772 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12773 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12774 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12775 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12776 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12777 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12778 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12779 aros_debug!$aros_debug$ac_delim
12780 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12781 aros_stack_debug!$aros_stack_debug$ac_delim
12782 aros_modules_debug!$aros_modules_debug$ac_delim
12783 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12784 gcc_target_cpu!$gcc_target_cpu$ac_delim
12785 _ACEOF
12787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12788 break
12789 elif $ac_last_try; then
12790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12791 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12792 { (exit 1); exit 1; }; }
12793 else
12794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12796 done
12798 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12799 if test -n "$ac_eof"; then
12800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12801 ac_eof=`expr $ac_eof + 1`
12804 cat >>$CONFIG_STATUS <<_ACEOF
12805 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12807 _ACEOF
12808 sed '
12809 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12810 s/^/s,@/; s/!/@,|#_!!_#|/
12813 s/'"$ac_delim"'$/,g/; t
12814 s/$/\\/; p
12815 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12816 ' >>$CONFIG_STATUS <conf$$subs.sed
12817 rm -f conf$$subs.sed
12818 cat >>$CONFIG_STATUS <<_ACEOF
12819 CEOF$ac_eof
12820 _ACEOF
12823 ac_delim='%!_!# '
12824 for ac_last_try in false false false false false :; do
12825 cat >conf$$subs.sed <<_ACEOF
12826 LTLIBOBJS!$LTLIBOBJS$ac_delim
12827 _ACEOF
12829 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
12830 break
12831 elif $ac_last_try; then
12832 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12833 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12834 { (exit 1); exit 1; }; }
12835 else
12836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12838 done
12840 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12841 if test -n "$ac_eof"; then
12842 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12843 ac_eof=`expr $ac_eof + 1`
12846 cat >>$CONFIG_STATUS <<_ACEOF
12847 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
12848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12849 _ACEOF
12850 sed '
12851 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12852 s/^/s,@/; s/!/@,|#_!!_#|/
12855 s/'"$ac_delim"'$/,g/; t
12856 s/$/\\/; p
12857 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12858 ' >>$CONFIG_STATUS <conf$$subs.sed
12859 rm -f conf$$subs.sed
12860 cat >>$CONFIG_STATUS <<_ACEOF
12861 :end
12862 s/|#_!!_#|//g
12863 CEOF$ac_eof
12864 _ACEOF
12867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12869 # trailing colons and then remove the whole line if VPATH becomes empty
12870 # (actually we leave an empty line to preserve line numbers).
12871 if test "x$srcdir" = x.; then
12872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12873 s/:*\$(srcdir):*/:/
12874 s/:*\${srcdir}:*/:/
12875 s/:*@srcdir@:*/:/
12876 s/^\([^=]*=[ ]*\):*/\1/
12877 s/:*$//
12878 s/^[^=]*=[ ]*$//
12882 cat >>$CONFIG_STATUS <<\_ACEOF
12883 fi # test -n "$CONFIG_FILES"
12886 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12888 case $ac_tag in
12889 :[FHLC]) ac_mode=$ac_tag; continue;;
12890 esac
12891 case $ac_mode$ac_tag in
12892 :[FHL]*:*);;
12893 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12894 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12895 { (exit 1); exit 1; }; };;
12896 :[FH]-) ac_tag=-:-;;
12897 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12898 esac
12899 ac_save_IFS=$IFS
12900 IFS=:
12901 set x $ac_tag
12902 IFS=$ac_save_IFS
12903 shift
12904 ac_file=$1
12905 shift
12907 case $ac_mode in
12908 :L) ac_source=$1;;
12909 :[FH])
12910 ac_file_inputs=
12911 for ac_f
12913 case $ac_f in
12914 -) ac_f="$tmp/stdin";;
12915 *) # Look for the file first in the build tree, then in the source tree
12916 # (if the path is not absolute). The absolute path cannot be DOS-style,
12917 # because $ac_f cannot contain `:'.
12918 test -f "$ac_f" ||
12919 case $ac_f in
12920 [\\/$]*) false;;
12921 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12922 esac ||
12923 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12924 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12925 { (exit 1); exit 1; }; };;
12926 esac
12927 ac_file_inputs="$ac_file_inputs $ac_f"
12928 done
12930 # Let's still pretend it is `configure' which instantiates (i.e., don't
12931 # use $as_me), people would be surprised to read:
12932 # /* config.h. Generated by config.status. */
12933 configure_input="Generated from "`IFS=:
12934 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12935 if test x"$ac_file" != x-; then
12936 configure_input="$ac_file. $configure_input"
12937 { echo "$as_me:$LINENO: creating $ac_file" >&5
12938 echo "$as_me: creating $ac_file" >&6;}
12941 case $ac_tag in
12942 *:-:* | *:-) cat >"$tmp/stdin";;
12943 esac
12945 esac
12947 ac_dir=`$as_dirname -- "$ac_file" ||
12948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12949 X"$ac_file" : 'X\(//\)[^/]' \| \
12950 X"$ac_file" : 'X\(//\)$' \| \
12951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12952 echo X"$ac_file" |
12953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12954 s//\1/
12957 /^X\(\/\/\)[^/].*/{
12958 s//\1/
12961 /^X\(\/\/\)$/{
12962 s//\1/
12965 /^X\(\/\).*/{
12966 s//\1/
12969 s/.*/./; q'`
12970 { as_dir="$ac_dir"
12971 case $as_dir in #(
12972 -*) as_dir=./$as_dir;;
12973 esac
12974 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12975 as_dirs=
12976 while :; do
12977 case $as_dir in #(
12978 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12979 *) as_qdir=$as_dir;;
12980 esac
12981 as_dirs="'$as_qdir' $as_dirs"
12982 as_dir=`$as_dirname -- "$as_dir" ||
12983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$as_dir" : 'X\(//\)[^/]' \| \
12985 X"$as_dir" : 'X\(//\)$' \| \
12986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12987 echo X"$as_dir" |
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989 s//\1/
12992 /^X\(\/\/\)[^/].*/{
12993 s//\1/
12996 /^X\(\/\/\)$/{
12997 s//\1/
13000 /^X\(\/\).*/{
13001 s//\1/
13004 s/.*/./; q'`
13005 test -d "$as_dir" && break
13006 done
13007 test -z "$as_dirs" || eval "mkdir $as_dirs"
13008 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13009 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13010 { (exit 1); exit 1; }; }; }
13011 ac_builddir=.
13013 case "$ac_dir" in
13014 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13017 # A ".." for each directory in $ac_dir_suffix.
13018 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13019 case $ac_top_builddir_sub in
13020 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13021 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13022 esac ;;
13023 esac
13024 ac_abs_top_builddir=$ac_pwd
13025 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13026 # for backward compatibility:
13027 ac_top_builddir=$ac_top_build_prefix
13029 case $srcdir in
13030 .) # We are building in place.
13031 ac_srcdir=.
13032 ac_top_srcdir=$ac_top_builddir_sub
13033 ac_abs_top_srcdir=$ac_pwd ;;
13034 [\\/]* | ?:[\\/]* ) # Absolute name.
13035 ac_srcdir=$srcdir$ac_dir_suffix;
13036 ac_top_srcdir=$srcdir
13037 ac_abs_top_srcdir=$srcdir ;;
13038 *) # Relative name.
13039 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13040 ac_top_srcdir=$ac_top_build_prefix$srcdir
13041 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13042 esac
13043 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13046 case $ac_mode in
13049 # CONFIG_FILE
13052 _ACEOF
13054 cat >>$CONFIG_STATUS <<\_ACEOF
13055 # If the template does not know about datarootdir, expand it.
13056 # FIXME: This hack should be removed a few years after 2.60.
13057 ac_datarootdir_hack=; ac_datarootdir_seen=
13059 case `sed -n '/datarootdir/ {
13063 /@datadir@/p
13064 /@docdir@/p
13065 /@infodir@/p
13066 /@localedir@/p
13067 /@mandir@/p
13068 ' $ac_file_inputs` in
13069 *datarootdir*) ac_datarootdir_seen=yes;;
13070 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13071 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13072 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13073 _ACEOF
13074 cat >>$CONFIG_STATUS <<_ACEOF
13075 ac_datarootdir_hack='
13076 s&@datadir@&$datadir&g
13077 s&@docdir@&$docdir&g
13078 s&@infodir@&$infodir&g
13079 s&@localedir@&$localedir&g
13080 s&@mandir@&$mandir&g
13081 s&\\\${datarootdir}&$datarootdir&g' ;;
13082 esac
13083 _ACEOF
13085 # Neutralize VPATH when `$srcdir' = `.'.
13086 # Shell code in configure.ac might set extrasub.
13087 # FIXME: do we really want to maintain this feature?
13088 cat >>$CONFIG_STATUS <<_ACEOF
13089 sed "$ac_vpsub
13090 $extrasub
13091 _ACEOF
13092 cat >>$CONFIG_STATUS <<\_ACEOF
13094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13095 s&@configure_input@&$configure_input&;t t
13096 s&@top_builddir@&$ac_top_builddir_sub&;t t
13097 s&@srcdir@&$ac_srcdir&;t t
13098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13099 s&@top_srcdir@&$ac_top_srcdir&;t t
13100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13101 s&@builddir@&$ac_builddir&;t t
13102 s&@abs_builddir@&$ac_abs_builddir&;t t
13103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13104 $ac_datarootdir_hack
13105 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13108 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13110 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13111 which seems to be undefined. Please make sure it is defined." >&5
13112 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13113 which seems to be undefined. Please make sure it is defined." >&2;}
13115 rm -f "$tmp/stdin"
13116 case $ac_file in
13117 -) cat "$tmp/out"; rm -f "$tmp/out";;
13118 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13119 esac
13123 # CONFIG_HEADER
13125 _ACEOF
13127 # Transform confdefs.h into a sed script `conftest.defines', that
13128 # substitutes the proper values into config.h.in to produce config.h.
13129 rm -f conftest.defines conftest.tail
13130 # First, append a space to every undef/define line, to ease matching.
13131 echo 's/$/ /' >conftest.defines
13132 # Then, protect against being on the right side of a sed subst, or in
13133 # an unquoted here document, in config.status. If some macros were
13134 # called several times there might be several #defines for the same
13135 # symbol, which is useless. But do not sort them, since the last
13136 # AC_DEFINE must be honored.
13137 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13138 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13139 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13140 # PARAMS is the parameter list in the macro definition--in most cases, it's
13141 # just an empty string.
13142 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13143 ac_dB='\\)[ (].*,\\1define\\2'
13144 ac_dC=' '
13145 ac_dD=' ,'
13147 uniq confdefs.h |
13148 sed -n '
13149 t rset
13150 :rset
13151 s/^[ ]*#[ ]*define[ ][ ]*//
13152 t ok
13155 s/[\\&,]/\\&/g
13156 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13157 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13158 ' >>conftest.defines
13160 # Remove the space that was appended to ease matching.
13161 # Then replace #undef with comments. This is necessary, for
13162 # example, in the case of _POSIX_SOURCE, which is predefined and required
13163 # on some systems where configure will not decide to define it.
13164 # (The regexp can be short, since the line contains either #define or #undef.)
13165 echo 's/ $//
13166 s,^[ #]*u.*,/* & */,' >>conftest.defines
13168 # Break up conftest.defines:
13169 ac_max_sed_lines=50
13171 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13172 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13173 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13174 # et cetera.
13175 ac_in='$ac_file_inputs'
13176 ac_out='"$tmp/out1"'
13177 ac_nxt='"$tmp/out2"'
13179 while :
13181 # Write a here document:
13182 cat >>$CONFIG_STATUS <<_ACEOF
13183 # First, check the format of the line:
13184 cat >"\$tmp/defines.sed" <<\\CEOF
13185 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13186 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13188 :def
13189 _ACEOF
13190 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13191 echo 'CEOF
13192 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13193 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13194 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13195 grep . conftest.tail >/dev/null || break
13196 rm -f conftest.defines
13197 mv conftest.tail conftest.defines
13198 done
13199 rm -f conftest.defines conftest.tail
13201 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13202 cat >>$CONFIG_STATUS <<\_ACEOF
13203 if test x"$ac_file" != x-; then
13204 echo "/* $configure_input */" >"$tmp/config.h"
13205 cat "$ac_result" >>"$tmp/config.h"
13206 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13207 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13208 echo "$as_me: $ac_file is unchanged" >&6;}
13209 else
13210 rm -f $ac_file
13211 mv "$tmp/config.h" $ac_file
13213 else
13214 echo "/* $configure_input */"
13215 cat "$ac_result"
13217 rm -f "$tmp/out12"
13220 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13221 echo "$as_me: executing $ac_file commands" >&6;}
13223 esac
13226 case $ac_file$ac_mode in
13227 "compiler_executable":C)
13228 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13229 mkdir -p $prefix
13230 prefix="${prefix}/${aros_target_cpu}-aros"
13231 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13233 echo ${prefix}
13234 echo ${prefix2}
13235 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13237 ln -sf ${prefix2}-gcc ${prefix}-gcc
13238 ln -sf ${prefix2}-ld ${prefix}-ld
13240 ln -sf $aros_target_as_ln ${prefix}-as
13241 ln -sf $aros_target_nm_ln ${prefix}-nm
13242 ln -sf $aros_target_ar_ln ${prefix}-ar
13243 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13244 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13245 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13246 ln -sf $aros_target_strip_ln ${prefix}-strip
13248 ln -sf $aros_target_as_ln ${prefix2}-as
13249 ln -sf $aros_target_nm_ln ${prefix2}-nm
13250 ln -sf $aros_target_ar_ln ${prefix2}-ar
13251 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13252 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13253 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13254 ln -sf $aros_target_strip_ln ${prefix2}-strip
13256 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13257 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13258 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13261 esac
13262 done # for ac_tag
13265 { (exit 0); exit 0; }
13266 _ACEOF
13267 chmod +x $CONFIG_STATUS
13268 ac_clean_files=$ac_clean_files_save
13271 # configure is writing to config.log, and then calls config.status.
13272 # config.status does its own redirection, appending to config.log.
13273 # Unfortunately, on DOS this fails, as config.log is still kept open
13274 # by configure, so config.status won't be able to write to it; its
13275 # output is simply discarded. So we exec the FD to /dev/null,
13276 # effectively closing config.log, so it can be properly (re)opened and
13277 # appended to by config.status. When coming back to configure, we
13278 # need to make the FD available again.
13279 if test "$no_create" != yes; then
13280 ac_cs_success=:
13281 ac_config_status_args=
13282 test "$silent" = yes &&
13283 ac_config_status_args="$ac_config_status_args --quiet"
13284 exec 5>/dev/null
13285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13286 exec 5>>config.log
13287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13288 # would make configure fail if this is the last instruction.
13289 $ac_cs_success || { (exit 1); exit 1; }
13294 #XXX compatability...
13295 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13297 if test -n "$aros_shared_cflags" ; then
13298 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13299 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg