git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@25842 fb15a70f-31f2-0310-bbcc...
[AROS.git] / configure
blobcb1681b502352e2dbce24e5b8eb9b52f06c046c0
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 XMKMF
712 DISTCC
713 CCACHE
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 aros_arch
729 aros_cpu
730 aros_flavour
731 aros_flavour_uc
732 TOPDIR
733 aros_cc_pre
734 aros_host_arch
735 aros_host_cpu
736 aros_host_cc
737 aros_host_make
738 aros_host_cflags
739 aros_host_ldflags
740 aros_host_debug
741 aros_host_mkdep
742 aros_host_mkargs
743 aros_host_exe_suffix
744 aros_host_lib_suffix
745 aros_tools_dir
746 aros_target_arch
747 aros_target_cpu
748 aros_target_variant
749 aros_target_suffix
750 aros_target_incl
751 aros_target_ar
752 aros_target_ranlib
753 aros_kernel_nm
754 aros_target_cc
755 aros_target_as
756 aros_target_ld
757 aros_target_cc_includes
758 aros_target_cc_path
759 aros_target_objdump
760 aros_target_objcopy
761 aros_target_strip
762 aros_target_nm
763 aros_shared_default
764 aros_shared_ld
765 aros_object_format
766 aros_compiler_libs
767 aros_config_cflags
768 aros_config_aflags
769 aros_config_ldflags
770 aros_shared_cflags
771 aros_shared_aflags
772 aros_shared_ldflags
773 aros_kernel_ldflags
774 aros_debug_cflags
775 aros_debug_aflags
776 aros_debug_ldflags
777 aros_target_genmap
778 aros_target_strip_flags
779 aros_gui_libdir
780 aros_gui_ldflags
781 aros_gui_libflags
782 aros_gui_incdir
783 aros_gui_ccflags
784 aros_default_wbwidth
785 aros_default_wbheight
786 aros_default_wbdepth
787 DO_XSHM_SUPPORT
788 DO_VIDMODE_SUPPORT
789 aros_bochs_hack
790 aros_serial_debug
791 aros_palm_debug_hack
792 aros_nesting_supervisor
793 ENABLE_DBUS
794 DBUS_CFLAGS
795 DBUS_LIBFLAGS
796 KERNEL_DBUS_KOBJ
797 KERNEL_DBUS_INCLUDES
798 aros_debug
799 aros_mungwall_debug
800 aros_stack_debug
801 aros_modules_debug
802 ignore_undefined_symbols
803 gcc_target_cpu
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
815 XMKMF'
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1150 eval with_$ac_package=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1214 done
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1268 /^X\(\/\/\)$/{
1269 s//\1/
1272 /^X\(\/\).*/{
1273 s//\1/
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1281 else
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1373 cat <<\_ACEOF
1375 X features:
1376 --x-includes=DIR X include files are in DIR
1377 --x-libraries=DIR X library files are in DIR
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-build-type=TYPE
1393 Select the build type. Available types are:
1394 personal, nightly, snapshot, milestone, release. Do
1395 NOT use this option unless you know what you are
1396 doing! (default=personal)
1397 --enable-debug=list Enable different types of debug. Commas or
1398 whitespaces can be used to separate the items in the
1399 list. Available types of debug are: all, none,
1400 messages, stack, mungwall, modules, symbols. If no
1401 list is provided then "all" is assumed.
1402 (default=none)
1403 --enable-distcc Use distcc as a front end to the compiler
1404 (default=no).
1405 --enable-ccache Use ccache as a front end to the compiler
1406 (default=no).
1407 --enable-target-variant=NAME
1408 Enable a specific target variant(default=none)
1409 --enable-includes=dir Alternative system include directory
1410 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1411 (default=no)
1412 --enable-palm-debug-hack
1413 Enable palm debug output hack in palm native
1414 (default=no)
1415 --enable-nesting-supervisor
1416 Enable nesting supervisor support in unix
1417 (default=no)
1418 --enable-xshm-extension Enable X11 MIT-SHM extension (default=yes)
1419 --enable-vidmode-extension
1420 Enable X11 vidmode extension (default=yes)
1421 --enable-dbus Enable DBUS support via dbus.library (default=no)
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-x use the X Window System
1427 --with-optimization=FLAGS
1428 Use optimization flags FLAGS (default=-O2).
1429 --with-resolution=XRESxYRESxDEPTH
1430 Default resolution of the initial WorkbenchScreen
1431 --with-serial-debug Enable serial debug output in native (default=no)
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 XMKMF Path to xmkmf, Makefile generator for X Window System
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 _ACEOF
1448 ac_status=$?
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" || continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 configure
1508 generated by GNU Autoconf 2.61
1510 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1511 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1517 cat >config.log <<_ACEOF
1518 This file contains any messages produced by compilers while
1519 running configure, to aid debugging if configure makes a mistake.
1521 It was created by $as_me, which was
1522 generated by GNU Autoconf 2.61. Invocation command line was
1524 $ $0 $@
1526 _ACEOF
1527 exec 5>>config.log
1529 cat <<_ASUNAME
1530 ## --------- ##
1531 ## Platform. ##
1532 ## --------- ##
1534 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1535 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1536 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1537 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1538 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1540 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1541 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1543 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1544 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1545 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1546 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1547 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1548 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1549 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1551 _ASUNAME
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 echo "PATH: $as_dir"
1559 done
1560 IFS=$as_save_IFS
1562 } >&5
1564 cat >&5 <<_ACEOF
1567 ## ----------- ##
1568 ## Core tests. ##
1569 ## ----------- ##
1571 _ACEOF
1574 # Keep a trace of the command line.
1575 # Strip out --no-create and --no-recursion so they do not pile up.
1576 # Strip out --silent because we don't want to record it for future runs.
1577 # Also quote any args containing shell meta-characters.
1578 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_configure_args=
1580 ac_configure_args0=
1581 ac_configure_args1=
1582 ac_must_keep_next=false
1583 for ac_pass in 1 2
1585 for ac_arg
1587 case $ac_arg in
1588 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1591 continue ;;
1592 *\'*)
1593 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1594 esac
1595 case $ac_pass in
1596 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1598 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1599 if test $ac_must_keep_next = true; then
1600 ac_must_keep_next=false # Got value, back to normal.
1601 else
1602 case $ac_arg in
1603 *=* | --config-cache | -C | -disable-* | --disable-* \
1604 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1605 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1606 | -with-* | --with-* | -without-* | --without-* | --x)
1607 case "$ac_configure_args0 " in
1608 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1609 esac
1611 -* ) ac_must_keep_next=true ;;
1612 esac
1614 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 esac
1617 done
1618 done
1619 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1620 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1622 # When interrupted or exit'd, cleanup temporary files, and complete
1623 # config.log. We remove comments because anyway the quotes in there
1624 # would cause problems or look ugly.
1625 # WARNING: Use '\'' to represent an apostrophe within the trap.
1626 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1627 trap 'exit_status=$?
1628 # Save into config.log some information that might help in debugging.
1630 echo
1632 cat <<\_ASBOX
1633 ## ---------------- ##
1634 ## Cache variables. ##
1635 ## ---------------- ##
1636 _ASBOX
1637 echo
1638 # The following way of writing the cache mishandles newlines in values,
1640 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in #(
1643 *${as_nl}*)
1644 case $ac_var in #(
1645 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1646 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1647 esac
1648 case $ac_var in #(
1649 _ | IFS | as_nl) ;; #(
1650 *) $as_unset $ac_var ;;
1651 esac ;;
1652 esac
1653 done
1654 (set) 2>&1 |
1655 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1656 *${as_nl}ac_space=\ *)
1657 sed -n \
1658 "s/'\''/'\''\\\\'\'''\''/g;
1659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1660 ;; #(
1662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1664 esac |
1665 sort
1667 echo
1669 cat <<\_ASBOX
1670 ## ----------------- ##
1671 ## Output variables. ##
1672 ## ----------------- ##
1673 _ASBOX
1674 echo
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 echo "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1685 if test -n "$ac_subst_files"; then
1686 cat <<\_ASBOX
1687 ## ------------------- ##
1688 ## File substitutions. ##
1689 ## ------------------- ##
1690 _ASBOX
1691 echo
1692 for ac_var in $ac_subst_files
1694 eval ac_val=\$$ac_var
1695 case $ac_val in
1696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697 esac
1698 echo "$ac_var='\''$ac_val'\''"
1699 done | sort
1700 echo
1703 if test -s confdefs.h; then
1704 cat <<\_ASBOX
1705 ## ----------- ##
1706 ## confdefs.h. ##
1707 ## ----------- ##
1708 _ASBOX
1709 echo
1710 cat confdefs.h
1711 echo
1713 test "$ac_signal" != 0 &&
1714 echo "$as_me: caught signal $ac_signal"
1715 echo "$as_me: exit $exit_status"
1716 } >&5
1717 rm -f core *.core core.conftest.* &&
1718 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1719 exit $exit_status
1721 for ac_signal in 1 2 13 15; do
1722 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 done
1724 ac_signal=0
1726 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1727 rm -f -r conftest* confdefs.h
1729 # Predefined preprocessor variables.
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 _ACEOF
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 _ACEOF
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 _ACEOF
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 _ACEOF
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 _ACEOF
1756 # Let the site file select an alternate cache file if it wants to.
1757 # Prefer explicitly selected file to automatically selected ones.
1758 if test -n "$CONFIG_SITE"; then
1759 set x "$CONFIG_SITE"
1760 elif test "x$prefix" != xNONE; then
1761 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1762 else
1763 set x "$ac_default_prefix/share/config.site" \
1764 "$ac_default_prefix/etc/config.site"
1766 shift
1767 for ac_site_file
1769 if test -r "$ac_site_file"; then
1770 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1771 echo "$as_me: loading site script $ac_site_file" >&6;}
1772 sed 's/^/| /' "$ac_site_file" >&5
1773 . "$ac_site_file"
1775 done
1777 if test -r "$cache_file"; then
1778 # Some versions of bash will fail to source /dev/null (special
1779 # files actually), so we avoid doing that.
1780 if test -f "$cache_file"; then
1781 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1782 echo "$as_me: loading cache $cache_file" >&6;}
1783 case $cache_file in
1784 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1785 *) . "./$cache_file";;
1786 esac
1788 else
1789 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1790 echo "$as_me: creating cache $cache_file" >&6;}
1791 >$cache_file
1794 # Check that the precious variables saved in the cache have kept the same
1795 # value.
1796 ac_cache_corrupted=false
1797 for ac_var in $ac_precious_vars; do
1798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1799 eval ac_new_set=\$ac_env_${ac_var}_set
1800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1801 eval ac_new_val=\$ac_env_${ac_var}_value
1802 case $ac_old_set,$ac_new_set in
1803 set,)
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1805 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1807 ,set)
1808 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1809 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1810 ac_cache_corrupted=: ;;
1811 ,);;
1813 if test "x$ac_old_val" != "x$ac_new_val"; then
1814 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1815 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1816 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1817 echo "$as_me: former value: $ac_old_val" >&2;}
1818 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1819 echo "$as_me: current value: $ac_new_val" >&2;}
1820 ac_cache_corrupted=:
1821 fi;;
1822 esac
1823 # Pass precious variables to config.status.
1824 if test "$ac_new_set" = set; then
1825 case $ac_new_val in
1826 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 *) ac_arg=$ac_var=$ac_new_val ;;
1828 esac
1829 case " $ac_configure_args " in
1830 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1831 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 esac
1834 done
1835 if $ac_cache_corrupted; then
1836 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1837 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1838 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1839 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1840 { (exit 1); exit 1; }; }
1859 ac_ext=c
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 ac_aux_dir=
1868 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1869 if test -f "$ac_dir/install-sh"; then
1870 ac_aux_dir=$ac_dir
1871 ac_install_sh="$ac_aux_dir/install-sh -c"
1872 break
1873 elif test -f "$ac_dir/install.sh"; then
1874 ac_aux_dir=$ac_dir
1875 ac_install_sh="$ac_aux_dir/install.sh -c"
1876 break
1877 elif test -f "$ac_dir/shtool"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/shtool install -c"
1880 break
1882 done
1883 if test -z "$ac_aux_dir"; then
1884 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1885 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1886 { (exit 1); exit 1; }; }
1889 # These three variables are undocumented and unsupported,
1890 # and are intended to be withdrawn in a future Autoconf release.
1891 # They can cause serious problems if a builder's source tree is in a directory
1892 # whose full name contains unusual characters.
1893 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1894 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1895 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899 # Check what host we are running on.
1900 # If a target is not suggested, we use this one.
1901 # Note that what we call a target, Autoconf calls a host.
1902 # Make sure we can run config.sub.
1903 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1904 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1905 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1906 { (exit 1); exit 1; }; }
1908 { echo "$as_me:$LINENO: checking build system type" >&5
1909 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1910 if test "${ac_cv_build+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 ac_build_alias=$build_alias
1914 test "x$ac_build_alias" = x &&
1915 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1916 test "x$ac_build_alias" = x &&
1917 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1918 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1919 { (exit 1); exit 1; }; }
1920 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1921 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1922 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1923 { (exit 1); exit 1; }; }
1926 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1927 echo "${ECHO_T}$ac_cv_build" >&6; }
1928 case $ac_cv_build in
1929 *-*-*) ;;
1930 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1931 echo "$as_me: error: invalid value of canonical build" >&2;}
1932 { (exit 1); exit 1; }; };;
1933 esac
1934 build=$ac_cv_build
1935 ac_save_IFS=$IFS; IFS='-'
1936 set x $ac_cv_build
1937 shift
1938 build_cpu=$1
1939 build_vendor=$2
1940 shift; shift
1941 # Remember, the first character of IFS is used to create $*,
1942 # except with old shells:
1943 build_os=$*
1944 IFS=$ac_save_IFS
1945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1948 { echo "$as_me:$LINENO: checking host system type" >&5
1949 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1950 if test "${ac_cv_host+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test "x$host_alias" = x; then
1954 ac_cv_host=$ac_cv_build
1955 else
1956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1957 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1958 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1959 { (exit 1); exit 1; }; }
1963 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1964 echo "${ECHO_T}$ac_cv_host" >&6; }
1965 case $ac_cv_host in
1966 *-*-*) ;;
1967 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1968 echo "$as_me: error: invalid value of canonical host" >&2;}
1969 { (exit 1); exit 1; }; };;
1970 esac
1971 host=$ac_cv_host
1972 ac_save_IFS=$IFS; IFS='-'
1973 set x $ac_cv_host
1974 shift
1975 host_cpu=$1
1976 host_vendor=$2
1977 shift; shift
1978 # Remember, the first character of IFS is used to create $*,
1979 # except with old shells:
1980 host_os=$*
1981 IFS=$ac_save_IFS
1982 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1986 # The AROS target is slightly different to the normal GNU style
1987 # format. We don't have the middle part, and we reverse the order
1988 # of the $(CPU) and $(OS) bits.
1990 # Don't strip the version of the target yet, it might be
1991 # useful on some systems.
1993 { echo "$as_me:$LINENO: checking for AROS style target" >&5
1994 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
1996 if test "$target" = "NONE" ; then
1997 target=$host_os-$host_cpu
1998 cross_compile=no
1999 else
2000 if test "$target" = "" ; then
2001 target=$host_os-$host_cpu
2002 cross_compile=no
2003 else
2004 cross_compile=yes
2007 { echo "$as_me:$LINENO: result: $target" >&5
2008 echo "${ECHO_T}$target" >&6; }
2010 #don't know where else to put this...
2011 TOPDIR=$PWD
2013 # Parse the target field into something useful.
2015 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2016 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2019 aros_default_wbwidth=800
2020 aros_default_wbheight=600
2021 aros_default_wbdepth=4
2024 # The first step is to find the host binaries.
2025 # Check for a compiler.
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2053 done
2054 done
2055 IFS=$as_save_IFS
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2070 if test -z "$ac_cv_prog_CC"; then
2071 ac_ct_CC=$CC
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2093 done
2094 done
2095 IFS=$as_save_IFS
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2103 else
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2108 if test "x$ac_ct_CC" = x; then
2109 CC=""
2110 else
2111 case $cross_compiling:$ac_tool_warned in
2112 yes:)
2113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&5
2116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119 ac_tool_warned=yes ;;
2120 esac
2121 CC=$ac_ct_CC
2123 else
2124 CC="$ac_cv_prog_CC"
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2152 IFS=$as_save_IFS
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2197 IFS=$as_save_IFS
2199 if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2202 shift
2203 if test $# != 0; then
2204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2207 shift
2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 for ac_prog in cl.exe
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2249 done
2250 done
2251 IFS=$as_save_IFS
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2259 else
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$CC" && break
2266 done
2268 if test -z "$CC"; then
2269 ac_ct_CC=$CC
2270 for ac_prog in cl.exe
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2293 done
2294 done
2295 IFS=$as_save_IFS
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2303 else
2304 { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2309 test -n "$ac_ct_CC" && break
2310 done
2312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316 yes:)
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2324 esac
2325 CC=$ac_ct_CC
2332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO: checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (ac_try="$ac_compiler --version >&5"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler --version >&5") 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (ac_try="$ac_compiler -v >&5"
2352 case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (ac_try="$ac_compiler -V >&5"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2380 main ()
2384 return 0;
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # List of possible output files, starting from the most likely.
2397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398 # only as a last resort. b.out is created by i960 compilers.
2399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 # The IRIX 6 linker writes into existing files which may not be
2402 # executable, retaining their permissions. Remove them first so a
2403 # subsequent execution test works.
2404 ac_rmfiles=
2405 for ac_file in $ac_files
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2410 esac
2411 done
2412 rm -f $ac_rmfiles
2414 if { (ac_try="$ac_link_default"
2415 case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2428 # Autoconf.
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2432 case $ac_file in
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441 then :; else
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2448 # actually working.
2449 break;;
2451 break;;
2452 esac
2453 done
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2456 else
2457 ac_file=''
2460 { echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6; }
2462 if test -z "$ac_file"; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2473 ac_exeext=$ac_cv_exeext
2475 # Check that the compiler produces executables we can run. If not, either
2476 # the compiler is broken, or we cross compile.
2477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 cross_compiling=no
2493 else
2494 if test "$cross_compiling" = maybe; then
2495 cross_compiling=yes
2496 else
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2507 { echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6; }
2510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511 ac_clean_files=$ac_clean_files_save
2512 # Check that the compiler produces executables we can run. If not, either
2513 # the compiler is broken, or we cross compile.
2514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517 echo "${ECHO_T}$cross_compiling" >&6; }
2519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521 if { (ac_try="$ac_link"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533 # work properly (i.e., refer to `conftest.exe'), while it won't with
2534 # `rm'.
2535 for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2537 case $ac_file in
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540 break;;
2541 * ) break;;
2542 esac
2543 done
2544 else
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2552 rm -f conftest$ac_cv_exeext
2553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556 rm -f conftest.$ac_ext
2557 EXEEXT=$ac_cv_exeext
2558 ac_exeext=$EXEEXT
2559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2561 if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2572 main ()
2576 return 0;
2578 _ACEOF
2579 rm -f conftest.o conftest.obj
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597 done
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612 echo "${ECHO_T}$ac_cv_objext" >&6; }
2613 OBJEXT=$ac_cv_objext
2614 ac_objext=$OBJEXT
2615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2630 #ifndef __GNUC__
2631 choke me
2632 #endif
2635 return 0;
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (ac_try="$ac_compile"
2640 case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2655 ac_compiler_gnu=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_compiler_gnu=no
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2679 ac_cv_prog_cc_g=no
2680 CFLAGS="-g"
2681 cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h. */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2689 main ()
2693 return 0;
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2713 ac_cv_prog_cc_g=yes
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 CFLAGS=""
2719 cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h. */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2727 main ()
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757 CFLAGS="-g"
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_g=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2813 CFLAGS="-g -O2"
2814 else
2815 CFLAGS="-g"
2817 else
2818 if test "$GCC" = yes; then
2819 CFLAGS="-O2"
2820 else
2821 CFLAGS=
2824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_cc_c89+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 ac_cv_prog_cc_c89=no
2830 ac_save_CC=$CC
2831 cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h. */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <stdarg.h>
2838 #include <stdio.h>
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2845 char **p;
2846 int i;
2848 return p[i];
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2852 char *s;
2853 va_list v;
2854 va_start (v,p);
2855 s = g (p, va_arg (v,int));
2856 va_end (v);
2857 return s;
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2871 #define FOO(x) 'x'
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 int argc;
2879 char **argv;
2881 main ()
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 return 0;
2887 _ACEOF
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_prog_cc_c89=$ac_arg
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
2919 done
2920 rm -f conftest.$ac_ext
2921 CC=$ac_save_CC
2924 # AC_CACHE_VAL
2925 case "x$ac_cv_prog_cc_c89" in
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928 echo "${ECHO_T}none needed" >&6; } ;;
2929 xno)
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931 echo "${ECHO_T}unsupported" >&6; } ;;
2933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2936 esac
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 case $ac_cv_prog_cc_stdc in
2946 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2947 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2948 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2949 if test "${ac_cv_prog_cc_c99+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 ac_cv_prog_cc_c99=no
2953 ac_save_CC=$CC
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <stdarg.h>
2961 #include <stdbool.h>
2962 #include <stdlib.h>
2963 #include <wchar.h>
2964 #include <stdio.h>
2966 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2967 #define debug(...) fprintf (stderr, __VA_ARGS__)
2968 #define showlist(...) puts (#__VA_ARGS__)
2969 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2970 static void
2971 test_varargs_macros (void)
2973 int x = 1234;
2974 int y = 5678;
2975 debug ("Flag");
2976 debug ("X = %d\n", x);
2977 showlist (The first, second, and third items.);
2978 report (x>y, "x is %d but y is %d", x, y);
2981 // Check long long types.
2982 #define BIG64 18446744073709551615ull
2983 #define BIG32 4294967295ul
2984 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2985 #if !BIG_OK
2986 your preprocessor is broken;
2987 #endif
2988 #if BIG_OK
2989 #else
2990 your preprocessor is broken;
2991 #endif
2992 static long long int bignum = -9223372036854775807LL;
2993 static unsigned long long int ubignum = BIG64;
2995 struct incomplete_array
2997 int datasize;
2998 double data[];
3001 struct named_init {
3002 int number;
3003 const wchar_t *name;
3004 double average;
3007 typedef const char *ccp;
3009 static inline int
3010 test_restrict (ccp restrict text)
3012 // See if C++-style comments work.
3013 // Iterate through items via the restricted pointer.
3014 // Also check for declarations in for loops.
3015 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3016 continue;
3017 return 0;
3020 // Check varargs and va_copy.
3021 static void
3022 test_varargs (const char *format, ...)
3024 va_list args;
3025 va_start (args, format);
3026 va_list args_copy;
3027 va_copy (args_copy, args);
3029 const char *str;
3030 int number;
3031 float fnumber;
3033 while (*format)
3035 switch (*format++)
3037 case 's': // string
3038 str = va_arg (args_copy, const char *);
3039 break;
3040 case 'd': // int
3041 number = va_arg (args_copy, int);
3042 break;
3043 case 'f': // float
3044 fnumber = va_arg (args_copy, double);
3045 break;
3046 default:
3047 break;
3050 va_end (args_copy);
3051 va_end (args);
3055 main ()
3058 // Check bool.
3059 _Bool success = false;
3061 // Check restrict.
3062 if (test_restrict ("String literal") == 0)
3063 success = true;
3064 char *restrict newvar = "Another string";
3066 // Check varargs.
3067 test_varargs ("s, d' f .", "string", 65, 34.234);
3068 test_varargs_macros ();
3070 // Check flexible array members.
3071 struct incomplete_array *ia =
3072 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3073 ia->datasize = 10;
3074 for (int i = 0; i < ia->datasize; ++i)
3075 ia->data[i] = i * 1.234;
3077 // Check named initializers.
3078 struct named_init ni = {
3079 .number = 34,
3080 .name = L"Test wide string",
3081 .average = 543.34343,
3084 ni.number = 58;
3086 int dynamic_array[ni.number];
3087 dynamic_array[ni.number - 1] = 543;
3089 // work around unused variable warnings
3090 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3091 || dynamic_array[ni.number - 1] != 543);
3094 return 0;
3096 _ACEOF
3097 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3099 CC="$ac_save_CC $ac_arg"
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 ac_cv_prog_cc_c99=$ac_arg
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f core conftest.err conftest.$ac_objext
3126 test "x$ac_cv_prog_cc_c99" != "xno" && break
3127 done
3128 rm -f conftest.$ac_ext
3129 CC=$ac_save_CC
3132 # AC_CACHE_VAL
3133 case "x$ac_cv_prog_cc_c99" in
3135 { echo "$as_me:$LINENO: result: none needed" >&5
3136 echo "${ECHO_T}none needed" >&6; } ;;
3137 xno)
3138 { echo "$as_me:$LINENO: result: unsupported" >&5
3139 echo "${ECHO_T}unsupported" >&6; } ;;
3141 CC="$CC $ac_cv_prog_cc_c99"
3142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3143 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3144 esac
3145 if test "x$ac_cv_prog_cc_c99" != xno; then
3146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3147 else
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169 char **p;
3170 int i;
3172 return p[i];
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3176 char *s;
3177 va_list v;
3178 va_start (v,p);
3179 s = g (p, va_arg (v,int));
3180 va_end (v);
3181 return s;
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3205 main ()
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3209 return 0;
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253 xno)
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261 if test "x$ac_cv_prog_cc_c89" != xno; then
3262 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3263 else
3264 ac_cv_prog_cc_stdc=no
3271 esac
3272 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3273 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 case $ac_cv_prog_cc_stdc in
3279 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3280 echo "${ECHO_T}unsupported" >&6; } ;;
3281 '') { echo "$as_me:$LINENO: result: none needed" >&5
3282 echo "${ECHO_T}none needed" >&6; } ;;
3283 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3285 esac
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3293 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3295 # On Suns, sometimes $CPP names a directory.
3296 if test -n "$CPP" && test -d "$CPP"; then
3297 CPP=
3299 if test -z "$CPP"; then
3300 if test "${ac_cv_prog_CPP+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 # Double quotes because CPP needs to be expanded
3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306 ac_preproc_ok=false
3307 for ac_c_preproc_warn_flag in '' yes
3309 # Use a header file that comes with gcc, so configuring glibc
3310 # with a fresh cross-compiler works.
3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3312 # <limits.h> exists even on freestanding compilers.
3313 # On the NeXT, cc -E runs the code through the compiler's parser,
3314 # not just through cpp. "Syntax error" is here to catch this case.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #ifdef __STDC__
3322 # include <limits.h>
3323 #else
3324 # include <assert.h>
3325 #endif
3326 Syntax error
3327 _ACEOF
3328 if { (ac_try="$ac_cpp conftest.$ac_ext"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null && {
3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3343 }; then
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Broken: fails on valid input.
3350 continue
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether nonexistent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null && {
3378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3379 test ! -s conftest.err
3380 }; then
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 # Passes both tests.
3388 ac_preproc_ok=:
3389 break
3392 rm -f conftest.err conftest.$ac_ext
3394 done
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then
3398 break
3401 done
3402 ac_cv_prog_CPP=$CPP
3405 CPP=$ac_cv_prog_CPP
3406 else
3407 ac_cv_prog_CPP=$CPP
3409 { echo "$as_me:$LINENO: result: $CPP" >&5
3410 echo "${ECHO_T}$CPP" >&6; }
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431 Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null && {
3446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 }; then
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3455 continue
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3469 _ACEOF
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null && {
3483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 }; then
3486 # Broken: success on invalid input.
3487 continue
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3497 rm -f conftest.err conftest.$ac_ext
3499 done
3500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3501 rm -f conftest.err conftest.$ac_ext
3502 if $ac_preproc_ok; then
3504 else
3505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 # Check for a compatible awk
3520 for ac_prog in gawk nawk
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3526 if test "${ac_cv_prog_AWK+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$AWK"; then
3530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_AWK="$ac_prog"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 AWK=$ac_cv_prog_AWK
3550 if test -n "$AWK"; then
3551 { echo "$as_me:$LINENO: result: $AWK" >&5
3552 echo "${ECHO_T}$AWK" >&6; }
3553 else
3554 { echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6; }
3559 test -n "$AWK" && break
3560 done
3562 if test "$AWK" = ""; then
3563 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3564 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3565 { (exit 1); exit 1; }; }
3567 # Extract the first word of "mmake", so it can be a program name with args.
3568 set dummy mmake; ac_word=$2
3569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_MMAKE+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 if test -n "$MMAKE"; then
3575 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_MMAKE="mmake "
3585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 MMAKE=$ac_cv_prog_MMAKE
3595 if test -n "$MMAKE"; then
3596 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3597 echo "${ECHO_T}$MMAKE" >&6; }
3598 else
3599 { echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6; }
3605 # Perform some default variable assignments. Note all of these will be
3606 # Regenerated from the script, so there is no need to cache them.
3608 aros_host_cc="$CC"
3609 if test "$GCC" = "yes"; then
3610 aros_gcc_ld=`$CC -print-prog-name=ld`
3611 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3612 set dummy `basename $aros_gcc_ld`; ac_word=$2
3613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3615 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 case $aros_host_ld in
3619 [\\/]* | ?:[\\/]*)
3620 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in `dirname $aros_gcc_ld`
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3639 esac
3641 aros_host_ld=$ac_cv_path_aros_host_ld
3642 if test -n "$aros_host_ld"; then
3643 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3644 echo "${ECHO_T}$aros_host_ld" >&6; }
3645 else
3646 { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3652 if test "$aros_host_ld" = ""; then
3653 # Extract the first word of "ld", so it can be a program name with args.
3654 set dummy ld; ac_word=$2
3655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 case $aros_host_ld in
3661 [\\/]* | ?:[\\/]*)
3662 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3676 done
3677 done
3678 IFS=$as_save_IFS
3681 esac
3683 aros_host_ld=$ac_cv_path_aros_host_ld
3684 if test -n "$aros_host_ld"; then
3685 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3686 echo "${ECHO_T}$aros_host_ld" >&6; }
3687 else
3688 { echo "$as_me:$LINENO: result: no" >&5
3689 echo "${ECHO_T}no" >&6; }
3694 if test "$aros_host_ld" = ""; then
3695 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3696 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3697 { (exit 1); exit 1; }; }
3699 aros_host_make="make"
3700 aros_host_cflags=$CFLAGS
3701 aros_host_ldflags=$LDFLAGS
3702 aros_host_debug="-g -O0"
3703 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3704 aros_host_mkargs="--no-print-directory"
3705 aros_host_incl="/usr/include"
3706 aros_host_exe_suffix="$EXEEXT"
3707 aros_host_lib_suffix=""
3709 for ac_prog in aclocal aclocal19
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 if test -n "$aros_host_aclocal"; then
3719 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728 ac_cv_prog_aros_host_aclocal="$ac_prog"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3732 done
3733 done
3734 IFS=$as_save_IFS
3738 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3739 if test -n "$aros_host_aclocal"; then
3740 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3741 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3742 else
3743 { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3748 test -n "$aros_host_aclocal" && break
3749 done
3751 for ac_prog in autoconf autoconf259 autoconf253
3753 # Extract the first word of "$ac_prog", so it can be a program name with args.
3754 set dummy $ac_prog; ac_word=$2
3755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3757 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 if test -n "$aros_host_autoconf"; then
3761 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_aros_host_autoconf="$ac_prog"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3774 done
3775 done
3776 IFS=$as_save_IFS
3780 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3781 if test -n "$aros_host_autoconf"; then
3782 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3783 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3784 else
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3790 test -n "$aros_host_autoconf" && break
3791 done
3793 for ac_prog in autoheader autoheader259 autoheader253
3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
3796 set dummy $ac_prog; ac_word=$2
3797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3799 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 if test -n "$aros_host_autoheader"; then
3803 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_aros_host_autoheader="$ac_prog"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3823 if test -n "$aros_host_autoheader"; then
3824 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3825 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3826 else
3827 { echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6; }
3832 test -n "$aros_host_autoheader" && break
3833 done
3835 for ac_prog in automake automake19
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3841 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 if test -n "$aros_host_automake"; then
3845 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_aros_host_automake="$ac_prog"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3858 done
3859 done
3860 IFS=$as_save_IFS
3864 aros_host_automake=$ac_cv_prog_aros_host_automake
3865 if test -n "$aros_host_automake"; then
3866 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3867 echo "${ECHO_T}$aros_host_automake" >&6; }
3868 else
3869 { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3874 test -n "$aros_host_automake" && break
3875 done
3878 case "$aros_host_cc" in
3879 *gcc*)
3880 aros_host_cc_pipe="-pipe"
3882 icc)
3883 aros_host_cc_pipe=""
3886 aros_host_cc_pipe=""
3888 esac
3890 aros_target_cc_includes=""
3892 # This is the main host configuration section. It is where the host
3893 # can change the values of any variables it needs to change. We do
3894 # not look at anything that compiles to the target yet, we'll get
3895 # to that later.
3897 case "$host_os" in
3898 linux*)
3899 aros_host_arch="linux"
3900 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3901 case "$host_cpu" in
3902 *i?86*)
3903 aros_host_cpu="i386"
3905 *x86_64*)
3906 aros_host_cpu="x86_64"
3908 *m68k*)
3909 aros_host_cpu="m68k"
3911 *powerpc*)
3912 aros_host_cpu="ppc"
3915 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3916 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3917 aros_host_cpu="$host_cpu"
3919 esac
3922 freebsd*)
3923 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3924 aros_host_make="gmake"
3925 aros_host_arch="freebsd"
3926 aros_host_cpu="i386"
3928 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3931 case $host_os in
3932 freebsd[234]*)
3933 aros_object_format="elf_i386"
3937 aros_object_format="elf_i386_fbsd"
3939 esac
3943 darwin*)
3944 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3945 aros_host_arch="darwin"
3946 case "$host_cpu" in
3947 *i?86*)
3948 aros_host_cpu="i386"
3950 *powerpc*)
3951 aros_host_cpu="ppc"
3954 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3955 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3956 aros_host_cpu="$host_cpu"
3958 esac
3960 aros_host_ldflags="$aros_host_ldflags -liconv"
3964 netbsd*)
3965 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3966 aros_host_make="gmake"
3967 aros_host_arch="netbsd"
3968 case "$host_cpu" in
3969 *i?86*)
3970 aros_host_cpu="i386"
3972 *m68k*)
3973 aros_host_cpu="m68k"
3976 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3977 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3978 aros_host_cpu="$host_cpu"
3980 esac
3981 aros_host_lib_suffix=".0.0"
3984 openbsd*)
3985 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3986 aros_host_make="gmake"
3987 aros_host_arch="openbsd"
3988 case "$host_cpu" in
3989 *i?86*)
3990 aros_host_cpu="i386"
3993 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3994 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3995 aros_host_cpu="$host_cpu"
3997 esac
4000 solaris*)
4001 aros_host_arch="solaris"
4002 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4003 case "$host_cpu" in
4004 *sparc*)
4005 aros_host_cpu="sparc"
4008 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4009 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4010 aros_host_cpu="$host_cpu"
4012 esac
4015 morphos*)
4016 aros_host_arch="morphos"
4017 aros_host_cpu="ppc"
4020 amiga*)
4021 aros_host_arch="amiga"
4022 SORT="/gg/bin/sort"
4023 TEST="/gg/bin/test"
4024 UNIQ="/gg/bin/uniq"
4025 FOR="for"
4026 TOUCH="/gg/bin/touch"
4027 case "$host_cpu" in
4028 *m68k*)
4029 aros_host_cpu="m68k"
4031 *powerpc*)
4032 aros_host_cpu="ppc"
4035 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4036 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4037 aros_host_cpu="$host_cpu"
4039 esac
4042 cygwin*)
4043 aros_host_arch="cygwin"
4044 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4045 case "$host_cpu" in
4046 *i?86*)
4047 aros_host_cpu="i386"
4050 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4051 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4052 aros_host_cpu="$host_cpu"
4054 esac
4057 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4058 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4059 { (exit 1); exit 1; }; }
4061 esac
4063 # Extract the first word of "ar", so it can be a program name with args.
4064 set dummy ar; ac_word=$2
4065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if test -n "$aros_host_ar"; then
4071 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_aros_host_ar="ar cr"
4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4086 IFS=$as_save_IFS
4090 aros_host_ar=$ac_cv_prog_aros_host_ar
4091 if test -n "$aros_host_ar"; then
4092 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4093 echo "${ECHO_T}$aros_host_ar" >&6; }
4094 else
4095 { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4100 if test "$aros_host_ar" = ""; then
4101 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4102 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4103 { (exit 1); exit 1; }; }
4105 # Extract the first word of "ranlib", so it can be a program name with args.
4106 set dummy ranlib; ac_word=$2
4107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4109 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$aros_host_ranlib"; then
4113 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_aros_host_ranlib="ranlib "
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4132 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4133 if test -n "$aros_host_ranlib"; then
4134 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4135 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4136 else
4137 { echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6; }
4142 if test "$aros_host_ranlib" = ""; then
4143 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4144 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4145 { (exit 1); exit 1; }; }
4147 # Extract the first word of "strip", so it can be a program name with args.
4148 set dummy strip; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 if test -n "$aros_host_strip"; then
4155 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_aros_host_strip="strip "
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4168 done
4169 done
4170 IFS=$as_save_IFS
4174 aros_host_strip=$ac_cv_prog_aros_host_strip
4175 if test -n "$aros_host_strip"; then
4176 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4177 echo "${ECHO_T}$aros_host_strip" >&6; }
4178 else
4179 { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4184 if test "$aros_host_strip" = ""; then
4185 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4186 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4187 { (exit 1); exit 1; }; }
4190 # Extract the first word of "rm", so it can be a program name with args.
4191 set dummy rm; ac_word=$2
4192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_RM+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test -n "$RM"; then
4198 ac_cv_prog_RM="$RM" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_RM="rm -rf"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 RM=$ac_cv_prog_RM
4218 if test -n "$RM"; then
4219 { echo "$as_me:$LINENO: result: $RM" >&5
4220 echo "${ECHO_T}$RM" >&6; }
4221 else
4222 { echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6; }
4227 if test "$RM" = ""; then
4228 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4229 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4230 { (exit 1); exit 1; }; }
4232 # Extract the first word of "cp", so it can be a program name with args.
4233 set dummy cp; ac_word=$2
4234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4236 if test "${ac_cv_prog_CP+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 if test -n "$CP"; then
4240 ac_cv_prog_CP="$CP" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CP="cp "
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4255 IFS=$as_save_IFS
4259 CP=$ac_cv_prog_CP
4260 if test -n "$CP"; then
4261 { echo "$as_me:$LINENO: result: $CP" >&5
4262 echo "${ECHO_T}$CP" >&6; }
4263 else
4264 { echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6; }
4269 if test "$CP" = ""; then
4270 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4271 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4272 { (exit 1); exit 1; }; }
4274 # Extract the first word of "mv", so it can be a program name with args.
4275 set dummy mv; ac_word=$2
4276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4278 if test "${ac_cv_prog_MV+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 if test -n "$MV"; then
4282 ac_cv_prog_MV="$MV" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_MV="mv "
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4295 done
4296 done
4297 IFS=$as_save_IFS
4301 MV=$ac_cv_prog_MV
4302 if test -n "$MV"; then
4303 { echo "$as_me:$LINENO: result: $MV" >&5
4304 echo "${ECHO_T}$MV" >&6; }
4305 else
4306 { echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6; }
4311 if test "$MV" = ""; then
4312 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4313 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4314 { (exit 1); exit 1; }; }
4316 # Extract the first word of "echo", so it can be a program name with args.
4317 set dummy echo; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_ECHO+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$ECHO"; then
4324 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_ECHO="echo "
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 ECHO=$ac_cv_prog_ECHO
4344 if test -n "$ECHO"; then
4345 { echo "$as_me:$LINENO: result: $ECHO" >&5
4346 echo "${ECHO_T}$ECHO" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4353 if test "$ECHO" = ""; then
4354 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4355 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4356 { (exit 1); exit 1; }; }
4358 # Extract the first word of "mkdir", so it can be a program name with args.
4359 set dummy mkdir; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_prog_MKDIR+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$MKDIR"; then
4366 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_MKDIR="mkdir -p"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 MKDIR=$ac_cv_prog_MKDIR
4386 if test -n "$MKDIR"; then
4387 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4388 echo "${ECHO_T}$MKDIR" >&6; }
4389 else
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4395 if test "$MKDIR" = ""; then
4396 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4397 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4398 { (exit 1); exit 1; }; }
4400 # Extract the first word of "touch", so it can be a program name with args.
4401 set dummy touch; ac_word=$2
4402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4404 if test "${ac_cv_prog_TOUCH+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 if test -n "$TOUCH"; then
4408 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_TOUCH="touch "
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 TOUCH=$ac_cv_prog_TOUCH
4428 if test -n "$TOUCH"; then
4429 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4430 echo "${ECHO_T}$TOUCH" >&6; }
4431 else
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4437 if test "$TOUCH" = ""; then
4438 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4439 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4440 { (exit 1); exit 1; }; }
4442 # Extract the first word of "sort", so it can be a program name with args.
4443 set dummy sort; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_SORT+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 if test -n "$SORT"; then
4450 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_SORT="sort "
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 SORT=$ac_cv_prog_SORT
4470 if test -n "$SORT"; then
4471 { echo "$as_me:$LINENO: result: $SORT" >&5
4472 echo "${ECHO_T}$SORT" >&6; }
4473 else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test "$SORT" = ""; then
4480 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4481 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Extract the first word of "uniq", so it can be a program name with args.
4485 set dummy uniq; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_prog_UNIQ+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$UNIQ"; then
4492 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_UNIQ="uniq "
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 UNIQ=$ac_cv_prog_UNIQ
4512 if test -n "$UNIQ"; then
4513 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4514 echo "${ECHO_T}$UNIQ" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 if test "$UNIQ" = ""; then
4522 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4523 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Extract the first word of "true", so it can be a program name with args.
4527 set dummy true; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_NOP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$NOP"; then
4534 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_NOP="true "
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 NOP=$ac_cv_prog_NOP
4554 if test -n "$NOP"; then
4555 { echo "$as_me:$LINENO: result: $NOP" >&5
4556 echo "${ECHO_T}$NOP" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test "$NOP" = ""; then
4564 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4565 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4566 { (exit 1); exit 1; }; }
4568 # Extract the first word of "cat", so it can be a program name with args.
4569 set dummy cat; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_prog_CAT+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$CAT"; then
4576 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_CAT="cat "
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 CAT=$ac_cv_prog_CAT
4596 if test -n "$CAT"; then
4597 { echo "$as_me:$LINENO: result: $CAT" >&5
4598 echo "${ECHO_T}$CAT" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test "$CAT" = ""; then
4606 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4607 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4608 { (exit 1); exit 1; }; }
4610 # Extract the first word of "bison", so it can be a program name with args.
4611 set dummy bison; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BISON+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 if test -n "$BISON"; then
4618 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BISON="bison "
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 BISON=$ac_cv_prog_BISON
4638 if test -n "$BISON"; then
4639 { echo "$as_me:$LINENO: result: $BISON" >&5
4640 echo "${ECHO_T}$BISON" >&6; }
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test "$BISON" = ""; then
4648 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4649 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4650 { (exit 1); exit 1; }; }
4652 # Extract the first word of "flex", so it can be a program name with args.
4653 set dummy flex; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_FLEX+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$FLEX"; then
4660 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_FLEX="flex "
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 FLEX=$ac_cv_prog_FLEX
4680 if test -n "$FLEX"; then
4681 { echo "$as_me:$LINENO: result: $FLEX" >&5
4682 echo "${ECHO_T}$FLEX" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 if test "$FLEX" = ""; then
4690 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4691 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4692 { (exit 1); exit 1; }; }
4694 # Extract the first word of "pngtopnm", so it can be a program name with args.
4695 set dummy pngtopnm; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$PNGTOPNM"; then
4702 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_PNGTOPNM="pngtopnm "
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4722 if test -n "$PNGTOPNM"; then
4723 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4724 echo "${ECHO_T}$PNGTOPNM" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test "$PNGTOPNM" = ""; then
4732 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4733 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4737 set dummy ppmtoilbm; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$PPMTOILBM"; then
4744 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4764 if test -n "$PPMTOILBM"; then
4765 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4766 echo "${ECHO_T}$PPMTOILBM" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 if test "$PPMTOILBM" = ""; then
4774 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4775 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4776 { (exit 1); exit 1; }; }
4778 # Extract the first word of "sed", so it can be a program name with args.
4779 set dummy sed; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_SED+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$SED"; then
4786 ac_cv_prog_SED="$SED" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_SED="sed "
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 SED=$ac_cv_prog_SED
4806 if test -n "$SED"; then
4807 { echo "$as_me:$LINENO: result: $SED" >&5
4808 echo "${ECHO_T}$SED" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test "$SED" = ""; then
4816 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4817 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4818 { (exit 1); exit 1; }; }
4820 # Extract the first word of "chmod", so it can be a program name with args.
4821 set dummy chmod; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CHMOD+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$CHMOD"; then
4828 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CHMOD="chmod "
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4841 done
4842 done
4843 IFS=$as_save_IFS
4847 CHMOD=$ac_cv_prog_CHMOD
4848 if test -n "$CHMOD"; then
4849 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4850 echo "${ECHO_T}$CHMOD" >&6; }
4851 else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test "$CHMOD" = ""; then
4858 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4859 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4860 { (exit 1); exit 1; }; }
4867 if test -n "$PYTHON"; then
4868 # If the user set $PYTHON, use it and don't search something else.
4869 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4870 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4871 prog="import sys, string
4872 # split strings by '.' and convert to numeric. Append some zeros
4873 # because we need at least 4 digits for the hex conversion.
4874 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4875 minverhex = 0
4876 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4877 sys.exit(sys.hexversion < minverhex)"
4878 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4879 ($PYTHON -c "$prog") >&5 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; then
4883 { echo "$as_me:$LINENO: result: yes" >&5
4884 echo "${ECHO_T}yes" >&6; }
4885 else
4886 { { echo "$as_me:$LINENO: error: too old" >&5
4887 echo "$as_me: error: too old" >&2;}
4888 { (exit 1); exit 1; }; }
4891 else
4892 # Otherwise, try each interpreter until we find one that satisfies
4893 # VERSION.
4894 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4895 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4896 if test "${am_cv_pathless_PYTHON+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4900 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
4901 test "$am_cv_pathless_PYTHON" = none && break
4902 prog="import sys, string
4903 # split strings by '.' and convert to numeric. Append some zeros
4904 # because we need at least 4 digits for the hex conversion.
4905 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4906 minverhex = 0
4907 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4908 sys.exit(sys.hexversion < minverhex)"
4909 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4910 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; then
4914 break
4917 done
4919 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4920 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4921 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4922 if test "$am_cv_pathless_PYTHON" = none; then
4923 PYTHON=:
4924 else
4925 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4926 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_path_PYTHON+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 case $PYTHON in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4953 esac
4955 PYTHON=$ac_cv_path_PYTHON
4956 if test -n "$PYTHON"; then
4957 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4958 echo "${ECHO_T}$PYTHON" >&6; }
4959 else
4960 { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4966 am_display_PYTHON=$am_cv_pathless_PYTHON
4970 if test "$PYTHON" = :; then
4971 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4972 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4973 { (exit 1); exit 1; }; }
4974 else
4977 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4978 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4979 if test "${am_cv_python_version+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4984 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4985 echo "${ECHO_T}$am_cv_python_version" >&6; }
4986 PYTHON_VERSION=$am_cv_python_version
4990 PYTHON_PREFIX='${prefix}'
4992 PYTHON_EXEC_PREFIX='${exec_prefix}'
4996 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4997 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
4998 if test "${am_cv_python_platform+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5003 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5004 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5005 PYTHON_PLATFORM=$am_cv_python_platform
5010 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5011 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5012 if test "${am_cv_python_pythondir+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5016 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5018 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5019 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5020 pythondir=$am_cv_python_pythondir
5024 pkgpythondir=\${pythondir}/$PACKAGE
5027 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5028 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5029 if test "${am_cv_python_pyexecdir+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5033 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5035 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5036 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5037 pyexecdir=$am_cv_python_pyexecdir
5041 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5049 FOR=for
5051 IF=if
5053 TEST=test
5055 CMP=cmp
5059 # Check for some includes for the X11 HIDD and the kernel
5062 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5063 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_GREP+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 # Extract the first word of "grep ggrep" to use in msg output
5068 if test -z "$GREP"; then
5069 set dummy grep ggrep; ac_prog_name=$2
5070 if test "${ac_cv_path_GREP+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_path_GREP_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in grep ggrep; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085 # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5087 *GNU*)
5088 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5090 ac_count=0
5091 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5092 while :
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 echo 'GREP' >> "conftest.nl"
5098 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 ac_count=`expr $ac_count + 1`
5101 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_GREP="$ac_path_GREP"
5104 ac_path_GREP_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5108 done
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110 esac
5113 $ac_path_GREP_found && break 3
5114 done
5115 done
5117 done
5118 IFS=$as_save_IFS
5123 GREP="$ac_cv_path_GREP"
5124 if test -z "$GREP"; then
5125 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5126 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5127 { (exit 1); exit 1; }; }
5130 else
5131 ac_cv_path_GREP=$GREP
5136 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5137 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5138 GREP="$ac_cv_path_GREP"
5141 { echo "$as_me:$LINENO: checking for egrep" >&5
5142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_EGREP+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5147 then ac_cv_path_EGREP="$GREP -E"
5148 else
5149 # Extract the first word of "egrep" to use in msg output
5150 if test -z "$EGREP"; then
5151 set dummy egrep; ac_prog_name=$2
5152 if test "${ac_cv_path_EGREP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_path_EGREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in egrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5165 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5166 # Check for GNU ac_path_EGREP and select it if it is found.
5167 # Check for GNU $ac_path_EGREP
5168 case `"$ac_path_EGREP" --version 2>&1` in
5169 *GNU*)
5170 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5172 ac_count=0
5173 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5174 while :
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 echo 'EGREP' >> "conftest.nl"
5180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 ac_count=`expr $ac_count + 1`
5183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_EGREP="$ac_path_EGREP"
5186 ac_path_EGREP_max=$ac_count
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5190 done
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 esac
5195 $ac_path_EGREP_found && break 3
5196 done
5197 done
5199 done
5200 IFS=$as_save_IFS
5205 EGREP="$ac_cv_path_EGREP"
5206 if test -z "$EGREP"; then
5207 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5208 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5209 { (exit 1); exit 1; }; }
5212 else
5213 ac_cv_path_EGREP=$EGREP
5219 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5220 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5221 EGREP="$ac_cv_path_EGREP"
5224 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #include <stdlib.h>
5236 #include <stdarg.h>
5237 #include <string.h>
5238 #include <float.h>
5241 main ()
5245 return 0;
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 ac_cv_header_stdc=yes
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5270 ac_cv_header_stdc=no
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 if test $ac_cv_header_stdc = yes; then
5276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <string.h>
5285 _ACEOF
5286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 $EGREP "memchr" >/dev/null 2>&1; then
5289 else
5290 ac_cv_header_stdc=no
5292 rm -f conftest*
5296 if test $ac_cv_header_stdc = yes; then
5297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #include <stdlib.h>
5306 _ACEOF
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "free" >/dev/null 2>&1; then
5310 else
5311 ac_cv_header_stdc=no
5313 rm -f conftest*
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <ctype.h>
5329 #include <stdlib.h>
5330 #if ((' ' & 0x0FF) == 0x020)
5331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5333 #else
5334 # define ISLOWER(c) \
5335 (('a' <= (c) && (c) <= 'i') \
5336 || ('j' <= (c) && (c) <= 'r') \
5337 || ('s' <= (c) && (c) <= 'z'))
5338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5339 #endif
5341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5343 main ()
5345 int i;
5346 for (i = 0; i < 256; i++)
5347 if (XOR (islower (i), ISLOWER (i))
5348 || toupper (i) != TOUPPER (i))
5349 return 2;
5350 return 0;
5352 _ACEOF
5353 rm -f conftest$ac_exeext
5354 if { (ac_try="$ac_link"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5374 else
5375 echo "$as_me: program exited with status $ac_status" >&5
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ( exit $ac_status )
5380 ac_cv_header_stdc=no
5382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5389 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5390 if test $ac_cv_header_stdc = yes; then
5392 cat >>confdefs.h <<\_ACEOF
5393 #define STDC_HEADERS 1
5394 _ACEOF
5398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409 inttypes.h stdint.h unistd.h
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5425 #include <$ac_header>
5426 _ACEOF
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5429 case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
5444 eval "$as_ac_Header=yes"
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 eval "$as_ac_Header=no"
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_res=`eval echo '${'$as_ac_Header'}'`
5455 { echo "$as_me:$LINENO: result: $ac_res" >&5
5456 echo "${ECHO_T}$ac_res" >&6; }
5457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5460 _ACEOF
5464 done
5476 for ac_header in sys/ipc.h sys/shm.h \
5477 sys/mmap.h sys/mman.h sysexits.h \
5478 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489 { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 else
5492 # Is the header compilable?
5493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 $ac_includes_default
5502 #include <$ac_header>
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 ac_header_compiler=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_header_compiler=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5531 echo "${ECHO_T}$ac_header_compiler" >&6; }
5533 # Is the header present?
5534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <$ac_header>
5543 _ACEOF
5544 if { (ac_try="$ac_cpp conftest.$ac_ext"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null && {
5557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 }; then
5560 ac_header_preproc=yes
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 ac_header_preproc=no
5568 rm -f conftest.err conftest.$ac_ext
5569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5570 echo "${ECHO_T}$ac_header_preproc" >&6; }
5572 # So? What about this header?
5573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5574 yes:no: )
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5579 ac_header_preproc=yes
5581 no:yes:* )
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5596 esac
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 eval "$as_ac_Header=\$ac_header_preproc"
5604 ac_res=`eval echo '${'$as_ac_Header'}'`
5605 { echo "$as_me:$LINENO: result: $ac_res" >&5
5606 echo "${ECHO_T}$ac_res" >&6; }
5609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5610 cat >>confdefs.h <<_ACEOF
5611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5612 _ACEOF
5616 done
5620 for ac_header in sys/mount.h
5622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <sys/param.h>
5636 #include <$ac_header>
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 eval "$as_ac_Header=yes"
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 eval "$as_ac_Header=no"
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666 { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671 _ACEOF
5675 done
5683 ac_header_dirent=no
5684 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5685 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5686 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5687 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <sys/types.h>
5698 #include <$ac_hdr>
5701 main ()
5703 if ((DIR *) 0)
5704 return 0;
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 eval "$as_ac_Header=yes"
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 eval "$as_ac_Header=no"
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 ac_res=`eval echo '${'$as_ac_Header'}'`
5737 { echo "$as_me:$LINENO: result: $ac_res" >&5
5738 echo "${ECHO_T}$ac_res" >&6; }
5739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5742 _ACEOF
5744 ac_header_dirent=$ac_hdr; break
5747 done
5748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5749 if test $ac_header_dirent = dirent.h; then
5750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5752 if test "${ac_cv_search_opendir+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 ac_func_search_save_LIBS=$LIBS
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 /* Override any GCC internal prototype to avoid an error.
5764 Use char because int might match the return type of a GCC
5765 builtin and then its argument prototype would still apply. */
5766 #ifdef __cplusplus
5767 extern "C"
5768 #endif
5769 char opendir ();
5771 main ()
5773 return opendir ();
5775 return 0;
5777 _ACEOF
5778 for ac_lib in '' dir; do
5779 if test -z "$ac_lib"; then
5780 ac_res="none required"
5781 else
5782 ac_res=-l$ac_lib
5783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (ac_try="$ac_link"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_link") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest$ac_exeext &&
5802 $as_test_x conftest$ac_exeext; then
5803 ac_cv_search_opendir=$ac_res
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5812 conftest$ac_exeext
5813 if test "${ac_cv_search_opendir+set}" = set; then
5814 break
5816 done
5817 if test "${ac_cv_search_opendir+set}" = set; then
5819 else
5820 ac_cv_search_opendir=no
5822 rm conftest.$ac_ext
5823 LIBS=$ac_func_search_save_LIBS
5825 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5826 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5827 ac_res=$ac_cv_search_opendir
5828 if test "$ac_res" != no; then
5829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5833 else
5834 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5836 if test "${ac_cv_search_opendir+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 ac_func_search_save_LIBS=$LIBS
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5847 /* Override any GCC internal prototype to avoid an error.
5848 Use char because int might match the return type of a GCC
5849 builtin and then its argument prototype would still apply. */
5850 #ifdef __cplusplus
5851 extern "C"
5852 #endif
5853 char opendir ();
5855 main ()
5857 return opendir ();
5859 return 0;
5861 _ACEOF
5862 for ac_lib in '' x; do
5863 if test -z "$ac_lib"; then
5864 ac_res="none required"
5865 else
5866 ac_res=-l$ac_lib
5867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 ac_cv_search_opendir=$ac_res
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext
5897 if test "${ac_cv_search_opendir+set}" = set; then
5898 break
5900 done
5901 if test "${ac_cv_search_opendir+set}" = set; then
5903 else
5904 ac_cv_search_opendir=no
5906 rm conftest.$ac_ext
5907 LIBS=$ac_func_search_save_LIBS
5909 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5910 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5911 ac_res=$ac_cv_search_opendir
5912 if test "$ac_res" != no; then
5913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5919 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5921 if test "${ac_cv_header_stat_broken+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 #include <sys/stat.h>
5933 #if defined S_ISBLK && defined S_IFDIR
5934 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5935 #endif
5937 #if defined S_ISBLK && defined S_IFCHR
5938 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5939 #endif
5941 #if defined S_ISLNK && defined S_IFREG
5942 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5943 #endif
5945 #if defined S_ISSOCK && defined S_IFREG
5946 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5947 #endif
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 ac_cv_header_stat_broken=no
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_cv_header_stat_broken=yes
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5978 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5979 if test $ac_cv_header_stat_broken = yes; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define STAT_MACROS_BROKEN 1
5983 _ACEOF
5987 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5988 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5989 if test "${ac_cv_header_stdc+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <stdlib.h>
5999 #include <stdarg.h>
6000 #include <string.h>
6001 #include <float.h>
6004 main ()
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_header_stdc=yes
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_header_stdc=no
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 if test $ac_cv_header_stdc = yes; then
6039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <string.h>
6048 _ACEOF
6049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6050 $EGREP "memchr" >/dev/null 2>&1; then
6052 else
6053 ac_cv_header_stdc=no
6055 rm -f conftest*
6059 if test $ac_cv_header_stdc = yes; then
6060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <stdlib.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "free" >/dev/null 2>&1; then
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6082 if test "$cross_compiling" = yes; then
6084 else
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <ctype.h>
6092 #include <stdlib.h>
6093 #if ((' ' & 0x0FF) == 0x020)
6094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096 #else
6097 # define ISLOWER(c) \
6098 (('a' <= (c) && (c) <= 'i') \
6099 || ('j' <= (c) && (c) <= 'r') \
6100 || ('s' <= (c) && (c) <= 'z'))
6101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6102 #endif
6104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6106 main ()
6108 int i;
6109 for (i = 0; i < 256; i++)
6110 if (XOR (islower (i), ISLOWER (i))
6111 || toupper (i) != TOUPPER (i))
6112 return 2;
6113 return 0;
6115 _ACEOF
6116 rm -f conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_link") 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6127 { (case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_try") 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6137 else
6138 echo "$as_me: program exited with status $ac_status" >&5
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ( exit $ac_status )
6143 ac_cv_header_stdc=no
6145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6152 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6153 if test $ac_cv_header_stdc = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156 #define STDC_HEADERS 1
6157 _ACEOF
6161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <sys/types.h>
6173 #include <sys/wait.h>
6174 #ifndef WEXITSTATUS
6175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6176 #endif
6177 #ifndef WIFEXITED
6178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6179 #endif
6182 main ()
6184 int s;
6185 wait (&s);
6186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_cv_header_sys_wait_h=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_header_sys_wait_h=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6220 if test $ac_cv_header_sys_wait_h = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_SYS_WAIT_H 1
6224 _ACEOF
6228 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6229 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6230 if test "${ac_cv_header_time+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <sys/types.h>
6240 #include <sys/time.h>
6241 #include <time.h>
6244 main ()
6246 if ((struct tm *) 0)
6247 return 0;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.$ac_objext; then
6269 ac_cv_header_time=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_cv_header_time=no
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6280 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6281 if test $ac_cv_header_time = yes; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define TIME_WITH_SYS_TIME 1
6285 _ACEOF
6289 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6290 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6291 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6302 main ()
6304 static struct stat ac_aggr;
6305 if (ac_aggr.st_blksize)
6306 return 0;
6308 return 0;
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_cv_member_struct_stat_st_blksize=yes
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6341 main ()
6343 static struct stat ac_aggr;
6344 if (sizeof ac_aggr.st_blksize)
6345 return 0;
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 ac_cv_member_struct_stat_st_blksize=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_member_struct_stat_st_blksize=no
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6381 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6382 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6386 _ACEOF
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_ST_BLKSIZE 1
6391 _ACEOF
6396 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6397 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6398 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 $ac_includes_default
6409 main ()
6411 static struct stat ac_aggr;
6412 if (ac_aggr.st_blocks)
6413 return 0;
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (ac_try="$ac_compile"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_compile") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_objext; then
6435 ac_cv_member_struct_stat_st_blocks=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 main ()
6450 static struct stat ac_aggr;
6451 if (sizeof ac_aggr.st_blocks)
6452 return 0;
6454 return 0;
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.$ac_objext; then
6474 ac_cv_member_struct_stat_st_blocks=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_member_struct_stat_st_blocks=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6489 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6493 _ACEOF
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_ST_BLOCKS 1
6498 _ACEOF
6500 else
6501 case " $LIBOBJS " in
6502 *" fileblocks.$ac_objext "* ) ;;
6503 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6505 esac
6510 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6511 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6512 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6523 main ()
6525 static struct stat ac_aggr;
6526 if (ac_aggr.st_rdev)
6527 return 0;
6529 return 0;
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_cv_member_struct_stat_st_rdev=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6562 main ()
6564 static struct stat ac_aggr;
6565 if (sizeof ac_aggr.st_rdev)
6566 return 0;
6568 return 0;
6570 _ACEOF
6571 rm -f conftest.$ac_objext
6572 if { (ac_try="$ac_compile"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_cv_member_struct_stat_st_rdev=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_cv_member_struct_stat_st_rdev=no
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6602 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6603 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606 #define HAVE_STRUCT_STAT_ST_RDEV 1
6607 _ACEOF
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_ST_RDEV 1
6612 _ACEOF
6617 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6618 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6619 if test "${ac_cv_struct_tm+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <sys/types.h>
6629 #include <time.h>
6632 main ()
6634 struct tm tm;
6635 int *p = &tm.tm_sec;
6636 return !p;
6638 return 0;
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6643 case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6658 ac_cv_struct_tm=time.h
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_struct_tm=sys/time.h
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6669 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6670 if test $ac_cv_struct_tm = sys/time.h; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define TM_IN_SYS_TIME 1
6674 _ACEOF
6678 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6679 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6680 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <sys/types.h>
6690 #include <$ac_cv_struct_tm>
6694 main ()
6696 static struct tm ac_aggr;
6697 if (ac_aggr.tm_zone)
6698 return 0;
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && {
6717 test -z "$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 } && test -s conftest.$ac_objext; then
6720 ac_cv_member_struct_tm_tm_zone=yes
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <sys/types.h>
6732 #include <$ac_cv_struct_tm>
6736 main ()
6738 static struct tm ac_aggr;
6739 if (sizeof ac_aggr.tm_zone)
6740 return 0;
6742 return 0;
6744 _ACEOF
6745 rm -f conftest.$ac_objext
6746 if { (ac_try="$ac_compile"
6747 case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_compile") 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && {
6759 test -z "$ac_c_werror_flag" ||
6760 test ! -s conftest.err
6761 } && test -s conftest.$ac_objext; then
6762 ac_cv_member_struct_tm_tm_zone=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_member_struct_tm_tm_zone=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6776 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6777 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define HAVE_STRUCT_TM_TM_ZONE 1
6781 _ACEOF
6786 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_TM_ZONE 1
6790 _ACEOF
6792 else
6793 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6794 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6795 if test "${ac_cv_have_decl_tzname+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 #include <time.h>
6807 main ()
6809 #ifndef tzname
6810 (void) tzname;
6811 #endif
6814 return 0;
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6819 case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822 esac
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_cv_have_decl_tzname=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_have_decl_tzname=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6845 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6846 if test $ac_cv_have_decl_tzname = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_DECL_TZNAME 1
6850 _ACEOF
6853 else
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_DECL_TZNAME 0
6856 _ACEOF
6862 { echo "$as_me:$LINENO: checking for tzname" >&5
6863 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6864 if test "${ac_cv_var_tzname+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <time.h>
6874 #if !HAVE_DECL_TZNAME
6875 extern char *tzname[];
6876 #endif
6879 main ()
6881 return tzname[0][0];
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6904 ac_cv_var_tzname=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_var_tzname=no
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913 conftest$ac_exeext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6916 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6917 if test $ac_cv_var_tzname = yes; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_TZNAME 1
6921 _ACEOF
6926 { echo "$as_me:$LINENO: checking for off_t" >&5
6927 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6928 if test "${ac_cv_type_off_t+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6938 typedef off_t ac__type_new_;
6940 main ()
6942 if ((ac__type_new_ *) 0)
6943 return 0;
6944 if (sizeof (ac__type_new_))
6945 return 0;
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_compile") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest.$ac_objext; then
6967 ac_cv_type_off_t=yes
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_cv_type_off_t=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6978 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6979 if test $ac_cv_type_off_t = yes; then
6981 else
6983 cat >>confdefs.h <<_ACEOF
6984 #define off_t long int
6985 _ACEOF
6989 { echo "$as_me:$LINENO: checking for pid_t" >&5
6990 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6991 if test "${ac_cv_type_pid_t+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 typedef pid_t ac__type_new_;
7003 main ()
7005 if ((ac__type_new_ *) 0)
7006 return 0;
7007 if (sizeof (ac__type_new_))
7008 return 0;
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (ac_try="$ac_compile"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_type_pid_t=yes
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_type_pid_t=no
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7041 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7042 if test $ac_cv_type_pid_t = yes; then
7044 else
7046 cat >>confdefs.h <<_ACEOF
7047 #define pid_t int
7048 _ACEOF
7052 { echo "$as_me:$LINENO: checking for size_t" >&5
7053 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7054 if test "${ac_cv_type_size_t+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 typedef size_t ac__type_new_;
7066 main ()
7068 if ((ac__type_new_ *) 0)
7069 return 0;
7070 if (sizeof (ac__type_new_))
7071 return 0;
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 ac_cv_type_size_t=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_type_size_t=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7104 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7105 if test $ac_cv_type_size_t = yes; then
7107 else
7109 cat >>confdefs.h <<_ACEOF
7110 #define size_t unsigned int
7111 _ACEOF
7115 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7116 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_uid_t+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7128 _ACEOF
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130 $EGREP "uid_t" >/dev/null 2>&1; then
7131 ac_cv_type_uid_t=yes
7132 else
7133 ac_cv_type_uid_t=no
7135 rm -f conftest*
7138 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7139 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7140 if test $ac_cv_type_uid_t = no; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define uid_t int
7144 _ACEOF
7147 cat >>confdefs.h <<\_ACEOF
7148 #define gid_t int
7149 _ACEOF
7154 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7155 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7156 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7167 main ()
7169 static struct tm ac_aggr;
7170 if (ac_aggr.tm_gmtoff)
7171 return 0;
7173 return 0;
7175 _ACEOF
7176 rm -f conftest.$ac_objext
7177 if { (ac_try="$ac_compile"
7178 case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_compile") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest.$ac_objext; then
7193 ac_cv_member_struct_tm_tm_gmtoff=yes
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 main ()
7208 static struct tm ac_aggr;
7209 if (sizeof ac_aggr.tm_gmtoff)
7210 return 0;
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_member_struct_tm_tm_gmtoff=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_member_struct_tm_tm_gmtoff=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7246 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7247 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7251 _ACEOF
7257 # Look for some functions
7272 for ac_func in getpagesize kqueue statfs statvfs \
7273 clone kse_create rfork_thread thr_create sa_register \
7274 getcontext makecontext setcontext sigaltstack swapcontext
7276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7290 #define $ac_func innocuous_$ac_func
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func (); below.
7294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295 <limits.h> exists even on freestanding compilers. */
7297 #ifdef __STDC__
7298 # include <limits.h>
7299 #else
7300 # include <assert.h>
7301 #endif
7303 #undef $ac_func
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 #endif
7311 char $ac_func ();
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined __stub_$ac_func || defined __stub___$ac_func
7316 choke me
7317 #endif
7320 main ()
7322 return $ac_func ();
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7329 case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332 esac
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_link") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest$ac_exeext &&
7344 $as_test_x conftest$ac_exeext; then
7345 eval "$as_ac_var=yes"
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7350 eval "$as_ac_var=no"
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354 conftest$ac_exeext conftest.$ac_ext
7356 ac_res=`eval echo '${'$as_ac_var'}'`
7357 { echo "$as_me:$LINENO: result: $ac_res" >&5
7358 echo "${ECHO_T}$ac_res" >&6; }
7359 if test `eval echo '${'$as_ac_var'}'` = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7362 _ACEOF
7365 done
7370 for ac_header in stdlib.h unistd.h
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 else
7383 # Is the header compilable?
7384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7434 _ACEOF
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev/null && {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 }; then
7451 ac_header_preproc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_header_preproc=no
7459 rm -f conftest.err conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6; }
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7465 yes:no: )
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc=yes
7472 no:yes:* )
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7487 esac
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 eval "$as_ac_Header=\$ac_header_preproc"
7495 ac_res=`eval echo '${'$as_ac_Header'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7507 done
7510 for ac_func in getpagesize
7512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7513 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7526 #define $ac_func innocuous_$ac_func
7528 /* System header to define __stub macros and hopefully few prototypes,
7529 which can conflict with char $ac_func (); below.
7530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 <limits.h> exists even on freestanding compilers. */
7533 #ifdef __STDC__
7534 # include <limits.h>
7535 #else
7536 # include <assert.h>
7537 #endif
7539 #undef $ac_func
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544 #ifdef __cplusplus
7545 extern "C"
7546 #endif
7547 char $ac_func ();
7548 /* The GNU C library defines this for functions which it implements
7549 to always fail with ENOSYS. Some functions are actually named
7550 something starting with __ and the normal name is an alias. */
7551 #if defined __stub_$ac_func || defined __stub___$ac_func
7552 choke me
7553 #endif
7556 main ()
7558 return $ac_func ();
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (ac_try="$ac_link"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_link") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest$ac_exeext &&
7580 $as_test_x conftest$ac_exeext; then
7581 eval "$as_ac_var=yes"
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 eval "$as_ac_var=no"
7589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7590 conftest$ac_exeext conftest.$ac_ext
7592 ac_res=`eval echo '${'$as_ac_var'}'`
7593 { echo "$as_me:$LINENO: result: $ac_res" >&5
7594 echo "${ECHO_T}$ac_res" >&6; }
7595 if test `eval echo '${'$as_ac_var'}'` = yes; then
7596 cat >>confdefs.h <<_ACEOF
7597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7598 _ACEOF
7601 done
7603 { echo "$as_me:$LINENO: checking for working mmap" >&5
7604 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7605 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 if test "$cross_compiling" = yes; then
7609 ac_cv_func_mmap_fixed_mapped=no
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 /* malloc might have been renamed as rpl_malloc. */
7619 #undef malloc
7621 /* Thanks to Mike Haertel and Jim Avera for this test.
7622 Here is a matrix of mmap possibilities:
7623 mmap private not fixed
7624 mmap private fixed at somewhere currently unmapped
7625 mmap private fixed at somewhere already mapped
7626 mmap shared not fixed
7627 mmap shared fixed at somewhere currently unmapped
7628 mmap shared fixed at somewhere already mapped
7629 For private mappings, we should verify that changes cannot be read()
7630 back from the file, nor mmap's back from the file at a different
7631 address. (There have been systems where private was not correctly
7632 implemented like the infamous i386 svr4.0, and systems where the
7633 VM page cache was not coherent with the file system buffer cache
7634 like early versions of FreeBSD and possibly contemporary NetBSD.)
7635 For shared mappings, we should conversely verify that changes get
7636 propagated back to all the places they're supposed to be.
7638 Grep wants private fixed already mapped.
7639 The main things grep needs to know about mmap are:
7640 * does it exist and is it safe to write into the mmap'd area
7641 * how to use it (BSD variants) */
7643 #include <fcntl.h>
7644 #include <sys/mman.h>
7646 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7647 char *malloc ();
7648 #endif
7650 /* This mess was copied from the GNU getpagesize.h. */
7651 #ifndef HAVE_GETPAGESIZE
7652 /* Assume that all systems that can run configure have sys/param.h. */
7653 # ifndef HAVE_SYS_PARAM_H
7654 # define HAVE_SYS_PARAM_H 1
7655 # endif
7657 # ifdef _SC_PAGESIZE
7658 # define getpagesize() sysconf(_SC_PAGESIZE)
7659 # else /* no _SC_PAGESIZE */
7660 # ifdef HAVE_SYS_PARAM_H
7661 # include <sys/param.h>
7662 # ifdef EXEC_PAGESIZE
7663 # define getpagesize() EXEC_PAGESIZE
7664 # else /* no EXEC_PAGESIZE */
7665 # ifdef NBPG
7666 # define getpagesize() NBPG * CLSIZE
7667 # ifndef CLSIZE
7668 # define CLSIZE 1
7669 # endif /* no CLSIZE */
7670 # else /* no NBPG */
7671 # ifdef NBPC
7672 # define getpagesize() NBPC
7673 # else /* no NBPC */
7674 # ifdef PAGESIZE
7675 # define getpagesize() PAGESIZE
7676 # endif /* PAGESIZE */
7677 # endif /* no NBPC */
7678 # endif /* no NBPG */
7679 # endif /* no EXEC_PAGESIZE */
7680 # else /* no HAVE_SYS_PARAM_H */
7681 # define getpagesize() 8192 /* punt totally */
7682 # endif /* no HAVE_SYS_PARAM_H */
7683 # endif /* no _SC_PAGESIZE */
7685 #endif /* no HAVE_GETPAGESIZE */
7688 main ()
7690 char *data, *data2, *data3;
7691 int i, pagesize;
7692 int fd;
7694 pagesize = getpagesize ();
7696 /* First, make a file with some known garbage in it. */
7697 data = (char *) malloc (pagesize);
7698 if (!data)
7699 return 1;
7700 for (i = 0; i < pagesize; ++i)
7701 *(data + i) = rand ();
7702 umask (0);
7703 fd = creat ("conftest.mmap", 0600);
7704 if (fd < 0)
7705 return 1;
7706 if (write (fd, data, pagesize) != pagesize)
7707 return 1;
7708 close (fd);
7710 /* Next, try to mmap the file at a fixed address which already has
7711 something else allocated at it. If we can, also make sure that
7712 we see the same garbage. */
7713 fd = open ("conftest.mmap", O_RDWR);
7714 if (fd < 0)
7715 return 1;
7716 data2 = (char *) malloc (2 * pagesize);
7717 if (!data2)
7718 return 1;
7719 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7720 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7721 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7722 return 1;
7723 for (i = 0; i < pagesize; ++i)
7724 if (*(data + i) != *(data2 + i))
7725 return 1;
7727 /* Finally, make sure that changes to the mapped area do not
7728 percolate back to the file as seen by read(). (This is a bug on
7729 some variants of i386 svr4.0.) */
7730 for (i = 0; i < pagesize; ++i)
7731 *(data2 + i) = *(data2 + i) + 1;
7732 data3 = (char *) malloc (pagesize);
7733 if (!data3)
7734 return 1;
7735 if (read (fd, data3, pagesize) != pagesize)
7736 return 1;
7737 for (i = 0; i < pagesize; ++i)
7738 if (*(data + i) != *(data3 + i))
7739 return 1;
7740 close (fd);
7741 return 0;
7743 _ACEOF
7744 rm -f conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_func_mmap_fixed_mapped=yes
7765 else
7766 echo "$as_me: program exited with status $ac_status" >&5
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 ( exit $ac_status )
7771 ac_cv_func_mmap_fixed_mapped=no
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_MMAP 1
7784 _ACEOF
7787 rm -f conftest.mmap
7790 # Find X
7791 { echo "$as_me:$LINENO: checking for X" >&5
7792 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7795 # Check whether --with-x was given.
7796 if test "${with_x+set}" = set; then
7797 withval=$with_x;
7800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7801 if test "x$with_x" = xno; then
7802 # The user explicitly disabled X.
7803 have_x=disabled
7804 else
7805 case $x_includes,$x_libraries in #(
7806 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7807 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
7808 { (exit 1); exit 1; }; };; #(
7809 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 # One or both of the vars are not set, and there is no cached value.
7813 ac_x_includes=no ac_x_libraries=no
7814 rm -f -r conftest.dir
7815 if mkdir conftest.dir; then
7816 cd conftest.dir
7817 cat >Imakefile <<'_ACEOF'
7818 incroot:
7819 @echo incroot='${INCROOT}'
7820 usrlibdir:
7821 @echo usrlibdir='${USRLIBDIR}'
7822 libdir:
7823 @echo libdir='${LIBDIR}'
7824 _ACEOF
7825 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7827 for ac_var in incroot usrlibdir libdir; do
7828 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7829 done
7830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7831 for ac_extension in a so sl; do
7832 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7833 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7834 ac_im_usrlibdir=$ac_im_libdir; break
7836 done
7837 # Screen out bogus values from the imake configuration. They are
7838 # bogus both because they are the default anyway, and because
7839 # using them would break gcc on systems where it needs fixed includes.
7840 case $ac_im_incroot in
7841 /usr/include) ac_x_includes= ;;
7842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7843 esac
7844 case $ac_im_usrlibdir in
7845 /usr/lib | /lib) ;;
7846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7847 esac
7849 cd ..
7850 rm -f -r conftest.dir
7853 # Standard set of common directories for X headers.
7854 # Check X11 before X11Rn because it is often a symlink to the current release.
7855 ac_x_header_dirs='
7856 /usr/X11/include
7857 /usr/X11R6/include
7858 /usr/X11R5/include
7859 /usr/X11R4/include
7861 /usr/include/X11
7862 /usr/include/X11R6
7863 /usr/include/X11R5
7864 /usr/include/X11R4
7866 /usr/local/X11/include
7867 /usr/local/X11R6/include
7868 /usr/local/X11R5/include
7869 /usr/local/X11R4/include
7871 /usr/local/include/X11
7872 /usr/local/include/X11R6
7873 /usr/local/include/X11R5
7874 /usr/local/include/X11R4
7876 /usr/X386/include
7877 /usr/x386/include
7878 /usr/XFree86/include/X11
7880 /usr/include
7881 /usr/local/include
7882 /usr/unsupported/include
7883 /usr/athena/include
7884 /usr/local/x11r5/include
7885 /usr/lpp/Xamples/include
7887 /usr/openwin/include
7888 /usr/openwin/share/include'
7890 if test "$ac_x_includes" = no; then
7891 # Guess where to find include files, by looking for Xlib.h.
7892 # First, try using that file with no special directory specified.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 #include <X11/Xlib.h>
7900 _ACEOF
7901 if { (ac_try="$ac_cpp conftest.$ac_ext"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } >/dev/null && {
7914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 }; then
7917 # We can compile using X headers with no special include directory.
7918 ac_x_includes=
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 for ac_dir in $ac_x_header_dirs; do
7924 if test -r "$ac_dir/X11/Xlib.h"; then
7925 ac_x_includes=$ac_dir
7926 break
7928 done
7931 rm -f conftest.err conftest.$ac_ext
7932 fi # $ac_x_includes = no
7934 if test "$ac_x_libraries" = no; then
7935 # Check for the libraries.
7936 # See if we find them without any special options.
7937 # Don't add to $LIBS permanently.
7938 ac_save_LIBS=$LIBS
7939 LIBS="-lX11 $LIBS"
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <X11/Xlib.h>
7948 main ()
7950 XrmInitialize ()
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7973 LIBS=$ac_save_LIBS
7974 # We can link X programs with no special library path.
7975 ac_x_libraries=
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 LIBS=$ac_save_LIBS
7981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7983 # Don't even attempt the hair of trying to link an X program!
7984 for ac_extension in a so sl; do
7985 if test -r "$ac_dir/libX11.$ac_extension"; then
7986 ac_x_libraries=$ac_dir
7987 break 2
7989 done
7990 done
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 fi # $ac_x_libraries = no
7997 case $ac_x_includes,$ac_x_libraries in #(
7998 no,* | *,no | *\'*)
7999 # Didn't find X, or a directory has "'" in its name.
8000 ac_cv_have_x="have_x=no";; #(
8002 # Record where we found X for the cache.
8003 ac_cv_have_x="have_x=yes\
8004 ac_x_includes='$ac_x_includes'\
8005 ac_x_libraries='$ac_x_libraries'"
8006 esac
8008 ;; #(
8009 *) have_x=yes;;
8010 esac
8011 eval "$ac_cv_have_x"
8012 fi # $with_x != no
8014 if test "$have_x" != yes; then
8015 { echo "$as_me:$LINENO: result: $have_x" >&5
8016 echo "${ECHO_T}$have_x" >&6; }
8017 no_x=yes
8018 else
8019 # If each of the values was on the command line, it overrides each guess.
8020 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8021 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8022 # Update the cache value to reflect the command line values.
8023 ac_cv_have_x="have_x=yes\
8024 ac_x_includes='$x_includes'\
8025 ac_x_libraries='$x_libraries'"
8026 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8027 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8033 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8034 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8035 aros_config_ldflags=""
8037 aros_shared_default=yes
8039 aros_shared_cflags="-fPIC"
8040 aros_shared_aflags=""
8041 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8042 aros_kernel_ldflags="-Wl,-rpath,./lib"
8044 aros_target_ar_flags="cr"
8045 aros_target_nm_flags="-C -ul"
8046 aros_target_strip_flags="--strip-unneeded -R.comment"
8048 aros_compiler_libs=
8050 aros_target_genmap="-Wl,-Map -Xlinker"
8052 # Native flavour stuff
8053 aros_bochs_hack="0"
8054 aros_serial_debug="0"
8056 # Palm native flavour stuff
8057 aros_palm_debug_hack="0"
8059 # Unix flavour stuff
8060 aros_nesting_supervisor="0"
8062 # Collect-aros stuff: "-ius" to ignore undefined symbols
8063 ignore_undefined_symbols=""
8065 # X11 Xshm
8066 DO_XSHM_SUPPORT="1"
8067 DO_VIDMODE_SUPPORT="1"
8069 #-----------------------------------------------------------------------------
8071 { echo "$as_me:$LINENO: checking for type of build" >&5
8072 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8073 # Check whether --enable-build_type was given.
8074 if test "${enable_build_type+set}" = set; then
8075 enableval=$enable_build_type; build_type=$enableval
8076 else
8077 build_type="personal"
8081 if test "$build_type" = "nightly"; then
8082 build_type_string="NIGHTLY"
8083 elif test "$build_type" = "snapshot"; then
8084 build_type_string="SNAPSHOT"
8085 elif test "$build_type" = "milestone"; then
8086 build_type_string="MILESTONE"
8087 elif test "$build_type" = "release"; then
8088 build_type_string="RELEASE"
8089 else
8090 build_type_string="PERSONAL"
8091 build_type="personal"
8094 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8096 { echo "$as_me:$LINENO: result: $build_type" >&5
8097 echo "${ECHO_T}$build_type" >&6; }
8099 #-----------------------------------------------------------------------------
8100 all_debug_types="messages stack mungwall modules symbols"
8102 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8103 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8104 # Check whether --enable-debug was given.
8105 if test "${enable_debug+set}" = set; then
8106 enableval=$enable_debug; debug="$enableval"
8107 else
8108 debug=""
8112 if test "$debug" = "" -o "$debug" = "no"; then
8113 debug="none"
8114 elif test "$debug" = "yes"; then
8115 debug="all"
8118 if test "$debug" = "all" ; then
8119 debug=$all_debug_types
8120 for d in $all_debug_types; do
8121 export aros_${d}_debug="1"
8122 done
8123 else
8124 for d in $all_debug_types; do
8125 export aros_${d}_debug="0"
8126 done
8129 if test "$debug" != "none"; then
8130 debug=`echo $debug | sed s/,/\ /g`
8131 for d in $debug; do
8132 found="0"
8133 for d2 in $all_debug_types; do
8134 if test "$d2" = "$d"; then
8135 found="1"
8136 break
8138 done
8139 if test "$found" = "0"; then
8140 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8141 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8142 { (exit 1); exit 1; }; }
8144 export aros_${d}_debug="1"
8145 done
8146 aros_debug="yes"
8148 { echo "$as_me:$LINENO: result: $debug" >&5
8149 echo "${ECHO_T}$debug" >&6; }
8151 if test "$aros_messages_debug" = "1"; then
8152 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8153 else
8154 aros_messages_debug=""
8156 if test "$aros_symbols_debug" = "1"; then
8157 aros_symbols_debug="-g"
8158 else
8159 aros_symbols_debug=""
8162 # These are the flags to pass when compiling debugged programs
8163 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8164 aros_debug_aflags=""
8165 aros_debug_ldflags="$aros_symbols_debug"
8167 #-----------------------------------------------------------------------------
8168 # Checking for distcc and ccache.
8170 # Always apply the transforms in this particular order. Basically you should
8171 # always run 'ccache distcc compiler' in that order for the best performance.
8173 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8174 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8175 # Check whether --enable-distcc was given.
8176 if test "${enable_distcc+set}" = set; then
8177 enableval=$enable_distcc; distcc="$enableval"
8178 else
8179 distcc="no"
8182 if test "$distcc" != "" -a "$distcc" != "no"; then
8183 # AC_CHECK_PROG will print out the result in this case
8184 # Extract the first word of "distcc", so it can be a program name with args.
8185 set dummy distcc; ac_word=$2
8186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188 if test "${ac_cv_path_DISTCC+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 case $DISTCC in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in $PATH
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8211 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8213 esac
8215 DISTCC=$ac_cv_path_DISTCC
8216 if test -n "$DISTCC"; then
8217 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8218 echo "${ECHO_T}$DISTCC" >&6; }
8219 else
8220 { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8225 else
8226 { echo "$as_me:$LINENO: result: no" >&5
8227 echo "${ECHO_T}no" >&6; }
8230 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8231 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8232 # Check whether --enable-ccache was given.
8233 if test "${enable_ccache+set}" = set; then
8234 enableval=$enable_ccache; ccache="$enableval"
8235 else
8236 ccache="no"
8239 if test "$ccache" != "" -a "$ccache" != "no"; then
8240 # AC_CHECK_PROG will print out the result in this case
8241 # Extract the first word of "ccache", so it can be a program name with args.
8242 set dummy ccache; ac_word=$2
8243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8245 if test "${ac_cv_prog_CCACHE+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 if test -n "$CCACHE"; then
8249 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_CCACHE="ccache"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8262 done
8263 done
8264 IFS=$as_save_IFS
8268 CCACHE=$ac_cv_prog_CCACHE
8269 if test -n "$CCACHE"; then
8270 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8271 echo "${ECHO_T}$CCACHE" >&6; }
8272 else
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8278 else
8279 { echo "$as_me:$LINENO: result: no" >&5
8280 echo "${ECHO_T}no" >&6; }
8283 #-----------------------------------------------------------------------------
8284 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8285 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8287 # Check whether --with-optimization was given.
8288 if test "${with_optimization+set}" = set; then
8289 withval=$with_optimization; optimization="$withval"
8290 else
8291 optimization="unknown"
8294 if test "$optimization" = "unknown"; then
8295 if test "$debug" != "none"; then
8296 optimization="-O0"
8297 else
8298 optimization="-O2"
8301 aros_config_cflags="$aros_config_cflags $optimization"
8302 { echo "$as_me:$LINENO: result: $optimization" >&5
8303 echo "${ECHO_T}$optimization" >&6; }
8305 #-----------------------------------------------------------------------------
8306 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8307 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8308 # Check whether --enable-target_variant was given.
8309 if test "${enable_target_variant+set}" = set; then
8310 enableval=$enable_target_variant; target_variant=$enableval
8311 else
8312 target_variant="none"
8315 if test "$target_variant" = "none"; then
8316 aros_target_variant=""
8317 aros_target_suffix=""
8318 else
8319 aros_target_variant="$target_variant"
8320 aros_target_suffix="-$target_variant"
8322 { echo "$as_me:$LINENO: result: $enableval" >&5
8323 echo "${ECHO_T}$enableval" >&6; }
8325 #-----------------------------------------------------------------------------
8326 # This is the target configuration switch.
8327 case "$target_os" in
8328 linux*)
8329 aros_target_arch="linux"
8330 case "$target_cpu" in
8331 *m68k*)
8332 aros_target_cpu="m68k"
8333 aros_object_format="m68kelf"
8334 aros_flavour="emulcompat"
8335 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8336 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8337 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8338 gcc_target_cpu="mc68000"
8340 *i?86*)
8341 aros_target_cpu="i386"
8342 aros_object_format="elf_i386"
8343 aros_flavour="emulation"
8344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8345 aros_default_wbdepth=8
8346 gcc_target_cpu="i386"
8348 *x86_64*)
8349 aros_target_cpu="x86_64"
8350 aros_object_format="elf_x86_64"
8351 aros_flavour="emulation"
8352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8353 aros_default_wbdepth=8
8354 gcc_target_cpu="x86_64"
8356 *powerpc*)
8357 aros_target_cpu="ppc"
8358 aros_object_format="elf32ppc"
8359 aros_flavour="emulation"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8361 aros_default_wbdepth=8
8362 gcc_target_cpu="ppc"
8365 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8366 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8367 { (exit 1); exit 1; }; }
8369 esac
8373 aros_target_arch="pc"
8374 aros_shared_default="no"
8375 case "$target_cpu" in
8376 *i?86*)
8377 aros_target_cpu="i386"
8380 if test "$aros_object_format" = "" ; then
8381 aros_object_format="elf_i386"
8383 aros_flavour="standalone"
8384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8385 aros_kernel_ldflags=""
8386 aros_default_wbwidth=640
8387 aros_default_wbheight=480
8388 gcc_target_cpu="i386"
8391 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8392 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8393 { (exit 1); exit 1; }; }
8395 esac
8398 prep)
8399 aros_target_arch="prep"
8400 aros_shared_default="no"
8401 aros_target_cpu="ppc"
8402 aros_object_format="elf32ppc"
8403 aros_flavour="ppcnative"
8404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8405 aros_kernel_ldflags=""
8406 aros_default_wbwidth=640
8407 aros_default_wbheight=480
8408 gcc_target_cpu="ppc"
8409 case "$target_cpu" in
8410 *cross*)
8411 aros_target_cc="ppc-linux-gcc -pipe"
8412 aros_target_ld="ppc-linux-ld"
8413 aros_target_as="ppc-linux-as"
8414 aros_target_ar="ppc-linux-ar"
8415 aros_target_ranlib="ppc-linux-ranlib"
8416 aros_target_nm="ppc-linux-nm"
8417 aros_target_strip="ppc-linux-strip"
8418 aros_target_objcopy="ppc-linux-objcopy"
8419 aros_target_objdump="ppc-linux-objdump"
8420 aros_shared_ld="ppc-linux-ld"
8421 aros_kernel_ld="ppc-linux-ld"
8425 esac
8428 freebsd*)
8429 aros_target_arch="freebsd"
8430 aros_target_cpu="i386"
8431 aros_flavour="emulation"
8432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8433 gcc_target_cpu="i386"
8435 aros_target_strip_flags="-x"
8438 darwin*)
8439 aros_target_arch="darwin"
8440 aros_target_cpu="i386"
8441 aros_flavour="emulation"
8442 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8443 gcc_target_cpu="i386"
8445 aros_target_strip_flags="-x"
8448 netbsd*)
8449 aros_target_arch="netbsd"
8450 case "$target_cpu" in
8451 *m68k*)
8452 aros_target_cpu="m68k"
8453 aros_object_format="m68kelf"
8454 aros_flavour="emulcompat"
8455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8456 gcc_target_cpu="mc68000"
8458 *i?86*)
8459 aros_target_cpu="i386"
8460 aros_object_format="elf_i386"
8461 aros_flavour="emulation"
8462 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8463 aros_default_wbdepth=8
8464 gcc_target_cpu="i386"
8467 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8468 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8469 { (exit 1); exit 1; }; }
8471 esac
8472 aros_target_genmap="-Wl,-M -Xlinker >"
8473 aros_flavour="emulation"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8477 openbsd*)
8478 aros_target_arch="openbsd"
8479 case "$target_cpu" in
8480 *i?86*)
8481 aros_target_cpu="i386"
8482 aros_object_format="elf_i386"
8483 aros_flavour="emulation"
8484 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8485 gcc_target_cpu="i386"
8488 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8489 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8490 { (exit 1); exit 1; }; }
8492 esac
8493 aros_target_genmap="-Wl,-M -Xlinker >"
8494 aros_target_nm_flags="-u"
8495 aros_flavour="emulation"
8498 solaris*)
8499 aros_target_arch="solaris"
8500 case "$target_cpu" in
8501 *sparc*)
8502 aros_target_cpu="sparc"
8503 aros_object_format="elf_sparc"
8504 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8505 gcc_target_cpu="sparc"
8508 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8509 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8510 { (exit 1); exit 1; }; }
8512 esac
8513 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8514 aros_flavour="emulation"
8517 morphos*)
8518 aros_target_arch="morphos"
8519 aros_shared_default="no"
8520 aros_target_cpu="ppc"
8521 aros_object_format="elf_ppc"
8522 aros_flavour="nativecompat"
8523 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8524 gcc_target_cpu="ppc"
8527 amiga*)
8528 aros_target_arch="amiga"
8529 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8530 aros_shared_default="no"
8532 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8534 case "$target_cpu" in
8535 *m68k*)
8536 aros_target_cpu="m68k"
8537 aros_object_format="m68kelf"
8538 aros_flavour="nativecompat"
8539 gcc_target_cpu="mc68000"
8541 *ppc*)
8542 aros_cpu="ppc"
8543 aros_flavour="native"
8544 gcc_target_cpu="ppc"
8547 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8548 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8549 { (exit 1); exit 1; }; }
8551 esac
8554 cygwin*)
8555 aros_target_arch="cygwin"
8556 aros_shared_default="no"
8557 case "$target_cpu" in
8558 *i?86*)
8559 aros_target_cpu="i386"
8560 aros_object_format="elf_i386"
8561 aros_flavour="emulation"
8562 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8563 aros_shared_cflags=""
8564 aros_default_wbdepth=8
8565 gcc_target_cpu="i386"
8568 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8569 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8570 { (exit 1); exit 1; }; }
8572 esac
8574 pp*)
8575 aros_target_arch="pp"
8576 aros_shared_default="no"
8577 case "$target_cpu" in
8578 *m68k*)
8579 aros_target_cpu="m68k"
8580 aros_object_format="m68kelf"
8581 aros_flavour="palmnative"
8582 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8583 aros_kernel_ldflags=""
8584 aros_default_wbwidth=160
8585 aros_default_wbheight=160
8586 aros_default_wbdepth=1
8587 aros_target_cc="m68k-elf-gcc -pipe"
8588 aros_target_ld="$(which m68k-elf-ld)"
8589 aros_target_as="m68k-elf-gcc -pipe"
8590 aros_shared_ld="m68k-elf-gcc"
8591 aros_kernel_ld="m68k-elf-gcc"
8592 aros_target_ar="m68k-elf-ar"
8593 aros_target_ar_flags="cru"
8594 aros_target_ranlib="m68k-elf-ranlib"
8595 aros_target_nm="m68k-elf-nm"
8596 aros_target_objcopy="m68k-elf-objcopy"
8597 aros_target_objdump="m68k-elf-objdump"
8598 aros_compiler_libs="-lgcc1"
8599 aros_shared_default=no
8600 aros_shared_cflags="-fpic"
8601 aros_shared_aflags=""
8602 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8603 aros_kernel_ldflags="-Wl,-rpath,./lib"
8604 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8605 aros_debug_aflags=""
8606 aros_debug_ldflags="$aros_symbols_debug"
8607 aros_mungwall_debug="0"
8608 aros_modules_debug="0"
8609 gcc_target_cpu="mc68000"
8610 ignore_undefined_symbols="-ius"
8613 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8614 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8615 { (exit 1); exit 1; }; }
8617 esac
8620 mac*)
8621 aros_target_arch="mac"
8622 aros_shared_default="no"
8623 case "$target_cpu" in
8624 *m68k*)
8625 aros_target_cpu="m68k"
8626 aros_object_format="m68kelf"
8627 aros_flavour="mac68knative"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8629 aros_default_wbwidth=512
8630 aros_default_wbheight=384
8631 aros_default_wbdepth=8
8632 aros_target_cc="m68k-elf-gcc -pipe"
8633 aros_target_ld="$(which m68k-elf-ld)"
8634 aros_target_as="m68k-elf-gcc -pipe"
8635 aros_shared_ld="m68k-elf-gcc"
8636 aros_kernel_ld="m68k-elf-gcc"
8637 aros_target_ar="m68k-elf-ar"
8638 aros_target_ar_flags="cru"
8639 aros_target_ranlib="m68k-elf-ranlib"
8640 aros_target_nm="m68k-elf-nm"
8641 aros_target_objcopy="m68k-elf-objcopy"
8642 aros_target_objdump="m68k-elf-objdump"
8643 aros_compiler_libs="-lgcc1"
8644 aros_shared_default=no
8645 aros_shared_cflags="-fpic"
8646 aros_shared_aflags=""
8647 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8648 aros_kernel_ldflags="-Wl,-rpath,./lib"
8649 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8650 aros_debug_aflags=""
8651 aros_debug_ldflags="$aros_symbols_debug"
8652 aros_mungwall_debug="0"
8653 aros_modules_debug="0"
8654 gcc_target_cpu="mc68000"
8655 ignore_undefined_symbols="-ius"
8658 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8659 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8660 { (exit 1); exit 1; }; }
8662 esac
8666 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8667 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8668 { (exit 1); exit 1; }; }
8670 esac
8673 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8674 # for target code)
8675 cross_compiling=no
8676 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8677 cross_compiling=yes
8679 if test "$aros_host_arch" == "darwin" ; then
8680 cross_compiling=yes
8683 # Set prefix for target compiler etc. if we're cross-compiling
8684 # (should possibly be earlier but needs to be after AC_PROG_CC)
8685 if test "$cross_compiling" = "yes" ; then
8686 target_tool_prefix=${target_cpu}-elf-
8687 CC=${target_tool_prefix}gcc
8690 # Find all the tools we need to compile. This could be cross-compiling
8691 # though! If that is the case we use the GNU form of the target and
8692 # simply add this to the front of the binary name. This is rather simple,
8693 # but it should work under most circumstances.
8695 # The default tools are to use the same as the host, but only if the
8696 # host and target CPU are the same. With GCC this is normally enough.
8699 aros_cc_pre=""
8700 aros_shared_ld="$aros_host_ld"
8702 aros_target_mkdep="$aros_host_mkdep"
8703 aros_target_incl_def="$aros_host_incl"
8705 # Extract the first word of "$CC", so it can be a program name with args.
8706 set dummy $CC; ac_word=$2
8707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8709 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 case $aros_kernel_cc in
8713 [\\/]* | ?:[\\/]*)
8714 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8728 done
8729 done
8730 IFS=$as_save_IFS
8733 esac
8735 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8736 if test -n "$aros_kernel_cc"; then
8737 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8738 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8739 else
8740 { echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6; }
8746 # The default tools executables to be linked to.
8748 if test "$cross_compiling" = "yes" ; then
8749 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8750 set dummy ${target_tool_prefix}as; ac_word=$2
8751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8753 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 case $aros_target_as_ln in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8777 esac
8779 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8780 if test -n "$aros_target_as_ln"; then
8781 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8782 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8783 else
8784 { echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6; }
8789 else
8790 if test "$GCC" = "yes"; then
8791 aros_gcc_as=`$CC -print-prog-name=as`
8792 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8793 set dummy `basename $aros_gcc_as`; ac_word=$2
8794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8796 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 case $aros_target_as_ln in
8800 [\\/]* | ?:[\\/]*)
8801 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in `dirname $aros_gcc_as`
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8815 done
8816 done
8817 IFS=$as_save_IFS
8820 esac
8822 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8823 if test -n "$aros_target_as_ln"; then
8824 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8825 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8826 else
8827 { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8833 if test "$aros_target_as_ln" = ""; then
8834 # Extract the first word of "as", so it can be a program name with args.
8835 set dummy as; ac_word=$2
8836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8838 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 case $aros_target_as_ln in
8842 [\\/]* | ?:[\\/]*)
8843 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8857 done
8858 done
8859 IFS=$as_save_IFS
8862 esac
8864 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8865 if test -n "$aros_target_as_ln"; then
8866 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8867 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8868 else
8869 { echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6; }
8877 if test "$aros_target_as_ln" = ""; then
8878 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8879 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8880 { (exit 1); exit 1; }; }
8883 if test "$cross_compiling" = "yes" ; then
8884 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8885 set dummy ${target_tool_prefix}ld; ac_word=$2
8886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8888 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 case $aros_kernel_ld in
8892 [\\/]* | ?:[\\/]*)
8893 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897 for as_dir in $PATH
8899 IFS=$as_save_IFS
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
8902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8903 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 break 2
8907 done
8908 done
8909 IFS=$as_save_IFS
8912 esac
8914 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8915 if test -n "$aros_kernel_ld"; then
8916 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8917 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8918 else
8919 { echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6; }
8924 else
8925 if test "$GCC" = "yes"; then
8926 aros_gcc_ld=`$CC -print-prog-name=ld`
8927 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8928 set dummy `basename $aros_gcc_ld`; ac_word=$2
8929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8931 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934 case $aros_kernel_ld in
8935 [\\/]* | ?:[\\/]*)
8936 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in `dirname $aros_gcc_ld`
8942 IFS=$as_save_IFS
8943 test -z "$as_dir" && as_dir=.
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8946 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8948 break 2
8950 done
8951 done
8952 IFS=$as_save_IFS
8955 esac
8957 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8958 if test -n "$aros_kernel_ld"; then
8959 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8960 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8961 else
8962 { echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6; }
8968 if test "$aros_kernel_ld" = ""; then
8969 # Extract the first word of "ld", so it can be a program name with args.
8970 set dummy ld; ac_word=$2
8971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8973 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976 case $aros_kernel_ld in
8977 [\\/]* | ?:[\\/]*)
8978 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in $PATH
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8988 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8992 done
8993 done
8994 IFS=$as_save_IFS
8997 esac
8999 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9000 if test -n "$aros_kernel_ld"; then
9001 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9002 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9003 else
9004 { echo "$as_me:$LINENO: result: no" >&5
9005 echo "${ECHO_T}no" >&6; }
9012 if test "$aros_kernel_ld" = ""; then
9013 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9014 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9015 { (exit 1); exit 1; }; }
9018 if test "$cross_compiling" = "yes" ; then
9019 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9020 set dummy ${target_tool_prefix}ar; ac_word=$2
9021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9023 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 case $aros_target_ar_ln in
9027 [\\/]* | ?:[\\/]*)
9028 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9038 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9047 esac
9049 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9050 if test -n "$aros_target_ar_ln"; then
9051 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9052 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9053 else
9054 { echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6; }
9059 else
9060 if test "$GCC" = "yes"; then
9061 aros_gcc_ar=`$CC -print-prog-name=ar`
9062 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9063 set dummy `basename $aros_gcc_ar`; ac_word=$2
9064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9066 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 case $aros_target_ar_ln in
9070 [\\/]* | ?:[\\/]*)
9071 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in `dirname $aros_gcc_ar`
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9085 done
9086 done
9087 IFS=$as_save_IFS
9090 esac
9092 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9093 if test -n "$aros_target_ar_ln"; then
9094 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9095 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9096 else
9097 { echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6; }
9103 if test "$aros_target_ar_ln" = ""; then
9104 # Extract the first word of "ar", so it can be a program name with args.
9105 set dummy ar; ac_word=$2
9106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9108 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111 case $aros_target_ar_ln in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9132 esac
9134 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9135 if test -n "$aros_target_ar_ln"; then
9136 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9137 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9138 else
9139 { echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6; }
9147 if test "$aros_target_ar_ln" = ""; then
9148 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9149 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9150 { (exit 1); exit 1; }; }
9153 if test "$cross_compiling" = "yes" ; then
9154 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9155 set dummy ${target_tool_prefix}nm; ac_word=$2
9156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9158 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 case $aros_target_nm_ln in
9162 [\\/]* | ?:[\\/]*)
9163 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9179 IFS=$as_save_IFS
9182 esac
9184 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9185 if test -n "$aros_target_nm_ln"; then
9186 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9187 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9188 else
9189 { echo "$as_me:$LINENO: result: no" >&5
9190 echo "${ECHO_T}no" >&6; }
9194 else
9195 if test "$GCC" = "yes"; then
9196 aros_gcc_nm=`$CC -print-prog-name=nm`
9197 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9198 set dummy `basename $aros_gcc_nm`; ac_word=$2
9199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9201 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 case $aros_target_nm_ln in
9205 [\\/]* | ?:[\\/]*)
9206 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in `dirname $aros_gcc_nm`
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9216 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9220 done
9221 done
9222 IFS=$as_save_IFS
9225 esac
9227 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9228 if test -n "$aros_target_nm_ln"; then
9229 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9230 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9231 else
9232 { echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6; }
9238 if test "$aros_target_nm_ln" = ""; then
9239 # Extract the first word of "nm", so it can be a program name with args.
9240 set dummy nm; ac_word=$2
9241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9243 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246 case $aros_target_nm_ln in
9247 [\\/]* | ?:[\\/]*)
9248 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9258 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 break 2
9262 done
9263 done
9264 IFS=$as_save_IFS
9267 esac
9269 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9270 if test -n "$aros_target_nm_ln"; then
9271 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9272 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9273 else
9274 { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9282 if test "$aros_target_nm_ln" = ""; then
9283 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9284 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9285 { (exit 1); exit 1; }; }
9288 if test "$cross_compiling" = "yes" ; then
9289 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9290 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9293 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 case $aros_target_objcopy_ln in
9297 [\\/]* | ?:[\\/]*)
9298 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9317 esac
9319 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9320 if test -n "$aros_target_objcopy_ln"; then
9321 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9322 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9323 else
9324 { echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6; }
9329 else
9330 if test "$GCC" = "yes"; then
9331 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9332 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9333 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9336 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 case $aros_target_objcopy_ln in
9340 [\\/]* | ?:[\\/]*)
9341 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in `dirname $aros_gcc_objcopy`
9347 IFS=$as_save_IFS
9348 test -z "$as_dir" && as_dir=.
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9351 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9353 break 2
9355 done
9356 done
9357 IFS=$as_save_IFS
9360 esac
9362 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9363 if test -n "$aros_target_objcopy_ln"; then
9364 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9365 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9366 else
9367 { echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6; }
9373 if test "$aros_target_objcopy_ln" = ""; then
9374 # Extract the first word of "objcopy", so it can be a program name with args.
9375 set dummy objcopy; ac_word=$2
9376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9378 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 case $aros_target_objcopy_ln in
9382 [\\/]* | ?:[\\/]*)
9383 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 for as_dir in $PATH
9389 IFS=$as_save_IFS
9390 test -z "$as_dir" && as_dir=.
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9393 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 break 2
9397 done
9398 done
9399 IFS=$as_save_IFS
9402 esac
9404 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9405 if test -n "$aros_target_objcopy_ln"; then
9406 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9407 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9408 else
9409 { echo "$as_me:$LINENO: result: no" >&5
9410 echo "${ECHO_T}no" >&6; }
9417 if test "$aros_target_objcopy_ln" = ""; then
9418 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9419 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9420 { (exit 1); exit 1; }; }
9423 if test "$cross_compiling" = "yes" ; then
9424 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9425 set dummy ${target_tool_prefix}objdump; ac_word=$2
9426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9428 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 case $aros_target_objdump_ln in
9432 [\\/]* | ?:[\\/]*)
9433 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9452 esac
9454 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9455 if test -n "$aros_target_objdump_ln"; then
9456 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9457 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9458 else
9459 { echo "$as_me:$LINENO: result: no" >&5
9460 echo "${ECHO_T}no" >&6; }
9464 else
9465 if test "$GCC" = "yes"; then
9466 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9467 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9468 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9471 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 case $aros_target_objdump_ln in
9475 [\\/]* | ?:[\\/]*)
9476 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in `dirname $aros_gcc_objdump`
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9486 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 break 2
9490 done
9491 done
9492 IFS=$as_save_IFS
9495 esac
9497 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9498 if test -n "$aros_target_objdump_ln"; then
9499 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9500 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9501 else
9502 { echo "$as_me:$LINENO: result: no" >&5
9503 echo "${ECHO_T}no" >&6; }
9508 if test "$aros_target_objdump_ln" = ""; then
9509 # Extract the first word of "objdump", so it can be a program name with args.
9510 set dummy objdump; ac_word=$2
9511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9513 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 case $aros_target_objdump_ln in
9517 [\\/]* | ?:[\\/]*)
9518 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9524 IFS=$as_save_IFS
9525 test -z "$as_dir" && as_dir=.
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9530 break 2
9532 done
9533 done
9534 IFS=$as_save_IFS
9537 esac
9539 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9540 if test -n "$aros_target_objdump_ln"; then
9541 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9542 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9543 else
9544 { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9552 if test "$aros_target_objdump_ln" = ""; then
9553 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9554 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9555 { (exit 1); exit 1; }; }
9558 if test "$cross_compiling" = "yes" ; then
9559 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9560 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9563 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 case $aros_target_ranlib_ln in
9567 [\\/]* | ?:[\\/]*)
9568 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9582 done
9583 done
9584 IFS=$as_save_IFS
9587 esac
9589 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9590 if test -n "$aros_target_ranlib_ln"; then
9591 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9592 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9593 else
9594 { echo "$as_me:$LINENO: result: no" >&5
9595 echo "${ECHO_T}no" >&6; }
9599 else
9600 if test "$GCC" = "yes"; then
9601 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9602 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9603 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9606 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 case $aros_target_ranlib_ln in
9610 [\\/]* | ?:[\\/]*)
9611 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in `dirname $aros_gcc_ranlib`
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9621 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9625 done
9626 done
9627 IFS=$as_save_IFS
9630 esac
9632 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9633 if test -n "$aros_target_ranlib_ln"; then
9634 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9635 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9636 else
9637 { echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6; }
9643 if test "$aros_target_ranlib_ln" = ""; then
9644 # Extract the first word of "ranlib", so it can be a program name with args.
9645 set dummy ranlib; ac_word=$2
9646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9648 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 case $aros_target_ranlib_ln in
9652 [\\/]* | ?:[\\/]*)
9653 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 for as_dir in $PATH
9659 IFS=$as_save_IFS
9660 test -z "$as_dir" && as_dir=.
9661 for ac_exec_ext in '' $ac_executable_extensions; do
9662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9663 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 break 2
9667 done
9668 done
9669 IFS=$as_save_IFS
9672 esac
9674 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9675 if test -n "$aros_target_ranlib_ln"; then
9676 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9677 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9678 else
9679 { echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6; }
9687 if test "$aros_target_ranlib_ln" = ""; then
9688 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9689 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9690 { (exit 1); exit 1; }; }
9693 if test "$cross_compiling" = "yes" ; then
9694 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9695 set dummy ${target_tool_prefix}strip; ac_word=$2
9696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9698 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 case $aros_target_strip_ln in
9702 [\\/]* | ?:[\\/]*)
9703 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 break 2
9717 done
9718 done
9719 IFS=$as_save_IFS
9722 esac
9724 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9725 if test -n "$aros_target_strip_ln"; then
9726 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9727 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9728 else
9729 { echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6; }
9734 else
9735 if test "$GCC" = "yes"; then
9736 aros_gcc_strip=`$CC -print-prog-name=strip`
9737 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9738 set dummy `basename $aros_gcc_strip`; ac_word=$2
9739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9741 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 case $aros_target_strip_ln in
9745 [\\/]* | ?:[\\/]*)
9746 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750 for as_dir in `dirname $aros_gcc_strip`
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 break 2
9760 done
9761 done
9762 IFS=$as_save_IFS
9765 esac
9767 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9768 if test -n "$aros_target_strip_ln"; then
9769 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9770 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9771 else
9772 { echo "$as_me:$LINENO: result: no" >&5
9773 echo "${ECHO_T}no" >&6; }
9778 if test "$aros_target_strip_ln" = ""; then
9779 # Extract the first word of "strip", so it can be a program name with args.
9780 set dummy strip; ac_word=$2
9781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9783 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 case $aros_target_strip_ln in
9787 [\\/]* | ?:[\\/]*)
9788 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9802 done
9803 done
9804 IFS=$as_save_IFS
9807 esac
9809 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9810 if test -n "$aros_target_strip_ln"; then
9811 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9812 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9813 else
9814 { echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6; }
9822 if test "$aros_target_strip_ln" = ""; then
9823 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9824 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9825 { (exit 1); exit 1; }; }
9828 if test "$GCC" = "yes"; then
9829 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9832 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9833 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9834 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9835 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9836 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9837 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9838 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9840 # aros_cc_pre is a variable that is added to the front of the compiler name
9841 # in the generated aros-gcc shell script. We need this to enable the cache
9842 # to work across cleaned builds. Also, support DISTCC using the correct
9843 # environment variable.
9846 if test "x${DISTCC}" != "x" ; then
9847 if test "x${CCACHE}" != "x" ; then
9848 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9849 else
9850 aros_cc_pre="${DISTCC} "
9852 else
9853 if test "x${CCACHE}" != "x" ; then
9854 aros_cc_pre="${CCACHE} "
9858 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9860 aros_target_nostdinc_cflags=-nostdinc
9862 aros_target_nostartup_ldflags=-nostartfiles
9864 aros_target_nix_ldflags=-nix
9866 aros_target_detach_ldflags=-detach
9868 aros_target_nostdlib_ldflags=-nostdlib
9871 # Target tools
9872 aros_target_cc="${prefix}-gcc"
9873 aros_target_as="${prefix}-as"
9874 aros_target_ld="${prefix}-ld"
9875 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9876 aros_target_objcopy=${prefix}-objcopy
9877 aros_target_objdump=${prefix}-objdump
9878 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9879 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9880 aros_kernel_nm="${prefix}-nm"
9881 aros_target_strip=${prefix}-strip
9883 #-----------------------------------------------------------------------------
9884 # See if we can compile SHM support
9885 HAVE_XSHM_SUPPORT=0
9886 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
9887 { echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
9888 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6; }
9889 if test -z "$x_includes" ; then
9890 CFLAGS=""
9891 else
9892 CFLAGS="-I $x_includes"
9894 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9902 #include <sys/types.h>
9903 #include <X11/Xlib.h>
9904 #include <X11/Xutil.h>
9905 #include <X11/keysym.h>
9906 #include <X11/cursorfont.h>
9907 #include <sys/ipc.h>
9908 #include <sys/shm.h>
9909 #include <X11/extensions/XShm.h>
9911 main ()
9914 static XShmSegmentInfo shminfo;
9915 static Display *display;
9916 XShmAttach(display, &shminfo);
9917 XSync(display,0);
9918 shmctl(shminfo.shmid, IPC_RMID, 0);
9921 return 0;
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9926 case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_link") 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && {
9938 test -z "$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 } && test -s conftest$ac_exeext &&
9941 $as_test_x conftest$ac_exeext; then
9942 HAVE_XSHM_SUPPORT=1
9943 { echo "$as_me:$LINENO: result: yes" >&5
9944 echo "${ECHO_T}yes" >&6; }
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 HAVE_XSHM_SUPPORT=0
9950 { echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6; }
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9958 #-----------------------------------------------------------------------------
9959 # See if we can compile VIDMODE support
9960 HAVE_VIDMODE_SUPPORT=0
9961 if [ "x$no_x" != "xyes" ]; then
9962 LIBS=""
9963 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9964 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char XF86VidModeQueryExtension ();
9985 main ()
9987 return XF86VidModeQueryExtension ();
9989 return 0;
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext &&
10009 $as_test_x conftest$ac_exeext; then
10010 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10019 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10022 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10023 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10024 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10025 HAVE_VIDMODE_SUPPORT=1
10026 else
10027 HAVE_VIDMODE_SUPPORT=0
10033 # Find the system include path. We can suggest that an alternative is
10034 # used if we don't get it correct. The default is to use /usr/include.
10035 # Which is set in the aros_target_incl_def variable.
10037 # Check whether --enable-includes was given.
10038 if test "${enable_includes+set}" = set; then
10039 enableval=$enable_includes; aros_target_incl=$enable_includes
10040 else
10041 aros_target_incl=$aros_target_incl_def
10045 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10046 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10047 if test "$aros_target_cc_includes" = "" ; then
10048 #try to guess where the directory is
10049 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10050 if ! test -d $aros_target_cc_includes; then
10051 #the directory doesn't exist, we need to do some more work
10052 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10054 #these are the headers we're looling for
10055 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10056 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10057 zutil.h"
10059 dirs=
10060 for h in $headers; do
10061 #which other headers each of the above headers needs?
10062 deps=$(echo "#include <$h>" | \
10063 $aros_host_cc -E -M - 2>/dev/null | \
10064 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10066 #copy all the needed headers to a directory beneath gendir
10067 for d in $deps; do
10068 h=$(basename $d)
10069 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10070 sed -n "s,^.*/include\(/.*\),\1,p")
10071 ! test -d $dir && mkdir -p $dir
10072 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10073 done
10074 done
10077 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10078 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10080 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10081 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10083 # Check whether --with-resolution was given.
10084 if test "${with_resolution+set}" = set; then
10085 withval=$with_resolution; resolution=$withval
10086 else
10087 resolution=none
10090 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10091 if test "$resolution" = "yes" ; then
10092 resolution="none"
10094 if test "$resolution" = "no" ; then
10095 resolution="none"
10097 if test "$resolution" != "none" ; then
10098 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10099 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10100 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10102 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10103 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10104 aros_cv_default_wbwidth=$aros_default_wbwidth
10105 aros_cv_default_wbheight=$aros_default_wbheight
10106 aros_cv_default_wbdepth=$aros_default_wbdepth
10108 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
10109 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
10110 # Check whether --enable-bochs_hack was given.
10111 if test "${enable_bochs_hack+set}" = set; then
10112 enableval=$enable_bochs_hack; bochs_hack="yes"
10113 else
10114 bochs_hack="no"
10117 if test "$bochs_hack" = "yes" ; then
10118 aros_bochs_hack="1"
10120 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
10121 echo "${ECHO_T}$bochs_hack" >&6; }
10123 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
10124 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
10126 # Check whether --with-serial-debug was given.
10127 if test "${with_serial_debug+set}" = set; then
10128 withval=$with_serial_debug; serial_debug=$withval
10129 else
10130 serial_debug=none
10133 if test "$serial_debug" = "yes" ; then
10134 serial_debug="2"
10136 if test "$serial_debug" = "no" ; then
10137 serial_debug="none"
10139 if test "$serial_debug" != "none" ; then
10140 aros_serial_debug=$serial_debug
10141 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
10142 echo "${ECHO_T}on port $serial_debug" >&6; }
10143 else
10144 { echo "$as_me:$LINENO: result: no" >&5
10145 echo "${ECHO_T}no" >&6; }
10148 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
10149 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
10150 # Check whether --enable-palm_debug_hack was given.
10151 if test "${enable_palm_debug_hack+set}" = set; then
10152 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10153 else
10154 palm_debug_hack="no"
10157 if test "$palm_debug_hack" = "yes" ; then
10158 aros_palm_debug_hack="1"
10160 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
10161 echo "${ECHO_T}$palm_debug_hack" >&6; }
10164 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
10165 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
10166 # Check whether --enable-nesting_supervisor was given.
10167 if test "${enable_nesting_supervisor+set}" = set; then
10168 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10169 else
10170 nesting_supervisor="no"
10173 if test "$nesting_supervisor" = "yes" ; then
10174 aros_nesting_supervisor="1"
10176 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
10177 echo "${ECHO_T}$nesting_supervisor" >&6; }
10181 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
10182 { echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
10183 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6; }
10184 # Check whether --enable-xshm_extension was given.
10185 if test "${enable_xshm_extension+set}" = set; then
10186 enableval=$enable_xshm_extension; xshm_extension="$enableval"
10187 else
10188 xshm_extension="yes"
10191 if test "$xshm_extension" = "no" ; then
10192 DO_XSHM_SUPPORT="0"
10194 { echo "$as_me:$LINENO: result: $xshm_extension" >&5
10195 echo "${ECHO_T}$xshm_extension" >&6; }
10196 else
10197 DO_XSHM_SUPPORT="0"
10200 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
10201 { echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
10202 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6; }
10203 # Check whether --enable-vidmodeextension was given.
10204 if test "${enable_vidmodeextension+set}" = set; then
10205 enableval=$enable_vidmodeextension; vidmode_extension="$enableval"
10206 else
10207 vidmode_extension="yes"
10210 if test "$vidmode_extension" = "no" ; then
10211 DO_VIDMODE_SUPPORT="0"
10213 { echo "$as_me:$LINENO: result: $vidmode_extension" >&5
10214 echo "${ECHO_T}$vidmode_extension" >&6; }
10215 else
10216 DO_VIDMODE_SUPPORT="0"
10220 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
10221 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
10222 # Check whether --enable-dbus was given.
10223 if test "${enable_dbus+set}" = set; then
10224 enableval=$enable_dbus; dbus="yes"
10225 else
10226 dbus="no"
10229 if test "$dbus" = "yes" ; then
10230 ENABLE_DBUS=1
10231 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10232 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10233 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10234 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10235 else
10236 ENABLE_DBUS=0
10238 { echo "$as_me:$LINENO: result: $dbus" >&5
10239 echo "${ECHO_T}$dbus" >&6; }
10243 # Generic
10250 # Host related
10273 # Target Related
10312 # Graphics Related
10325 # Native version related
10329 # Palm native version related
10332 # Unix/Hosted version related
10335 # DBUS related
10342 # Debug related
10348 # Collect-aros stuff: "-ius" to ignore undefined symbols
10351 # C compiler related
10354 case "$aros_flavour" in
10355 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10356 aros_flavour="emulation" ;;
10357 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10358 aros_flavour="emulation" ;;
10359 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10360 aros_flavour="standalone";;
10361 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10362 aros_flavour="native" ;;
10363 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10364 aros_flavour="native" ;;
10365 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10366 aros_flavour="linklib" ;;
10367 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10368 aros_flavour="palmnative" ;;
10369 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10370 aros_flavour="mac68knative" ;;
10371 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10372 aros_flavour="ppcnative" ;;
10373 esac
10375 if test -z "$aros_gui_basedir" ; then
10376 aros_gui_libdir="$x_libraries"
10377 if test -z "$x_libraries" ; then
10378 aros_gui_ldflags=""
10379 else
10380 aros_gui_ldflags="-L $x_libraries"
10382 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
10383 aros_gui_libflags="-lX11 -lXext"
10384 else
10385 aros_gui_libflags="-lX11"
10387 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
10388 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
10391 aros_gui_incdir="$x_includes"
10392 if test -z "$x_includes" ; then
10393 aros_gui_ccflags=""
10394 else
10395 aros_gui_ccflags="-I $x_includes"
10397 else
10398 if test -n "$aros_gui_basedir" ; then
10399 aros_gui_libdir="${aros_gui_basedir}/lib"
10400 aros_gui_incdir="${aros_gui_basedir}/include"
10403 if test -n "$aros_gui_libdir" ; then
10404 aros_gui_ldflags="-L ${aros_gui_libdir}"
10407 if test -n "$aros_gui_incdir" ; then
10408 aros_gui_ccflags="-I ${aros_gui_incdir}"
10409 else
10410 aros_gui_incdir="${aros_sysincludes}"
10411 aros_gui_ccflags=""
10415 if test ! -d ${aros_inc_dir} ; then
10416 ${MKDIR} ${aros_inc_dir}
10418 if test ! -d ${aros_geninc_dir} ; then
10419 ${MKDIR} ${aros_geninc_dir}
10421 if test ! -d ${aros_hostcfg_dir} ; then
10422 ${MKDIR} ${aros_hostcfg_dir}
10424 if test ! -d ${aros_targetcfg_dir} ; then
10425 ${MKDIR} ${aros_targetcfg_dir}
10427 if test ! -d ${aros_tools_dir} ; then
10428 ${MKDIR} ${aros_tools_dir}
10430 if test ! -d ${aros_scripts_dir} ; then
10431 ${MKDIR} ${aros_scripts_dir}
10434 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10437 ac_config_commands="$ac_config_commands compiler_executable"
10439 ac_config_commands="$ac_config_commands genshared_executable"
10441 ac_config_commands="$ac_config_commands genmf_executable"
10443 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
10446 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"
10449 cat >confcache <<\_ACEOF
10450 # This file is a shell script that caches the results of configure
10451 # tests run on this system so they can be shared between configure
10452 # scripts and configure runs, see configure's option --config-cache.
10453 # It is not useful on other systems. If it contains results you don't
10454 # want to keep, you may remove or edit it.
10456 # config.status only pays attention to the cache file if you give it
10457 # the --recheck option to rerun configure.
10459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10461 # following values.
10463 _ACEOF
10465 # The following way of writing the cache mishandles newlines in values,
10466 # but we know of no workaround that is simple, portable, and efficient.
10467 # So, we kill variables containing newlines.
10468 # Ultrix sh set writes to stderr and can't be redirected directly,
10469 # and sets the high bit in the cache file unless we assign to the vars.
10471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10472 eval ac_val=\$$ac_var
10473 case $ac_val in #(
10474 *${as_nl}*)
10475 case $ac_var in #(
10476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10478 esac
10479 case $ac_var in #(
10480 _ | IFS | as_nl) ;; #(
10481 *) $as_unset $ac_var ;;
10482 esac ;;
10483 esac
10484 done
10486 (set) 2>&1 |
10487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10488 *${as_nl}ac_space=\ *)
10489 # `set' does not quote correctly, so add quotes (double-quote
10490 # substitution turns \\\\ into \\, and sed turns \\ into \).
10491 sed -n \
10492 "s/'/'\\\\''/g;
10493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10494 ;; #(
10496 # `set' quotes correctly as required by POSIX, so do not add quotes.
10497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10499 esac |
10500 sort
10502 sed '
10503 /^ac_cv_env_/b end
10504 t clear
10505 :clear
10506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10507 t end
10508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10509 :end' >>confcache
10510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10511 if test -w "$cache_file"; then
10512 test "x$cache_file" != "x/dev/null" &&
10513 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10514 echo "$as_me: updating cache $cache_file" >&6;}
10515 cat confcache >$cache_file
10516 else
10517 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10518 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10521 rm -f confcache
10523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10524 # Let make expand exec_prefix.
10525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10527 DEFS=-DHAVE_CONFIG_H
10529 ac_libobjs=
10530 ac_ltlibobjs=
10531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10532 # 1. Remove the extension, and $U if already installed.
10533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10534 ac_i=`echo "$ac_i" | sed "$ac_script"`
10535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10536 # will be set to the directory where LIBOBJS objects are built.
10537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10539 done
10540 LIBOBJS=$ac_libobjs
10542 LTLIBOBJS=$ac_ltlibobjs
10546 : ${CONFIG_STATUS=./config.status}
10547 ac_clean_files_save=$ac_clean_files
10548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10550 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10551 cat >$CONFIG_STATUS <<_ACEOF
10552 #! $SHELL
10553 # Generated by $as_me.
10554 # Run this file to recreate the current configuration.
10555 # Compiler output produced by configure, useful for debugging
10556 # configure, is in config.log if it exists.
10558 debug=false
10559 ac_cs_recheck=false
10560 ac_cs_silent=false
10561 SHELL=\${CONFIG_SHELL-$SHELL}
10562 _ACEOF
10564 cat >>$CONFIG_STATUS <<\_ACEOF
10565 ## --------------------- ##
10566 ## M4sh Initialization. ##
10567 ## --------------------- ##
10569 # Be more Bourne compatible
10570 DUALCASE=1; export DUALCASE # for MKS sh
10571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10572 emulate sh
10573 NULLCMD=:
10574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10575 # is contrary to our usage. Disable this feature.
10576 alias -g '${1+"$@"}'='"$@"'
10577 setopt NO_GLOB_SUBST
10578 else
10579 case `(set -o) 2>/dev/null` in
10580 *posix*) set -o posix ;;
10581 esac
10588 # PATH needs CR
10589 # Avoid depending upon Character Ranges.
10590 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10591 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10592 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10593 as_cr_digits='0123456789'
10594 as_cr_alnum=$as_cr_Letters$as_cr_digits
10596 # The user is always right.
10597 if test "${PATH_SEPARATOR+set}" != set; then
10598 echo "#! /bin/sh" >conf$$.sh
10599 echo "exit 0" >>conf$$.sh
10600 chmod +x conf$$.sh
10601 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10602 PATH_SEPARATOR=';'
10603 else
10604 PATH_SEPARATOR=:
10606 rm -f conf$$.sh
10609 # Support unset when possible.
10610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10611 as_unset=unset
10612 else
10613 as_unset=false
10617 # IFS
10618 # We need space, tab and new line, in precisely that order. Quoting is
10619 # there to prevent editors from complaining about space-tab.
10620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10621 # splitting by setting IFS to empty value.)
10622 as_nl='
10624 IFS=" "" $as_nl"
10626 # Find who we are. Look in the path if we contain no directory separator.
10627 case $0 in
10628 *[\\/]* ) as_myself=$0 ;;
10629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10635 done
10636 IFS=$as_save_IFS
10639 esac
10640 # We did not find ourselves, most probably we were run as `sh COMMAND'
10641 # in which case we are not to be found in the path.
10642 if test "x$as_myself" = x; then
10643 as_myself=$0
10645 if test ! -f "$as_myself"; then
10646 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10647 { (exit 1); exit 1; }
10650 # Work around bugs in pre-3.0 UWIN ksh.
10651 for as_var in ENV MAIL MAILPATH
10652 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10653 done
10654 PS1='$ '
10655 PS2='> '
10656 PS4='+ '
10658 # NLS nuisances.
10659 for as_var in \
10660 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10661 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10662 LC_TELEPHONE LC_TIME
10664 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10665 eval $as_var=C; export $as_var
10666 else
10667 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10669 done
10671 # Required to use basename.
10672 if expr a : '\(a\)' >/dev/null 2>&1 &&
10673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10674 as_expr=expr
10675 else
10676 as_expr=false
10679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10680 as_basename=basename
10681 else
10682 as_basename=false
10686 # Name of the executable.
10687 as_me=`$as_basename -- "$0" ||
10688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10689 X"$0" : 'X\(//\)$' \| \
10690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10691 echo X/"$0" |
10692 sed '/^.*\/\([^/][^/]*\)\/*$/{
10693 s//\1/
10696 /^X\/\(\/\/\)$/{
10697 s//\1/
10700 /^X\/\(\/\).*/{
10701 s//\1/
10704 s/.*/./; q'`
10706 # CDPATH.
10707 $as_unset CDPATH
10711 as_lineno_1=$LINENO
10712 as_lineno_2=$LINENO
10713 test "x$as_lineno_1" != "x$as_lineno_2" &&
10714 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10717 # uniformly replaced by the line number. The first 'sed' inserts a
10718 # line-number line after each line using $LINENO; the second 'sed'
10719 # does the real work. The second script uses 'N' to pair each
10720 # line-number line with the line containing $LINENO, and appends
10721 # trailing '-' during substitution so that $LINENO is not a special
10722 # case at line end.
10723 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10724 # scripts with optimization help from Paolo Bonzini. Blame Lee
10725 # E. McMahon (1931-1989) for sed's syntax. :-)
10726 sed -n '
10728 /[$]LINENO/=
10729 ' <$as_myself |
10730 sed '
10731 s/[$]LINENO.*/&-/
10732 t lineno
10734 :lineno
10736 :loop
10737 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10738 t loop
10739 s/-\n.*//
10740 ' >$as_me.lineno &&
10741 chmod +x "$as_me.lineno" ||
10742 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10743 { (exit 1); exit 1; }; }
10745 # Don't try to exec as it changes $[0], causing all sort of problems
10746 # (the dirname of $[0] is not the place where we might find the
10747 # original and so on. Autoconf is especially sensitive to this).
10748 . "./$as_me.lineno"
10749 # Exit status is that of the last command.
10750 exit
10754 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10755 as_dirname=dirname
10756 else
10757 as_dirname=false
10760 ECHO_C= ECHO_N= ECHO_T=
10761 case `echo -n x` in
10762 -n*)
10763 case `echo 'x\c'` in
10764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10765 *) ECHO_C='\c';;
10766 esac;;
10768 ECHO_N='-n';;
10769 esac
10771 if expr a : '\(a\)' >/dev/null 2>&1 &&
10772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10773 as_expr=expr
10774 else
10775 as_expr=false
10778 rm -f conf$$ conf$$.exe conf$$.file
10779 if test -d conf$$.dir; then
10780 rm -f conf$$.dir/conf$$.file
10781 else
10782 rm -f conf$$.dir
10783 mkdir conf$$.dir
10785 echo >conf$$.file
10786 if ln -s conf$$.file conf$$ 2>/dev/null; then
10787 as_ln_s='ln -s'
10788 # ... but there are two gotchas:
10789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10791 # In both cases, we have to default to `cp -p'.
10792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10793 as_ln_s='cp -p'
10794 elif ln conf$$.file conf$$ 2>/dev/null; then
10795 as_ln_s=ln
10796 else
10797 as_ln_s='cp -p'
10799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10800 rmdir conf$$.dir 2>/dev/null
10802 if mkdir -p . 2>/dev/null; then
10803 as_mkdir_p=:
10804 else
10805 test -d ./-p && rmdir ./-p
10806 as_mkdir_p=false
10809 if test -x / >/dev/null 2>&1; then
10810 as_test_x='test -x'
10811 else
10812 if ls -dL / >/dev/null 2>&1; then
10813 as_ls_L_option=L
10814 else
10815 as_ls_L_option=
10817 as_test_x='
10818 eval sh -c '\''
10819 if test -d "$1"; then
10820 test -d "$1/.";
10821 else
10822 case $1 in
10823 -*)set "./$1";;
10824 esac;
10825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10826 ???[sx]*):;;*)false;;esac;fi
10827 '\'' sh
10830 as_executable_p=$as_test_x
10832 # Sed expression to map a string onto a valid CPP name.
10833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10835 # Sed expression to map a string onto a valid variable name.
10836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10839 exec 6>&1
10841 # Save the log message, to keep $[0] and so on meaningful, and to
10842 # report actual input values of CONFIG_FILES etc. instead of their
10843 # values after options handling.
10844 ac_log="
10845 This file was extended by $as_me, which was
10846 generated by GNU Autoconf 2.61. Invocation command line was
10848 CONFIG_FILES = $CONFIG_FILES
10849 CONFIG_HEADERS = $CONFIG_HEADERS
10850 CONFIG_LINKS = $CONFIG_LINKS
10851 CONFIG_COMMANDS = $CONFIG_COMMANDS
10852 $ $0 $@
10854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10857 _ACEOF
10859 cat >>$CONFIG_STATUS <<_ACEOF
10860 # Files that config.status was made for.
10861 config_files="$ac_config_files"
10862 config_headers="$ac_config_headers"
10863 config_commands="$ac_config_commands"
10865 _ACEOF
10867 cat >>$CONFIG_STATUS <<\_ACEOF
10868 ac_cs_usage="\
10869 \`$as_me' instantiates files from templates according to the
10870 current configuration.
10872 Usage: $0 [OPTIONS] [FILE]...
10874 -h, --help print this help, then exit
10875 -V, --version print version number and configuration settings, then exit
10876 -q, --quiet do not print progress messages
10877 -d, --debug don't remove temporary files
10878 --recheck update $as_me by reconfiguring in the same conditions
10879 --file=FILE[:TEMPLATE]
10880 instantiate the configuration file FILE
10881 --header=FILE[:TEMPLATE]
10882 instantiate the configuration header FILE
10884 Configuration files:
10885 $config_files
10887 Configuration headers:
10888 $config_headers
10890 Configuration commands:
10891 $config_commands
10893 Report bugs to <bug-autoconf@gnu.org>."
10895 _ACEOF
10896 cat >>$CONFIG_STATUS <<_ACEOF
10897 ac_cs_version="\\
10898 config.status
10899 configured by $0, generated by GNU Autoconf 2.61,
10900 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10902 Copyright (C) 2006 Free Software Foundation, Inc.
10903 This config.status script is free software; the Free Software Foundation
10904 gives unlimited permission to copy, distribute and modify it."
10906 ac_pwd='$ac_pwd'
10907 srcdir='$srcdir'
10908 _ACEOF
10910 cat >>$CONFIG_STATUS <<\_ACEOF
10911 # If no file are specified by the user, then we need to provide default
10912 # value. By we need to know if files were specified by the user.
10913 ac_need_defaults=:
10914 while test $# != 0
10916 case $1 in
10917 --*=*)
10918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10920 ac_shift=:
10923 ac_option=$1
10924 ac_optarg=$2
10925 ac_shift=shift
10927 esac
10929 case $ac_option in
10930 # Handling of the options.
10931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10932 ac_cs_recheck=: ;;
10933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10934 echo "$ac_cs_version"; exit ;;
10935 --debug | --debu | --deb | --de | --d | -d )
10936 debug=: ;;
10937 --file | --fil | --fi | --f )
10938 $ac_shift
10939 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10940 ac_need_defaults=false;;
10941 --header | --heade | --head | --hea )
10942 $ac_shift
10943 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10944 ac_need_defaults=false;;
10945 --he | --h)
10946 # Conflict between --help and --header
10947 { echo "$as_me: error: ambiguous option: $1
10948 Try \`$0 --help' for more information." >&2
10949 { (exit 1); exit 1; }; };;
10950 --help | --hel | -h )
10951 echo "$ac_cs_usage"; exit ;;
10952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10954 ac_cs_silent=: ;;
10956 # This is an error.
10957 -*) { echo "$as_me: error: unrecognized option: $1
10958 Try \`$0 --help' for more information." >&2
10959 { (exit 1); exit 1; }; } ;;
10961 *) ac_config_targets="$ac_config_targets $1"
10962 ac_need_defaults=false ;;
10964 esac
10965 shift
10966 done
10968 ac_configure_extra_args=
10970 if $ac_cs_silent; then
10971 exec 6>/dev/null
10972 ac_configure_extra_args="$ac_configure_extra_args --silent"
10975 _ACEOF
10976 cat >>$CONFIG_STATUS <<_ACEOF
10977 if \$ac_cs_recheck; then
10978 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10979 CONFIG_SHELL=$SHELL
10980 export CONFIG_SHELL
10981 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10984 _ACEOF
10985 cat >>$CONFIG_STATUS <<\_ACEOF
10986 exec 5>>config.log
10988 echo
10989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10990 ## Running $as_me. ##
10991 _ASBOX
10992 echo "$ac_log"
10993 } >&5
10995 _ACEOF
10996 cat >>$CONFIG_STATUS <<_ACEOF
10998 # INIT-COMMANDS
11001 aros_tools_dir=${aros_tools_dir}
11002 aros_target_cpu=${aros_target_cpu}
11003 aros_target_arch=${aros_target_arch}
11004 aros_target_suffix=${aros_target_suffix}
11005 aros_target_nm_ln=${aros_target_nm_ln}
11006 aros_target_as_ln=${aros_target_as_ln}
11007 aros_target_ar_ln=${aros_target_ar_ln}
11008 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11009 aros_target_objdump_ln=${aros_target_objdump_ln}
11010 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11011 aros_target_strip_ln=${aros_target_strip_ln}
11014 aros_scripts_dir=${aros_scripts_dir}
11016 aros_tools_dir=${aros_tools_dir}
11019 _ACEOF
11021 cat >>$CONFIG_STATUS <<\_ACEOF
11023 # Handling of arguments.
11024 for ac_config_target in $ac_config_targets
11026 case $ac_config_target in
11027 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11028 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11029 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11030 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11031 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11032 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11033 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11034 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11035 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11036 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11037 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11038 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11039 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11040 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11041 "${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" ;;
11042 "${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" ;;
11043 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11044 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11045 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11046 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11048 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11050 { (exit 1); exit 1; }; };;
11051 esac
11052 done
11055 # If the user did not use the arguments to specify the items to instantiate,
11056 # then the envvar interface is used. Set only those that are not.
11057 # We use the long form for the default assignment because of an extremely
11058 # bizarre bug on SunOS 4.1.3.
11059 if $ac_need_defaults; then
11060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11065 # Have a temporary directory for convenience. Make it in the build tree
11066 # simply because there is no reason against having it here, and in addition,
11067 # creating and moving files from /tmp can sometimes cause problems.
11068 # Hook for its removal unless debugging.
11069 # Note that there is a small window in which the directory will not be cleaned:
11070 # after its creation but before its name has been assigned to `$tmp'.
11071 $debug ||
11073 tmp=
11074 trap 'exit_status=$?
11075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11077 trap '{ (exit 1); exit 1; }' 1 2 13 15
11079 # Create a (secure) tmp directory for tmp files.
11082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11083 test -n "$tmp" && test -d "$tmp"
11084 } ||
11086 tmp=./conf$$-$RANDOM
11087 (umask 077 && mkdir "$tmp")
11088 } ||
11090 echo "$me: cannot create a temporary directory in ." >&2
11091 { (exit 1); exit 1; }
11095 # Set up the sed scripts for CONFIG_FILES section.
11098 # No need to generate the scripts if there are no CONFIG_FILES.
11099 # This happens for instance when ./config.status config.h
11100 if test -n "$CONFIG_FILES"; then
11102 _ACEOF
11106 ac_delim='%!_!# '
11107 for ac_last_try in false false false false false :; do
11108 cat >conf$$subs.sed <<_ACEOF
11109 SHELL!$SHELL$ac_delim
11110 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11111 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11112 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11113 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11114 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11115 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11116 exec_prefix!$exec_prefix$ac_delim
11117 prefix!$prefix$ac_delim
11118 program_transform_name!$program_transform_name$ac_delim
11119 bindir!$bindir$ac_delim
11120 sbindir!$sbindir$ac_delim
11121 libexecdir!$libexecdir$ac_delim
11122 datarootdir!$datarootdir$ac_delim
11123 datadir!$datadir$ac_delim
11124 sysconfdir!$sysconfdir$ac_delim
11125 sharedstatedir!$sharedstatedir$ac_delim
11126 localstatedir!$localstatedir$ac_delim
11127 includedir!$includedir$ac_delim
11128 oldincludedir!$oldincludedir$ac_delim
11129 docdir!$docdir$ac_delim
11130 infodir!$infodir$ac_delim
11131 htmldir!$htmldir$ac_delim
11132 dvidir!$dvidir$ac_delim
11133 pdfdir!$pdfdir$ac_delim
11134 psdir!$psdir$ac_delim
11135 libdir!$libdir$ac_delim
11136 localedir!$localedir$ac_delim
11137 mandir!$mandir$ac_delim
11138 DEFS!$DEFS$ac_delim
11139 ECHO_C!$ECHO_C$ac_delim
11140 ECHO_N!$ECHO_N$ac_delim
11141 ECHO_T!$ECHO_T$ac_delim
11142 LIBS!$LIBS$ac_delim
11143 build_alias!$build_alias$ac_delim
11144 host_alias!$host_alias$ac_delim
11145 target_alias!$target_alias$ac_delim
11146 build!$build$ac_delim
11147 build_cpu!$build_cpu$ac_delim
11148 build_vendor!$build_vendor$ac_delim
11149 build_os!$build_os$ac_delim
11150 host!$host$ac_delim
11151 host_cpu!$host_cpu$ac_delim
11152 host_vendor!$host_vendor$ac_delim
11153 host_os!$host_os$ac_delim
11154 CC!$CC$ac_delim
11155 CFLAGS!$CFLAGS$ac_delim
11156 LDFLAGS!$LDFLAGS$ac_delim
11157 CPPFLAGS!$CPPFLAGS$ac_delim
11158 ac_ct_CC!$ac_ct_CC$ac_delim
11159 EXEEXT!$EXEEXT$ac_delim
11160 OBJEXT!$OBJEXT$ac_delim
11161 CPP!$CPP$ac_delim
11162 AWK!$AWK$ac_delim
11163 MMAKE!$MMAKE$ac_delim
11164 aros_host_ld!$aros_host_ld$ac_delim
11165 aros_host_aclocal!$aros_host_aclocal$ac_delim
11166 aros_host_autoconf!$aros_host_autoconf$ac_delim
11167 aros_host_autoheader!$aros_host_autoheader$ac_delim
11168 aros_host_automake!$aros_host_automake$ac_delim
11169 aros_host_ar!$aros_host_ar$ac_delim
11170 aros_host_ranlib!$aros_host_ranlib$ac_delim
11171 aros_host_strip!$aros_host_strip$ac_delim
11172 RM!$RM$ac_delim
11173 CP!$CP$ac_delim
11174 MV!$MV$ac_delim
11175 ECHO!$ECHO$ac_delim
11176 MKDIR!$MKDIR$ac_delim
11177 TOUCH!$TOUCH$ac_delim
11178 SORT!$SORT$ac_delim
11179 UNIQ!$UNIQ$ac_delim
11180 NOP!$NOP$ac_delim
11181 CAT!$CAT$ac_delim
11182 BISON!$BISON$ac_delim
11183 FLEX!$FLEX$ac_delim
11184 PNGTOPNM!$PNGTOPNM$ac_delim
11185 PPMTOILBM!$PPMTOILBM$ac_delim
11186 SED!$SED$ac_delim
11187 CHMOD!$CHMOD$ac_delim
11188 PYTHON!$PYTHON$ac_delim
11189 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
11190 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
11191 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
11192 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
11193 pythondir!$pythondir$ac_delim
11194 pkgpythondir!$pkgpythondir$ac_delim
11195 pyexecdir!$pyexecdir$ac_delim
11196 pkgpyexecdir!$pkgpyexecdir$ac_delim
11197 FOR!$FOR$ac_delim
11198 IF!$IF$ac_delim
11199 TEST!$TEST$ac_delim
11200 CMP!$CMP$ac_delim
11201 GREP!$GREP$ac_delim
11202 EGREP!$EGREP$ac_delim
11203 LIBOBJS!$LIBOBJS$ac_delim
11204 XMKMF!$XMKMF$ac_delim
11205 DISTCC!$DISTCC$ac_delim
11206 _ACEOF
11208 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11209 break
11210 elif $ac_last_try; then
11211 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11213 { (exit 1); exit 1; }; }
11214 else
11215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11217 done
11219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11220 if test -n "$ac_eof"; then
11221 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11222 ac_eof=`expr $ac_eof + 1`
11225 cat >>$CONFIG_STATUS <<_ACEOF
11226 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11228 _ACEOF
11229 sed '
11230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11231 s/^/s,@/; s/!/@,|#_!!_#|/
11234 s/'"$ac_delim"'$/,g/; t
11235 s/$/\\/; p
11236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11237 ' >>$CONFIG_STATUS <conf$$subs.sed
11238 rm -f conf$$subs.sed
11239 cat >>$CONFIG_STATUS <<_ACEOF
11240 CEOF$ac_eof
11241 _ACEOF
11244 ac_delim='%!_!# '
11245 for ac_last_try in false false false false false :; do
11246 cat >conf$$subs.sed <<_ACEOF
11247 CCACHE!$CCACHE$ac_delim
11248 aros_kernel_cc!$aros_kernel_cc$ac_delim
11249 aros_target_as_ln!$aros_target_as_ln$ac_delim
11250 aros_kernel_ld!$aros_kernel_ld$ac_delim
11251 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
11252 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
11253 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
11254 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
11255 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
11256 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
11257 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
11258 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
11259 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
11260 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
11261 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
11262 aros_arch!$aros_arch$ac_delim
11263 aros_cpu!$aros_cpu$ac_delim
11264 aros_flavour!$aros_flavour$ac_delim
11265 aros_flavour_uc!$aros_flavour_uc$ac_delim
11266 TOPDIR!$TOPDIR$ac_delim
11267 aros_cc_pre!$aros_cc_pre$ac_delim
11268 aros_host_arch!$aros_host_arch$ac_delim
11269 aros_host_cpu!$aros_host_cpu$ac_delim
11270 aros_host_cc!$aros_host_cc$ac_delim
11271 aros_host_make!$aros_host_make$ac_delim
11272 aros_host_cflags!$aros_host_cflags$ac_delim
11273 aros_host_ldflags!$aros_host_ldflags$ac_delim
11274 aros_host_debug!$aros_host_debug$ac_delim
11275 aros_host_mkdep!$aros_host_mkdep$ac_delim
11276 aros_host_mkargs!$aros_host_mkargs$ac_delim
11277 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
11278 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
11279 aros_tools_dir!$aros_tools_dir$ac_delim
11280 aros_target_arch!$aros_target_arch$ac_delim
11281 aros_target_cpu!$aros_target_cpu$ac_delim
11282 aros_target_variant!$aros_target_variant$ac_delim
11283 aros_target_suffix!$aros_target_suffix$ac_delim
11284 aros_target_incl!$aros_target_incl$ac_delim
11285 aros_target_ar!$aros_target_ar$ac_delim
11286 aros_target_ranlib!$aros_target_ranlib$ac_delim
11287 aros_kernel_nm!$aros_kernel_nm$ac_delim
11288 aros_target_cc!$aros_target_cc$ac_delim
11289 aros_target_as!$aros_target_as$ac_delim
11290 aros_target_ld!$aros_target_ld$ac_delim
11291 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
11292 aros_target_cc_path!$aros_target_cc_path$ac_delim
11293 aros_target_objdump!$aros_target_objdump$ac_delim
11294 aros_target_objcopy!$aros_target_objcopy$ac_delim
11295 aros_target_strip!$aros_target_strip$ac_delim
11296 aros_target_nm!$aros_target_nm$ac_delim
11297 aros_shared_default!$aros_shared_default$ac_delim
11298 aros_shared_ld!$aros_shared_ld$ac_delim
11299 aros_object_format!$aros_object_format$ac_delim
11300 aros_compiler_libs!$aros_compiler_libs$ac_delim
11301 aros_config_cflags!$aros_config_cflags$ac_delim
11302 aros_config_aflags!$aros_config_aflags$ac_delim
11303 aros_config_ldflags!$aros_config_ldflags$ac_delim
11304 aros_shared_cflags!$aros_shared_cflags$ac_delim
11305 aros_shared_aflags!$aros_shared_aflags$ac_delim
11306 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
11307 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
11308 aros_debug_cflags!$aros_debug_cflags$ac_delim
11309 aros_debug_aflags!$aros_debug_aflags$ac_delim
11310 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
11311 aros_target_genmap!$aros_target_genmap$ac_delim
11312 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
11313 aros_gui_libdir!$aros_gui_libdir$ac_delim
11314 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
11315 aros_gui_libflags!$aros_gui_libflags$ac_delim
11316 aros_gui_incdir!$aros_gui_incdir$ac_delim
11317 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
11318 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
11319 aros_default_wbheight!$aros_default_wbheight$ac_delim
11320 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
11321 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
11322 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
11323 aros_bochs_hack!$aros_bochs_hack$ac_delim
11324 aros_serial_debug!$aros_serial_debug$ac_delim
11325 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
11326 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
11327 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
11328 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
11329 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
11330 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
11331 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
11332 aros_debug!$aros_debug$ac_delim
11333 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
11334 aros_stack_debug!$aros_stack_debug$ac_delim
11335 aros_modules_debug!$aros_modules_debug$ac_delim
11336 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
11337 gcc_target_cpu!$gcc_target_cpu$ac_delim
11338 LTLIBOBJS!$LTLIBOBJS$ac_delim
11339 _ACEOF
11341 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
11342 break
11343 elif $ac_last_try; then
11344 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11345 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11346 { (exit 1); exit 1; }; }
11347 else
11348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11350 done
11352 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11353 if test -n "$ac_eof"; then
11354 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11355 ac_eof=`expr $ac_eof + 1`
11358 cat >>$CONFIG_STATUS <<_ACEOF
11359 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11361 _ACEOF
11362 sed '
11363 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11364 s/^/s,@/; s/!/@,|#_!!_#|/
11367 s/'"$ac_delim"'$/,g/; t
11368 s/$/\\/; p
11369 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11370 ' >>$CONFIG_STATUS <conf$$subs.sed
11371 rm -f conf$$subs.sed
11372 cat >>$CONFIG_STATUS <<_ACEOF
11373 :end
11374 s/|#_!!_#|//g
11375 CEOF$ac_eof
11376 _ACEOF
11379 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11380 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11381 # trailing colons and then remove the whole line if VPATH becomes empty
11382 # (actually we leave an empty line to preserve line numbers).
11383 if test "x$srcdir" = x.; then
11384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11385 s/:*\$(srcdir):*/:/
11386 s/:*\${srcdir}:*/:/
11387 s/:*@srcdir@:*/:/
11388 s/^\([^=]*=[ ]*\):*/\1/
11389 s/:*$//
11390 s/^[^=]*=[ ]*$//
11394 cat >>$CONFIG_STATUS <<\_ACEOF
11395 fi # test -n "$CONFIG_FILES"
11398 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11400 case $ac_tag in
11401 :[FHLC]) ac_mode=$ac_tag; continue;;
11402 esac
11403 case $ac_mode$ac_tag in
11404 :[FHL]*:*);;
11405 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11406 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11407 { (exit 1); exit 1; }; };;
11408 :[FH]-) ac_tag=-:-;;
11409 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11410 esac
11411 ac_save_IFS=$IFS
11412 IFS=:
11413 set x $ac_tag
11414 IFS=$ac_save_IFS
11415 shift
11416 ac_file=$1
11417 shift
11419 case $ac_mode in
11420 :L) ac_source=$1;;
11421 :[FH])
11422 ac_file_inputs=
11423 for ac_f
11425 case $ac_f in
11426 -) ac_f="$tmp/stdin";;
11427 *) # Look for the file first in the build tree, then in the source tree
11428 # (if the path is not absolute). The absolute path cannot be DOS-style,
11429 # because $ac_f cannot contain `:'.
11430 test -f "$ac_f" ||
11431 case $ac_f in
11432 [\\/$]*) false;;
11433 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11434 esac ||
11435 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11436 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11437 { (exit 1); exit 1; }; };;
11438 esac
11439 ac_file_inputs="$ac_file_inputs $ac_f"
11440 done
11442 # Let's still pretend it is `configure' which instantiates (i.e., don't
11443 # use $as_me), people would be surprised to read:
11444 # /* config.h. Generated by config.status. */
11445 configure_input="Generated from "`IFS=:
11446 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11447 if test x"$ac_file" != x-; then
11448 configure_input="$ac_file. $configure_input"
11449 { echo "$as_me:$LINENO: creating $ac_file" >&5
11450 echo "$as_me: creating $ac_file" >&6;}
11453 case $ac_tag in
11454 *:-:* | *:-) cat >"$tmp/stdin";;
11455 esac
11457 esac
11459 ac_dir=`$as_dirname -- "$ac_file" ||
11460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11461 X"$ac_file" : 'X\(//\)[^/]' \| \
11462 X"$ac_file" : 'X\(//\)$' \| \
11463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11464 echo X"$ac_file" |
11465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11466 s//\1/
11469 /^X\(\/\/\)[^/].*/{
11470 s//\1/
11473 /^X\(\/\/\)$/{
11474 s//\1/
11477 /^X\(\/\).*/{
11478 s//\1/
11481 s/.*/./; q'`
11482 { as_dir="$ac_dir"
11483 case $as_dir in #(
11484 -*) as_dir=./$as_dir;;
11485 esac
11486 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11487 as_dirs=
11488 while :; do
11489 case $as_dir in #(
11490 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11491 *) as_qdir=$as_dir;;
11492 esac
11493 as_dirs="'$as_qdir' $as_dirs"
11494 as_dir=`$as_dirname -- "$as_dir" ||
11495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11496 X"$as_dir" : 'X\(//\)[^/]' \| \
11497 X"$as_dir" : 'X\(//\)$' \| \
11498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11499 echo X"$as_dir" |
11500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11501 s//\1/
11504 /^X\(\/\/\)[^/].*/{
11505 s//\1/
11508 /^X\(\/\/\)$/{
11509 s//\1/
11512 /^X\(\/\).*/{
11513 s//\1/
11516 s/.*/./; q'`
11517 test -d "$as_dir" && break
11518 done
11519 test -z "$as_dirs" || eval "mkdir $as_dirs"
11520 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11521 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11522 { (exit 1); exit 1; }; }; }
11523 ac_builddir=.
11525 case "$ac_dir" in
11526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11529 # A ".." for each directory in $ac_dir_suffix.
11530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11531 case $ac_top_builddir_sub in
11532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11534 esac ;;
11535 esac
11536 ac_abs_top_builddir=$ac_pwd
11537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11538 # for backward compatibility:
11539 ac_top_builddir=$ac_top_build_prefix
11541 case $srcdir in
11542 .) # We are building in place.
11543 ac_srcdir=.
11544 ac_top_srcdir=$ac_top_builddir_sub
11545 ac_abs_top_srcdir=$ac_pwd ;;
11546 [\\/]* | ?:[\\/]* ) # Absolute name.
11547 ac_srcdir=$srcdir$ac_dir_suffix;
11548 ac_top_srcdir=$srcdir
11549 ac_abs_top_srcdir=$srcdir ;;
11550 *) # Relative name.
11551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11552 ac_top_srcdir=$ac_top_build_prefix$srcdir
11553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11554 esac
11555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11558 case $ac_mode in
11561 # CONFIG_FILE
11564 _ACEOF
11566 cat >>$CONFIG_STATUS <<\_ACEOF
11567 # If the template does not know about datarootdir, expand it.
11568 # FIXME: This hack should be removed a few years after 2.60.
11569 ac_datarootdir_hack=; ac_datarootdir_seen=
11571 case `sed -n '/datarootdir/ {
11575 /@datadir@/p
11576 /@docdir@/p
11577 /@infodir@/p
11578 /@localedir@/p
11579 /@mandir@/p
11580 ' $ac_file_inputs` in
11581 *datarootdir*) ac_datarootdir_seen=yes;;
11582 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11583 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11584 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11585 _ACEOF
11586 cat >>$CONFIG_STATUS <<_ACEOF
11587 ac_datarootdir_hack='
11588 s&@datadir@&$datadir&g
11589 s&@docdir@&$docdir&g
11590 s&@infodir@&$infodir&g
11591 s&@localedir@&$localedir&g
11592 s&@mandir@&$mandir&g
11593 s&\\\${datarootdir}&$datarootdir&g' ;;
11594 esac
11595 _ACEOF
11597 # Neutralize VPATH when `$srcdir' = `.'.
11598 # Shell code in configure.ac might set extrasub.
11599 # FIXME: do we really want to maintain this feature?
11600 cat >>$CONFIG_STATUS <<_ACEOF
11601 sed "$ac_vpsub
11602 $extrasub
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<\_ACEOF
11606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11607 s&@configure_input@&$configure_input&;t t
11608 s&@top_builddir@&$ac_top_builddir_sub&;t t
11609 s&@srcdir@&$ac_srcdir&;t t
11610 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11611 s&@top_srcdir@&$ac_top_srcdir&;t t
11612 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11613 s&@builddir@&$ac_builddir&;t t
11614 s&@abs_builddir@&$ac_abs_builddir&;t t
11615 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11616 $ac_datarootdir_hack
11617 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11619 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11620 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11621 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11622 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11623 which seems to be undefined. Please make sure it is defined." >&5
11624 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11625 which seems to be undefined. Please make sure it is defined." >&2;}
11627 rm -f "$tmp/stdin"
11628 case $ac_file in
11629 -) cat "$tmp/out"; rm -f "$tmp/out";;
11630 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11631 esac
11635 # CONFIG_HEADER
11637 _ACEOF
11639 # Transform confdefs.h into a sed script `conftest.defines', that
11640 # substitutes the proper values into config.h.in to produce config.h.
11641 rm -f conftest.defines conftest.tail
11642 # First, append a space to every undef/define line, to ease matching.
11643 echo 's/$/ /' >conftest.defines
11644 # Then, protect against being on the right side of a sed subst, or in
11645 # an unquoted here document, in config.status. If some macros were
11646 # called several times there might be several #defines for the same
11647 # symbol, which is useless. But do not sort them, since the last
11648 # AC_DEFINE must be honored.
11649 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11650 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11651 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11652 # PARAMS is the parameter list in the macro definition--in most cases, it's
11653 # just an empty string.
11654 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11655 ac_dB='\\)[ (].*,\\1define\\2'
11656 ac_dC=' '
11657 ac_dD=' ,'
11659 uniq confdefs.h |
11660 sed -n '
11661 t rset
11662 :rset
11663 s/^[ ]*#[ ]*define[ ][ ]*//
11664 t ok
11667 s/[\\&,]/\\&/g
11668 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11669 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11670 ' >>conftest.defines
11672 # Remove the space that was appended to ease matching.
11673 # Then replace #undef with comments. This is necessary, for
11674 # example, in the case of _POSIX_SOURCE, which is predefined and required
11675 # on some systems where configure will not decide to define it.
11676 # (The regexp can be short, since the line contains either #define or #undef.)
11677 echo 's/ $//
11678 s,^[ #]*u.*,/* & */,' >>conftest.defines
11680 # Break up conftest.defines:
11681 ac_max_sed_lines=50
11683 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11684 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11685 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11686 # et cetera.
11687 ac_in='$ac_file_inputs'
11688 ac_out='"$tmp/out1"'
11689 ac_nxt='"$tmp/out2"'
11691 while :
11693 # Write a here document:
11694 cat >>$CONFIG_STATUS <<_ACEOF
11695 # First, check the format of the line:
11696 cat >"\$tmp/defines.sed" <<\\CEOF
11697 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11698 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11700 :def
11701 _ACEOF
11702 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11703 echo 'CEOF
11704 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11705 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11706 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11707 grep . conftest.tail >/dev/null || break
11708 rm -f conftest.defines
11709 mv conftest.tail conftest.defines
11710 done
11711 rm -f conftest.defines conftest.tail
11713 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11714 cat >>$CONFIG_STATUS <<\_ACEOF
11715 if test x"$ac_file" != x-; then
11716 echo "/* $configure_input */" >"$tmp/config.h"
11717 cat "$ac_result" >>"$tmp/config.h"
11718 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11720 echo "$as_me: $ac_file is unchanged" >&6;}
11721 else
11722 rm -f $ac_file
11723 mv "$tmp/config.h" $ac_file
11725 else
11726 echo "/* $configure_input */"
11727 cat "$ac_result"
11729 rm -f "$tmp/out12"
11732 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11733 echo "$as_me: executing $ac_file commands" >&6;}
11735 esac
11738 case $ac_file$ac_mode in
11739 "compiler_executable":C)
11740 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11741 mkdir -p $prefix
11742 prefix="${prefix}/${aros_target_cpu}-aros"
11743 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11745 echo ${prefix}
11746 echo ${prefix2}
11747 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11749 ln -sf ${prefix2}-gcc ${prefix}-gcc
11750 ln -sf ${prefix2}-ld ${prefix}-ld
11752 ln -sf $aros_target_as_ln ${prefix}-as
11753 ln -sf $aros_target_nm_ln ${prefix}-nm
11754 ln -sf $aros_target_ar_ln ${prefix}-ar
11755 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
11756 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
11757 ln -sf $aros_target_objdump_ln ${prefix}-objdump
11758 ln -sf $aros_target_strip_ln ${prefix}-strip
11760 ln -sf $aros_target_as_ln ${prefix2}-as
11761 ln -sf $aros_target_nm_ln ${prefix2}-nm
11762 ln -sf $aros_target_ar_ln ${prefix2}-ar
11763 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
11764 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
11765 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
11766 ln -sf $aros_target_strip_ln ${prefix2}-strip
11768 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11769 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11770 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
11773 esac
11774 done # for ac_tag
11777 { (exit 0); exit 0; }
11778 _ACEOF
11779 chmod +x $CONFIG_STATUS
11780 ac_clean_files=$ac_clean_files_save
11783 # configure is writing to config.log, and then calls config.status.
11784 # config.status does its own redirection, appending to config.log.
11785 # Unfortunately, on DOS this fails, as config.log is still kept open
11786 # by configure, so config.status won't be able to write to it; its
11787 # output is simply discarded. So we exec the FD to /dev/null,
11788 # effectively closing config.log, so it can be properly (re)opened and
11789 # appended to by config.status. When coming back to configure, we
11790 # need to make the FD available again.
11791 if test "$no_create" != yes; then
11792 ac_cs_success=:
11793 ac_config_status_args=
11794 test "$silent" = yes &&
11795 ac_config_status_args="$ac_config_status_args --quiet"
11796 exec 5>/dev/null
11797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11798 exec 5>>config.log
11799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11800 # would make configure fail if this is the last instruction.
11801 $ac_cs_success || { (exit 1); exit 1; }
11806 #XXX compatability...
11807 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11809 if test -n "$aros_shared_cflags" ; then
11810 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11811 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg