Added program icon
[AROS.git] / configure
blobcbbf398029d9e77c74dcfc94485e465c538f2bf6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_target_cc
714 aros_target_ld
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_kernel_rescomp
724 aros_target_nostdinc_cflags
725 aros_target_nostartup_ldflags
726 aros_target_nix_ldflags
727 aros_target_detach_ldflags
728 aros_target_nostdlib_ldflags
729 host_cflags_iquote
730 host_cflags_iquote_end
731 kernel_cflags_iquote
732 kernel_cflags_iquote_end
733 aros_cflags_iquote
734 aros_cflags_iquote_end
735 XMKMF
736 SDL_CONFIG
737 SDL_CFLAGS
738 SDL_LIBS
739 aros_arch
740 aros_cpu
741 aros_flavour
742 aros_flavour_uc
743 AROS_BUILDDIR
744 AROS_BUILDDIR_UNIX
745 SRCDIR
746 AROS_PORTSSRCDIR
747 aros_cc_pre
748 aros_host_arch
749 aros_host_cpu
750 aros_host_cc
751 aros_host_make
752 aros_host_cflags
753 aros_host_ldflags
754 aros_host_debug
755 aros_host_mkdep
756 aros_host_mkargs
757 aros_host_exe_suffix
758 aros_host_lib_suffix
759 aros_tools_dir
760 aros_target_guitheme
761 aros_target_iconset
762 aros_target_bootloader
763 aros_target_arch
764 aros_target_cpu
765 aros_target_variant
766 aros_target_suffix
767 aros_target_incl
768 aros_target_ar
769 aros_target_ranlib
770 aros_kernel_nm
771 orig_target_cc
772 aros_target_cxx
773 aros_kernel_cc
774 aros_target_as
775 orig_target_ld
776 aros_target_cc_includes
777 aros_target_cc_path
778 aros_target_objdump
779 aros_target_objcopy
780 aros_target_strip
781 aros_target_nm
782 aros_shared_default
783 aros_shared_ld
784 aros_object_format
785 aros_compiler_libs
786 aros_arch_libs
787 aros_config_cflags
788 aros_config_aflags
789 aros_config_ldflags
790 aros_shared_cflags
791 aros_shared_aflags
792 aros_shared_ldflags
793 aros_kernel_cflags
794 aros_kernel_objcflags
795 aros_kernel_ldflags
796 aros_debug_cflags
797 aros_debug_aflags
798 aros_debug_ldflags
799 aros_target_genmap
800 aros_target_strip_flags
801 x11_hidd_target
802 sdl_hidd_target
803 aros_default_wbwidth
804 aros_default_wbheight
805 aros_default_wbdepth
806 DO_XSHM_SUPPORT
807 DO_VIDMODE_SUPPORT
808 aros_host_x11_includes
809 aros_host_x11_libdirs
810 aros_host_sdl_cflags
811 aros_host_sdl_libs
812 aros_serial_debug
813 aros_palm_debug_hack
814 aros_nesting_supervisor
815 aros_xcode_path
816 aros_ios_platform
817 aros_ios_version
818 aros_ios_sdk
819 ENABLE_DBUS
820 DBUS_CFLAGS
821 DBUS_LIBFLAGS
822 KERNEL_DBUS_KOBJ
823 KERNEL_DBUS_INCLUDES
824 ENABLE_X11
825 aros_debug
826 aros_mungwall_debug
827 aros_stack_debug
828 aros_modules_debug
829 ignore_undefined_symbols
830 gcc_target_cpu
831 LTLIBOBJS'
832 ac_subst_files=''
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
842 XMKMF'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
952 eval enable_$ac_feature=no ;;
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
964 -enable-* | --enable-*)
965 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
968 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
969 { (exit 1); exit 1; }; }
970 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
971 eval enable_$ac_feature=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1168 eval with_$ac_package=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1177 eval with_$ac_package=no ;;
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) { echo "$as_me: error: unrecognized option: $ac_option
1198 Try \`$0 --help' for more information." >&2
1199 { (exit 1); exit 1; }; }
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1207 { (exit 1); exit 1; }; }
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 esac
1220 done
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 { echo "$as_me: error: missing argument to $ac_option" >&2
1225 { (exit 1); exit 1; }; }
1228 # Be sure to have absolute directory names.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1240 { (exit 1); exit 1; }; }
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used." >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 { echo "$as_me: error: Working directory cannot be determined" >&2
1271 { (exit 1); exit 1; }; }
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 { echo "$as_me: error: pwd does not report name of working directory" >&2
1274 { (exit 1); exit 1; }; }
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$0" ||
1282 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$0" : 'X\(//\)[^/]' \| \
1284 X"$0" : 'X\(//\)$' \| \
1285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1286 echo X"$0" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1295 /^X\(\/\/\)$/{
1296 s//\1/
1299 /^X\(\/\).*/{
1300 s//\1/
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1308 else
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1314 { (exit 1); exit 1; }; }
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1319 { (exit 1); exit 1; }; }
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures this package to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1400 cat <<\_ACEOF
1402 X features:
1403 --x-includes=DIR X include files are in DIR
1404 --x-libraries=DIR X library files are in DIR
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1412 if test -n "$ac_init_help"; then
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-build-type=TYPE
1420 Select the build type. Available types are:
1421 personal, nightly, snapshot, milestone, release. Do
1422 NOT use this option unless you know what you are
1423 doing! (default=personal)
1424 --enable-debug=list Enable different types of debug. Commas or
1425 whitespaces can be used to separate the items in the
1426 list. Available types of debug are: all, none,
1427 messages, stack, mungwall, modules, symbols. If no
1428 list is provided then "all" is assumed.
1429 (default=none)
1430 --enable-crosstools Build cross-compiler toolchains if necessary
1431 (default=no).
1432 --enable-distcc Use distcc as a front end to the compiler
1433 (default=no).
1434 --enable-ccache Use ccache as a front end to the compiler
1435 (default=no).
1436 --enable-target-variant=NAME
1437 Enable a specific target variant(default=none)
1438 --enable-includes=dir Alternative system include directory
1439 --enable-palm-debug-hack
1440 Enable palm debug output hack in palm native
1441 (default=no)
1442 --enable-nesting-supervisor
1443 Enable nesting supervisor support in unix
1444 (default=no)
1445 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1446 --enable-x11-shm use X11 shared memory (default=auto)
1447 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1448 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1449 --disable-sdltest Do not try to compile and run a test SDL program
1450 --enable-dbus Enable DBUS support via dbus.library (default=no)
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimization=FLAGS
1456 Use optimization flags FLAGS (default=-O2).
1457 --with-portssources=DIR Where to download sourcecode for external ports
1458 --with-bootloader=NAME Use a specific bootloader
1459 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1460 --with-theme=NAME Use a specific GUI Theme
1461 --with-resolution=XRESxYRESxDEPTH
1462 Default resolution of the initial WorkbenchScreen
1463 --with-serial-debug Enable serial debug output in native (default=no)
1464 --with-x use the X Window System
1465 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1466 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477 XMKMF Path to xmkmf, Makefile generator for X Window System
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 configure
1543 generated by GNU Autoconf 2.61
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1552 cat >config.log <<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1556 It was created by $as_me, which was
1557 generated by GNU Autoconf 2.61. Invocation command line was
1559 $ $0 $@
1561 _ACEOF
1562 exec 5>>config.log
1564 cat <<_ASUNAME
1565 ## --------- ##
1566 ## Platform. ##
1567 ## --------- ##
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1579 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1582 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1583 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1584 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586 _ASUNAME
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 echo "PATH: $as_dir"
1594 done
1595 IFS=$as_save_IFS
1597 } >&5
1599 cat >&5 <<_ACEOF
1602 ## ----------- ##
1603 ## Core tests. ##
1604 ## ----------- ##
1606 _ACEOF
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_configure_args=
1615 ac_configure_args0=
1616 ac_configure_args1=
1617 ac_must_keep_next=false
1618 for ac_pass in 1 2
1620 for ac_arg
1622 case $ac_arg in
1623 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625 | -silent | --silent | --silen | --sile | --sil)
1626 continue ;;
1627 *\'*)
1628 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1629 esac
1630 case $ac_pass in
1631 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1634 if test $ac_must_keep_next = true; then
1635 ac_must_keep_next=false # Got value, back to normal.
1636 else
1637 case $ac_arg in
1638 *=* | --config-cache | -C | -disable-* | --disable-* \
1639 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641 | -with-* | --with-* | -without-* | --without-* | --x)
1642 case "$ac_configure_args0 " in
1643 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644 esac
1646 -* ) ac_must_keep_next=true ;;
1647 esac
1649 ac_configure_args="$ac_configure_args '$ac_arg'"
1651 esac
1652 done
1653 done
1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log. We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663 # Save into config.log some information that might help in debugging.
1665 echo
1667 cat <<\_ASBOX
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1671 _ASBOX
1672 echo
1673 # The following way of writing the cache mishandles newlines in values,
1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676 eval ac_val=\$$ac_var
1677 case $ac_val in #(
1678 *${as_nl}*)
1679 case $ac_var in #(
1680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1682 esac
1683 case $ac_var in #(
1684 _ | IFS | as_nl) ;; #(
1685 *) $as_unset $ac_var ;;
1686 esac ;;
1687 esac
1688 done
1689 (set) 2>&1 |
1690 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1691 *${as_nl}ac_space=\ *)
1692 sed -n \
1693 "s/'\''/'\''\\\\'\'''\''/g;
1694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1695 ;; #(
1697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 esac |
1700 sort
1702 echo
1704 cat <<\_ASBOX
1705 ## ----------------- ##
1706 ## Output variables. ##
1707 ## ----------------- ##
1708 _ASBOX
1709 echo
1710 for ac_var in $ac_subst_vars
1712 eval ac_val=\$$ac_var
1713 case $ac_val in
1714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 esac
1716 echo "$ac_var='\''$ac_val'\''"
1717 done | sort
1718 echo
1720 if test -n "$ac_subst_files"; then
1721 cat <<\_ASBOX
1722 ## ------------------- ##
1723 ## File substitutions. ##
1724 ## ------------------- ##
1725 _ASBOX
1726 echo
1727 for ac_var in $ac_subst_files
1729 eval ac_val=\$$ac_var
1730 case $ac_val in
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 esac
1733 echo "$ac_var='\''$ac_val'\''"
1734 done | sort
1735 echo
1738 if test -s confdefs.h; then
1739 cat <<\_ASBOX
1740 ## ----------- ##
1741 ## confdefs.h. ##
1742 ## ----------- ##
1743 _ASBOX
1744 echo
1745 cat confdefs.h
1746 echo
1748 test "$ac_signal" != 0 &&
1749 echo "$as_me: caught signal $ac_signal"
1750 echo "$as_me: exit $exit_status"
1751 } >&5
1752 rm -f core *.core core.conftest.* &&
1753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1754 exit $exit_status
1756 for ac_signal in 1 2 13 15; do
1757 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 done
1759 ac_signal=0
1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1762 rm -f -r conftest* confdefs.h
1764 # Predefined preprocessor variables.
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 _ACEOF
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 _ACEOF
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 _ACEOF
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 _ACEOF
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 _ACEOF
1791 # Let the site file select an alternate cache file if it wants to.
1792 # Prefer explicitly selected file to automatically selected ones.
1793 if test -n "$CONFIG_SITE"; then
1794 set x "$CONFIG_SITE"
1795 elif test "x$prefix" != xNONE; then
1796 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1797 else
1798 set x "$ac_default_prefix/share/config.site" \
1799 "$ac_default_prefix/etc/config.site"
1801 shift
1802 for ac_site_file
1804 if test -r "$ac_site_file"; then
1805 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 echo "$as_me: loading site script $ac_site_file" >&6;}
1807 sed 's/^/| /' "$ac_site_file" >&5
1808 . "$ac_site_file"
1810 done
1812 if test -r "$cache_file"; then
1813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 echo "$as_me: loading cache $cache_file" >&6;}
1818 case $cache_file in
1819 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820 *) . "./$cache_file";;
1821 esac
1823 else
1824 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 echo "$as_me: creating cache $cache_file" >&6;}
1826 >$cache_file
1829 # Check that the precious variables saved in the cache have kept the same
1830 # value.
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
1835 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836 eval ac_new_val=\$ac_env_${ac_var}_value
1837 case $ac_old_set,$ac_new_set in
1838 set,)
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1842 ,set)
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1846 ,);;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1852 echo "$as_me: former value: $ac_old_val" >&2;}
1853 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1854 echo "$as_me: current value: $ac_new_val" >&2;}
1855 ac_cache_corrupted=:
1856 fi;;
1857 esac
1858 # Pass precious variables to config.status.
1859 if test "$ac_new_set" = set; then
1860 case $ac_new_val in
1861 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1862 *) ac_arg=$ac_var=$ac_new_val ;;
1863 esac
1864 case " $ac_configure_args " in
1865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1866 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1867 esac
1869 done
1870 if $ac_cache_corrupted; then
1871 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1875 { (exit 1); exit 1; }; }
1894 ac_ext=c
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902 ac_aux_dir=
1903 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1904 if test -f "$ac_dir/install-sh"; then
1905 ac_aux_dir=$ac_dir
1906 ac_install_sh="$ac_aux_dir/install-sh -c"
1907 break
1908 elif test -f "$ac_dir/install.sh"; then
1909 ac_aux_dir=$ac_dir
1910 ac_install_sh="$ac_aux_dir/install.sh -c"
1911 break
1912 elif test -f "$ac_dir/shtool"; then
1913 ac_aux_dir=$ac_dir
1914 ac_install_sh="$ac_aux_dir/shtool install -c"
1915 break
1917 done
1918 if test -z "$ac_aux_dir"; then
1919 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1920 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1921 { (exit 1); exit 1; }; }
1924 # These three variables are undocumented and unsupported,
1925 # and are intended to be withdrawn in a future Autoconf release.
1926 # They can cause serious problems if a builder's source tree is in a directory
1927 # whose full name contains unusual characters.
1928 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1929 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1930 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1934 # Check what host we are running on.
1935 # If a target is not suggested, we use this one.
1936 # Note that what we call a target, Autoconf calls a host.
1937 # Make sure we can run config.sub.
1938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1939 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1940 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1941 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: checking build system type" >&5
1944 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1945 if test "${ac_cv_build+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 ac_build_alias=$build_alias
1949 test "x$ac_build_alias" = x &&
1950 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1951 test "x$ac_build_alias" = x &&
1952 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1953 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1954 { (exit 1); exit 1; }; }
1955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1956 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1957 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1958 { (exit 1); exit 1; }; }
1961 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1962 echo "${ECHO_T}$ac_cv_build" >&6; }
1963 case $ac_cv_build in
1964 *-*-*) ;;
1965 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1966 echo "$as_me: error: invalid value of canonical build" >&2;}
1967 { (exit 1); exit 1; }; };;
1968 esac
1969 build=$ac_cv_build
1970 ac_save_IFS=$IFS; IFS='-'
1971 set x $ac_cv_build
1972 shift
1973 build_cpu=$1
1974 build_vendor=$2
1975 shift; shift
1976 # Remember, the first character of IFS is used to create $*,
1977 # except with old shells:
1978 build_os=$*
1979 IFS=$ac_save_IFS
1980 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1983 { echo "$as_me:$LINENO: checking host system type" >&5
1984 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_host+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test "x$host_alias" = x; then
1989 ac_cv_host=$ac_cv_build
1990 else
1991 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1992 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1993 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1994 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1999 echo "${ECHO_T}$ac_cv_host" >&6; }
2000 case $ac_cv_host in
2001 *-*-*) ;;
2002 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2003 echo "$as_me: error: invalid value of canonical host" >&2;}
2004 { (exit 1); exit 1; }; };;
2005 esac
2006 host=$ac_cv_host
2007 ac_save_IFS=$IFS; IFS='-'
2008 set x $ac_cv_host
2009 shift
2010 host_cpu=$1
2011 host_vendor=$2
2012 shift; shift
2013 # Remember, the first character of IFS is used to create $*,
2014 # except with old shells:
2015 host_os=$*
2016 IFS=$ac_save_IFS
2017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2021 # The AROS target is slightly different to the normal GNU style
2022 # format. We don't have the middle part, and we reverse the order
2023 # of the $(CPU) and $(OS) bits.
2025 # Don't strip the version of the target yet, it might be
2026 # useful on some systems.
2028 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2029 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2031 if test "$target" = "NONE" ; then
2032 target=$host_os-$host_cpu
2033 cross_compile=no
2034 else
2035 if test "$target" = "" ; then
2036 target=$host_os-$host_cpu
2037 cross_compile=no
2038 else
2039 cross_compile=yes
2042 { echo "$as_me:$LINENO: result: $target" >&5
2043 echo "${ECHO_T}$target" >&6; }
2045 if test "$host_os" = "mingw32" ; then
2046 PWDCMD="pwd -W"
2049 #don't know where else to put this...
2050 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2051 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2052 AROS_BUILDDIR=`${PWDCMD-pwd}`
2053 AROS_BUILDDIR_UNIX=${PWD}
2054 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2055 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2057 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2058 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2059 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2060 SRCDIR=${srcpwd}
2061 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2062 echo "${ECHO_T}$SRCDIR" >&6; }
2064 # Parse the target field into something useful.
2066 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2067 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2070 aros_default_wbwidth=800
2071 aros_default_wbheight=600
2072 aros_default_wbdepth=4
2075 # The first step is to find the host binaries.
2076 # Check for a compiler.
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2104 done
2105 done
2106 IFS=$as_save_IFS
2110 CC=$ac_cv_prog_CC
2111 if test -n "$CC"; then
2112 { echo "$as_me:$LINENO: result: $CC" >&5
2113 echo "${ECHO_T}$CC" >&6; }
2114 else
2115 { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2121 if test -z "$ac_cv_prog_CC"; then
2122 ac_ct_CC=$CC
2123 # Extract the first word of "gcc", so it can be a program name with args.
2124 set dummy gcc; ac_word=$2
2125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 if test -n "$ac_ct_CC"; then
2131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140 ac_cv_prog_ac_ct_CC="gcc"
2141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 break 2
2144 done
2145 done
2146 IFS=$as_save_IFS
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6; }
2154 else
2155 { echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6; }
2159 if test "x$ac_ct_CC" = x; then
2160 CC=""
2161 else
2162 case $cross_compiling:$ac_tool_warned in
2163 yes:)
2164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&5
2167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2168 whose name does not start with the host triplet. If you think this
2169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2170 ac_tool_warned=yes ;;
2171 esac
2172 CC=$ac_ct_CC
2174 else
2175 CC="$ac_cv_prog_CC"
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}cc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_CC="${ac_tool_prefix}cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 CC=$ac_cv_prog_CC
2208 if test -n "$CC"; then
2209 { echo "$as_me:$LINENO: result: $CC" >&5
2210 echo "${ECHO_T}$CC" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2219 if test -z "$CC"; then
2220 # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 ac_prog_rejected=no
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 for ac_exec_ext in '' $ac_executable_extensions; do
2237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2239 ac_prog_rejected=yes
2240 continue
2242 ac_cv_prog_CC="cc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2246 done
2247 done
2248 IFS=$as_save_IFS
2250 if test $ac_prog_rejected = yes; then
2251 # We found a bogon in the path, so make sure we never use it.
2252 set dummy $ac_cv_prog_CC
2253 shift
2254 if test $# != 0; then
2255 # We chose a different compiler from the bogus one.
2256 # However, it has the same basename, so the bogon will be chosen
2257 # first if we set CC to just the basename; use the full file name.
2258 shift
2259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2275 if test -z "$CC"; then
2276 if test -n "$ac_tool_prefix"; then
2277 for ac_prog in cl.exe
2279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_prog_CC+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2300 done
2301 done
2302 IFS=$as_save_IFS
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308 { echo "$as_me:$LINENO: result: $CC" >&5
2309 echo "${ECHO_T}$CC" >&6; }
2310 else
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2316 test -n "$CC" && break
2317 done
2319 if test -z "$CC"; then
2320 ac_ct_CC=$CC
2321 for ac_prog in cl.exe
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$ac_ct_CC"; then
2331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_CC="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2344 done
2345 done
2346 IFS=$as_save_IFS
2350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351 if test -n "$ac_ct_CC"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2353 echo "${ECHO_T}$ac_ct_CC" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2360 test -n "$ac_ct_CC" && break
2361 done
2363 if test "x$ac_ct_CC" = x; then
2364 CC=""
2365 else
2366 case $cross_compiling:$ac_tool_warned in
2367 yes:)
2368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2369 whose name does not start with the host triplet. If you think this
2370 configuration is useful to you, please write to autoconf@gnu.org." >&5
2371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet. If you think this
2373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2374 ac_tool_warned=yes ;;
2375 esac
2376 CC=$ac_ct_CC
2383 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2389 # Provide some information about the compiler.
2390 echo "$as_me:$LINENO: checking for C compiler version" >&5
2391 ac_compiler=`set X $ac_compile; echo $2`
2392 { (ac_try="$ac_compiler --version >&5"
2393 case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396 esac
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compiler --version >&5") 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }
2402 { (ac_try="$ac_compiler -v >&5"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_compiler -v >&5") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (ac_try="$ac_compiler -V >&5"
2413 case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compiler -V >&5") 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 ac_clean_files_save=$ac_clean_files
2439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2442 # of exeext.
2443 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2447 # List of possible output files, starting from the most likely.
2448 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2449 # only as a last resort. b.out is created by i960 compilers.
2450 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2452 # The IRIX 6 linker writes into existing files which may not be
2453 # executable, retaining their permissions. Remove them first so a
2454 # subsequent execution test works.
2455 ac_rmfiles=
2456 for ac_file in $ac_files
2458 case $ac_file in
2459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2461 esac
2462 done
2463 rm -f $ac_rmfiles
2465 if { (ac_try="$ac_link_default"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_link_default") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; then
2475 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2476 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2477 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2478 # so that the user can short-circuit this test for compilers unknown to
2479 # Autoconf.
2480 for ac_file in $ac_files ''
2482 test -f "$ac_file" || continue
2483 case $ac_file in
2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2486 [ab].out )
2487 # We found the default executable, but exeext='' is most
2488 # certainly right.
2489 break;;
2490 *.* )
2491 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2492 then :; else
2493 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2495 # We set ac_cv_exeext here because the later test for it is not
2496 # safe: cross compilers may not add the suffix if given an `-o'
2497 # argument, so we may need to know it at that point already.
2498 # Even if this section looks crufty: it has the advantage of
2499 # actually working.
2500 break;;
2502 break;;
2503 esac
2504 done
2505 test "$ac_cv_exeext" = no && ac_cv_exeext=
2507 else
2508 ac_file=''
2511 { echo "$as_me:$LINENO: result: $ac_file" >&5
2512 echo "${ECHO_T}$ac_file" >&6; }
2513 if test -z "$ac_file"; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: C compiler cannot create executables
2520 See \`config.log' for more details." >&2;}
2521 { (exit 77); exit 77; }; }
2524 ac_exeext=$ac_cv_exeext
2526 # Check that the compiler produces executables we can run. If not, either
2527 # the compiler is broken, or we cross compile.
2528 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2529 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2530 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2531 # If not cross compiling, check that we can run a simple program.
2532 if test "$cross_compiling" != yes; then
2533 if { ac_try='./$ac_file'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 cross_compiling=no
2544 else
2545 if test "$cross_compiling" = maybe; then
2546 cross_compiling=yes
2547 else
2548 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2549 If you meant to cross compile, use \`--host'.
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: cannot run C compiled programs.
2552 If you meant to cross compile, use \`--host'.
2553 See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }
2558 { echo "$as_me:$LINENO: result: yes" >&5
2559 echo "${ECHO_T}yes" >&6; }
2561 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2562 ac_clean_files=$ac_clean_files_save
2563 # Check that the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2566 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2567 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2568 echo "${ECHO_T}$cross_compiling" >&6; }
2570 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2571 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2572 if { (ac_try="$ac_link"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_link") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; then
2582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 # `rm'.
2586 for ac_file in conftest.exe conftest conftest.*; do
2587 test -f "$ac_file" || continue
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 break;;
2592 * ) break;;
2593 esac
2594 done
2595 else
2596 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details." >&2;}
2600 { (exit 1); exit 1; }; }
2603 rm -f conftest$ac_cv_exeext
2604 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2605 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2607 rm -f conftest.$ac_ext
2608 EXEEXT=$ac_cv_exeext
2609 ac_exeext=$EXEEXT
2610 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2611 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2612 if test "${ac_cv_objext+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2623 main ()
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.o conftest.obj
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; then
2641 for ac_file in conftest.o conftest.obj conftest.*; do
2642 test -f "$ac_file" || continue;
2643 case $ac_file in
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2645 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2646 break;;
2647 esac
2648 done
2649 else
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2662 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2663 echo "${ECHO_T}$ac_cv_objext" >&6; }
2664 OBJEXT=$ac_cv_objext
2665 ac_objext=$OBJEXT
2666 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2667 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2668 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2679 main ()
2681 #ifndef __GNUC__
2682 choke me
2683 #endif
2686 return 0;
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } && {
2703 test -z "$ac_c_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest.$ac_objext; then
2706 ac_compiler_gnu=yes
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 ac_compiler_gnu=no
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2718 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2719 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2720 GCC=`test $ac_compiler_gnu = yes && echo yes`
2721 ac_test_CFLAGS=${CFLAGS+set}
2722 ac_save_CFLAGS=$CFLAGS
2723 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2724 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_cc_g+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 ac_save_c_werror_flag=$ac_c_werror_flag
2729 ac_c_werror_flag=yes
2730 ac_cv_prog_cc_g=no
2731 CFLAGS="-g"
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 main ()
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2764 ac_cv_prog_cc_g=yes
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 CFLAGS=""
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 ac_c_werror_flag=$ac_save_c_werror_flag
2808 CFLAGS="-g"
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2817 main ()
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compile") 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest.$ac_objext; then
2841 ac_cv_prog_cc_g=yes
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 ac_c_werror_flag=$ac_save_c_werror_flag
2858 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2860 if test "$ac_test_CFLAGS" = set; then
2861 CFLAGS=$ac_save_CFLAGS
2862 elif test $ac_cv_prog_cc_g = yes; then
2863 if test "$GCC" = yes; then
2864 CFLAGS="-g -O2"
2865 else
2866 CFLAGS="-g"
2868 else
2869 if test "$GCC" = yes; then
2870 CFLAGS="-O2"
2871 else
2872 CFLAGS=
2875 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2876 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_cc_c89+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 ac_cv_prog_cc_c89=no
2881 ac_save_CC=$CC
2882 cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h. */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2888 #include <stdarg.h>
2889 #include <stdio.h>
2890 #include <sys/types.h>
2891 #include <sys/stat.h>
2892 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2893 struct buf { int x; };
2894 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2895 static char *e (p, i)
2896 char **p;
2897 int i;
2899 return p[i];
2901 static char *f (char * (*g) (char **, int), char **p, ...)
2903 char *s;
2904 va_list v;
2905 va_start (v,p);
2906 s = g (p, va_arg (v,int));
2907 va_end (v);
2908 return s;
2911 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2912 function prototypes and stuff, but not '\xHH' hex character constants.
2913 These don't provoke an error unfortunately, instead are silently treated
2914 as 'x'. The following induces an error, until -std is added to get
2915 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2916 array size at least. It's necessary to write '\x00'==0 to get something
2917 that's true only with -std. */
2918 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2920 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2921 inside strings and character constants. */
2922 #define FOO(x) 'x'
2923 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2925 int test (int i, double x);
2926 struct s1 {int (*f) (int a);};
2927 struct s2 {int (*f) (double a);};
2928 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2929 int argc;
2930 char **argv;
2932 main ()
2934 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2936 return 0;
2938 _ACEOF
2939 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2940 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2942 CC="$ac_save_CC $ac_arg"
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2960 ac_cv_prog_cc_c89=$ac_arg
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext
2969 test "x$ac_cv_prog_cc_c89" != "xno" && break
2970 done
2971 rm -f conftest.$ac_ext
2972 CC=$ac_save_CC
2975 # AC_CACHE_VAL
2976 case "x$ac_cv_prog_cc_c89" in
2978 { echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6; } ;;
2980 xno)
2981 { echo "$as_me:$LINENO: result: unsupported" >&5
2982 echo "${ECHO_T}unsupported" >&6; } ;;
2984 CC="$CC $ac_cv_prog_cc_c89"
2985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2986 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2987 esac
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 case $ac_cv_prog_cc_stdc in
2997 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2998 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2999 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_cc_c99+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003 ac_cv_prog_cc_c99=no
3004 ac_save_CC=$CC
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <stdarg.h>
3012 #include <stdbool.h>
3013 #include <stdlib.h>
3014 #include <wchar.h>
3015 #include <stdio.h>
3017 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3018 #define debug(...) fprintf (stderr, __VA_ARGS__)
3019 #define showlist(...) puts (#__VA_ARGS__)
3020 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3021 static void
3022 test_varargs_macros (void)
3024 int x = 1234;
3025 int y = 5678;
3026 debug ("Flag");
3027 debug ("X = %d\n", x);
3028 showlist (The first, second, and third items.);
3029 report (x>y, "x is %d but y is %d", x, y);
3032 // Check long long types.
3033 #define BIG64 18446744073709551615ull
3034 #define BIG32 4294967295ul
3035 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3036 #if !BIG_OK
3037 your preprocessor is broken;
3038 #endif
3039 #if BIG_OK
3040 #else
3041 your preprocessor is broken;
3042 #endif
3043 static long long int bignum = -9223372036854775807LL;
3044 static unsigned long long int ubignum = BIG64;
3046 struct incomplete_array
3048 int datasize;
3049 double data[];
3052 struct named_init {
3053 int number;
3054 const wchar_t *name;
3055 double average;
3058 typedef const char *ccp;
3060 static inline int
3061 test_restrict (ccp restrict text)
3063 // See if C++-style comments work.
3064 // Iterate through items via the restricted pointer.
3065 // Also check for declarations in for loops.
3066 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3067 continue;
3068 return 0;
3071 // Check varargs and va_copy.
3072 static void
3073 test_varargs (const char *format, ...)
3075 va_list args;
3076 va_start (args, format);
3077 va_list args_copy;
3078 va_copy (args_copy, args);
3080 const char *str;
3081 int number;
3082 float fnumber;
3084 while (*format)
3086 switch (*format++)
3088 case 's': // string
3089 str = va_arg (args_copy, const char *);
3090 break;
3091 case 'd': // int
3092 number = va_arg (args_copy, int);
3093 break;
3094 case 'f': // float
3095 fnumber = va_arg (args_copy, double);
3096 break;
3097 default:
3098 break;
3101 va_end (args_copy);
3102 va_end (args);
3106 main ()
3109 // Check bool.
3110 _Bool success = false;
3112 // Check restrict.
3113 if (test_restrict ("String literal") == 0)
3114 success = true;
3115 char *restrict newvar = "Another string";
3117 // Check varargs.
3118 test_varargs ("s, d' f .", "string", 65, 34.234);
3119 test_varargs_macros ();
3121 // Check flexible array members.
3122 struct incomplete_array *ia =
3123 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3124 ia->datasize = 10;
3125 for (int i = 0; i < ia->datasize; ++i)
3126 ia->data[i] = i * 1.234;
3128 // Check named initializers.
3129 struct named_init ni = {
3130 .number = 34,
3131 .name = L"Test wide string",
3132 .average = 543.34343,
3135 ni.number = 58;
3137 int dynamic_array[ni.number];
3138 dynamic_array[ni.number - 1] = 543;
3140 // work around unused variable warnings
3141 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3142 || dynamic_array[ni.number - 1] != 543);
3145 return 0;
3147 _ACEOF
3148 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3150 CC="$ac_save_CC $ac_arg"
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3168 ac_cv_prog_cc_c99=$ac_arg
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3176 rm -f core conftest.err conftest.$ac_objext
3177 test "x$ac_cv_prog_cc_c99" != "xno" && break
3178 done
3179 rm -f conftest.$ac_ext
3180 CC=$ac_save_CC
3183 # AC_CACHE_VAL
3184 case "x$ac_cv_prog_cc_c99" in
3186 { echo "$as_me:$LINENO: result: none needed" >&5
3187 echo "${ECHO_T}none needed" >&6; } ;;
3188 xno)
3189 { echo "$as_me:$LINENO: result: unsupported" >&5
3190 echo "${ECHO_T}unsupported" >&6; } ;;
3192 CC="$CC $ac_cv_prog_cc_c99"
3193 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3194 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3195 esac
3196 if test "x$ac_cv_prog_cc_c99" != xno; then
3197 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3198 else
3199 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3200 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_cc_c89+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 ac_cv_prog_cc_c89=no
3205 ac_save_CC=$CC
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <stdarg.h>
3213 #include <stdio.h>
3214 #include <sys/types.h>
3215 #include <sys/stat.h>
3216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3217 struct buf { int x; };
3218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3219 static char *e (p, i)
3220 char **p;
3221 int i;
3223 return p[i];
3225 static char *f (char * (*g) (char **, int), char **p, ...)
3227 char *s;
3228 va_list v;
3229 va_start (v,p);
3230 s = g (p, va_arg (v,int));
3231 va_end (v);
3232 return s;
3235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3236 function prototypes and stuff, but not '\xHH' hex character constants.
3237 These don't provoke an error unfortunately, instead are silently treated
3238 as 'x'. The following induces an error, until -std is added to get
3239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3240 array size at least. It's necessary to write '\x00'==0 to get something
3241 that's true only with -std. */
3242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3245 inside strings and character constants. */
3246 #define FOO(x) 'x'
3247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3249 int test (int i, double x);
3250 struct s1 {int (*f) (int a);};
3251 struct s2 {int (*f) (double a);};
3252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3253 int argc;
3254 char **argv;
3256 main ()
3258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3260 return 0;
3262 _ACEOF
3263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3266 CC="$ac_save_CC $ac_arg"
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } && {
3281 test -z "$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 } && test -s conftest.$ac_objext; then
3284 ac_cv_prog_cc_c89=$ac_arg
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 done
3295 rm -f conftest.$ac_ext
3296 CC=$ac_save_CC
3299 # AC_CACHE_VAL
3300 case "x$ac_cv_prog_cc_c89" in
3302 { echo "$as_me:$LINENO: result: none needed" >&5
3303 echo "${ECHO_T}none needed" >&6; } ;;
3304 xno)
3305 { echo "$as_me:$LINENO: result: unsupported" >&5
3306 echo "${ECHO_T}unsupported" >&6; } ;;
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3310 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3311 esac
3312 if test "x$ac_cv_prog_cc_c89" != xno; then
3313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3314 else
3315 ac_cv_prog_cc_stdc=no
3322 esac
3323 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3324 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 case $ac_cv_prog_cc_stdc in
3330 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3331 echo "${ECHO_T}unsupported" >&6; } ;;
3332 '') { echo "$as_me:$LINENO: result: none needed" >&5
3333 echo "${ECHO_T}none needed" >&6; } ;;
3334 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3336 esac
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3346 # On Suns, sometimes $CPP names a directory.
3347 if test -n "$CPP" && test -d "$CPP"; then
3348 CPP=
3350 if test -z "$CPP"; then
3351 if test "${ac_cv_prog_CPP+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 # Double quotes because CPP needs to be expanded
3355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377 Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 }; then
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3401 continue
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 }; then
3432 # Broken: success on invalid input.
3433 continue
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3443 rm -f conftest.err conftest.$ac_ext
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449 break
3452 done
3453 ac_cv_prog_CPP=$CPP
3456 CPP=$ac_cv_prog_CPP
3457 else
3458 ac_cv_prog_CPP=$CPP
3460 { echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6; }
3462 ac_preproc_ok=false
3463 for ac_c_preproc_warn_flag in '' yes
3465 # Use a header file that comes with gcc, so configuring glibc
3466 # with a fresh cross-compiler works.
3467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468 # <limits.h> exists even on freestanding compilers.
3469 # On the NeXT, cc -E runs the code through the compiler's parser,
3470 # not just through cpp. "Syntax error" is here to catch this case.
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482 Syntax error
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3499 }; then
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3506 continue
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null && {
3534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 }; then
3537 # Broken: success on invalid input.
3538 continue
3539 else
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 # Passes both tests.
3544 ac_preproc_ok=:
3545 break
3548 rm -f conftest.err conftest.$ac_ext
3550 done
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then
3555 else
3556 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 # Check for a compatible awk
3571 for ac_prog in gawk nawk
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3577 if test "${ac_cv_prog_AWK+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if test -n "$AWK"; then
3581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 AWK=$ac_cv_prog_AWK
3601 if test -n "$AWK"; then
3602 { echo "$as_me:$LINENO: result: $AWK" >&5
3603 echo "${ECHO_T}$AWK" >&6; }
3604 else
3605 { echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6; }
3610 test -n "$AWK" && break
3611 done
3613 if test "$AWK" = ""; then
3614 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3615 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3616 { (exit 1); exit 1; }; }
3618 # Extract the first word of "mmake", so it can be a program name with args.
3619 set dummy mmake; ac_word=$2
3620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3622 if test "${ac_cv_prog_MMAKE+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 if test -n "$MMAKE"; then
3626 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_MMAKE="mmake "
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3639 done
3640 done
3641 IFS=$as_save_IFS
3645 MMAKE=$ac_cv_prog_MMAKE
3646 if test -n "$MMAKE"; then
3647 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3648 echo "${ECHO_T}$MMAKE" >&6; }
3649 else
3650 { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3656 # Perform some default variable assignments. Note all of these will be
3657 # Regenerated from the script, so there is no need to cache them.
3659 aros_host_cc="$CC"
3660 if test "$GCC" = "yes"; then
3661 aros_gcc_ld=`$CC -print-prog-name=ld`
3662 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3663 set dummy `basename $aros_gcc_ld`; ac_word=$2
3664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 case $aros_host_ld in
3670 [\\/]* | ?:[\\/]*)
3671 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in `dirname $aros_gcc_ld`
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3690 esac
3692 aros_host_ld=$ac_cv_path_aros_host_ld
3693 if test -n "$aros_host_ld"; then
3694 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3695 echo "${ECHO_T}$aros_host_ld" >&6; }
3696 else
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3703 if test "$aros_host_ld" = ""; then
3704 # Extract the first word of "ld", so it can be a program name with args.
3705 set dummy ld; ac_word=$2
3706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3708 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 case $aros_host_ld in
3712 [\\/]* | ?:[\\/]*)
3713 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3732 esac
3734 aros_host_ld=$ac_cv_path_aros_host_ld
3735 if test -n "$aros_host_ld"; then
3736 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3737 echo "${ECHO_T}$aros_host_ld" >&6; }
3738 else
3739 { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3745 if test "$aros_host_ld" = ""; then
3746 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3747 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3748 { (exit 1); exit 1; }; }
3750 aros_host_make="make"
3751 aros_host_cflags=$CFLAGS
3752 aros_host_ldflags=$LDFLAGS
3753 aros_host_debug="-g -O0"
3754 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3755 aros_host_mkargs="--no-print-directory"
3756 aros_host_incl="/usr/include"
3757 aros_host_exe_suffix="$EXEEXT"
3758 aros_host_lib_suffix=""
3760 for ac_prog in aclocal aclocal19 aclocal-1.9
3762 # Extract the first word of "$ac_prog", so it can be a program name with args.
3763 set dummy $ac_prog; ac_word=$2
3764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3766 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$aros_host_aclocal"; then
3770 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_aros_host_aclocal="$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3790 if test -n "$aros_host_aclocal"; then
3791 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3792 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3793 else
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3799 test -n "$aros_host_aclocal" && break
3800 done
3802 for ac_prog in autoconf autoconf259 autoconf253
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3808 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test -n "$aros_host_autoconf"; then
3812 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_aros_host_autoconf="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3827 IFS=$as_save_IFS
3831 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3832 if test -n "$aros_host_autoconf"; then
3833 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3834 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3835 else
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3841 test -n "$aros_host_autoconf" && break
3842 done
3844 for ac_prog in autoheader autoheader259 autoheader253
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3850 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$aros_host_autoheader"; then
3854 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_aros_host_autoheader="$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3869 IFS=$as_save_IFS
3873 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3874 if test -n "$aros_host_autoheader"; then
3875 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3876 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3877 else
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3883 test -n "$aros_host_autoheader" && break
3884 done
3886 for ac_prog in automake automake19 automake-1.9
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3892 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$aros_host_automake"; then
3896 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_aros_host_automake="$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3911 IFS=$as_save_IFS
3915 aros_host_automake=$ac_cv_prog_aros_host_automake
3916 if test -n "$aros_host_automake"; then
3917 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3918 echo "${ECHO_T}$aros_host_automake" >&6; }
3919 else
3920 { echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6; }
3925 test -n "$aros_host_automake" && break
3926 done
3929 if test "$aros_host_aclocal" = ""; then
3930 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3931 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3932 { (exit 1); exit 1; }; }
3934 if test "$aros_host_automake" = ""; then
3935 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3936 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3937 { (exit 1); exit 1; }; }
3940 case "$aros_host_cc" in
3941 *gcc*)
3942 aros_host_cc_pipe="-pipe"
3944 icc)
3945 aros_host_cc_pipe=""
3948 aros_host_cc_pipe=""
3950 esac
3952 aros_target_cc_includes=""
3954 # This is the main host configuration section. It is where the host
3955 # can change the values of any variables it needs to change. We do
3956 # not look at anything that compiles to the target yet, we'll get
3957 # to that later.
3959 case "$host_os" in
3960 aros*)
3961 aros_host_arch="aros"
3962 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3963 case "$host_cpu" in
3964 *i?86*)
3965 aros_host_cpu="i386"
3967 *x86_64*)
3968 aros_host_cpu="x86_64"
3970 *powerpc*)
3971 aros_host_cpu="ppc"
3974 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3975 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3976 aros_host_cpu="$host_cpu"
3978 esac
3981 linux*)
3982 aros_host_arch="linux"
3983 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3984 case "$host_cpu" in
3985 *i?86*)
3986 aros_host_cpu="i386"
3988 *x86_64*)
3989 aros_host_cpu="x86_64"
3991 *m68k*)
3992 aros_host_cpu="m68k"
3994 *powerpc*)
3995 aros_host_cpu="ppc"
3997 *arm*)
3998 aros_host_cpu="arm"
4001 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4002 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4003 aros_host_cpu="$host_cpu"
4005 esac
4008 freebsd*)
4009 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4010 aros_host_make="gmake"
4011 aros_host_arch="freebsd"
4012 aros_host_cpu="i386"
4014 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4017 case $host_os in
4018 freebsd[234]*)
4019 aros_object_format="elf_i386"
4023 aros_object_format="elf_i386_fbsd"
4025 esac
4029 darwin*)
4030 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4031 aros_host_arch="darwin"
4032 case "$host_cpu" in
4033 *i?86*)
4034 aros_host_cpu="i386"
4036 *x86_64*)
4037 aros_host_cpu="x86_64"
4039 *powerpc*)
4040 aros_host_cpu="ppc"
4043 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4044 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4045 aros_host_cpu="$host_cpu"
4047 esac
4049 aros_host_ldflags="$aros_host_ldflags -liconv"
4053 dragonfly*)
4054 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4055 aros_host_make="gmake"
4056 aros_host_arch="dragonfly"
4057 case $host_cpu in
4058 *i?86*)
4059 aros_host_cpu="i386"
4061 *amd64*)
4062 aros_host_cpu="x86_64"
4065 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4066 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4067 aros_host_cpu="$host_cpu"
4069 esac
4072 netbsd*)
4073 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4074 aros_host_make="gmake"
4075 aros_host_arch="netbsd"
4076 case "$host_cpu" in
4077 *i?86*)
4078 aros_host_cpu="i386"
4080 *m68k*)
4081 aros_host_cpu="m68k"
4084 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4085 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4086 aros_host_cpu="$host_cpu"
4088 esac
4089 aros_host_lib_suffix=".0.0"
4092 openbsd*)
4093 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4094 aros_host_make="gmake"
4095 aros_host_arch="openbsd"
4096 case "$host_cpu" in
4097 *i?86*)
4098 aros_host_cpu="i386"
4101 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4102 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4103 aros_host_cpu="$host_cpu"
4105 esac
4108 solaris*)
4109 aros_host_arch="solaris"
4110 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4111 case "$host_cpu" in
4112 *i?86*)
4113 aros_host_cpu="i386"
4115 *sparc*)
4116 aros_host_cpu="sparc"
4119 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4120 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4121 aros_host_cpu="$host_cpu"
4123 esac
4126 morphos*)
4127 aros_host_arch="morphos"
4128 aros_host_cpu="ppc"
4131 amiga*)
4132 aros_host_arch="amiga"
4133 SORT="/gg/bin/sort"
4134 TEST="/gg/bin/test"
4135 UNIQ="/gg/bin/uniq"
4136 FOR="for"
4137 TOUCH="/gg/bin/touch"
4138 case "$host_cpu" in
4139 *m68k*)
4140 aros_host_cpu="m68k"
4142 *powerpc*)
4143 aros_host_cpu="ppc"
4146 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4147 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4148 aros_host_cpu="$host_cpu"
4150 esac
4153 cygwin*)
4154 aros_host_arch="cygwin"
4155 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4156 case "$host_cpu" in
4157 *i?86*)
4158 aros_host_cpu="i386"
4161 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4162 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4163 aros_host_cpu="$host_cpu"
4165 esac
4168 mingw32*)
4169 aros_host_arch="mingw32"
4170 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4171 case "$host_cpu" in
4172 *i?86*)
4173 aros_host_cpu="i386"
4176 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4177 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4178 aros_host_cpu="$host_cpu"
4180 esac
4183 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4184 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4185 { (exit 1); exit 1; }; }
4187 esac
4189 # Extract the first word of "ar", so it can be a program name with args.
4190 set dummy ar; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 if test -n "$aros_host_ar"; then
4197 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_aros_host_ar="ar cr"
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 aros_host_ar=$ac_cv_prog_aros_host_ar
4217 if test -n "$aros_host_ar"; then
4218 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4219 echo "${ECHO_T}$aros_host_ar" >&6; }
4220 else
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4226 if test "$aros_host_ar" = ""; then
4227 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4228 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4229 { (exit 1); exit 1; }; }
4231 # Extract the first word of "ranlib", so it can be a program name with args.
4232 set dummy ranlib; ac_word=$2
4233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4235 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$aros_host_ranlib"; then
4239 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_aros_host_ranlib="ranlib "
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4259 if test -n "$aros_host_ranlib"; then
4260 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4261 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4262 else
4263 { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4268 if test "$aros_host_ranlib" = ""; then
4269 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4270 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4271 { (exit 1); exit 1; }; }
4273 # Extract the first word of "strip", so it can be a program name with args.
4274 set dummy strip; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$aros_host_strip"; then
4281 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_aros_host_strip="strip "
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4296 IFS=$as_save_IFS
4300 aros_host_strip=$ac_cv_prog_aros_host_strip
4301 if test -n "$aros_host_strip"; then
4302 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4303 echo "${ECHO_T}$aros_host_strip" >&6; }
4304 else
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4310 if test "$aros_host_strip" = ""; then
4311 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4312 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4313 { (exit 1); exit 1; }; }
4316 # Extract the first word of "rm", so it can be a program name with args.
4317 set dummy rm; 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_RM+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$RM"; then
4324 ac_cv_prog_RM="$RM" # 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_RM="rm -rf"
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 RM=$ac_cv_prog_RM
4344 if test -n "$RM"; then
4345 { echo "$as_me:$LINENO: result: $RM" >&5
4346 echo "${ECHO_T}$RM" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4353 if test "$RM" = ""; then
4354 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4355 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4356 { (exit 1); exit 1; }; }
4358 # Extract the first word of "cp", so it can be a program name with args.
4359 set dummy cp; 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_CP+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$CP"; then
4366 ac_cv_prog_CP="$CP" # 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_CP="cp "
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 CP=$ac_cv_prog_CP
4386 if test -n "$CP"; then
4387 { echo "$as_me:$LINENO: result: $CP" >&5
4388 echo "${ECHO_T}$CP" >&6; }
4389 else
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4395 if test "$CP" = ""; then
4396 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4397 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4398 { (exit 1); exit 1; }; }
4400 # Extract the first word of "mv", so it can be a program name with args.
4401 set dummy mv; 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_MV+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 if test -n "$MV"; then
4408 ac_cv_prog_MV="$MV" # 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_MV="mv "
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 MV=$ac_cv_prog_MV
4428 if test -n "$MV"; then
4429 { echo "$as_me:$LINENO: result: $MV" >&5
4430 echo "${ECHO_T}$MV" >&6; }
4431 else
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4437 if test "$MV" = ""; then
4438 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4439 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4440 { (exit 1); exit 1; }; }
4442 # Extract the first word of "echo", so it can be a program name with args.
4443 set dummy echo; 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_ECHO+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 if test -n "$ECHO"; then
4450 ac_cv_prog_ECHO="$ECHO" # 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_ECHO="echo "
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 ECHO=$ac_cv_prog_ECHO
4470 if test -n "$ECHO"; then
4471 { echo "$as_me:$LINENO: result: $ECHO" >&5
4472 echo "${ECHO_T}$ECHO" >&6; }
4473 else
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test "$ECHO" = ""; then
4480 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4481 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Extract the first word of "mkdir", so it can be a program name with args.
4485 set dummy mkdir; 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_MKDIR+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$MKDIR"; then
4492 ac_cv_prog_MKDIR="$MKDIR" # 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_MKDIR="mkdir -p"
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 MKDIR=$ac_cv_prog_MKDIR
4512 if test -n "$MKDIR"; then
4513 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4514 echo "${ECHO_T}$MKDIR" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 if test "$MKDIR" = ""; then
4522 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4523 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Extract the first word of "touch", so it can be a program name with args.
4527 set dummy touch; 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_TOUCH+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$TOUCH"; then
4534 ac_cv_prog_TOUCH="$TOUCH" # 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_TOUCH="touch "
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 TOUCH=$ac_cv_prog_TOUCH
4554 if test -n "$TOUCH"; then
4555 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4556 echo "${ECHO_T}$TOUCH" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 if test "$TOUCH" = ""; then
4564 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4565 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4566 { (exit 1); exit 1; }; }
4568 # Extract the first word of "sort", so it can be a program name with args.
4569 set dummy sort; 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_SORT+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test -n "$SORT"; then
4576 ac_cv_prog_SORT="$SORT" # 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_SORT="sort "
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 SORT=$ac_cv_prog_SORT
4596 if test -n "$SORT"; then
4597 { echo "$as_me:$LINENO: result: $SORT" >&5
4598 echo "${ECHO_T}$SORT" >&6; }
4599 else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 if test "$SORT" = ""; then
4606 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4607 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4608 { (exit 1); exit 1; }; }
4610 # Extract the first word of "uniq", so it can be a program name with args.
4611 set dummy uniq; 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_UNIQ+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 if test -n "$UNIQ"; then
4618 ac_cv_prog_UNIQ="$UNIQ" # 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_UNIQ="uniq "
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 UNIQ=$ac_cv_prog_UNIQ
4638 if test -n "$UNIQ"; then
4639 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4640 echo "${ECHO_T}$UNIQ" >&6; }
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test "$UNIQ" = ""; then
4648 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4649 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4650 { (exit 1); exit 1; }; }
4652 # Extract the first word of "true", so it can be a program name with args.
4653 set dummy true; 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_NOP+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$NOP"; then
4660 ac_cv_prog_NOP="$NOP" # 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_NOP="true "
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 NOP=$ac_cv_prog_NOP
4680 if test -n "$NOP"; then
4681 { echo "$as_me:$LINENO: result: $NOP" >&5
4682 echo "${ECHO_T}$NOP" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 if test "$NOP" = ""; then
4690 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4691 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4692 { (exit 1); exit 1; }; }
4694 # Extract the first word of "cat", so it can be a program name with args.
4695 set dummy cat; 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_CAT+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$CAT"; then
4702 ac_cv_prog_CAT="$CAT" # 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_CAT="cat "
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 CAT=$ac_cv_prog_CAT
4722 if test -n "$CAT"; then
4723 { echo "$as_me:$LINENO: result: $CAT" >&5
4724 echo "${ECHO_T}$CAT" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test "$CAT" = ""; then
4732 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4733 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Extract the first word of "bison", so it can be a program name with args.
4737 set dummy bison; 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_BISON+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$BISON"; then
4744 ac_cv_prog_BISON="$BISON" # 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_BISON="bison "
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 BISON=$ac_cv_prog_BISON
4764 if test -n "$BISON"; then
4765 { echo "$as_me:$LINENO: result: $BISON" >&5
4766 echo "${ECHO_T}$BISON" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4773 if test "$BISON" = ""; then
4774 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4775 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4776 { (exit 1); exit 1; }; }
4778 # Extract the first word of "flex", so it can be a program name with args.
4779 set dummy flex; 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_FLEX+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$FLEX"; then
4786 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="flex "
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 FLEX=$ac_cv_prog_FLEX
4806 if test -n "$FLEX"; then
4807 { echo "$as_me:$LINENO: result: $FLEX" >&5
4808 echo "${ECHO_T}$FLEX" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test "$FLEX" = ""; then
4816 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4817 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4818 { (exit 1); exit 1; }; }
4820 # Extract the first word of "pngtopnm", so it can be a program name with args.
4821 set dummy pngtopnm; 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_PNGTOPNM+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 if test -n "$PNGTOPNM"; then
4828 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # 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_PNGTOPNM="pngtopnm "
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 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4848 if test -n "$PNGTOPNM"; then
4849 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4850 echo "${ECHO_T}$PNGTOPNM" >&6; }
4851 else
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test "$PNGTOPNM" = ""; then
4858 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4859 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4860 { (exit 1); exit 1; }; }
4862 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4863 set dummy ppmtoilbm; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 if test -n "$PPMTOILBM"; then
4870 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4890 if test -n "$PPMTOILBM"; then
4891 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4892 echo "${ECHO_T}$PPMTOILBM" >&6; }
4893 else
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test "$PPMTOILBM" = ""; then
4900 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4901 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4902 { (exit 1); exit 1; }; }
4904 # Extract the first word of "sed", so it can be a program name with args.
4905 set dummy sed; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_SED+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 if test -n "$SED"; then
4912 ac_cv_prog_SED="$SED" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_SED="sed "
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 SED=$ac_cv_prog_SED
4932 if test -n "$SED"; then
4933 { echo "$as_me:$LINENO: result: $SED" >&5
4934 echo "${ECHO_T}$SED" >&6; }
4935 else
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4941 if test "$SED" = ""; then
4942 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4943 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4944 { (exit 1); exit 1; }; }
4946 # Extract the first word of "chmod", so it can be a program name with args.
4947 set dummy chmod; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_CHMOD+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test -n "$CHMOD"; then
4954 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_CHMOD="chmod "
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 CHMOD=$ac_cv_prog_CHMOD
4974 if test -n "$CHMOD"; then
4975 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4976 echo "${ECHO_T}$CHMOD" >&6; }
4977 else
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 if test "$CHMOD" = ""; then
4984 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4985 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4986 { (exit 1); exit 1; }; }
4993 if test -n "$PYTHON"; then
4994 # If the user set $PYTHON, use it and don't search something else.
4995 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
4996 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
4997 prog="import sys, string
4998 # split strings by '.' and convert to numeric. Append some zeros
4999 # because we need at least 4 digits for the hex conversion.
5000 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5001 minverhex = 0
5002 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5003 sys.exit(sys.hexversion < minverhex)"
5004 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5005 ($PYTHON -c "$prog") >&5 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; then
5009 { echo "$as_me:$LINENO: result: yes" >&5
5010 echo "${ECHO_T}yes" >&6; }
5011 else
5012 { { echo "$as_me:$LINENO: error: too old" >&5
5013 echo "$as_me: error: too old" >&2;}
5014 { (exit 1); exit 1; }; }
5017 am_display_PYTHON=$PYTHON
5018 else
5019 # Otherwise, try each interpreter until we find one that satisfies
5020 # VERSION.
5021 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5022 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5023 if test "${am_cv_pathless_PYTHON+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5027 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5028 test "$am_cv_pathless_PYTHON" = none && break
5029 prog="import sys, string
5030 # split strings by '.' and convert to numeric. Append some zeros
5031 # because we need at least 4 digits for the hex conversion.
5032 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5033 minverhex = 0
5034 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5035 sys.exit(sys.hexversion < minverhex)"
5036 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5037 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 break
5044 done
5046 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5047 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5048 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5049 if test "$am_cv_pathless_PYTHON" = none; then
5050 PYTHON=:
5051 else
5052 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5053 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_path_PYTHON+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 case $PYTHON in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5080 esac
5082 PYTHON=$ac_cv_path_PYTHON
5083 if test -n "$PYTHON"; then
5084 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5085 echo "${ECHO_T}$PYTHON" >&6; }
5086 else
5087 { echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6; }
5093 am_display_PYTHON=$am_cv_pathless_PYTHON
5097 if test "$PYTHON" = :; then
5098 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5099 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5100 { (exit 1); exit 1; }; }
5101 else
5104 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5105 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5106 if test "${am_cv_python_version+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5111 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5112 echo "${ECHO_T}$am_cv_python_version" >&6; }
5113 PYTHON_VERSION=$am_cv_python_version
5117 PYTHON_PREFIX='${prefix}'
5119 PYTHON_EXEC_PREFIX='${exec_prefix}'
5123 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5124 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5125 if test "${am_cv_python_platform+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5130 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5131 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5132 PYTHON_PLATFORM=$am_cv_python_platform
5137 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5138 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5139 if test "${am_cv_python_pythondir+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5143 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5145 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5146 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5147 pythondir=$am_cv_python_pythondir
5151 pkgpythondir=\${pythondir}/$PACKAGE
5154 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5155 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5156 if test "${am_cv_python_pyexecdir+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5160 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5162 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5163 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5164 pyexecdir=$am_cv_python_pyexecdir
5168 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5176 FOR=for
5178 IF=if
5180 TEST=test
5182 CMP=cmp
5186 # Check for some includes for the X11 HIDD and the kernel
5189 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5190 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_GREP+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 # Extract the first word of "grep ggrep" to use in msg output
5195 if test -z "$GREP"; then
5196 set dummy grep ggrep; ac_prog_name=$2
5197 if test "${ac_cv_path_GREP+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 ac_path_GREP_found=false
5201 # Loop through the user's path and test for each of PROGNAME-LIST
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_prog in grep ggrep; do
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5210 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5211 # Check for GNU ac_path_GREP and select it if it is found.
5212 # Check for GNU $ac_path_GREP
5213 case `"$ac_path_GREP" --version 2>&1` in
5214 *GNU*)
5215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5217 ac_count=0
5218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5219 while :
5221 cat "conftest.in" "conftest.in" >"conftest.tmp"
5222 mv "conftest.tmp" "conftest.in"
5223 cp "conftest.in" "conftest.nl"
5224 echo 'GREP' >> "conftest.nl"
5225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227 ac_count=`expr $ac_count + 1`
5228 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5229 # Best one so far, save it but keep looking for a better one
5230 ac_cv_path_GREP="$ac_path_GREP"
5231 ac_path_GREP_max=$ac_count
5233 # 10*(2^10) chars as input seems more than enough
5234 test $ac_count -gt 10 && break
5235 done
5236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5237 esac
5240 $ac_path_GREP_found && break 3
5241 done
5242 done
5244 done
5245 IFS=$as_save_IFS
5250 GREP="$ac_cv_path_GREP"
5251 if test -z "$GREP"; then
5252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5254 { (exit 1); exit 1; }; }
5257 else
5258 ac_cv_path_GREP=$GREP
5263 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5264 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5265 GREP="$ac_cv_path_GREP"
5268 { echo "$as_me:$LINENO: checking for egrep" >&5
5269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5270 if test "${ac_cv_path_EGREP+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5274 then ac_cv_path_EGREP="$GREP -E"
5275 else
5276 # Extract the first word of "egrep" to use in msg output
5277 if test -z "$EGREP"; then
5278 set dummy egrep; ac_prog_name=$2
5279 if test "${ac_cv_path_EGREP+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 ac_path_EGREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in egrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5293 # Check for GNU ac_path_EGREP and select it if it is found.
5294 # Check for GNU $ac_path_EGREP
5295 case `"$ac_path_EGREP" --version 2>&1` in
5296 *GNU*)
5297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5299 ac_count=0
5300 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5301 while :
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 echo 'EGREP' >> "conftest.nl"
5307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 ac_count=`expr $ac_count + 1`
5310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_EGREP="$ac_path_EGREP"
5313 ac_path_EGREP_max=$ac_count
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5322 $ac_path_EGREP_found && break 3
5323 done
5324 done
5326 done
5327 IFS=$as_save_IFS
5332 EGREP="$ac_cv_path_EGREP"
5333 if test -z "$EGREP"; then
5334 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5335 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5336 { (exit 1); exit 1; }; }
5339 else
5340 ac_cv_path_EGREP=$EGREP
5346 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5347 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5348 EGREP="$ac_cv_path_EGREP"
5351 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5353 if test "${ac_cv_header_stdc+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <stdlib.h>
5363 #include <stdarg.h>
5364 #include <string.h>
5365 #include <float.h>
5368 main ()
5372 return 0;
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_cv_header_stdc=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_cv_header_stdc=no
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 if test $ac_cv_header_stdc = yes; then
5403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #include <string.h>
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414 $EGREP "memchr" >/dev/null 2>&1; then
5416 else
5417 ac_cv_header_stdc=no
5419 rm -f -r conftest*
5423 if test $ac_cv_header_stdc = yes; then
5424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <stdlib.h>
5433 _ACEOF
5434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5435 $EGREP "free" >/dev/null 2>&1; then
5437 else
5438 ac_cv_header_stdc=no
5440 rm -f -r conftest*
5444 if test $ac_cv_header_stdc = yes; then
5445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5446 if test "$cross_compiling" = yes; then
5448 else
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 #include <ctype.h>
5456 #include <stdlib.h>
5457 #if ((' ' & 0x0FF) == 0x020)
5458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5460 #else
5461 # define ISLOWER(c) \
5462 (('a' <= (c) && (c) <= 'i') \
5463 || ('j' <= (c) && (c) <= 'r') \
5464 || ('s' <= (c) && (c) <= 'z'))
5465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5466 #endif
5468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5470 main ()
5472 int i;
5473 for (i = 0; i < 256; i++)
5474 if (XOR (islower (i), ISLOWER (i))
5475 || toupper (i) != TOUPPER (i))
5476 return 2;
5477 return 0;
5479 _ACEOF
5480 rm -f conftest$ac_exeext
5481 if { (ac_try="$ac_link"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_link") 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5501 else
5502 echo "$as_me: program exited with status $ac_status" >&5
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ( exit $ac_status )
5507 ac_cv_header_stdc=no
5509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5515 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5516 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5517 if test $ac_cv_header_stdc = yes; then
5519 cat >>confdefs.h <<\_ACEOF
5520 #define STDC_HEADERS 1
5521 _ACEOF
5525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5536 inttypes.h stdint.h unistd.h
5538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 $ac_includes_default
5552 #include <$ac_header>
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 eval "$as_ac_Header=yes"
5572 else
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5576 eval "$as_ac_Header=no"
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_res=`eval echo '${'$as_ac_Header'}'`
5582 { echo "$as_me:$LINENO: result: $ac_res" >&5
5583 echo "${ECHO_T}$ac_res" >&6; }
5584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5585 cat >>confdefs.h <<_ACEOF
5586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5587 _ACEOF
5591 done
5603 for ac_header in sys/ipc.h sys/shm.h \
5604 sys/mmap.h sys/mman.h sysexits.h \
5605 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_res=`eval echo '${'$as_ac_Header'}'`
5616 { echo "$as_me:$LINENO: result: $ac_res" >&5
5617 echo "${ECHO_T}$ac_res" >&6; }
5618 else
5619 # Is the header compilable?
5620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 $ac_includes_default
5629 #include <$ac_header>
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_header_compiler=yes
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 ac_header_compiler=no
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5658 echo "${ECHO_T}$ac_header_compiler" >&6; }
5660 # Is the header present?
5661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <$ac_header>
5670 _ACEOF
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev/null && {
5684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 }; then
5687 ac_header_preproc=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_header_preproc=no
5695 rm -f conftest.err conftest.$ac_ext
5696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5697 echo "${ECHO_T}$ac_header_preproc" >&6; }
5699 # So? What about this header?
5700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5701 yes:no: )
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5706 ac_header_preproc=yes
5708 no:yes:* )
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5723 esac
5724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 eval "$as_ac_Header=\$ac_header_preproc"
5731 ac_res=`eval echo '${'$as_ac_Header'}'`
5732 { echo "$as_me:$LINENO: result: $ac_res" >&5
5733 echo "${ECHO_T}$ac_res" >&6; }
5736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5737 cat >>confdefs.h <<_ACEOF
5738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5739 _ACEOF
5743 done
5747 for ac_header in sys/mount.h
5749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/param.h>
5763 #include <$ac_header>
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (ac_try="$ac_compile"
5767 case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compile") 2>conftest.er1
5773 ac_status=$?
5774 grep -v '^ *+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && {
5779 test -z "$ac_c_werror_flag" ||
5780 test ! -s conftest.err
5781 } && test -s conftest.$ac_objext; then
5782 eval "$as_ac_Header=yes"
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 eval "$as_ac_Header=no"
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 ac_res=`eval echo '${'$as_ac_Header'}'`
5793 { echo "$as_me:$LINENO: result: $ac_res" >&5
5794 echo "${ECHO_T}$ac_res" >&6; }
5795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5796 cat >>confdefs.h <<_ACEOF
5797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5798 _ACEOF
5802 done
5810 ac_header_dirent=no
5811 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5812 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5813 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5814 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <sys/types.h>
5825 #include <$ac_hdr>
5828 main ()
5830 if ((DIR *) 0)
5831 return 0;
5833 return 0;
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 eval "$as_ac_Header=yes"
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 eval "$as_ac_Header=no"
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 ac_res=`eval echo '${'$as_ac_Header'}'`
5864 { echo "$as_me:$LINENO: result: $ac_res" >&5
5865 echo "${ECHO_T}$ac_res" >&6; }
5866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867 cat >>confdefs.h <<_ACEOF
5868 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5869 _ACEOF
5871 ac_header_dirent=$ac_hdr; break
5874 done
5875 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5876 if test $ac_header_dirent = dirent.h; then
5877 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5878 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5879 if test "${ac_cv_search_opendir+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 ac_func_search_save_LIBS=$LIBS
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5890 /* Override any GCC internal prototype to avoid an error.
5891 Use char because int might match the return type of a GCC
5892 builtin and then its argument prototype would still apply. */
5893 #ifdef __cplusplus
5894 extern "C"
5895 #endif
5896 char opendir ();
5898 main ()
5900 return opendir ();
5902 return 0;
5904 _ACEOF
5905 for ac_lib in '' dir; do
5906 if test -z "$ac_lib"; then
5907 ac_res="none required"
5908 else
5909 ac_res=-l$ac_lib
5910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5912 rm -f conftest.$ac_objext conftest$ac_exeext
5913 if { (ac_try="$ac_link"
5914 case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_link") 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && {
5926 test -z "$ac_c_werror_flag" ||
5927 test ! -s conftest.err
5928 } && test -s conftest$ac_exeext &&
5929 $as_test_x conftest$ac_exeext; then
5930 ac_cv_search_opendir=$ac_res
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5939 conftest$ac_exeext
5940 if test "${ac_cv_search_opendir+set}" = set; then
5941 break
5943 done
5944 if test "${ac_cv_search_opendir+set}" = set; then
5946 else
5947 ac_cv_search_opendir=no
5949 rm conftest.$ac_ext
5950 LIBS=$ac_func_search_save_LIBS
5952 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5953 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5954 ac_res=$ac_cv_search_opendir
5955 if test "$ac_res" != no; then
5956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5960 else
5961 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5962 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5963 if test "${ac_cv_search_opendir+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 ac_func_search_save_LIBS=$LIBS
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5974 /* Override any GCC internal prototype to avoid an error.
5975 Use char because int might match the return type of a GCC
5976 builtin and then its argument prototype would still apply. */
5977 #ifdef __cplusplus
5978 extern "C"
5979 #endif
5980 char opendir ();
5982 main ()
5984 return opendir ();
5986 return 0;
5988 _ACEOF
5989 for ac_lib in '' x; do
5990 if test -z "$ac_lib"; then
5991 ac_res="none required"
5992 else
5993 ac_res=-l$ac_lib
5994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (ac_try="$ac_link"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_link") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest$ac_exeext &&
6013 $as_test_x conftest$ac_exeext; then
6014 ac_cv_search_opendir=$ac_res
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6023 conftest$ac_exeext
6024 if test "${ac_cv_search_opendir+set}" = set; then
6025 break
6027 done
6028 if test "${ac_cv_search_opendir+set}" = set; then
6030 else
6031 ac_cv_search_opendir=no
6033 rm conftest.$ac_ext
6034 LIBS=$ac_func_search_save_LIBS
6036 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6037 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6038 ac_res=$ac_cv_search_opendir
6039 if test "$ac_res" != no; then
6040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6046 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6047 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6048 if test "${ac_cv_header_stat_broken+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <sys/types.h>
6058 #include <sys/stat.h>
6060 #if defined S_ISBLK && defined S_IFDIR
6061 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6062 #endif
6064 #if defined S_ISBLK && defined S_IFCHR
6065 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6066 #endif
6068 #if defined S_ISLNK && defined S_IFREG
6069 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6070 #endif
6072 #if defined S_ISSOCK && defined S_IFREG
6073 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6074 #endif
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 ac_cv_header_stat_broken=no
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_header_stat_broken=yes
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6105 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6106 if test $ac_cv_header_stat_broken = yes; then
6108 cat >>confdefs.h <<\_ACEOF
6109 #define STAT_MACROS_BROKEN 1
6110 _ACEOF
6114 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6116 if test "${ac_cv_header_stdc+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6126 #include <stdarg.h>
6127 #include <string.h>
6128 #include <float.h>
6131 main ()
6135 return 0;
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && {
6152 test -z "$ac_c_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest.$ac_objext; then
6155 ac_cv_header_stdc=yes
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 ac_cv_header_stdc=no
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test $ac_cv_header_stdc = yes; then
6166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <string.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "memchr" >/dev/null 2>&1; then
6179 else
6180 ac_cv_header_stdc=no
6182 rm -f -r conftest*
6186 if test $ac_cv_header_stdc = yes; then
6187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <stdlib.h>
6196 _ACEOF
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "free" >/dev/null 2>&1; then
6200 else
6201 ac_cv_header_stdc=no
6203 rm -f -r conftest*
6207 if test $ac_cv_header_stdc = yes; then
6208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6209 if test "$cross_compiling" = yes; then
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <ctype.h>
6219 #include <stdlib.h>
6220 #if ((' ' & 0x0FF) == 0x020)
6221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6223 #else
6224 # define ISLOWER(c) \
6225 (('a' <= (c) && (c) <= 'i') \
6226 || ('j' <= (c) && (c) <= 'r') \
6227 || ('s' <= (c) && (c) <= 'z'))
6228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6229 #endif
6231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6233 main ()
6235 int i;
6236 for (i = 0; i < 256; i++)
6237 if (XOR (islower (i), ISLOWER (i))
6238 || toupper (i) != TOUPPER (i))
6239 return 2;
6240 return 0;
6242 _ACEOF
6243 rm -f conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6264 else
6265 echo "$as_me: program exited with status $ac_status" >&5
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ( exit $ac_status )
6270 ac_cv_header_stdc=no
6272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6280 if test $ac_cv_header_stdc = yes; then
6282 cat >>confdefs.h <<\_ACEOF
6283 #define STDC_HEADERS 1
6284 _ACEOF
6288 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6289 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6290 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <sys/types.h>
6300 #include <sys/wait.h>
6301 #ifndef WEXITSTATUS
6302 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6303 #endif
6304 #ifndef WIFEXITED
6305 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6306 #endif
6309 main ()
6311 int s;
6312 wait (&s);
6313 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6315 return 0;
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (ac_try="$ac_compile"
6320 case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compile") 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } && {
6332 test -z "$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 } && test -s conftest.$ac_objext; then
6335 ac_cv_header_sys_wait_h=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_header_sys_wait_h=no
6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6346 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6347 if test $ac_cv_header_sys_wait_h = yes; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define HAVE_SYS_WAIT_H 1
6351 _ACEOF
6355 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6356 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6357 if test "${ac_cv_header_time+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <sys/time.h>
6368 #include <time.h>
6371 main ()
6373 if ((struct tm *) 0)
6374 return 0;
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_header_time=yes
6397 else
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ac_cv_header_time=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6407 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6408 if test $ac_cv_header_time = yes; then
6410 cat >>confdefs.h <<\_ACEOF
6411 #define TIME_WITH_SYS_TIME 1
6412 _ACEOF
6416 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6417 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6418 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6429 main ()
6431 static struct stat ac_aggr;
6432 if (ac_aggr.st_blksize)
6433 return 0;
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest.$ac_objext; then
6455 ac_cv_member_struct_stat_st_blksize=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6468 main ()
6470 static struct stat ac_aggr;
6471 if (sizeof ac_aggr.st_blksize)
6472 return 0;
6474 return 0;
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6494 ac_cv_member_struct_stat_st_blksize=yes
6495 else
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_cv_member_struct_stat_st_blksize=no
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6508 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6509 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6513 _ACEOF
6516 cat >>confdefs.h <<\_ACEOF
6517 #define HAVE_ST_BLKSIZE 1
6518 _ACEOF
6523 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6524 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6525 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6536 main ()
6538 static struct stat ac_aggr;
6539 if (ac_aggr.st_blocks)
6540 return 0;
6542 return 0;
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (ac_try="$ac_compile"
6547 case "(($ac_try" in
6548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549 *) ac_try_echo=$ac_try;;
6550 esac
6551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_cv_member_struct_stat_st_blocks=yes
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6575 main ()
6577 static struct stat ac_aggr;
6578 if (sizeof ac_aggr.st_blocks)
6579 return 0;
6581 return 0;
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_cv_member_struct_stat_st_blocks=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_cv_member_struct_stat_st_blocks=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6615 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6616 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6618 cat >>confdefs.h <<_ACEOF
6619 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6620 _ACEOF
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_ST_BLOCKS 1
6625 _ACEOF
6627 else
6628 case " $LIBOBJS " in
6629 *" fileblocks.$ac_objext "* ) ;;
6630 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6632 esac
6637 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6638 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6639 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 $ac_includes_default
6650 main ()
6652 static struct stat ac_aggr;
6653 if (ac_aggr.st_rdev)
6654 return 0;
6656 return 0;
6658 _ACEOF
6659 rm -f conftest.$ac_objext
6660 if { (ac_try="$ac_compile"
6661 case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664 esac
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_compile") 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && {
6673 test -z "$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6675 } && test -s conftest.$ac_objext; then
6676 ac_cv_member_struct_stat_st_rdev=yes
6677 else
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6689 main ()
6691 static struct stat ac_aggr;
6692 if (sizeof ac_aggr.st_rdev)
6693 return 0;
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_cv_member_struct_stat_st_rdev=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_member_struct_stat_st_rdev=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6729 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6730 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_STRUCT_STAT_ST_RDEV 1
6734 _ACEOF
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_ST_RDEV 1
6739 _ACEOF
6744 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6746 if test "${ac_cv_struct_tm+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <sys/types.h>
6756 #include <time.h>
6759 main ()
6761 struct tm tm;
6762 int *p = &tm.tm_sec;
6763 return !p;
6765 return 0;
6767 _ACEOF
6768 rm -f conftest.$ac_objext
6769 if { (ac_try="$ac_compile"
6770 case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_compile") 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } && {
6782 test -z "$ac_c_werror_flag" ||
6783 test ! -s conftest.err
6784 } && test -s conftest.$ac_objext; then
6785 ac_cv_struct_tm=time.h
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_cv_struct_tm=sys/time.h
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6796 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6797 if test $ac_cv_struct_tm = sys/time.h; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define TM_IN_SYS_TIME 1
6801 _ACEOF
6805 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6806 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6807 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6817 #include <$ac_cv_struct_tm>
6821 main ()
6823 static struct tm ac_aggr;
6824 if (ac_aggr.tm_zone)
6825 return 0;
6827 return 0;
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 ac_cv_member_struct_tm_tm_zone=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <sys/types.h>
6859 #include <$ac_cv_struct_tm>
6863 main ()
6865 static struct tm ac_aggr;
6866 if (sizeof ac_aggr.tm_zone)
6867 return 0;
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6877 esac
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_cv_member_struct_tm_tm_zone=yes
6890 else
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_member_struct_tm_tm_zone=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6903 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6904 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STRUCT_TM_TM_ZONE 1
6908 _ACEOF
6913 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6915 cat >>confdefs.h <<\_ACEOF
6916 #define HAVE_TM_ZONE 1
6917 _ACEOF
6919 else
6920 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6921 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6922 if test "${ac_cv_have_decl_tzname+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <time.h>
6934 main ()
6936 #ifndef tzname
6937 (void) tzname;
6938 #endif
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6946 case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_have_decl_tzname=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_have_decl_tzname=no
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6972 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6973 if test $ac_cv_have_decl_tzname = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_DECL_TZNAME 1
6977 _ACEOF
6980 else
6981 cat >>confdefs.h <<_ACEOF
6982 #define HAVE_DECL_TZNAME 0
6983 _ACEOF
6989 { echo "$as_me:$LINENO: checking for tzname" >&5
6990 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6991 if test "${ac_cv_var_tzname+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 #include <time.h>
7001 #if !HAVE_DECL_TZNAME
7002 extern char *tzname[];
7003 #endif
7006 main ()
7008 return tzname[0][0];
7010 return 0;
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (ac_try="$ac_link"
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_link") 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_exeext &&
7030 $as_test_x conftest$ac_exeext; then
7031 ac_cv_var_tzname=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_var_tzname=no
7039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7040 conftest$ac_exeext conftest.$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7043 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7044 if test $ac_cv_var_tzname = yes; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_TZNAME 1
7048 _ACEOF
7053 { echo "$as_me:$LINENO: checking for off_t" >&5
7054 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7055 if test "${ac_cv_type_off_t+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7065 typedef off_t ac__type_new_;
7067 main ()
7069 if ((ac__type_new_ *) 0)
7070 return 0;
7071 if (sizeof (ac__type_new_))
7072 return 0;
7074 return 0;
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (ac_try="$ac_compile"
7079 case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_type_off_t=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_type_off_t=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7105 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7106 if test $ac_cv_type_off_t = yes; then
7108 else
7110 cat >>confdefs.h <<_ACEOF
7111 #define off_t long int
7112 _ACEOF
7116 { echo "$as_me:$LINENO: checking for pid_t" >&5
7117 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7118 if test "${ac_cv_type_pid_t+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 typedef pid_t ac__type_new_;
7130 main ()
7132 if ((ac__type_new_ *) 0)
7133 return 0;
7134 if (sizeof (ac__type_new_))
7135 return 0;
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7142 case "(($ac_try" in
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7145 esac
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_compile") 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest.$ac_objext; then
7157 ac_cv_type_pid_t=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_type_pid_t=no
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7168 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7169 if test $ac_cv_type_pid_t = yes; then
7171 else
7173 cat >>confdefs.h <<_ACEOF
7174 #define pid_t int
7175 _ACEOF
7179 { echo "$as_me:$LINENO: checking for size_t" >&5
7180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7181 if test "${ac_cv_type_size_t+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 typedef size_t ac__type_new_;
7193 main ()
7195 if ((ac__type_new_ *) 0)
7196 return 0;
7197 if (sizeof (ac__type_new_))
7198 return 0;
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7205 case "(($ac_try" in
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_cv_type_size_t=yes
7221 else
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_cv_type_size_t=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7231 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7232 if test $ac_cv_type_size_t = yes; then
7234 else
7236 cat >>confdefs.h <<_ACEOF
7237 #define size_t unsigned int
7238 _ACEOF
7242 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7243 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7244 if test "${ac_cv_type_uid_t+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7255 _ACEOF
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "uid_t" >/dev/null 2>&1; then
7258 ac_cv_type_uid_t=yes
7259 else
7260 ac_cv_type_uid_t=no
7262 rm -f -r conftest*
7265 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7266 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7267 if test $ac_cv_type_uid_t = no; then
7269 cat >>confdefs.h <<\_ACEOF
7270 #define uid_t int
7271 _ACEOF
7274 cat >>confdefs.h <<\_ACEOF
7275 #define gid_t int
7276 _ACEOF
7281 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7282 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7283 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7294 main ()
7296 static struct tm ac_aggr;
7297 if (ac_aggr.tm_gmtoff)
7298 return 0;
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7320 ac_cv_member_struct_tm_tm_gmtoff=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7333 main ()
7335 static struct tm ac_aggr;
7336 if (sizeof ac_aggr.tm_gmtoff)
7337 return 0;
7339 return 0;
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 ac_cv_member_struct_tm_tm_gmtoff=yes
7360 else
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_cv_member_struct_tm_tm_gmtoff=no
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7373 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7374 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7376 cat >>confdefs.h <<_ACEOF
7377 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7378 _ACEOF
7384 # Look for some functions
7399 for ac_func in getpagesize kqueue statfs statvfs \
7400 clone kse_create rfork_thread thr_create sa_register \
7401 getcontext makecontext setcontext sigaltstack swapcontext
7403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7417 #define $ac_func innocuous_$ac_func
7419 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char $ac_func (); below.
7421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422 <limits.h> exists even on freestanding compilers. */
7424 #ifdef __STDC__
7425 # include <limits.h>
7426 #else
7427 # include <assert.h>
7428 #endif
7430 #undef $ac_func
7432 /* Override any GCC internal prototype to avoid an error.
7433 Use char because int might match the return type of a GCC
7434 builtin and then its argument prototype would still apply. */
7435 #ifdef __cplusplus
7436 extern "C"
7437 #endif
7438 char $ac_func ();
7439 /* The GNU C library defines this for functions which it implements
7440 to always fail with ENOSYS. Some functions are actually named
7441 something starting with __ and the normal name is an alias. */
7442 #if defined __stub_$ac_func || defined __stub___$ac_func
7443 choke me
7444 #endif
7447 main ()
7449 return $ac_func ();
7451 return 0;
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7456 case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_link") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest$ac_exeext &&
7471 $as_test_x conftest$ac_exeext; then
7472 eval "$as_ac_var=yes"
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 eval "$as_ac_var=no"
7480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7481 conftest$ac_exeext conftest.$ac_ext
7483 ac_res=`eval echo '${'$as_ac_var'}'`
7484 { echo "$as_me:$LINENO: result: $ac_res" >&5
7485 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_var'}'` = yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7489 _ACEOF
7492 done
7497 for ac_header in stdlib.h unistd.h
7499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 ac_res=`eval echo '${'$as_ac_Header'}'`
7507 { echo "$as_me:$LINENO: result: $ac_res" >&5
7508 echo "${ECHO_T}$ac_res" >&6; }
7509 else
7510 # Is the header compilable?
7511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7520 #include <$ac_header>
7521 _ACEOF
7522 rm -f conftest.$ac_objext
7523 if { (ac_try="$ac_compile"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_compile") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest.$ac_objext; then
7539 ac_header_compiler=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_header_compiler=no
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7549 echo "${ECHO_T}$ac_header_compiler" >&6; }
7551 # Is the header present?
7552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <$ac_header>
7561 _ACEOF
7562 if { (ac_try="$ac_cpp conftest.$ac_ext"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } >/dev/null && {
7575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 }; then
7578 ac_header_preproc=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 ac_header_preproc=no
7586 rm -f conftest.err conftest.$ac_ext
7587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588 echo "${ECHO_T}$ac_header_preproc" >&6; }
7590 # So? What about this header?
7591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7592 yes:no: )
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7597 ac_header_preproc=yes
7599 no:yes:* )
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7614 esac
7615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 eval "$as_ac_Header=\$ac_header_preproc"
7622 ac_res=`eval echo '${'$as_ac_Header'}'`
7623 { echo "$as_me:$LINENO: result: $ac_res" >&5
7624 echo "${ECHO_T}$ac_res" >&6; }
7627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7628 cat >>confdefs.h <<_ACEOF
7629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7630 _ACEOF
7634 done
7637 for ac_func in getpagesize
7639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7653 #define $ac_func innocuous_$ac_func
7655 /* System header to define __stub macros and hopefully few prototypes,
7656 which can conflict with char $ac_func (); below.
7657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7658 <limits.h> exists even on freestanding compilers. */
7660 #ifdef __STDC__
7661 # include <limits.h>
7662 #else
7663 # include <assert.h>
7664 #endif
7666 #undef $ac_func
7668 /* Override any GCC internal prototype to avoid an error.
7669 Use char because int might match the return type of a GCC
7670 builtin and then its argument prototype would still apply. */
7671 #ifdef __cplusplus
7672 extern "C"
7673 #endif
7674 char $ac_func ();
7675 /* The GNU C library defines this for functions which it implements
7676 to always fail with ENOSYS. Some functions are actually named
7677 something starting with __ and the normal name is an alias. */
7678 #if defined __stub_$ac_func || defined __stub___$ac_func
7679 choke me
7680 #endif
7683 main ()
7685 return $ac_func ();
7687 return 0;
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (ac_try="$ac_link"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_link") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest$ac_exeext &&
7707 $as_test_x conftest$ac_exeext; then
7708 eval "$as_ac_var=yes"
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 eval "$as_ac_var=no"
7716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7717 conftest$ac_exeext conftest.$ac_ext
7719 ac_res=`eval echo '${'$as_ac_var'}'`
7720 { echo "$as_me:$LINENO: result: $ac_res" >&5
7721 echo "${ECHO_T}$ac_res" >&6; }
7722 if test `eval echo '${'$as_ac_var'}'` = yes; then
7723 cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7725 _ACEOF
7728 done
7730 { echo "$as_me:$LINENO: checking for working mmap" >&5
7731 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7732 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 if test "$cross_compiling" = yes; then
7736 ac_cv_func_mmap_fixed_mapped=no
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7745 /* malloc might have been renamed as rpl_malloc. */
7746 #undef malloc
7748 /* Thanks to Mike Haertel and Jim Avera for this test.
7749 Here is a matrix of mmap possibilities:
7750 mmap private not fixed
7751 mmap private fixed at somewhere currently unmapped
7752 mmap private fixed at somewhere already mapped
7753 mmap shared not fixed
7754 mmap shared fixed at somewhere currently unmapped
7755 mmap shared fixed at somewhere already mapped
7756 For private mappings, we should verify that changes cannot be read()
7757 back from the file, nor mmap's back from the file at a different
7758 address. (There have been systems where private was not correctly
7759 implemented like the infamous i386 svr4.0, and systems where the
7760 VM page cache was not coherent with the file system buffer cache
7761 like early versions of FreeBSD and possibly contemporary NetBSD.)
7762 For shared mappings, we should conversely verify that changes get
7763 propagated back to all the places they're supposed to be.
7765 Grep wants private fixed already mapped.
7766 The main things grep needs to know about mmap are:
7767 * does it exist and is it safe to write into the mmap'd area
7768 * how to use it (BSD variants) */
7770 #include <fcntl.h>
7771 #include <sys/mman.h>
7773 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7774 char *malloc ();
7775 #endif
7777 /* This mess was copied from the GNU getpagesize.h. */
7778 #ifndef HAVE_GETPAGESIZE
7779 /* Assume that all systems that can run configure have sys/param.h. */
7780 # ifndef HAVE_SYS_PARAM_H
7781 # define HAVE_SYS_PARAM_H 1
7782 # endif
7784 # ifdef _SC_PAGESIZE
7785 # define getpagesize() sysconf(_SC_PAGESIZE)
7786 # else /* no _SC_PAGESIZE */
7787 # ifdef HAVE_SYS_PARAM_H
7788 # include <sys/param.h>
7789 # ifdef EXEC_PAGESIZE
7790 # define getpagesize() EXEC_PAGESIZE
7791 # else /* no EXEC_PAGESIZE */
7792 # ifdef NBPG
7793 # define getpagesize() NBPG * CLSIZE
7794 # ifndef CLSIZE
7795 # define CLSIZE 1
7796 # endif /* no CLSIZE */
7797 # else /* no NBPG */
7798 # ifdef NBPC
7799 # define getpagesize() NBPC
7800 # else /* no NBPC */
7801 # ifdef PAGESIZE
7802 # define getpagesize() PAGESIZE
7803 # endif /* PAGESIZE */
7804 # endif /* no NBPC */
7805 # endif /* no NBPG */
7806 # endif /* no EXEC_PAGESIZE */
7807 # else /* no HAVE_SYS_PARAM_H */
7808 # define getpagesize() 8192 /* punt totally */
7809 # endif /* no HAVE_SYS_PARAM_H */
7810 # endif /* no _SC_PAGESIZE */
7812 #endif /* no HAVE_GETPAGESIZE */
7815 main ()
7817 char *data, *data2, *data3;
7818 int i, pagesize;
7819 int fd;
7821 pagesize = getpagesize ();
7823 /* First, make a file with some known garbage in it. */
7824 data = (char *) malloc (pagesize);
7825 if (!data)
7826 return 1;
7827 for (i = 0; i < pagesize; ++i)
7828 *(data + i) = rand ();
7829 umask (0);
7830 fd = creat ("conftest.mmap", 0600);
7831 if (fd < 0)
7832 return 1;
7833 if (write (fd, data, pagesize) != pagesize)
7834 return 1;
7835 close (fd);
7837 /* Next, try to mmap the file at a fixed address which already has
7838 something else allocated at it. If we can, also make sure that
7839 we see the same garbage. */
7840 fd = open ("conftest.mmap", O_RDWR);
7841 if (fd < 0)
7842 return 1;
7843 data2 = (char *) malloc (2 * pagesize);
7844 if (!data2)
7845 return 1;
7846 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7847 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7848 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7849 return 1;
7850 for (i = 0; i < pagesize; ++i)
7851 if (*(data + i) != *(data2 + i))
7852 return 1;
7854 /* Finally, make sure that changes to the mapped area do not
7855 percolate back to the file as seen by read(). (This is a bug on
7856 some variants of i386 svr4.0.) */
7857 for (i = 0; i < pagesize; ++i)
7858 *(data2 + i) = *(data2 + i) + 1;
7859 data3 = (char *) malloc (pagesize);
7860 if (!data3)
7861 return 1;
7862 if (read (fd, data3, pagesize) != pagesize)
7863 return 1;
7864 for (i = 0; i < pagesize; ++i)
7865 if (*(data + i) != *(data3 + i))
7866 return 1;
7867 close (fd);
7868 return 0;
7870 _ACEOF
7871 rm -f conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7873 case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_cv_func_mmap_fixed_mapped=yes
7892 else
7893 echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ( exit $ac_status )
7898 ac_cv_func_mmap_fixed_mapped=no
7900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7905 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7906 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7907 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_MMAP 1
7911 _ACEOF
7914 rm -f conftest.mmap
7919 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7920 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7921 aros_config_ldflags=""
7923 aros_shared_default=yes
7925 aros_shared_cflags="-fPIC"
7926 aros_shared_aflags=""
7927 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7928 aros_kernel_ldflags="-Wl,-rpath,./lib"
7930 aros_target_ar_flags="cr"
7931 aros_target_nm_flags="-C -ul"
7932 aros_target_strip_flags="--strip-unneeded -R.comment"
7934 aros_compiler_libs=
7935 aros_arch_libs=
7937 aros_target_genmap="-Wl,-Map -Xlinker"
7939 # Native flavour stuff
7940 aros_serial_debug="0"
7942 # Palm native flavour stuff
7943 aros_palm_debug_hack="0"
7945 # Unix flavour stuff
7946 aros_nesting_supervisor="0"
7948 # Collect-aros stuff: "-ius" to ignore undefined symbols
7949 ignore_undefined_symbols=""
7951 #-----------------------------------------------------------------------------
7954 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7955 # it switched on by default, and we use the host compiler, so it compiles AROS
7956 # code with this enabled resulting in link failures as we don't have support
7957 # for it.
7959 # We use two methods to disable it. For the host compiler (used to compile
7960 # some hosted modules), we test to see if the compiler supports stack
7961 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7962 # work on all platforms.
7964 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7965 # (this is done unconditionally, as it should have no effect on compilers
7966 # without the stack protection feature). This may be specific to the way that
7967 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7968 # strong enough to disable it in a generic way though, so we'll live with it
7969 # until another vendor ships GCC with it enabled in a different way, and deal
7970 # with it then.
7973 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7974 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7975 save_cflags="$CFLAGS"
7976 CFLAGS="$CFLAGS -fno-stack-protector"
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7985 main ()
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 use_no_stack_protector="yes"
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 use_no_stack_protector="no"
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8019 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8020 if test "x-$use_no_stack_protector" = "x-yes" ; then
8021 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8023 CFLAGS="$save_cflags"
8025 #-----------------------------------------------------------------------------
8027 # Disable pointer-signedness warnings if the compiler recognises the option
8028 # (this only works for the host compiler at the moment)
8030 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8031 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8032 save_cflags="$CFLAGS"
8033 CFLAGS="$CFLAGS -Wno-pointer-sign"
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8042 main ()
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 use_no_sign_warning="yes"
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 use_no_sign_warning="no"
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8076 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8077 if test "x-$use_no_sign_warning" = "x-yes" ; then
8078 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8080 CFLAGS="$save_cflags"
8082 #-----------------------------------------------------------------------------
8084 { echo "$as_me:$LINENO: checking for type of build" >&5
8085 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8086 # Check whether --enable-build_type was given.
8087 if test "${enable_build_type+set}" = set; then
8088 enableval=$enable_build_type; build_type=$enableval
8089 else
8090 build_type="personal"
8094 if test "$build_type" = "nightly"; then
8095 build_type_string="NIGHTLY"
8096 elif test "$build_type" = "snapshot"; then
8097 build_type_string="SNAPSHOT"
8098 elif test "$build_type" = "milestone"; then
8099 build_type_string="MILESTONE"
8100 elif test "$build_type" = "release"; then
8101 build_type_string="RELEASE"
8102 else
8103 build_type_string="PERSONAL"
8104 build_type="personal"
8107 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8109 { echo "$as_me:$LINENO: result: $build_type" >&5
8110 echo "${ECHO_T}$build_type" >&6; }
8112 #-----------------------------------------------------------------------------
8113 all_debug_types="messages stack modules mungwall symbols"
8115 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8116 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8117 # Check whether --enable-debug was given.
8118 if test "${enable_debug+set}" = set; then
8119 enableval=$enable_debug; debug="$enableval"
8120 else
8121 debug=""
8125 if test "$debug" = "" -o "$debug" = "no"; then
8126 debug="none"
8127 elif test "$debug" = "yes"; then
8128 debug="all"
8131 if test "$debug" = "all" ; then
8132 debug="messages stack modules symbols"
8133 for d in $all_debug_types; do
8134 export aros_${d}_debug="1"
8135 done
8136 else
8137 for d in $all_debug_types; do
8138 export aros_${d}_debug="0"
8139 done
8142 if test "$debug" != "none"; then
8143 debug=`echo $debug | sed s/,/\ /g`
8144 for d in $debug; do
8145 found="0"
8146 for d2 in $all_debug_types; do
8147 if test "$d2" = "$d"; then
8148 found="1"
8149 break
8151 done
8152 if test "$found" = "0"; then
8153 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8154 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8155 { (exit 1); exit 1; }; }
8157 export aros_${d}_debug="1"
8158 done
8159 aros_debug="yes"
8161 { echo "$as_me:$LINENO: result: $debug" >&5
8162 echo "${ECHO_T}$debug" >&6; }
8164 if test "$aros_messages_debug" = "1"; then
8165 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8166 else
8167 aros_messages_debug=""
8169 if test "$aros_symbols_debug" = "1"; then
8170 aros_symbols_debug="-g"
8171 else
8172 aros_symbols_debug=""
8175 # These are the flags to pass when compiling debugged programs
8176 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8177 aros_debug_aflags=""
8178 aros_debug_ldflags="$aros_symbols_debug"
8180 aros_crosstools="no"
8182 #-----------------------------------------------------------------------------
8183 # Checking if we should build crosstools..
8184 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8185 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8186 # Check whether --enable-crosstools was given.
8187 if test "${enable_crosstools+set}" = set; then
8188 enableval=$enable_crosstools; crosstools="$enableval"
8189 else
8190 crosstools="no"
8193 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8194 { echo "$as_me:$LINENO: result: yes" >&5
8195 echo "${ECHO_T}yes" >&6; }
8196 aros_crosstools="yes"
8197 else
8198 { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8202 #-----------------------------------------------------------------------------
8203 # Checking for distcc and ccache.
8205 # Always apply the transforms in this particular order. Basically you should
8206 # always run 'ccache distcc compiler' in that order for the best performance.
8208 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8209 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8210 # Check whether --enable-distcc was given.
8211 if test "${enable_distcc+set}" = set; then
8212 enableval=$enable_distcc; distcc="$enableval"
8213 else
8214 distcc="no"
8217 if test "$distcc" != "" -a "$distcc" != "no"; then
8218 # AC_CHECK_PROG will print out the result in this case
8219 # Extract the first word of "distcc", so it can be a program name with args.
8220 set dummy distcc; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_path_DISTCC+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226 case $DISTCC in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8246 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8248 esac
8250 DISTCC=$ac_cv_path_DISTCC
8251 if test -n "$DISTCC"; then
8252 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8253 echo "${ECHO_T}$DISTCC" >&6; }
8254 else
8255 { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8260 else
8261 { echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6; }
8265 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8266 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8267 # Check whether --enable-ccache was given.
8268 if test "${enable_ccache+set}" = set; then
8269 enableval=$enable_ccache; ccache="$enableval"
8270 else
8271 ccache="no"
8274 if test "$ccache" != "" -a "$ccache" != "no"; then
8275 # AC_CHECK_PROG will print out the result in this case
8276 # Extract the first word of "ccache", so it can be a program name with args.
8277 set dummy ccache; ac_word=$2
8278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8280 if test "${ac_cv_prog_CCACHE+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 if test -n "$CCACHE"; then
8284 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_prog_CCACHE="ccache"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8303 CCACHE=$ac_cv_prog_CCACHE
8304 if test -n "$CCACHE"; then
8305 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8306 echo "${ECHO_T}$CCACHE" >&6; }
8307 else
8308 { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8313 else
8314 { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8318 #-----------------------------------------------------------------------------
8319 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8320 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8322 # Check whether --with-optimization was given.
8323 if test "${with_optimization+set}" = set; then
8324 withval=$with_optimization; optimization="$withval"
8325 else
8326 optimization="unknown"
8329 if test "$optimization" = "unknown"; then
8330 if test "$debug" != "none"; then
8331 optimization="-O0"
8332 else
8333 optimization="-O2"
8336 aros_config_cflags="$aros_config_cflags $optimization"
8337 { echo "$as_me:$LINENO: result: $optimization" >&5
8338 echo "${ECHO_T}$optimization" >&6; }
8340 #-----------------------------------------------------------------------------
8341 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8342 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8343 # Check whether --enable-target_variant was given.
8344 if test "${enable_target_variant+set}" = set; then
8345 enableval=$enable_target_variant; target_variant=$enableval
8346 else
8347 target_variant="none"
8350 if test "$target_variant" = "none"; then
8351 aros_target_variant=""
8352 aros_target_suffix=""
8353 else
8354 aros_target_variant="$target_variant"
8355 aros_target_suffix="-$target_variant"
8357 { echo "$as_me:$LINENO: result: $enableval" >&5
8358 echo "${ECHO_T}$enableval" >&6; }
8360 target_bootloader="none"
8362 #-----------------------------------------------------------------------------
8363 # This is the target configuration switch.
8364 case "$target_os" in
8365 linux*)
8366 aros_target_arch="linux"
8367 case "$target_cpu" in
8368 *m68k*)
8369 aros_target_cpu="m68k"
8370 aros_object_format="m68kelf"
8371 aros_flavour="emulcompat"
8372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8373 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8374 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8375 gcc_target_cpu="mc68000"
8377 *i?86*)
8378 aros_target_cpu="i386"
8379 aros_object_format="elf_i386"
8380 aros_flavour="emulation"
8381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8382 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8383 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8384 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8385 aros_config_ldflags="-m32 -march=i486"
8386 aros_kernel_ldflags="-melf_i386"
8387 aros_default_wbdepth=8
8388 gcc_target_cpu="i386"
8390 *x86_64*)
8391 aros_target_cpu="x86_64"
8392 aros_object_format="elf_x86_64"
8393 aros_flavour="emulation"
8394 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8395 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8396 aros_default_wbdepth=8
8397 gcc_target_cpu="x86_64"
8399 *powerpc*)
8400 aros_target_cpu="ppc"
8401 aros_object_format="elf32ppc"
8402 aros_flavour="emulation"
8403 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8404 aros_default_wbdepth=8
8405 gcc_target_cpu="ppc"
8407 # TODO
8408 # Same as powerpc, but I need this for the nightly build to work again.
8409 # Actually, the nightly should be made working with powerpc target.
8410 # That just was too much work for the moment, another week or two.
8411 *ppc*)
8412 aros_target_cpu="ppc"
8413 aros_object_format="elf32ppc"
8414 aros_flavour="emulation"
8415 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8416 aros_default_wbdepth=8
8417 gcc_target_cpu="ppc"
8419 *arm*)
8420 aros_target_cpu="arm"
8421 aros_object_format="armelf_linux_eabi"
8422 aros_flavour="emulation"
8423 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8424 gcc_target_cpu="arm"
8425 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8426 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8429 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8430 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8431 { (exit 1); exit 1; }; }
8433 esac
8437 aros_target_arch="pc"
8438 aros_shared_default="no"
8439 target_bootloader="grub2"
8440 case "$target_cpu" in
8441 *i?86*)
8442 aros_target_cpu="i386"
8445 if test "$aros_object_format" = "" ; then
8446 aros_object_format="elf_i386"
8448 aros_flavour="standalone"
8449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8450 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8451 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8452 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8453 aros_config_ldflags="-m32 -march=i486"
8454 aros_kernel_ldflags="-melf_i386"
8455 aros_default_wbwidth=640
8456 aros_default_wbheight=480
8457 gcc_target_cpu="i386"
8459 *x86_64*)
8460 aros_target_cpu="x86_64"
8461 aros_serial_debug=1
8462 if test "$aros_object_format" = "" ; then
8463 aros_object_format="elf_x86_64"
8465 aros_flavour="standalone"
8466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8467 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8468 aros_kernel_ldflags=""
8469 aros_default_wbwidth=640
8470 aros_default_wbheight=480
8471 gcc_target_cpu="x86_64"
8474 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8475 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8476 { (exit 1); exit 1; }; }
8478 esac
8481 prep)
8482 aros_target_arch="prep"
8483 aros_shared_default="no"
8484 aros_target_cpu="ppc"
8485 aros_object_format="elf32ppc"
8486 aros_flavour="ppcnative"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8488 aros_kernel_ldflags=""
8489 aros_default_wbwidth=640
8490 aros_default_wbheight=480
8491 gcc_target_cpu="ppc"
8494 freebsd*)
8495 aros_target_arch="freebsd"
8496 aros_target_cpu="i386"
8497 aros_flavour="emulation"
8498 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8499 gcc_target_cpu="i386"
8501 aros_target_strip_flags="-x"
8504 darwin*)
8505 aros_target_arch="darwin"
8506 aros_flavour="emulation"
8507 case "$target_cpu" in
8508 *i?86*)
8509 aros_target_cpu="i386"
8510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8511 aros_kernel_cflags="$aros_kernel_cflags -m32"
8512 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8513 aros_default_wbdepth=8
8514 gcc_target_cpu="i386"
8515 aros_object_format="elf_i386"
8516 aros_target_strip_flags="-x"
8517 aros_target_cc="i386-aros-gcc"
8518 aros_target_cxx="i386-aros-g++"
8519 aros_target_ld="i386-aros-ld"
8520 aros_target_as="i386-aros-as"
8521 aros_target_ar="i386-aros-ar"
8522 aros_target_ranlib="i386-aros-ranlib"
8523 aros_target_nm="i386-aros-nm"
8524 aros_target_strip="i386-aros-strip"
8525 aros_target_objcopy="i386-aros-objcopy"
8526 aros_target_objdump="i386-aros-objdump"
8527 target_tool_prefix="i686-apple-darwin10-"
8529 *x86_64*)
8530 aros_target_cpu="x86_64"
8531 aros_object_format="elf_x86_64"
8532 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8533 aros_kernel_cflags="$aros_kernel_cflags -m64"
8534 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8535 aros_default_wbdepth=8
8536 gcc_target_cpu="x86_64"
8537 aros_target_cc="x86_64-aros-gcc"
8538 aros_target_cxx="x86_64-aros-g++"
8539 aros_target_ld="x86_64-aros-ld"
8540 aros_target_as="x86_64-aros-as"
8541 aros_target_ar="x86_64-aros-ar"
8542 aros_target_ranlib="x86_64-aros-ranlib"
8543 aros_target_nm="x86_64-aros-nm"
8544 aros_target_strip="x86_64-aros-strip"
8545 aros_target_objcopy="x86_64-aros-objcopy"
8546 aros_target_objdump="x86_64-aros-objdump"
8547 target_tool_prefix="i686-apple-darwin10-"
8549 *ppc*)
8550 aros_target_cpu="ppc"
8551 aros_object_format="elf32_ppc"
8552 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8553 aros_default_wbdepth=8
8554 gcc_target_cpu="ppc"
8555 aros_target_cc="ppc-aros-gcc"
8556 aros_target_cxx="ppc-aros-g++"
8557 aros_target_ld="ppc-aros-ld"
8558 aros_target_as="ppc-aros-as"
8559 aros_target_ar="ppc-aros-ar"
8560 aros_target_ranlib="ppc-aros-ranlib"
8561 aros_target_nm="ppc-aros-nm"
8562 aros_target_strip="ppc-aros-strip"
8563 aros_target_objcopy="ppc-aros-objcopy"
8564 aros_target_objdump="ppc-aros-objdump"
8565 target_tool_prefix="powerpc-apple-darwin10-"
8568 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8569 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8570 { (exit 1); exit 1; }; }
8572 esac
8575 ios*)
8576 # TODO: these should be specified with arguments: --with-xcode, --with-ios-version, --with-ios-sdk
8577 aros_xcode_path="/Developer"
8578 aros_ios_version="2.0"
8579 aros_ios_sdk="4.1"
8581 aros_target_arch="ios"
8582 aros_flavour="emulation"
8583 # This is here because it may depend on iOS or SDK version
8584 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8585 case "$target_cpu" in
8586 *i?86*)
8587 aros_ios_platform="iPhoneSimulator"
8588 aros_target_cpu="i386"
8589 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8590 aros_kernel_cflags="$aros_kernel_cflags -m32"
8591 aros_kernel_ldflags="-m32"
8592 aros_default_wbdepth=8
8593 gcc_target_cpu="i386"
8594 aros_object_format="elf_i386"
8595 aros_target_strip_flags="-x"
8596 aros_target_cc="i386-aros-gcc"
8597 aros_target_cxx="i386-aros-g++"
8598 aros_target_ld="i386-aros-ld"
8599 aros_target_as="i386-aros-as"
8600 aros_target_ar="i386-aros-ar"
8601 aros_target_ranlib="i386-aros-ranlib"
8602 aros_target_nm="i386-aros-nm"
8603 aros_target_strip="i386-aros-strip"
8604 aros_target_objcopy="i386-aros-objcopy"
8605 aros_target_objdump="i386-aros-objdump"
8606 target_tool_prefix="i686-apple-darwin10-"
8609 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8610 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8611 { (exit 1); exit 1; }; }
8613 esac
8616 dragonfly*)
8617 aros_target_arch="dragonfly"
8618 aros_flavour="emulation"
8619 case "$target_cpu" in
8620 *i?86*)
8621 aros_target_cpu="i386"
8622 aros_object_format="elf_i386"
8623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8625 *x86_64*)
8626 aros_target_cpu="x86_64"
8627 aros_object_format="elf_x86_64"
8628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8631 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8632 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8633 { (exit 1); exit 1; }; }
8635 esac
8638 netbsd*)
8639 aros_target_arch="netbsd"
8640 case "$target_cpu" in
8641 *m68k*)
8642 aros_target_cpu="m68k"
8643 aros_object_format="m68kelf"
8644 aros_flavour="emulcompat"
8645 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8646 gcc_target_cpu="mc68000"
8648 *i?86*)
8649 aros_target_cpu="i386"
8650 aros_object_format="elf_i386"
8651 aros_flavour="emulation"
8652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8653 aros_default_wbdepth=8
8654 gcc_target_cpu="i386"
8657 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8658 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8659 { (exit 1); exit 1; }; }
8661 esac
8662 aros_target_genmap="-Wl,-M -Xlinker >"
8663 aros_flavour="emulation"
8664 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8667 openbsd*)
8668 aros_target_arch="openbsd"
8669 case "$target_cpu" in
8670 *i?86*)
8671 aros_target_cpu="i386"
8672 aros_object_format="elf_i386"
8673 aros_flavour="emulation"
8674 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8675 gcc_target_cpu="i386"
8678 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8679 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8680 { (exit 1); exit 1; }; }
8682 esac
8683 aros_target_genmap="-Wl,-M -Xlinker >"
8684 aros_target_nm_flags="-u"
8685 aros_flavour="emulation"
8688 solaris*)
8689 aros_target_arch="solaris"
8690 case "$target_cpu" in
8691 *i?86*)
8692 aros_target_cpu="i386"
8693 aros_object_format="elf_i386"
8694 aros_flavour="emulation"
8695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8696 aros_default_wbdepth=8
8697 gcc_target_cpu="i386"
8699 *sparc*)
8700 aros_target_cpu="sparc"
8701 aros_object_format="elf_sparc"
8702 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8703 gcc_target_cpu="sparc"
8706 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8707 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8708 { (exit 1); exit 1; }; }
8710 esac
8711 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8712 aros_flavour="emulation"
8715 morphos*)
8716 aros_target_arch="morphos"
8717 aros_shared_default="no"
8718 aros_target_cpu="ppc"
8719 aros_object_format="elf_ppc"
8720 aros_flavour="nativecompat"
8721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8722 gcc_target_cpu="ppc"
8725 sam440)
8726 aros_target_arch="sam440"
8727 aros_shared_default="no"
8728 aros_target_cpu="ppc"
8729 aros_object_format="elf32ppc"
8730 aros_flavour="ppcnative"
8731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8732 aros_kernel_ldflags=""
8733 aros_default_wbwidth=1024
8734 aros_default_wbheight=768
8735 aros_default_wbdepth=24
8736 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8737 gcc_target_cpu="powerpc"
8740 efika)
8741 aros_target_arch="efika"
8742 aros_shared_default="no"
8743 aros_target_cpu="arm"
8744 aros_object_format="armelf_linux_eabi"
8745 aros_flavour="standalone"
8746 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8747 aros_kernel_ldflags=""
8748 aros_default_wbwidth=1024
8749 aros_default_wbheight=600
8750 aros_arch_libs="-laeabi"
8751 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8752 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8755 chrp)
8756 aros_target_arch="chrp"
8757 aros_shared_default="no"
8758 aros_target_cpu="ppc"
8759 aros_object_format="elf32ppc"
8760 aros_flavour="ppcnative"
8761 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8762 aros_kernel_ldflags=""
8763 aros_default_wbwidth=640
8764 aros_default_wbheight=480
8765 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8766 gcc_target_cpu="powerpc"
8767 case "$aros_target_variant" in
8768 efika)
8769 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8771 esac
8774 amiga*)
8775 aros_target_arch="amiga"
8776 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8777 aros_shared_default="no"
8779 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8781 case "$target_cpu" in
8782 *m68k*)
8783 aros_target_cpu="m68k"
8784 aros_object_format="m68kelf"
8785 aros_flavour="nativecompat"
8786 gcc_target_cpu="mc68000"
8788 *ppc*)
8789 aros_cpu="ppc"
8790 aros_flavour="native"
8791 gcc_target_cpu="ppc"
8794 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8795 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8796 { (exit 1); exit 1; }; }
8798 esac
8801 mingw*)
8802 aros_target_arch="mingw32"
8803 aros_shared_default="no"
8804 aros_flavour="emulation"
8805 aros_shared_cflags=""
8806 need_dlopen="no"
8807 rescomp="windres"
8808 case "$target_cpu" in
8809 *i?86*)
8810 aros_target_cpu="i386"
8811 aros_object_format="elf_i386"
8812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8813 aros_default_wbdepth=8
8814 gcc_target_cpu="i386"
8815 aros_target_cc="i386-aros-gcc"
8816 aros_target_cxx="i386-aros-g++"
8817 aros_target_ld="i386-aros-ld"
8818 aros_target_as="i386-aros-as"
8819 aros_target_ar="i386-aros-ar"
8820 aros_target_ranlib="i386-aros-ranlib"
8821 aros_target_nm="i386-aros-nm"
8822 aros_target_strip="i386-aros-strip"
8823 aros_target_objcopy="i386-aros-objcopy"
8824 aros_target_objdump="i386-aros-objdump"
8825 target_tool_prefix="i386-mingw32-"
8827 *x86_64*)
8828 aros_target_cpu="x86_64"
8829 aros_object_format="elf_x86_64"
8830 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8831 aros_default_wbdepth=8
8832 gcc_target_cpu="x86_64"
8833 aros_target_cc="x86_64-aros-gcc"
8834 aros_target_cxx="x86_64-aros-g++"
8835 aros_target_ld="x86_64-aros-ld"
8836 aros_target_as="x86_64-aros-as"
8837 aros_target_ar="x86_64-aros-ar"
8838 aros_target_ranlib="x86_64-aros-ranlib"
8839 aros_target_nm="x86_64-aros-nm"
8840 aros_target_strip="x86_64-aros-strip"
8841 aros_target_objcopy="x86_64-aros-objcopy"
8842 aros_target_objdump="x86_64-aros-objdump"
8843 target_tool_prefix="x86_64-w64-mingw32-"
8845 *arm*)
8846 aros_target_cpu="arm"
8847 aros_object_format="armelf_linux_eabi"
8848 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8849 aros_default_wbdepth=8
8850 gcc_target_cpu="arm"
8851 aros_target_cc="arm-elf-gcc"
8852 aros_target_ld="arm-elf-ld"
8853 aros_target_as="arm-elf-as"
8854 aros_target_ar="arm-elf-ar"
8855 aros_target_ranlib="arm-elf-ranlib"
8856 aros_target_nm="arm-elf-nm"
8857 aros_target_strip="arm-elf-strip"
8858 aros_target_objcopy="arm-elf-objcopy"
8859 aros_target_objdump="arm-elf-objdump"
8860 target_tool_prefix="arm-mingw32ce-"
8861 aros_default_wbwidth=160
8862 aros_default_wbheight=160
8865 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8866 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8867 { (exit 1); exit 1; }; }
8869 esac
8870 if test $host_os = "cygwin"; then
8871 aros_kernel_cflags="-mno-cygwin"
8874 pp*)
8875 aros_target_arch="pp"
8876 aros_shared_default="no"
8877 case "$target_cpu" in
8878 *m68k*)
8879 aros_target_cpu="m68k"
8880 aros_object_format="m68kelf"
8881 aros_flavour="palmnative"
8882 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8883 aros_default_wbwidth=160
8884 aros_default_wbheight=160
8885 aros_default_wbdepth=1
8886 aros_target_ar_flags="cru"
8887 aros_compiler_libs="-lgcc1"
8888 aros_shared_default=no
8889 aros_shared_cflags="-fpic"
8890 aros_shared_aflags=""
8891 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8892 aros_kernel_ldflags="-Wl,-rpath,./lib"
8893 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8894 aros_debug_aflags=""
8895 aros_debug_ldflags="$aros_symbols_debug"
8896 aros_mungwall_debug="0"
8897 aros_modules_debug="0"
8898 gcc_target_cpu="mc68000"
8899 ignore_undefined_symbols="-ius"
8902 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8903 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8904 { (exit 1); exit 1; }; }
8906 esac
8909 mac*)
8910 aros_target_arch="mac"
8911 aros_shared_default="no"
8912 case "$target_cpu" in
8913 *m68k*)
8914 aros_target_cpu="m68k"
8915 aros_object_format="m68kelf"
8916 aros_flavour="mac68knative"
8917 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8918 aros_default_wbwidth=512
8919 aros_default_wbheight=384
8920 aros_default_wbdepth=8
8921 aros_target_ar_flags="cru"
8922 aros_compiler_libs="-lgcc1"
8923 aros_shared_default=no
8924 aros_shared_cflags="-fpic"
8925 aros_shared_aflags=""
8926 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8927 aros_kernel_ldflags="-Wl,-rpath,./lib"
8928 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8929 aros_debug_aflags=""
8930 aros_debug_ldflags="$aros_symbols_debug"
8931 aros_mungwall_debug="0"
8932 aros_modules_debug="0"
8933 gcc_target_cpu="mc68000"
8934 ignore_undefined_symbols="-ius"
8937 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8938 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8939 { (exit 1); exit 1; }; }
8941 esac
8945 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8946 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8947 { (exit 1); exit 1; }; }
8949 esac
8951 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8952 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8954 # Check whether --with-portssources was given.
8955 if test "${with_portssources+set}" = set; then
8956 withval=$with_portssources; with_portssrcdir=$withval
8957 else
8958 with_portssrcdir="default"
8961 if test "$with_portssrcdir" = "default"; then
8962 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8963 else
8964 AROS_PORTSSRCDIR="$with_portssrcdir"
8966 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8967 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8969 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8970 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8972 # Check whether --with-bootloader was given.
8973 if test "${with_bootloader+set}" = set; then
8974 withval=$with_bootloader; target_bootloader=$withval
8975 else
8976 target_bootloader=$target_bootloader
8979 if test "$target_bootloader" = "none"; then
8980 aros_target_bootloader=""
8981 else
8982 aros_target_bootloader="$target_bootloader"
8984 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8985 echo "${ECHO_T}$target_bootloader" >&6; }
8987 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
8988 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
8990 # Check whether --with-iconset was given.
8991 if test "${with_iconset+set}" = set; then
8992 withval=$with_iconset; target_iconset=$withval
8993 else
8994 target_iconset="default"
8997 if test "$target_iconset" = "default"; then
8998 aros_target_iconset="Gorilla"
8999 target_iconset="default (Gorilla)"
9000 else
9001 aros_target_iconset="$target_iconset"
9003 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9004 echo "${ECHO_T}$target_iconset" >&6; }
9006 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9007 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9009 # Check whether --with-theme was given.
9010 if test "${with_theme+set}" = set; then
9011 withval=$with_theme; target_guitheme=$withval
9012 else
9013 target_guitheme="default"
9016 if test "$target_guitheme" = "default"; then
9017 aros_target_guitheme="Ice"
9018 else
9019 aros_target_guitheme="$target_guitheme"
9021 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9022 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9024 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9025 # for target code)
9026 cross_compiling=no
9027 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9028 cross_compiling=yes
9030 if test "$aros_host_cpu" == "x86_64" ; then
9031 if test "$aros_target_cpu" == "i386" ; then
9032 if test "$aros_target_arch" != "mingw32"; then
9033 cross_compiling=no
9038 # Set prefix for target compiler etc. if we're cross-compiling
9039 # (should possibly be earlier but needs to be after AC_PROG_CC)
9040 if test "$cross_compiling" = "yes" ; then
9041 if test "$target_tool_prefix" = ""; then
9042 target_tool_prefix=${target_cpu}-elf-
9044 CC=${target_tool_prefix}gcc
9047 #-----------------------------------------------------------------------------
9049 # Disable pointer-signedness warnings if the compiler recognises the option
9051 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9052 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9053 save_cflags="$CFLAGS"
9054 CFLAGS="$CFLAGS -Wno-pointer-sign"
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9063 main ()
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (ac_try="$ac_compile"
9072 case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_compile") 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } && {
9084 test -z "$ac_c_werror_flag" ||
9085 test ! -s conftest.err
9086 } && test -s conftest.$ac_objext; then
9087 use_no_sign_warning="yes"
9088 else
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 use_no_sign_warning="no"
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9097 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9098 if test "x-$use_no_sign_warning" = "x-yes" ; then
9099 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9101 CFLAGS="$save_cflags"
9103 #-----------------------------------------------------------------------------
9105 # Find all the tools we need to compile. This could be cross-compiling
9106 # though! If that is the case we use the GNU form of the target and
9107 # simply add this to the front of the binary name. This is rather simple,
9108 # but it should work under most circumstances.
9110 # The default tools are to use the same as the host, but only if the
9111 # host and target CPU are the same. With GCC this is normally enough.
9114 aros_cc_pre=""
9115 aros_shared_ld="$aros_host_ld"
9117 aros_target_mkdep="$aros_host_mkdep"
9118 aros_target_incl_def="$aros_host_incl"
9120 aros_kernel_cc="$CC"
9122 # The default tools executables to be linked to.
9123 if test "$aros_target_cc" != ""; then
9124 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9125 set dummy $aros_target_cc; ac_word=$2
9126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9128 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 case $aros_target_cc in
9132 [\\/]* | ?:[\\/]*)
9133 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9147 done
9148 done
9149 IFS=$as_save_IFS
9152 esac
9154 aros_target_cc=$ac_cv_path_aros_target_cc
9155 if test -n "$aros_target_cc"; then
9156 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9157 echo "${ECHO_T}$aros_target_cc" >&6; }
9158 else
9159 { echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6; }
9164 if test "$aros_target_cc" = ""; then
9165 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9166 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9167 { (exit 1); exit 1; }; }
9170 if test "$aros_target_ld" != ""; then
9171 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9172 set dummy $aros_target_ld; ac_word=$2
9173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9175 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 case $aros_target_ld in
9179 [\\/]* | ?:[\\/]*)
9180 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9186 IFS=$as_save_IFS
9187 test -z "$as_dir" && as_dir=.
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 break 2
9194 done
9195 done
9196 IFS=$as_save_IFS
9199 esac
9201 aros_target_ld=$ac_cv_path_aros_target_ld
9202 if test -n "$aros_target_ld"; then
9203 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9204 echo "${ECHO_T}$aros_target_ld" >&6; }
9205 else
9206 { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9211 if test "$aros_target_ld" = ""; then
9212 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9213 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9214 { (exit 1); exit 1; }; }
9218 if test "$crosstools" != "yes"; then
9220 if test "$aros_target_as" = ""; then
9221 if test "$cross_compiling" = "yes" ; then
9222 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9223 set dummy ${target_tool_prefix}as; ac_word=$2
9224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9226 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 case $aros_target_as_ln in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9250 esac
9252 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9253 if test -n "$aros_target_as_ln"; then
9254 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9255 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9256 else
9257 { echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6; }
9262 else
9263 if test "$GCC" = "yes"; then
9264 aros_gcc_as=`$CC -print-prog-name=as`
9265 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9266 set dummy `basename $aros_gcc_as`; ac_word=$2
9267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9269 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 case $aros_target_as_ln in
9273 [\\/]* | ?:[\\/]*)
9274 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in `dirname $aros_gcc_as`
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9293 esac
9295 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9296 if test -n "$aros_target_as_ln"; then
9297 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9298 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9299 else
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9306 if test "$aros_target_as_ln" = ""; then
9307 # Extract the first word of "as", so it can be a program name with args.
9308 set dummy as; ac_word=$2
9309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9311 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314 case $aros_target_as_ln in
9315 [\\/]* | ?:[\\/]*)
9316 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9326 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9330 done
9331 done
9332 IFS=$as_save_IFS
9335 esac
9337 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9338 if test -n "$aros_target_as_ln"; then
9339 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9340 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9341 else
9342 { echo "$as_me:$LINENO: result: no" >&5
9343 echo "${ECHO_T}no" >&6; }
9349 else
9350 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9351 set dummy $aros_target_as; ac_word=$2
9352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9354 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 case $aros_target_as_ln in
9358 [\\/]* | ?:[\\/]*)
9359 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9369 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9373 done
9374 done
9375 IFS=$as_save_IFS
9378 esac
9380 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9381 if test -n "$aros_target_as_ln"; then
9382 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9383 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9384 else
9385 { echo "$as_me:$LINENO: result: no" >&5
9386 echo "${ECHO_T}no" >&6; }
9392 if test "$aros_target_as_ln" = ""; then
9393 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9394 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9395 { (exit 1); exit 1; }; }
9398 if test "$aros_kernel_ld" = ""; then
9399 if test "$cross_compiling" = "yes" ; then
9400 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9401 set dummy ${target_tool_prefix}ld; ac_word=$2
9402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9404 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407 case $aros_kernel_ld in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9419 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9423 done
9424 done
9425 IFS=$as_save_IFS
9428 esac
9430 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9431 if test -n "$aros_kernel_ld"; then
9432 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9433 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9434 else
9435 { echo "$as_me:$LINENO: result: no" >&5
9436 echo "${ECHO_T}no" >&6; }
9440 else
9441 if test "$GCC" = "yes"; then
9442 aros_gcc_ld=`$CC -print-prog-name=ld`
9443 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9444 set dummy `basename $aros_gcc_ld`; ac_word=$2
9445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9447 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450 case $aros_kernel_ld in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in `dirname $aros_gcc_ld`
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9462 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9464 break 2
9466 done
9467 done
9468 IFS=$as_save_IFS
9471 esac
9473 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9474 if test -n "$aros_kernel_ld"; then
9475 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9476 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9477 else
9478 { echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6; }
9484 if test "$aros_kernel_ld" = ""; then
9485 # Extract the first word of "ld", so it can be a program name with args.
9486 set dummy ld; ac_word=$2
9487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9489 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492 case $aros_kernel_ld in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9513 esac
9515 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9516 if test -n "$aros_kernel_ld"; then
9517 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9518 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9519 else
9520 { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9527 else
9528 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9529 set dummy $aros_kernel_ld; ac_word=$2
9530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9532 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 case $aros_kernel_ld in
9536 [\\/]* | ?:[\\/]*)
9537 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9556 esac
9558 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9559 if test -n "$aros_kernel_ld"; then
9560 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9561 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9562 else
9563 { echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6; }
9570 if test "$aros_kernel_ld" = ""; then
9571 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9572 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9573 { (exit 1); exit 1; }; }
9576 if test "$aros_target_ar" = ""; then
9577 if test "$cross_compiling" = "yes" ; then
9578 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9579 set dummy ${target_tool_prefix}ar; ac_word=$2
9580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9582 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 case $aros_target_ar_ln in
9586 [\\/]* | ?:[\\/]*)
9587 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9601 done
9602 done
9603 IFS=$as_save_IFS
9606 esac
9608 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9609 if test -n "$aros_target_ar_ln"; then
9610 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9611 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9612 else
9613 { echo "$as_me:$LINENO: result: no" >&5
9614 echo "${ECHO_T}no" >&6; }
9618 else
9619 if test "$GCC" = "yes"; then
9620 aros_gcc_ar=`$CC -print-prog-name=ar`
9621 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9622 set dummy `basename $aros_gcc_ar`; ac_word=$2
9623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9625 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 case $aros_target_ar_ln in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in `dirname $aros_gcc_ar`
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9649 esac
9651 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9652 if test -n "$aros_target_ar_ln"; then
9653 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9654 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9655 else
9656 { echo "$as_me:$LINENO: result: no" >&5
9657 echo "${ECHO_T}no" >&6; }
9662 if test "$aros_target_ar_ln" = ""; then
9663 # Extract the first word of "ar", so it can be a program name with args.
9664 set dummy ar; ac_word=$2
9665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9667 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 case $aros_target_ar_ln in
9671 [\\/]* | ?:[\\/]*)
9672 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9676 for as_dir in $PATH
9678 IFS=$as_save_IFS
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9682 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9684 break 2
9686 done
9687 done
9688 IFS=$as_save_IFS
9691 esac
9693 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9694 if test -n "$aros_target_ar_ln"; then
9695 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9696 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9697 else
9698 { echo "$as_me:$LINENO: result: no" >&5
9699 echo "${ECHO_T}no" >&6; }
9705 else
9706 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9707 set dummy $aros_target_ar; ac_word=$2
9708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9710 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 case $aros_target_ar_ln in
9714 [\\/]* | ?:[\\/]*)
9715 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9725 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9729 done
9730 done
9731 IFS=$as_save_IFS
9734 esac
9736 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9737 if test -n "$aros_target_ar_ln"; then
9738 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9739 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9740 else
9741 { echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6; }
9748 if test "$aros_target_ar_ln" = ""; then
9749 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9750 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9751 { (exit 1); exit 1; }; }
9754 if test "$aros_target_nm" = ""; then
9755 if test "$cross_compiling" = "yes" ; then
9756 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9757 set dummy ${target_tool_prefix}nm; ac_word=$2
9758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9760 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 case $aros_target_nm_ln in
9764 [\\/]* | ?:[\\/]*)
9765 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9784 esac
9786 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9787 if test -n "$aros_target_nm_ln"; then
9788 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9789 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9790 else
9791 { echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6; }
9796 else
9797 if test "$GCC" = "yes"; then
9798 aros_gcc_nm=`$CC -print-prog-name=nm`
9799 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9800 set dummy `basename $aros_gcc_nm`; ac_word=$2
9801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9803 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 case $aros_target_nm_ln in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in `dirname $aros_gcc_nm`
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9824 IFS=$as_save_IFS
9827 esac
9829 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9830 if test -n "$aros_target_nm_ln"; then
9831 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9832 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9833 else
9834 { echo "$as_me:$LINENO: result: no" >&5
9835 echo "${ECHO_T}no" >&6; }
9840 if test "$aros_target_nm_ln" = ""; then
9841 # Extract the first word of "nm", so it can be a program name with args.
9842 set dummy nm; ac_word=$2
9843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9845 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848 case $aros_target_nm_ln in
9849 [\\/]* | ?:[\\/]*)
9850 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9869 esac
9871 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9872 if test -n "$aros_target_nm_ln"; then
9873 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9874 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9875 else
9876 { echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6; }
9883 else
9884 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9885 set dummy $aros_target_nm; ac_word=$2
9886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9888 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 case $aros_target_nm_ln in
9892 [\\/]* | ?:[\\/]*)
9893 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9907 done
9908 done
9909 IFS=$as_save_IFS
9912 esac
9914 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9915 if test -n "$aros_target_nm_ln"; then
9916 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9917 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9918 else
9919 { echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6; }
9926 if test "$aros_target_nm_ln" = ""; then
9927 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9928 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9929 { (exit 1); exit 1; }; }
9932 if test "$aros_target_objcopy" = ""; then
9933 if test "$cross_compiling" = "yes" ; then
9934 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9935 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9938 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 case $aros_target_objcopy_ln in
9942 [\\/]* | ?:[\\/]*)
9943 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9953 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9962 esac
9964 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9965 if test -n "$aros_target_objcopy_ln"; then
9966 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9967 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9968 else
9969 { echo "$as_me:$LINENO: result: no" >&5
9970 echo "${ECHO_T}no" >&6; }
9974 else
9975 if test "$GCC" = "yes"; then
9976 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9977 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9978 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9981 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 case $aros_target_objcopy_ln in
9985 [\\/]* | ?:[\\/]*)
9986 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in `dirname $aros_gcc_objcopy`
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9996 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10002 IFS=$as_save_IFS
10005 esac
10007 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10008 if test -n "$aros_target_objcopy_ln"; then
10009 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10010 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10011 else
10012 { echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6; }
10018 if test "$aros_target_objcopy_ln" = ""; then
10019 # Extract the first word of "objcopy", so it can be a program name with args.
10020 set dummy objcopy; ac_word=$2
10021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10023 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 case $aros_target_objcopy_ln in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10042 done
10043 done
10044 IFS=$as_save_IFS
10047 esac
10049 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10050 if test -n "$aros_target_objcopy_ln"; then
10051 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10052 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10053 else
10054 { echo "$as_me:$LINENO: result: no" >&5
10055 echo "${ECHO_T}no" >&6; }
10061 else
10062 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10063 set dummy $aros_target_objcopy; ac_word=$2
10064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10066 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 case $aros_target_objcopy_ln in
10070 [\\/]* | ?:[\\/]*)
10071 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10085 done
10086 done
10087 IFS=$as_save_IFS
10090 esac
10092 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10093 if test -n "$aros_target_objcopy_ln"; then
10094 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10095 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10096 else
10097 { echo "$as_me:$LINENO: result: no" >&5
10098 echo "${ECHO_T}no" >&6; }
10104 if test "$aros_target_objcopy_ln" = ""; then
10105 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10106 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10107 { (exit 1); exit 1; }; }
10110 if test "$aros_target_objdump" = ""; then
10111 if test "$cross_compiling" = "yes" ; then
10112 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10113 set dummy ${target_tool_prefix}objdump; ac_word=$2
10114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10116 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 case $aros_target_objdump_ln in
10120 [\\/]* | ?:[\\/]*)
10121 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10135 done
10136 done
10137 IFS=$as_save_IFS
10140 esac
10142 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10143 if test -n "$aros_target_objdump_ln"; then
10144 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10145 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10146 else
10147 { echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6; }
10152 else
10153 if test "$GCC" = "yes"; then
10154 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10155 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10156 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10159 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 case $aros_target_objdump_ln in
10163 [\\/]* | ?:[\\/]*)
10164 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in `dirname $aros_gcc_objdump`
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10183 esac
10185 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10186 if test -n "$aros_target_objdump_ln"; then
10187 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10188 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10189 else
10190 { echo "$as_me:$LINENO: result: no" >&5
10191 echo "${ECHO_T}no" >&6; }
10196 if test "$aros_target_objdump_ln" = ""; then
10197 # Extract the first word of "objdump", so it can be a program name with args.
10198 set dummy objdump; ac_word=$2
10199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10201 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 case $aros_target_objdump_ln in
10205 [\\/]* | ?:[\\/]*)
10206 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10225 esac
10227 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10228 if test -n "$aros_target_objdump_ln"; then
10229 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10230 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10231 else
10232 { echo "$as_me:$LINENO: result: no" >&5
10233 echo "${ECHO_T}no" >&6; }
10239 else
10240 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10241 set dummy $aros_target_objdump; ac_word=$2
10242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10244 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 case $aros_target_objdump_ln in
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10263 done
10264 done
10265 IFS=$as_save_IFS
10268 esac
10270 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10271 if test -n "$aros_target_objdump_ln"; then
10272 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10273 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10274 else
10275 { echo "$as_me:$LINENO: result: no" >&5
10276 echo "${ECHO_T}no" >&6; }
10282 if test "$aros_target_objdump_ln" = ""; then
10283 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10284 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10285 { (exit 1); exit 1; }; }
10288 if test "$aros_target_ranlib" = ""; then
10289 if test "$cross_compiling" = "yes" ; then
10290 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10291 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10294 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297 case $aros_target_ranlib_ln in
10298 [\\/]* | ?:[\\/]*)
10299 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10318 esac
10320 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10321 if test -n "$aros_target_ranlib_ln"; then
10322 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10323 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10324 else
10325 { echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6; }
10330 else
10331 if test "$GCC" = "yes"; then
10332 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10333 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10334 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10337 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 case $aros_target_ranlib_ln in
10341 [\\/]* | ?:[\\/]*)
10342 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in `dirname $aros_gcc_ranlib`
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10352 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10356 done
10357 done
10358 IFS=$as_save_IFS
10361 esac
10363 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10364 if test -n "$aros_target_ranlib_ln"; then
10365 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10366 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10367 else
10368 { echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6; }
10374 if test "$aros_target_ranlib_ln" = ""; then
10375 # Extract the first word of "ranlib", so it can be a program name with args.
10376 set dummy ranlib; ac_word=$2
10377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10379 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 case $aros_target_ranlib_ln in
10383 [\\/]* | ?:[\\/]*)
10384 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10394 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10398 done
10399 done
10400 IFS=$as_save_IFS
10403 esac
10405 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10406 if test -n "$aros_target_ranlib_ln"; then
10407 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10408 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10409 else
10410 { echo "$as_me:$LINENO: result: no" >&5
10411 echo "${ECHO_T}no" >&6; }
10417 else
10418 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10419 set dummy $aros_target_ranlib; ac_word=$2
10420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10422 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425 case $aros_target_ranlib_ln in
10426 [\\/]* | ?:[\\/]*)
10427 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10441 done
10442 done
10443 IFS=$as_save_IFS
10446 esac
10448 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10449 if test -n "$aros_target_ranlib_ln"; then
10450 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10451 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10452 else
10453 { echo "$as_me:$LINENO: result: no" >&5
10454 echo "${ECHO_T}no" >&6; }
10460 if test "$aros_target_ranlib_ln" = ""; then
10461 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10462 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10463 { (exit 1); exit 1; }; }
10466 if test "$aros_target_strip" = ""; then
10467 if test "$cross_compiling" = "yes" ; then
10468 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10469 set dummy ${target_tool_prefix}strip; ac_word=$2
10470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10472 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 case $aros_target_strip_ln in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10496 esac
10498 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10499 if test -n "$aros_target_strip_ln"; then
10500 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10501 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10502 else
10503 { echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6; }
10508 else
10509 if test "$GCC" = "yes"; then
10510 aros_gcc_strip=`$CC -print-prog-name=strip`
10511 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10512 set dummy `basename $aros_gcc_strip`; ac_word=$2
10513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10515 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 case $aros_target_strip_ln in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in `dirname $aros_gcc_strip`
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10534 done
10535 done
10536 IFS=$as_save_IFS
10539 esac
10541 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10542 if test -n "$aros_target_strip_ln"; then
10543 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10544 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10545 else
10546 { echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6; }
10552 if test "$aros_target_strip_ln" = ""; then
10553 # Extract the first word of "strip", so it can be a program name with args.
10554 set dummy strip; ac_word=$2
10555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10557 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 case $aros_target_strip_ln in
10561 [\\/]* | ?:[\\/]*)
10562 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10572 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10576 done
10577 done
10578 IFS=$as_save_IFS
10581 esac
10583 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10584 if test -n "$aros_target_strip_ln"; then
10585 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10586 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10587 else
10588 { echo "$as_me:$LINENO: result: no" >&5
10589 echo "${ECHO_T}no" >&6; }
10595 else
10596 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10597 set dummy $aros_target_strip; ac_word=$2
10598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10600 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 case $aros_target_strip_ln in
10604 [\\/]* | ?:[\\/]*)
10605 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10619 done
10620 done
10621 IFS=$as_save_IFS
10624 esac
10626 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10627 if test -n "$aros_target_strip_ln"; then
10628 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10629 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10630 else
10631 { echo "$as_me:$LINENO: result: no" >&5
10632 echo "${ECHO_T}no" >&6; }
10638 if test "$aros_target_strip_ln" = ""; then
10639 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10640 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10641 { (exit 1); exit 1; }; }
10643 # Temporarily disabled in order to let Windows-hosted port to build.
10644 # if test "$aros_target_cxx" != ""; then
10645 # AC_PATH_PROG(aros_target_cxx,$aros_target_cxx)
10646 # AROS_REQUIRED(c++,$aros_target_cxx)
10647 # fi
10648 else
10649 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10650 aros_target_cxx=""
10653 if test "$rescomp" != ""; then
10654 if test "$cross_compiling" = "yes" ; then
10655 rescomp=${target_tool_prefix}${rescomp}
10657 # Extract the first word of "$rescomp", so it can be a program name with args.
10658 set dummy $rescomp; ac_word=$2
10659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10661 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 case $aros_kernel_rescomp in
10665 [\\/]* | ?:[\\/]*)
10666 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10680 done
10681 done
10682 IFS=$as_save_IFS
10685 esac
10687 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10688 if test -n "$aros_kernel_rescomp"; then
10689 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10690 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10691 else
10692 { echo "$as_me:$LINENO: result: no" >&5
10693 echo "${ECHO_T}no" >&6; }
10697 if test "$aros_kernel_rescomp" = ""; then
10698 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10699 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10700 { (exit 1); exit 1; }; }
10704 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10705 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10706 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10707 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10708 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10709 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10710 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10712 # aros_cc_pre is a variable that is added to the front of the compiler name
10713 # in the generated aros-gcc shell script. We need this to enable the cache
10714 # to work across cleaned builds. Also, support DISTCC using the correct
10715 # environment variable.
10718 if test "x${DISTCC}" != "x" ; then
10719 if test "x${CCACHE}" != "x" ; then
10720 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10721 else
10722 aros_cc_pre="${DISTCC} "
10724 else
10725 if test "x${CCACHE}" != "x" ; then
10726 aros_cc_pre="${CCACHE} "
10730 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10732 aros_target_nostdinc_cflags=-nostdinc
10734 aros_target_nostartup_ldflags=-nostartfiles
10736 aros_target_nix_ldflags=-nix
10738 aros_target_detach_ldflags=-detach
10740 aros_target_nostdlib_ldflags=-nostdlib
10743 # Target tools
10744 if test "$aros_target_cc" = ""; then
10745 orig_target_cc=$aros_kernel_cc
10746 else
10747 orig_target_cc=$aros_target_cc
10749 if test "$aros_target_ld" = ""; then
10750 orig_target_ld=$aros_kernel_ld
10751 else
10752 orig_target_ld=$aros_target_ld
10754 if test "$GCC" = "yes"; then
10755 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10757 aros_target_cc="${prefix}-gcc"
10758 aros_target_as="${prefix}-as"
10759 aros_target_ld="${prefix}-ld"
10760 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10761 aros_target_objcopy=${prefix}-objcopy
10762 aros_target_objdump=${prefix}-objdump
10763 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10764 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10765 aros_kernel_nm="${prefix}-nm"
10766 aros_target_strip=${prefix}-strip
10768 # Find the system include path. We can suggest that an alternative is
10769 # used if we don't get it correct. The default is to use /usr/include.
10770 # Which is set in the aros_target_incl_def variable.
10772 # Check whether --enable-includes was given.
10773 if test "${enable_includes+set}" = set; then
10774 enableval=$enable_includes; aros_target_incl=$enable_includes
10775 else
10776 aros_target_incl=$aros_target_incl_def
10780 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10781 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10782 if test "$aros_target_cc_includes" = "" ; then
10783 #try to guess where the directory is
10784 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10785 if ! test -d $aros_target_cc_includes; then
10786 #the directory doesn't exist, we need to do some more work
10787 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10789 #these are the headers we're looling for
10790 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10791 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10792 zutil.h"
10794 dirs=
10795 for h in $headers; do
10796 #which other headers each of the above headers needs?
10797 deps=$(echo "#include <$h>" | \
10798 $aros_host_cc -E -M - 2>/dev/null | \
10799 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10801 #copy all the needed headers to a directory beneath gendir
10802 for d in $deps; do
10803 h=$(basename $d)
10804 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10805 sed -n "s,^.*/include\(/.*\),\1,p")
10806 ! test -d $dir && mkdir -p $dir
10807 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10808 done
10809 done
10812 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10813 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10816 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10817 # On GCC >= 4.0 -iquote should be used
10820 save_cc="$CC"
10821 save_cflags="$CFLAGS"
10822 CFLAGS="-iquote."
10823 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10824 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10833 main ()
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext
10841 if { (ac_try="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10857 has_iquote="yes"
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 has_iquote="no"
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10866 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10867 echo "${ECHO_T}$has_iquote" >&6; }
10868 if test "x-$has_iquote" = "x-yes" ; then
10869 host_cflags_iquote=-iquote
10870 host_cflags_iquote_end=
10871 else
10872 host_cflags_iquote=-I
10873 host_cflags_iquote_end=-I-
10875 kernel_cflags_iquote=$host_cflags_iquote
10876 kernel_cflags_iquote_end=$host_cflags_iquote_end
10877 if test "x-$cross_compiling" = "x-yes"; then
10878 CC="$aros_kernel_cc"
10879 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
10880 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10889 main ()
10893 return 0;
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.$ac_objext; then
10913 use_no_stack_protector="yes"
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 use_no_stack_protector="no"
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
10923 echo "${ECHO_T}$use_no_stack_protector" >&6; }
10924 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10925 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10934 main ()
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_compile") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest.$ac_objext; then
10958 has_iquote="yes"
10959 else
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 has_iquote="no"
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10968 echo "${ECHO_T}$has_iquote" >&6; }
10969 if test "x-$has_iquote" = "x-yes" ; then
10970 kernel_cflags_iquote=-iquote
10971 kernel_cflags_iquote_end=
10972 else
10973 kernel_cflags_iquote=-I
10974 kernel_cflags_iquote_end=-I-
10977 aros_cflags_iquote=$kernel_cflags_iquote
10978 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10979 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10980 CC="$orig_target_cc"
10981 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10982 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h. */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10991 main ()
10995 return 0;
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11015 has_iquote="yes"
11016 else
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 has_iquote="no"
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11025 echo "${ECHO_T}$has_iquote" >&6; }
11026 if test "x-$has_iquote" = "x-yes" ; then
11027 aros_cflags_iquote=-iquote
11028 aros_cflags_iquote_end=
11029 else
11030 aros_cflags_iquote=-I
11031 aros_cflags_iquote_end=-I-
11034 if test "x-$use_no_stack_protector" = "x-yes" ; then
11035 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11038 #-----------------------------------------------------------------------------
11040 # Check if we can explicitly choose older version of symbol hashing
11042 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11043 CC="$aros_kernel_cc"
11044 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11045 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11054 main ()
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext &&
11078 $as_test_x conftest$ac_exeext; then
11079 use_hash_style="yes"
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 use_hash_style="no"
11087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 conftest$ac_exeext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11090 echo "${ECHO_T}$use_hash_style" >&6; }
11091 if test "x-$use_hash_style" = "x-yes" ; then
11092 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11094 CC="$save_cc"
11095 CFLAGS="$save_cflags"
11105 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11106 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11108 # Check whether --with-resolution was given.
11109 if test "${with_resolution+set}" = set; then
11110 withval=$with_resolution; resolution=$withval
11111 else
11112 resolution=none
11115 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11116 if test "$resolution" = "yes" ; then
11117 resolution="none"
11119 if test "$resolution" = "no" ; then
11120 resolution="none"
11122 if test "$resolution" != "none" ; then
11123 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11124 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11125 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11127 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11128 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11129 aros_cv_default_wbwidth=$aros_default_wbwidth
11130 aros_cv_default_wbheight=$aros_default_wbheight
11131 aros_cv_default_wbdepth=$aros_default_wbdepth
11133 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11134 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11136 # Check whether --with-serial-debug was given.
11137 if test "${with_serial_debug+set}" = set; then
11138 withval=$with_serial_debug; serial_debug=$withval
11139 else
11140 serial_debug=none
11143 if test "$aros_serial_debug" = 0 ; then
11144 serial_debug_forced=""
11145 if test "$serial_debug" = "yes" ; then
11146 serial_debug="2"
11148 if test "$serial_debug" = "no" ; then
11149 serial_debug="none"
11151 else
11152 serial_debug_forced="(forced)"
11153 serial_debug=$aros_serial_debug
11155 if test "$serial_debug" != "none" ; then
11156 aros_serial_debug=$serial_debug
11157 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11158 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11159 else
11160 { echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6; }
11164 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11165 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11166 # Check whether --enable-palm_debug_hack was given.
11167 if test "${enable_palm_debug_hack+set}" = set; then
11168 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11169 else
11170 palm_debug_hack="no"
11173 if test "$palm_debug_hack" = "yes" ; then
11174 aros_palm_debug_hack="1"
11176 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11177 echo "${ECHO_T}$palm_debug_hack" >&6; }
11180 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11181 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11182 # Check whether --enable-nesting_supervisor was given.
11183 if test "${enable_nesting_supervisor+set}" = set; then
11184 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11185 else
11186 nesting_supervisor="no"
11189 if test "$nesting_supervisor" = "yes" ; then
11190 aros_nesting_supervisor="1"
11192 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11193 echo "${ECHO_T}$nesting_supervisor" >&6; }
11196 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11198 if test "x-$need_dlopen" != "x-no" ; then
11199 { echo "$as_me:$LINENO: checking for dlopen" >&5
11200 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11201 if test "${ac_cv_func_dlopen+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h. */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11212 #define dlopen innocuous_dlopen
11214 /* System header to define __stub macros and hopefully few prototypes,
11215 which can conflict with char dlopen (); below.
11216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11217 <limits.h> exists even on freestanding compilers. */
11219 #ifdef __STDC__
11220 # include <limits.h>
11221 #else
11222 # include <assert.h>
11223 #endif
11225 #undef dlopen
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char dlopen ();
11234 /* The GNU C library defines this for functions which it implements
11235 to always fail with ENOSYS. Some functions are actually named
11236 something starting with __ and the normal name is an alias. */
11237 #if defined __stub_dlopen || defined __stub___dlopen
11238 choke me
11239 #endif
11242 main ()
11244 return dlopen ();
11246 return 0;
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (ac_try="$ac_link"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_link") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && {
11263 test -z "$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11265 } && test -s conftest$ac_exeext &&
11266 $as_test_x conftest$ac_exeext; then
11267 ac_cv_func_dlopen=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_cv_func_dlopen=no
11275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11276 conftest$ac_exeext conftest.$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11279 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11280 if test $ac_cv_func_dlopen = yes; then
11281 have_dl="yes"
11282 else
11283 have_dl="no"
11286 if test "x-$have_dl" = "x-no" ; then
11287 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldl $LIBS"
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char dlopen ();
11309 main ()
11311 return dlopen ();
11313 return 0;
11315 _ACEOF
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (ac_try="$ac_link"
11318 case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_link") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest$ac_exeext &&
11333 $as_test_x conftest$ac_exeext; then
11334 ac_cv_lib_dl_dlopen=yes
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_cv_lib_dl_dlopen=no
11342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11348 if test $ac_cv_lib_dl_dlopen = yes; then
11349 have_dl="yes"
11350 aros_host_ldflags="$aros_host_ldflags -ldl"
11351 else
11352 have_dl="no"
11356 if test "x-$have_dl" = "x-no" ; then
11357 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11358 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11359 { (exit 1); exit 1; }; }
11364 # Check whether --enable-x11_hidd was given.
11365 if test "${enable_x11_hidd+set}" = set; then
11366 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11367 else
11368 x11_hidd="auto"
11371 case "x-$x11_hidd" in
11372 x-yes|x-no|x-auto) ;;
11373 *) x11_hidd="auto" ;;
11374 esac
11376 ENABLE_X11=0
11378 if test "x-$x11_hidd" != "x-no" ; then
11380 { echo "$as_me:$LINENO: checking for X" >&5
11381 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11384 # Check whether --with-x was given.
11385 if test "${with_x+set}" = set; then
11386 withval=$with_x;
11389 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11390 if test "x$with_x" = xno; then
11391 # The user explicitly disabled X.
11392 have_x=disabled
11393 else
11394 case $x_includes,$x_libraries in #(
11395 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11396 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11397 { (exit 1); exit 1; }; };; #(
11398 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 # One or both of the vars are not set, and there is no cached value.
11402 ac_x_includes=no ac_x_libraries=no
11403 rm -f -r conftest.dir
11404 if mkdir conftest.dir; then
11405 cd conftest.dir
11406 cat >Imakefile <<'_ACEOF'
11407 incroot:
11408 @echo incroot='${INCROOT}'
11409 usrlibdir:
11410 @echo usrlibdir='${USRLIBDIR}'
11411 libdir:
11412 @echo libdir='${LIBDIR}'
11413 _ACEOF
11414 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11416 for ac_var in incroot usrlibdir libdir; do
11417 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11418 done
11419 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11420 for ac_extension in a so sl dylib la dll; do
11421 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11422 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11423 ac_im_usrlibdir=$ac_im_libdir; break
11425 done
11426 # Screen out bogus values from the imake configuration. They are
11427 # bogus both because they are the default anyway, and because
11428 # using them would break gcc on systems where it needs fixed includes.
11429 case $ac_im_incroot in
11430 /usr/include) ac_x_includes= ;;
11431 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11432 esac
11433 case $ac_im_usrlibdir in
11434 /usr/lib | /lib) ;;
11435 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11436 esac
11438 cd ..
11439 rm -f -r conftest.dir
11442 # Standard set of common directories for X headers.
11443 # Check X11 before X11Rn because it is often a symlink to the current release.
11444 ac_x_header_dirs='
11445 /usr/X11/include
11446 /usr/X11R6/include
11447 /usr/X11R5/include
11448 /usr/X11R4/include
11450 /usr/include/X11
11451 /usr/include/X11R6
11452 /usr/include/X11R5
11453 /usr/include/X11R4
11455 /usr/local/X11/include
11456 /usr/local/X11R6/include
11457 /usr/local/X11R5/include
11458 /usr/local/X11R4/include
11460 /usr/local/include/X11
11461 /usr/local/include/X11R6
11462 /usr/local/include/X11R5
11463 /usr/local/include/X11R4
11465 /usr/X386/include
11466 /usr/x386/include
11467 /usr/XFree86/include/X11
11469 /usr/include
11470 /usr/local/include
11471 /usr/unsupported/include
11472 /usr/athena/include
11473 /usr/local/x11r5/include
11474 /usr/lpp/Xamples/include
11476 /usr/openwin/include
11477 /usr/openwin/share/include'
11479 if test "$ac_x_includes" = no; then
11480 # Guess where to find include files, by looking for Xlib.h.
11481 # First, try using that file with no special directory specified.
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include <X11/Xlib.h>
11489 _ACEOF
11490 if { (ac_try="$ac_cpp conftest.$ac_ext"
11491 case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } >/dev/null && {
11503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 }; then
11506 # We can compile using X headers with no special include directory.
11507 ac_x_includes=
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 for ac_dir in $ac_x_header_dirs; do
11513 if test -r "$ac_dir/X11/Xlib.h"; then
11514 ac_x_includes=$ac_dir
11515 break
11517 done
11520 rm -f conftest.err conftest.$ac_ext
11521 fi # $ac_x_includes = no
11523 if test "$ac_x_libraries" = no; then
11524 # Check for the libraries.
11525 # See if we find them without any special options.
11526 # Don't add to $LIBS permanently.
11527 ac_save_LIBS=$LIBS
11528 LIBS="-lX11 $LIBS"
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <X11/Xlib.h>
11537 main ()
11539 XrmInitialize ()
11541 return 0;
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest$ac_exeext &&
11561 $as_test_x conftest$ac_exeext; then
11562 LIBS=$ac_save_LIBS
11563 # We can link X programs with no special library path.
11564 ac_x_libraries=
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 LIBS=$ac_save_LIBS
11570 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11572 # Don't even attempt the hair of trying to link an X program!
11573 for ac_extension in a so sl dylib la dll; do
11574 if test -r "$ac_dir/libX11.$ac_extension"; then
11575 ac_x_libraries=$ac_dir
11576 break 2
11578 done
11579 done
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11583 conftest$ac_exeext conftest.$ac_ext
11584 fi # $ac_x_libraries = no
11586 case $ac_x_includes,$ac_x_libraries in #(
11587 no,* | *,no | *\'*)
11588 # Didn't find X, or a directory has "'" in its name.
11589 ac_cv_have_x="have_x=no";; #(
11591 # Record where we found X for the cache.
11592 ac_cv_have_x="have_x=yes\
11593 ac_x_includes='$ac_x_includes'\
11594 ac_x_libraries='$ac_x_libraries'"
11595 esac
11597 ;; #(
11598 *) have_x=yes;;
11599 esac
11600 eval "$ac_cv_have_x"
11601 fi # $with_x != no
11603 if test "$have_x" != yes; then
11604 { echo "$as_me:$LINENO: result: $have_x" >&5
11605 echo "${ECHO_T}$have_x" >&6; }
11606 no_x=yes
11607 else
11608 # If each of the values was on the command line, it overrides each guess.
11609 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11610 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11611 # Update the cache value to reflect the command line values.
11612 ac_cv_have_x="have_x=yes\
11613 ac_x_includes='$x_includes'\
11614 ac_x_libraries='$x_libraries'"
11615 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11620 x_cflags=
11621 for path in $x_libraries
11623 x_cflags="$x_cflags -L$path"
11624 done
11626 for path in $x_includes
11628 x_cflags="$x_cflags -I$path"
11629 done
11631 if test "x-$no_x" = "x-yes" ; then
11633 if test "x-$x11_hidd" != "x-auto" ; then
11634 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11635 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11636 { (exit 1); exit 1; }; }
11639 else
11640 x11_hidd_target=kernel-x11gfx-kobj
11641 ENABLE_X11=1
11643 # Check whether --enable-x11_shm was given.
11644 if test "${enable_x11_shm+set}" = set; then
11645 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11646 else
11647 x11_hidd_shm="auto"
11650 case "x-$x11_hidd_shm" in
11651 x-yes|x-no|x-auto) ;;
11652 *) x11_hidd_shm="auto" ;;
11653 esac
11655 have_xshm=no
11657 if test "x-$x11_hidd_shm" != "x-no" ; then
11660 for ac_header in sys/ipc.h
11662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 ac_res=`eval echo '${'$as_ac_Header'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 else
11673 # Is the header compilable?
11674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 #include <$ac_header>
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_compile") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest.$ac_objext; then
11702 ac_header_compiler=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 ac_header_compiler=no
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11712 echo "${ECHO_T}$ac_header_compiler" >&6; }
11714 # Is the header present?
11715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 #include <$ac_header>
11724 _ACEOF
11725 if { (ac_try="$ac_cpp conftest.$ac_ext"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } >/dev/null && {
11738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 }; then
11741 ac_header_preproc=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_header_preproc=no
11749 rm -f conftest.err conftest.$ac_ext
11750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11751 echo "${ECHO_T}$ac_header_preproc" >&6; }
11753 # So? What about this header?
11754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11755 yes:no: )
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11760 ac_header_preproc=yes
11762 no:yes:* )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11777 esac
11778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 eval "$as_ac_Header=\$ac_header_preproc"
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793 _ACEOF
11797 done
11800 for ac_header in sys/shm.h
11802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 else
11813 # Is the header compilable?
11814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <$ac_header>
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (ac_try="$ac_compile"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_compile") 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest.$ac_objext; then
11842 ac_header_compiler=yes
11843 else
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_header_compiler=no
11850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11852 echo "${ECHO_T}$ac_header_compiler" >&6; }
11854 # Is the header present?
11855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 #include <$ac_header>
11864 _ACEOF
11865 if { (ac_try="$ac_cpp conftest.$ac_ext"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } >/dev/null && {
11878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 }; then
11881 ac_header_preproc=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 ac_header_preproc=no
11889 rm -f conftest.err conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891 echo "${ECHO_T}$ac_header_preproc" >&6; }
11893 # So? What about this header?
11894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11895 yes:no: )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11900 ac_header_preproc=yes
11902 no:yes:* )
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11917 esac
11918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 eval "$as_ac_Header=\$ac_header_preproc"
11925 ac_res=`eval echo '${'$as_ac_Header'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 _ACEOF
11937 done
11940 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11942 save_cflags="$CFLAGS"
11943 CFLAGS="$CFLAGS $x_cflags"
11944 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11945 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11946 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lXext $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char XShmQueryExtension ();
11966 main ()
11968 return XShmQueryExtension ();
11970 return 0;
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext &&
11990 $as_test_x conftest$ac_exeext; then
11991 ac_cv_lib_Xext_XShmQueryExtension=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_lib_Xext_XShmQueryExtension=no
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12003 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12004 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12005 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12006 have_xshm=yes
12009 CFLAGS="$save_cflags"
12013 if test "x-$have_xshm" = "x-yes" ; then
12014 DO_XSHM_SUPPORT="1"
12015 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12016 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12017 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12018 { (exit 1); exit 1; }; }
12019 else
12020 DO_XSHM_SUPPORT="0"
12024 # Check whether --enable-x11_vidmode was given.
12025 if test "${enable_x11_vidmode+set}" = set; then
12026 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12027 else
12028 x11_hidd_vidmode="auto"
12031 case "x-$x11_hidd_vidmode" in
12032 x-yes|x-no|x-auto) ;;
12033 *) x11_hidd_vidmode="auto" ;;
12034 esac
12036 have_vidmode=no
12038 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12040 save_cflags="$CFLAGS"
12041 CFLAGS="$CFLAGS $x_cflags"
12042 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12043 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12044 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-lXxf86vm $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12059 #ifdef __cplusplus
12060 extern "C"
12061 #endif
12062 char XF86VidModeQueryExtension ();
12064 main ()
12066 return XF86VidModeQueryExtension ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest$ac_exeext &&
12088 $as_test_x conftest$ac_exeext; then
12089 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12102 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12103 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12104 have_vidmode=yes
12107 CFLAGS="$save_cflags"
12110 if test "x-$have_vidmode" = "x-yes" ; then
12111 DO_VIDMODE_SUPPORT="1"
12112 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12113 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12114 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12115 { (exit 1); exit 1; }; }
12116 else
12117 DO_VIDMODE_SUPPORT="0"
12121 aros_host_x11_includes=$x_includes
12122 aros_host_x11_libdirs=$x_libraries
12126 # Check whether --enable-sdl_hidd was given.
12127 if test "${enable_sdl_hidd+set}" = set; then
12128 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12129 else
12130 sdl_hidd="auto"
12133 case "x-$sdl_hidd" in
12134 x-yes|x-no|x-auto) ;;
12135 *) sdl_hidd="auto" ;;
12136 esac
12138 if test "x-$sdl_hidd" != "x-no" ; then
12141 # Check whether --with-sdl-prefix was given.
12142 if test "${with_sdl_prefix+set}" = set; then
12143 withval=$with_sdl_prefix; sdl_prefix="$withval"
12144 else
12145 sdl_prefix=""
12149 # Check whether --with-sdl-exec-prefix was given.
12150 if test "${with_sdl_exec_prefix+set}" = set; then
12151 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12152 else
12153 sdl_exec_prefix=""
12156 # Check whether --enable-sdltest was given.
12157 if test "${enable_sdltest+set}" = set; then
12158 enableval=$enable_sdltest;
12159 else
12160 enable_sdltest=yes
12164 if test x$sdl_exec_prefix != x ; then
12165 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12166 if test x${SDL_CONFIG+set} != xset ; then
12167 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12170 if test x$sdl_prefix != x ; then
12171 sdl_args="$sdl_args --prefix=$sdl_prefix"
12172 if test x${SDL_CONFIG+set} != xset ; then
12173 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12177 if test "x$prefix" != xNONE; then
12178 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12180 # Extract the first word of "sdl-config", so it can be a program name with args.
12181 set dummy sdl-config; ac_word=$2
12182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12184 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187 case $SDL_CONFIG in
12188 [\\/]* | ?:[\\/]*)
12189 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12203 done
12204 done
12205 IFS=$as_save_IFS
12207 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12209 esac
12211 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12212 if test -n "$SDL_CONFIG"; then
12213 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12214 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12215 else
12216 { echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6; }
12221 min_sdl_version=1.2.10
12222 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12223 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12224 no_sdl=""
12225 if test "$SDL_CONFIG" = "no" ; then
12226 no_sdl=yes
12227 else
12228 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12229 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12231 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12232 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12233 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12235 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12237 if test "x$enable_sdltest" = "xyes" ; then
12238 ac_save_CFLAGS="$CFLAGS"
12239 ac_save_CXXFLAGS="$CXXFLAGS"
12240 ac_save_LIBS="$LIBS"
12241 CFLAGS="$CFLAGS $SDL_CFLAGS"
12242 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12243 LIBS="$LIBS $SDL_LIBS"
12244 rm -f conf.sdltest
12245 if test "$cross_compiling" = yes; then
12246 echo $ac_n "cross compiling; assumed OK... $ac_c"
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12255 #include <stdio.h>
12256 #include <stdlib.h>
12257 #include <string.h>
12258 #include "SDL.h"
12260 char*
12261 my_strdup (char *str)
12263 char *new_str;
12265 if (str)
12267 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12268 strcpy (new_str, str);
12270 else
12271 new_str = NULL;
12273 return new_str;
12276 int main (int argc, char *argv[])
12278 int major, minor, micro;
12279 char *tmp_version;
12281 /* This hangs on some systems (?)
12282 system ("touch conf.sdltest");
12284 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12286 /* HP/UX 9 (%@#!) writes to sscanf strings */
12287 tmp_version = my_strdup("$min_sdl_version");
12288 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12289 printf("%s, bad version string\n", "$min_sdl_version");
12290 exit(1);
12293 if (($sdl_major_version > major) ||
12294 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12295 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12297 return 0;
12299 else
12301 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12302 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12303 printf("*** best to upgrade to the required version.\n");
12304 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12305 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12306 printf("*** config.cache before re-running configure\n");
12307 return 1;
12312 _ACEOF
12313 rm -f conftest$ac_exeext
12314 if { (ac_try="$ac_link"
12315 case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318 esac
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_link") 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12324 { (case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_try") 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12334 else
12335 echo "$as_me: program exited with status $ac_status" >&5
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 ( exit $ac_status )
12340 no_sdl=yes
12342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12346 CFLAGS="$ac_save_CFLAGS"
12347 CXXFLAGS="$ac_save_CXXFLAGS"
12348 LIBS="$ac_save_LIBS"
12351 if test "x$no_sdl" = x ; then
12352 { echo "$as_me:$LINENO: result: yes" >&5
12353 echo "${ECHO_T}yes" >&6; }
12354 have_sdl="yes"
12355 else
12356 { echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6; }
12358 if test "$SDL_CONFIG" = "no" ; then
12359 echo "*** The sdl-config script installed by SDL could not be found"
12360 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12361 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12362 echo "*** full path to sdl-config."
12363 else
12364 if test -f conf.sdltest ; then
12366 else
12367 echo "*** Could not run SDL test program, checking why..."
12368 CFLAGS="$CFLAGS $SDL_CFLAGS"
12369 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12370 LIBS="$LIBS $SDL_LIBS"
12371 cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h. */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12378 #include <stdio.h>
12379 #include "SDL.h"
12381 int main(int argc, char *argv[])
12382 { return 0; }
12383 #undef main
12384 #define main K_and_R_C_main
12387 main ()
12389 return 0;
12391 return 0;
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (ac_try="$ac_link"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext &&
12411 $as_test_x conftest$ac_exeext; then
12412 echo "*** The test program compiled, but did not run. This usually means"
12413 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12414 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12415 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12416 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12417 echo "*** is required on your system"
12418 echo "***"
12419 echo "*** If you have an old version installed, it is best to remove it, although"
12420 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 echo "*** The test program failed to compile or link. See the file config.log for the"
12426 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12427 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12428 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12432 conftest$ac_exeext conftest.$ac_ext
12433 CFLAGS="$ac_save_CFLAGS"
12434 CXXFLAGS="$ac_save_CXXFLAGS"
12435 LIBS="$ac_save_LIBS"
12438 SDL_CFLAGS=""
12439 SDL_LIBS=""
12440 have_sdl="no"
12444 rm -f conf.sdltest
12447 if test "x-$have_sdl" != "x-yes" ; then
12449 if test "x-$sdl_hidd" != "x-auto" ; then
12450 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12451 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12452 { (exit 1); exit 1; }; }
12455 else
12456 sdl_hidd_target=kernel-hidd-sdl
12457 aros_host_sdl_cflags=SDL_CFLAGS
12458 aros_host_sdl_libs=SDL_LIBS
12465 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12466 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12467 # Check whether --enable-dbus was given.
12468 if test "${enable_dbus+set}" = set; then
12469 enableval=$enable_dbus; dbus="yes"
12470 else
12471 dbus="no"
12474 if test "$dbus" = "yes" ; then
12475 ENABLE_DBUS=1
12476 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12477 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12478 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12479 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12480 else
12481 ENABLE_DBUS=0
12483 { echo "$as_me:$LINENO: result: $dbus" >&5
12484 echo "${ECHO_T}$dbus" >&6; }
12488 # Generic
12498 # Host related
12521 # Target Related
12570 # Graphics Related
12585 # Native version related
12588 # Palm native version related
12591 # Unix/Hosted version related
12594 # Apple iOS related
12600 # DBUS related
12607 #X11 related
12610 # Debug related
12616 # Collect-aros stuff: "-ius" to ignore undefined symbols
12619 # C compiler related
12622 case "$aros_flavour" in
12623 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12624 aros_flavour="emulation" ;;
12625 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12626 aros_flavour="emulation" ;;
12627 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12628 aros_flavour="standalone";;
12629 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12630 aros_flavour="native" ;;
12631 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12632 aros_flavour="native" ;;
12633 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12634 aros_flavour="linklib" ;;
12635 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12636 aros_flavour="palmnative" ;;
12637 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12638 aros_flavour="mac68knative" ;;
12639 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12640 aros_flavour="ppcnative" ;;
12641 esac
12643 if test ! -d ${aros_inc_dir} ; then
12644 ${MKDIR} ${aros_inc_dir}
12646 if test ! -d ${aros_geninc_dir} ; then
12647 ${MKDIR} ${aros_geninc_dir}
12649 if test ! -d ${aros_hostcfg_dir} ; then
12650 ${MKDIR} ${aros_hostcfg_dir}
12652 if test ! -d ${aros_targetcfg_dir} ; then
12653 ${MKDIR} ${aros_targetcfg_dir}
12655 if test ! -d ${aros_tools_dir} ; then
12656 ${MKDIR} ${aros_tools_dir}
12658 if test ! -d ${aros_scripts_dir} ; then
12659 ${MKDIR} ${aros_scripts_dir}
12662 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12665 ac_config_commands="$ac_config_commands compiler_executable"
12667 ac_config_commands="$ac_config_commands genshared_executable"
12669 ac_config_commands="$ac_config_commands genmf_executable"
12672 ac_config_files="$ac_config_files Makefile config/make.cfg ${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/collect-aros/env.h"
12675 cat >confcache <<\_ACEOF
12676 # This file is a shell script that caches the results of configure
12677 # tests run on this system so they can be shared between configure
12678 # scripts and configure runs, see configure's option --config-cache.
12679 # It is not useful on other systems. If it contains results you don't
12680 # want to keep, you may remove or edit it.
12682 # config.status only pays attention to the cache file if you give it
12683 # the --recheck option to rerun configure.
12685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12687 # following values.
12689 _ACEOF
12691 # The following way of writing the cache mishandles newlines in values,
12692 # but we know of no workaround that is simple, portable, and efficient.
12693 # So, we kill variables containing newlines.
12694 # Ultrix sh set writes to stderr and can't be redirected directly,
12695 # and sets the high bit in the cache file unless we assign to the vars.
12697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12698 eval ac_val=\$$ac_var
12699 case $ac_val in #(
12700 *${as_nl}*)
12701 case $ac_var in #(
12702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12704 esac
12705 case $ac_var in #(
12706 _ | IFS | as_nl) ;; #(
12707 *) $as_unset $ac_var ;;
12708 esac ;;
12709 esac
12710 done
12712 (set) 2>&1 |
12713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12714 *${as_nl}ac_space=\ *)
12715 # `set' does not quote correctly, so add quotes (double-quote
12716 # substitution turns \\\\ into \\, and sed turns \\ into \).
12717 sed -n \
12718 "s/'/'\\\\''/g;
12719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12720 ;; #(
12722 # `set' quotes correctly as required by POSIX, so do not add quotes.
12723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12725 esac |
12726 sort
12728 sed '
12729 /^ac_cv_env_/b end
12730 t clear
12731 :clear
12732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12733 t end
12734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12735 :end' >>confcache
12736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12737 if test -w "$cache_file"; then
12738 test "x$cache_file" != "x/dev/null" &&
12739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12740 echo "$as_me: updating cache $cache_file" >&6;}
12741 cat confcache >$cache_file
12742 else
12743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12747 rm -f confcache
12749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12750 # Let make expand exec_prefix.
12751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12753 DEFS=-DHAVE_CONFIG_H
12755 ac_libobjs=
12756 ac_ltlibobjs=
12757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12758 # 1. Remove the extension, and $U if already installed.
12759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12760 ac_i=`echo "$ac_i" | sed "$ac_script"`
12761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12762 # will be set to the directory where LIBOBJS objects are built.
12763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12765 done
12766 LIBOBJS=$ac_libobjs
12768 LTLIBOBJS=$ac_ltlibobjs
12772 : ${CONFIG_STATUS=./config.status}
12773 ac_clean_files_save=$ac_clean_files
12774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12777 cat >$CONFIG_STATUS <<_ACEOF
12778 #! $SHELL
12779 # Generated by $as_me.
12780 # Run this file to recreate the current configuration.
12781 # Compiler output produced by configure, useful for debugging
12782 # configure, is in config.log if it exists.
12784 debug=false
12785 ac_cs_recheck=false
12786 ac_cs_silent=false
12787 SHELL=\${CONFIG_SHELL-$SHELL}
12788 _ACEOF
12790 cat >>$CONFIG_STATUS <<\_ACEOF
12791 ## --------------------- ##
12792 ## M4sh Initialization. ##
12793 ## --------------------- ##
12795 # Be more Bourne compatible
12796 DUALCASE=1; export DUALCASE # for MKS sh
12797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12798 emulate sh
12799 NULLCMD=:
12800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12801 # is contrary to our usage. Disable this feature.
12802 alias -g '${1+"$@"}'='"$@"'
12803 setopt NO_GLOB_SUBST
12804 else
12805 case `(set -o) 2>/dev/null` in
12806 *posix*) set -o posix ;;
12807 esac
12814 # PATH needs CR
12815 # Avoid depending upon Character Ranges.
12816 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12817 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12818 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12819 as_cr_digits='0123456789'
12820 as_cr_alnum=$as_cr_Letters$as_cr_digits
12822 # The user is always right.
12823 if test "${PATH_SEPARATOR+set}" != set; then
12824 echo "#! /bin/sh" >conf$$.sh
12825 echo "exit 0" >>conf$$.sh
12826 chmod +x conf$$.sh
12827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12828 PATH_SEPARATOR=';'
12829 else
12830 PATH_SEPARATOR=:
12832 rm -f conf$$.sh
12835 # Support unset when possible.
12836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12837 as_unset=unset
12838 else
12839 as_unset=false
12843 # IFS
12844 # We need space, tab and new line, in precisely that order. Quoting is
12845 # there to prevent editors from complaining about space-tab.
12846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12847 # splitting by setting IFS to empty value.)
12848 as_nl='
12850 IFS=" "" $as_nl"
12852 # Find who we are. Look in the path if we contain no directory separator.
12853 case $0 in
12854 *[\\/]* ) as_myself=$0 ;;
12855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12861 done
12862 IFS=$as_save_IFS
12865 esac
12866 # We did not find ourselves, most probably we were run as `sh COMMAND'
12867 # in which case we are not to be found in the path.
12868 if test "x$as_myself" = x; then
12869 as_myself=$0
12871 if test ! -f "$as_myself"; then
12872 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12873 { (exit 1); exit 1; }
12876 # Work around bugs in pre-3.0 UWIN ksh.
12877 for as_var in ENV MAIL MAILPATH
12878 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12879 done
12880 PS1='$ '
12881 PS2='> '
12882 PS4='+ '
12884 # NLS nuisances.
12885 for as_var in \
12886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12888 LC_TELEPHONE LC_TIME
12890 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12891 eval $as_var=C; export $as_var
12892 else
12893 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12895 done
12897 # Required to use basename.
12898 if expr a : '\(a\)' >/dev/null 2>&1 &&
12899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12900 as_expr=expr
12901 else
12902 as_expr=false
12905 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12906 as_basename=basename
12907 else
12908 as_basename=false
12912 # Name of the executable.
12913 as_me=`$as_basename -- "$0" ||
12914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12915 X"$0" : 'X\(//\)$' \| \
12916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12917 echo X/"$0" |
12918 sed '/^.*\/\([^/][^/]*\)\/*$/{
12919 s//\1/
12922 /^X\/\(\/\/\)$/{
12923 s//\1/
12926 /^X\/\(\/\).*/{
12927 s//\1/
12930 s/.*/./; q'`
12932 # CDPATH.
12933 $as_unset CDPATH
12937 as_lineno_1=$LINENO
12938 as_lineno_2=$LINENO
12939 test "x$as_lineno_1" != "x$as_lineno_2" &&
12940 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12943 # uniformly replaced by the line number. The first 'sed' inserts a
12944 # line-number line after each line using $LINENO; the second 'sed'
12945 # does the real work. The second script uses 'N' to pair each
12946 # line-number line with the line containing $LINENO, and appends
12947 # trailing '-' during substitution so that $LINENO is not a special
12948 # case at line end.
12949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12950 # scripts with optimization help from Paolo Bonzini. Blame Lee
12951 # E. McMahon (1931-1989) for sed's syntax. :-)
12952 sed -n '
12954 /[$]LINENO/=
12955 ' <$as_myself |
12956 sed '
12957 s/[$]LINENO.*/&-/
12958 t lineno
12960 :lineno
12962 :loop
12963 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12964 t loop
12965 s/-\n.*//
12966 ' >$as_me.lineno &&
12967 chmod +x "$as_me.lineno" ||
12968 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12969 { (exit 1); exit 1; }; }
12971 # Don't try to exec as it changes $[0], causing all sort of problems
12972 # (the dirname of $[0] is not the place where we might find the
12973 # original and so on. Autoconf is especially sensitive to this).
12974 . "./$as_me.lineno"
12975 # Exit status is that of the last command.
12976 exit
12980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12981 as_dirname=dirname
12982 else
12983 as_dirname=false
12986 ECHO_C= ECHO_N= ECHO_T=
12987 case `echo -n x` in
12988 -n*)
12989 case `echo 'x\c'` in
12990 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12991 *) ECHO_C='\c';;
12992 esac;;
12994 ECHO_N='-n';;
12995 esac
12997 if expr a : '\(a\)' >/dev/null 2>&1 &&
12998 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12999 as_expr=expr
13000 else
13001 as_expr=false
13004 rm -f conf$$ conf$$.exe conf$$.file
13005 if test -d conf$$.dir; then
13006 rm -f conf$$.dir/conf$$.file
13007 else
13008 rm -f conf$$.dir
13009 mkdir conf$$.dir
13011 echo >conf$$.file
13012 if ln -s conf$$.file conf$$ 2>/dev/null; then
13013 as_ln_s='ln -s'
13014 # ... but there are two gotchas:
13015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13017 # In both cases, we have to default to `cp -p'.
13018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13019 as_ln_s='cp -p'
13020 elif ln conf$$.file conf$$ 2>/dev/null; then
13021 as_ln_s=ln
13022 else
13023 as_ln_s='cp -p'
13025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13026 rmdir conf$$.dir 2>/dev/null
13028 if mkdir -p . 2>/dev/null; then
13029 as_mkdir_p=:
13030 else
13031 test -d ./-p && rmdir ./-p
13032 as_mkdir_p=false
13035 if test -x / >/dev/null 2>&1; then
13036 as_test_x='test -x'
13037 else
13038 if ls -dL / >/dev/null 2>&1; then
13039 as_ls_L_option=L
13040 else
13041 as_ls_L_option=
13043 as_test_x='
13044 eval sh -c '\''
13045 if test -d "$1"; then
13046 test -d "$1/.";
13047 else
13048 case $1 in
13049 -*)set "./$1";;
13050 esac;
13051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13052 ???[sx]*):;;*)false;;esac;fi
13053 '\'' sh
13056 as_executable_p=$as_test_x
13058 # Sed expression to map a string onto a valid CPP name.
13059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13061 # Sed expression to map a string onto a valid variable name.
13062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13065 exec 6>&1
13067 # Save the log message, to keep $[0] and so on meaningful, and to
13068 # report actual input values of CONFIG_FILES etc. instead of their
13069 # values after options handling.
13070 ac_log="
13071 This file was extended by $as_me, which was
13072 generated by GNU Autoconf 2.61. Invocation command line was
13074 CONFIG_FILES = $CONFIG_FILES
13075 CONFIG_HEADERS = $CONFIG_HEADERS
13076 CONFIG_LINKS = $CONFIG_LINKS
13077 CONFIG_COMMANDS = $CONFIG_COMMANDS
13078 $ $0 $@
13080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13083 _ACEOF
13085 cat >>$CONFIG_STATUS <<_ACEOF
13086 # Files that config.status was made for.
13087 config_files="$ac_config_files"
13088 config_headers="$ac_config_headers"
13089 config_commands="$ac_config_commands"
13091 _ACEOF
13093 cat >>$CONFIG_STATUS <<\_ACEOF
13094 ac_cs_usage="\
13095 \`$as_me' instantiates files from templates according to the
13096 current configuration.
13098 Usage: $0 [OPTIONS] [FILE]...
13100 -h, --help print this help, then exit
13101 -V, --version print version number and configuration settings, then exit
13102 -q, --quiet do not print progress messages
13103 -d, --debug don't remove temporary files
13104 --recheck update $as_me by reconfiguring in the same conditions
13105 --file=FILE[:TEMPLATE]
13106 instantiate the configuration file FILE
13107 --header=FILE[:TEMPLATE]
13108 instantiate the configuration header FILE
13110 Configuration files:
13111 $config_files
13113 Configuration headers:
13114 $config_headers
13116 Configuration commands:
13117 $config_commands
13119 Report bugs to <bug-autoconf@gnu.org>."
13121 _ACEOF
13122 cat >>$CONFIG_STATUS <<_ACEOF
13123 ac_cs_version="\\
13124 config.status
13125 configured by $0, generated by GNU Autoconf 2.61,
13126 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13128 Copyright (C) 2006 Free Software Foundation, Inc.
13129 This config.status script is free software; the Free Software Foundation
13130 gives unlimited permission to copy, distribute and modify it."
13132 ac_pwd='$ac_pwd'
13133 srcdir='$srcdir'
13134 _ACEOF
13136 cat >>$CONFIG_STATUS <<\_ACEOF
13137 # If no file are specified by the user, then we need to provide default
13138 # value. By we need to know if files were specified by the user.
13139 ac_need_defaults=:
13140 while test $# != 0
13142 case $1 in
13143 --*=*)
13144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13146 ac_shift=:
13149 ac_option=$1
13150 ac_optarg=$2
13151 ac_shift=shift
13153 esac
13155 case $ac_option in
13156 # Handling of the options.
13157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13158 ac_cs_recheck=: ;;
13159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13160 echo "$ac_cs_version"; exit ;;
13161 --debug | --debu | --deb | --de | --d | -d )
13162 debug=: ;;
13163 --file | --fil | --fi | --f )
13164 $ac_shift
13165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13166 ac_need_defaults=false;;
13167 --header | --heade | --head | --hea )
13168 $ac_shift
13169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13170 ac_need_defaults=false;;
13171 --he | --h)
13172 # Conflict between --help and --header
13173 { echo "$as_me: error: ambiguous option: $1
13174 Try \`$0 --help' for more information." >&2
13175 { (exit 1); exit 1; }; };;
13176 --help | --hel | -h )
13177 echo "$ac_cs_usage"; exit ;;
13178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13180 ac_cs_silent=: ;;
13182 # This is an error.
13183 -*) { echo "$as_me: error: unrecognized option: $1
13184 Try \`$0 --help' for more information." >&2
13185 { (exit 1); exit 1; }; } ;;
13187 *) ac_config_targets="$ac_config_targets $1"
13188 ac_need_defaults=false ;;
13190 esac
13191 shift
13192 done
13194 ac_configure_extra_args=
13196 if $ac_cs_silent; then
13197 exec 6>/dev/null
13198 ac_configure_extra_args="$ac_configure_extra_args --silent"
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF
13203 if \$ac_cs_recheck; then
13204 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13205 CONFIG_SHELL=$SHELL
13206 export CONFIG_SHELL
13207 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13210 _ACEOF
13211 cat >>$CONFIG_STATUS <<\_ACEOF
13212 exec 5>>config.log
13214 echo
13215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13216 ## Running $as_me. ##
13217 _ASBOX
13218 echo "$ac_log"
13219 } >&5
13221 _ACEOF
13222 cat >>$CONFIG_STATUS <<_ACEOF
13224 # INIT-COMMANDS
13227 aros_host_exe_suffix=${aros_host_exe_suffix}
13228 aros_tools_dir=${aros_tools_dir}
13229 aros_target_cpu=${aros_target_cpu}
13230 aros_target_arch=${aros_target_arch}
13231 aros_target_suffix=${aros_target_suffix}
13232 aros_target_nm_ln=${aros_target_nm_ln}
13233 aros_target_as_ln=${aros_target_as_ln}
13234 aros_target_ar_ln=${aros_target_ar_ln}
13235 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13236 aros_target_objdump_ln=${aros_target_objdump_ln}
13237 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13238 aros_target_strip_ln=${aros_target_strip_ln}
13241 aros_scripts_dir=${aros_scripts_dir}
13243 aros_tools_dir=${aros_tools_dir}
13246 _ACEOF
13248 cat >>$CONFIG_STATUS <<\_ACEOF
13250 # Handling of arguments.
13251 for ac_config_target in $ac_config_targets
13253 case $ac_config_target in
13254 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13255 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13256 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13257 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13258 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13259 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13260 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13261 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13262 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13263 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13264 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13265 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13266 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13267 "${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" ;;
13268 "${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" ;;
13269 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13270 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13271 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13273 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13274 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13275 { (exit 1); exit 1; }; };;
13276 esac
13277 done
13280 # If the user did not use the arguments to specify the items to instantiate,
13281 # then the envvar interface is used. Set only those that are not.
13282 # We use the long form for the default assignment because of an extremely
13283 # bizarre bug on SunOS 4.1.3.
13284 if $ac_need_defaults; then
13285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13290 # Have a temporary directory for convenience. Make it in the build tree
13291 # simply because there is no reason against having it here, and in addition,
13292 # creating and moving files from /tmp can sometimes cause problems.
13293 # Hook for its removal unless debugging.
13294 # Note that there is a small window in which the directory will not be cleaned:
13295 # after its creation but before its name has been assigned to `$tmp'.
13296 $debug ||
13298 tmp=
13299 trap 'exit_status=$?
13300 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13302 trap '{ (exit 1); exit 1; }' 1 2 13 15
13304 # Create a (secure) tmp directory for tmp files.
13307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13308 test -n "$tmp" && test -d "$tmp"
13309 } ||
13311 tmp=./conf$$-$RANDOM
13312 (umask 077 && mkdir "$tmp")
13313 } ||
13315 echo "$me: cannot create a temporary directory in ." >&2
13316 { (exit 1); exit 1; }
13320 # Set up the sed scripts for CONFIG_FILES section.
13323 # No need to generate the scripts if there are no CONFIG_FILES.
13324 # This happens for instance when ./config.status config.h
13325 if test -n "$CONFIG_FILES"; then
13327 _ACEOF
13331 ac_delim='%!_!# '
13332 for ac_last_try in false false false false false :; do
13333 cat >conf$$subs.sed <<_ACEOF
13334 SHELL!$SHELL$ac_delim
13335 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13336 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13337 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13338 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13339 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13340 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13341 exec_prefix!$exec_prefix$ac_delim
13342 prefix!$prefix$ac_delim
13343 program_transform_name!$program_transform_name$ac_delim
13344 bindir!$bindir$ac_delim
13345 sbindir!$sbindir$ac_delim
13346 libexecdir!$libexecdir$ac_delim
13347 datarootdir!$datarootdir$ac_delim
13348 datadir!$datadir$ac_delim
13349 sysconfdir!$sysconfdir$ac_delim
13350 sharedstatedir!$sharedstatedir$ac_delim
13351 localstatedir!$localstatedir$ac_delim
13352 includedir!$includedir$ac_delim
13353 oldincludedir!$oldincludedir$ac_delim
13354 docdir!$docdir$ac_delim
13355 infodir!$infodir$ac_delim
13356 htmldir!$htmldir$ac_delim
13357 dvidir!$dvidir$ac_delim
13358 pdfdir!$pdfdir$ac_delim
13359 psdir!$psdir$ac_delim
13360 libdir!$libdir$ac_delim
13361 localedir!$localedir$ac_delim
13362 mandir!$mandir$ac_delim
13363 DEFS!$DEFS$ac_delim
13364 ECHO_C!$ECHO_C$ac_delim
13365 ECHO_N!$ECHO_N$ac_delim
13366 ECHO_T!$ECHO_T$ac_delim
13367 LIBS!$LIBS$ac_delim
13368 build_alias!$build_alias$ac_delim
13369 host_alias!$host_alias$ac_delim
13370 target_alias!$target_alias$ac_delim
13371 build!$build$ac_delim
13372 build_cpu!$build_cpu$ac_delim
13373 build_vendor!$build_vendor$ac_delim
13374 build_os!$build_os$ac_delim
13375 host!$host$ac_delim
13376 host_cpu!$host_cpu$ac_delim
13377 host_vendor!$host_vendor$ac_delim
13378 host_os!$host_os$ac_delim
13379 CC!$CC$ac_delim
13380 CFLAGS!$CFLAGS$ac_delim
13381 LDFLAGS!$LDFLAGS$ac_delim
13382 CPPFLAGS!$CPPFLAGS$ac_delim
13383 ac_ct_CC!$ac_ct_CC$ac_delim
13384 EXEEXT!$EXEEXT$ac_delim
13385 OBJEXT!$OBJEXT$ac_delim
13386 CPP!$CPP$ac_delim
13387 AWK!$AWK$ac_delim
13388 MMAKE!$MMAKE$ac_delim
13389 aros_host_ld!$aros_host_ld$ac_delim
13390 aros_host_aclocal!$aros_host_aclocal$ac_delim
13391 aros_host_autoconf!$aros_host_autoconf$ac_delim
13392 aros_host_autoheader!$aros_host_autoheader$ac_delim
13393 aros_host_automake!$aros_host_automake$ac_delim
13394 aros_host_ar!$aros_host_ar$ac_delim
13395 aros_host_ranlib!$aros_host_ranlib$ac_delim
13396 aros_host_strip!$aros_host_strip$ac_delim
13397 RM!$RM$ac_delim
13398 CP!$CP$ac_delim
13399 MV!$MV$ac_delim
13400 ECHO!$ECHO$ac_delim
13401 MKDIR!$MKDIR$ac_delim
13402 TOUCH!$TOUCH$ac_delim
13403 SORT!$SORT$ac_delim
13404 UNIQ!$UNIQ$ac_delim
13405 NOP!$NOP$ac_delim
13406 CAT!$CAT$ac_delim
13407 BISON!$BISON$ac_delim
13408 FLEX!$FLEX$ac_delim
13409 PNGTOPNM!$PNGTOPNM$ac_delim
13410 PPMTOILBM!$PPMTOILBM$ac_delim
13411 SED!$SED$ac_delim
13412 CHMOD!$CHMOD$ac_delim
13413 PYTHON!$PYTHON$ac_delim
13414 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13415 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13416 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13417 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13418 pythondir!$pythondir$ac_delim
13419 pkgpythondir!$pkgpythondir$ac_delim
13420 pyexecdir!$pyexecdir$ac_delim
13421 pkgpyexecdir!$pkgpyexecdir$ac_delim
13422 FOR!$FOR$ac_delim
13423 IF!$IF$ac_delim
13424 TEST!$TEST$ac_delim
13425 CMP!$CMP$ac_delim
13426 GREP!$GREP$ac_delim
13427 EGREP!$EGREP$ac_delim
13428 LIBOBJS!$LIBOBJS$ac_delim
13429 DISTCC!$DISTCC$ac_delim
13430 CCACHE!$CCACHE$ac_delim
13431 _ACEOF
13433 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13434 break
13435 elif $ac_last_try; then
13436 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13437 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13438 { (exit 1); exit 1; }; }
13439 else
13440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13442 done
13444 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13445 if test -n "$ac_eof"; then
13446 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13447 ac_eof=`expr $ac_eof + 1`
13450 cat >>$CONFIG_STATUS <<_ACEOF
13451 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13453 _ACEOF
13454 sed '
13455 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13456 s/^/s,@/; s/!/@,|#_!!_#|/
13459 s/'"$ac_delim"'$/,g/; t
13460 s/$/\\/; p
13461 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13462 ' >>$CONFIG_STATUS <conf$$subs.sed
13463 rm -f conf$$subs.sed
13464 cat >>$CONFIG_STATUS <<_ACEOF
13465 CEOF$ac_eof
13466 _ACEOF
13469 ac_delim='%!_!# '
13470 for ac_last_try in false false false false false :; do
13471 cat >conf$$subs.sed <<_ACEOF
13472 aros_target_cc!$aros_target_cc$ac_delim
13473 aros_target_ld!$aros_target_ld$ac_delim
13474 aros_target_as_ln!$aros_target_as_ln$ac_delim
13475 aros_kernel_ld!$aros_kernel_ld$ac_delim
13476 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13477 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13478 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13479 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13480 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13481 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13482 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13483 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13484 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13485 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13486 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13487 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13488 host_cflags_iquote!$host_cflags_iquote$ac_delim
13489 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13490 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13491 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13492 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13493 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13494 XMKMF!$XMKMF$ac_delim
13495 SDL_CONFIG!$SDL_CONFIG$ac_delim
13496 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13497 SDL_LIBS!$SDL_LIBS$ac_delim
13498 aros_arch!$aros_arch$ac_delim
13499 aros_cpu!$aros_cpu$ac_delim
13500 aros_flavour!$aros_flavour$ac_delim
13501 aros_flavour_uc!$aros_flavour_uc$ac_delim
13502 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13503 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13504 SRCDIR!$SRCDIR$ac_delim
13505 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13506 aros_cc_pre!$aros_cc_pre$ac_delim
13507 aros_host_arch!$aros_host_arch$ac_delim
13508 aros_host_cpu!$aros_host_cpu$ac_delim
13509 aros_host_cc!$aros_host_cc$ac_delim
13510 aros_host_make!$aros_host_make$ac_delim
13511 aros_host_cflags!$aros_host_cflags$ac_delim
13512 aros_host_ldflags!$aros_host_ldflags$ac_delim
13513 aros_host_debug!$aros_host_debug$ac_delim
13514 aros_host_mkdep!$aros_host_mkdep$ac_delim
13515 aros_host_mkargs!$aros_host_mkargs$ac_delim
13516 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13517 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13518 aros_tools_dir!$aros_tools_dir$ac_delim
13519 aros_target_guitheme!$aros_target_guitheme$ac_delim
13520 aros_target_iconset!$aros_target_iconset$ac_delim
13521 aros_target_bootloader!$aros_target_bootloader$ac_delim
13522 aros_target_arch!$aros_target_arch$ac_delim
13523 aros_target_cpu!$aros_target_cpu$ac_delim
13524 aros_target_variant!$aros_target_variant$ac_delim
13525 aros_target_suffix!$aros_target_suffix$ac_delim
13526 aros_target_incl!$aros_target_incl$ac_delim
13527 aros_target_ar!$aros_target_ar$ac_delim
13528 aros_target_ranlib!$aros_target_ranlib$ac_delim
13529 aros_kernel_nm!$aros_kernel_nm$ac_delim
13530 orig_target_cc!$orig_target_cc$ac_delim
13531 aros_target_cxx!$aros_target_cxx$ac_delim
13532 aros_kernel_cc!$aros_kernel_cc$ac_delim
13533 aros_target_as!$aros_target_as$ac_delim
13534 orig_target_ld!$orig_target_ld$ac_delim
13535 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13536 aros_target_cc_path!$aros_target_cc_path$ac_delim
13537 aros_target_objdump!$aros_target_objdump$ac_delim
13538 aros_target_objcopy!$aros_target_objcopy$ac_delim
13539 aros_target_strip!$aros_target_strip$ac_delim
13540 aros_target_nm!$aros_target_nm$ac_delim
13541 aros_shared_default!$aros_shared_default$ac_delim
13542 aros_shared_ld!$aros_shared_ld$ac_delim
13543 aros_object_format!$aros_object_format$ac_delim
13544 aros_compiler_libs!$aros_compiler_libs$ac_delim
13545 aros_arch_libs!$aros_arch_libs$ac_delim
13546 aros_config_cflags!$aros_config_cflags$ac_delim
13547 aros_config_aflags!$aros_config_aflags$ac_delim
13548 aros_config_ldflags!$aros_config_ldflags$ac_delim
13549 aros_shared_cflags!$aros_shared_cflags$ac_delim
13550 aros_shared_aflags!$aros_shared_aflags$ac_delim
13551 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13552 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13553 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13554 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13555 aros_debug_cflags!$aros_debug_cflags$ac_delim
13556 aros_debug_aflags!$aros_debug_aflags$ac_delim
13557 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13558 aros_target_genmap!$aros_target_genmap$ac_delim
13559 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13560 x11_hidd_target!$x11_hidd_target$ac_delim
13561 sdl_hidd_target!$sdl_hidd_target$ac_delim
13562 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13563 aros_default_wbheight!$aros_default_wbheight$ac_delim
13564 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13565 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13566 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13567 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13568 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13569 _ACEOF
13571 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13572 break
13573 elif $ac_last_try; then
13574 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13575 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13576 { (exit 1); exit 1; }; }
13577 else
13578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13580 done
13582 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13583 if test -n "$ac_eof"; then
13584 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13585 ac_eof=`expr $ac_eof + 1`
13588 cat >>$CONFIG_STATUS <<_ACEOF
13589 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13591 _ACEOF
13592 sed '
13593 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13594 s/^/s,@/; s/!/@,|#_!!_#|/
13597 s/'"$ac_delim"'$/,g/; t
13598 s/$/\\/; p
13599 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13600 ' >>$CONFIG_STATUS <conf$$subs.sed
13601 rm -f conf$$subs.sed
13602 cat >>$CONFIG_STATUS <<_ACEOF
13603 CEOF$ac_eof
13604 _ACEOF
13607 ac_delim='%!_!# '
13608 for ac_last_try in false false false false false :; do
13609 cat >conf$$subs.sed <<_ACEOF
13610 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13611 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13612 aros_serial_debug!$aros_serial_debug$ac_delim
13613 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13614 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13615 aros_xcode_path!$aros_xcode_path$ac_delim
13616 aros_ios_platform!$aros_ios_platform$ac_delim
13617 aros_ios_version!$aros_ios_version$ac_delim
13618 aros_ios_sdk!$aros_ios_sdk$ac_delim
13619 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13620 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13621 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13622 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13623 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13624 ENABLE_X11!$ENABLE_X11$ac_delim
13625 aros_debug!$aros_debug$ac_delim
13626 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13627 aros_stack_debug!$aros_stack_debug$ac_delim
13628 aros_modules_debug!$aros_modules_debug$ac_delim
13629 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13630 gcc_target_cpu!$gcc_target_cpu$ac_delim
13631 LTLIBOBJS!$LTLIBOBJS$ac_delim
13632 _ACEOF
13634 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
13635 break
13636 elif $ac_last_try; then
13637 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13639 { (exit 1); exit 1; }; }
13640 else
13641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13643 done
13645 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13646 if test -n "$ac_eof"; then
13647 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13648 ac_eof=`expr $ac_eof + 1`
13651 cat >>$CONFIG_STATUS <<_ACEOF
13652 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13654 _ACEOF
13655 sed '
13656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13657 s/^/s,@/; s/!/@,|#_!!_#|/
13660 s/'"$ac_delim"'$/,g/; t
13661 s/$/\\/; p
13662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13663 ' >>$CONFIG_STATUS <conf$$subs.sed
13664 rm -f conf$$subs.sed
13665 cat >>$CONFIG_STATUS <<_ACEOF
13666 :end
13667 s/|#_!!_#|//g
13668 CEOF$ac_eof
13669 _ACEOF
13672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13674 # trailing colons and then remove the whole line if VPATH becomes empty
13675 # (actually we leave an empty line to preserve line numbers).
13676 if test "x$srcdir" = x.; then
13677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13678 s/:*\$(srcdir):*/:/
13679 s/:*\${srcdir}:*/:/
13680 s/:*@srcdir@:*/:/
13681 s/^\([^=]*=[ ]*\):*/\1/
13682 s/:*$//
13683 s/^[^=]*=[ ]*$//
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13688 fi # test -n "$CONFIG_FILES"
13691 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13693 case $ac_tag in
13694 :[FHLC]) ac_mode=$ac_tag; continue;;
13695 esac
13696 case $ac_mode$ac_tag in
13697 :[FHL]*:*);;
13698 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13699 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13700 { (exit 1); exit 1; }; };;
13701 :[FH]-) ac_tag=-:-;;
13702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13703 esac
13704 ac_save_IFS=$IFS
13705 IFS=:
13706 set x $ac_tag
13707 IFS=$ac_save_IFS
13708 shift
13709 ac_file=$1
13710 shift
13712 case $ac_mode in
13713 :L) ac_source=$1;;
13714 :[FH])
13715 ac_file_inputs=
13716 for ac_f
13718 case $ac_f in
13719 -) ac_f="$tmp/stdin";;
13720 *) # Look for the file first in the build tree, then in the source tree
13721 # (if the path is not absolute). The absolute path cannot be DOS-style,
13722 # because $ac_f cannot contain `:'.
13723 test -f "$ac_f" ||
13724 case $ac_f in
13725 [\\/$]*) false;;
13726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13727 esac ||
13728 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13729 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13730 { (exit 1); exit 1; }; };;
13731 esac
13732 ac_file_inputs="$ac_file_inputs $ac_f"
13733 done
13735 # Let's still pretend it is `configure' which instantiates (i.e., don't
13736 # use $as_me), people would be surprised to read:
13737 # /* config.h. Generated by config.status. */
13738 configure_input="Generated from "`IFS=:
13739 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13740 if test x"$ac_file" != x-; then
13741 configure_input="$ac_file. $configure_input"
13742 { echo "$as_me:$LINENO: creating $ac_file" >&5
13743 echo "$as_me: creating $ac_file" >&6;}
13746 case $ac_tag in
13747 *:-:* | *:-) cat >"$tmp/stdin";;
13748 esac
13750 esac
13752 ac_dir=`$as_dirname -- "$ac_file" ||
13753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13754 X"$ac_file" : 'X\(//\)[^/]' \| \
13755 X"$ac_file" : 'X\(//\)$' \| \
13756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13757 echo X"$ac_file" |
13758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13759 s//\1/
13762 /^X\(\/\/\)[^/].*/{
13763 s//\1/
13766 /^X\(\/\/\)$/{
13767 s//\1/
13770 /^X\(\/\).*/{
13771 s//\1/
13774 s/.*/./; q'`
13775 { as_dir="$ac_dir"
13776 case $as_dir in #(
13777 -*) as_dir=./$as_dir;;
13778 esac
13779 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13780 as_dirs=
13781 while :; do
13782 case $as_dir in #(
13783 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13784 *) as_qdir=$as_dir;;
13785 esac
13786 as_dirs="'$as_qdir' $as_dirs"
13787 as_dir=`$as_dirname -- "$as_dir" ||
13788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13789 X"$as_dir" : 'X\(//\)[^/]' \| \
13790 X"$as_dir" : 'X\(//\)$' \| \
13791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13792 echo X"$as_dir" |
13793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13794 s//\1/
13797 /^X\(\/\/\)[^/].*/{
13798 s//\1/
13801 /^X\(\/\/\)$/{
13802 s//\1/
13805 /^X\(\/\).*/{
13806 s//\1/
13809 s/.*/./; q'`
13810 test -d "$as_dir" && break
13811 done
13812 test -z "$as_dirs" || eval "mkdir $as_dirs"
13813 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13815 { (exit 1); exit 1; }; }; }
13816 ac_builddir=.
13818 case "$ac_dir" in
13819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13822 # A ".." for each directory in $ac_dir_suffix.
13823 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13824 case $ac_top_builddir_sub in
13825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13827 esac ;;
13828 esac
13829 ac_abs_top_builddir=$ac_pwd
13830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13831 # for backward compatibility:
13832 ac_top_builddir=$ac_top_build_prefix
13834 case $srcdir in
13835 .) # We are building in place.
13836 ac_srcdir=.
13837 ac_top_srcdir=$ac_top_builddir_sub
13838 ac_abs_top_srcdir=$ac_pwd ;;
13839 [\\/]* | ?:[\\/]* ) # Absolute name.
13840 ac_srcdir=$srcdir$ac_dir_suffix;
13841 ac_top_srcdir=$srcdir
13842 ac_abs_top_srcdir=$srcdir ;;
13843 *) # Relative name.
13844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13845 ac_top_srcdir=$ac_top_build_prefix$srcdir
13846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13847 esac
13848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13851 case $ac_mode in
13854 # CONFIG_FILE
13857 _ACEOF
13859 cat >>$CONFIG_STATUS <<\_ACEOF
13860 # If the template does not know about datarootdir, expand it.
13861 # FIXME: This hack should be removed a few years after 2.60.
13862 ac_datarootdir_hack=; ac_datarootdir_seen=
13864 case `sed -n '/datarootdir/ {
13868 /@datadir@/p
13869 /@docdir@/p
13870 /@infodir@/p
13871 /@localedir@/p
13872 /@mandir@/p
13873 ' $ac_file_inputs` in
13874 *datarootdir*) ac_datarootdir_seen=yes;;
13875 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13876 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13877 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13878 _ACEOF
13879 cat >>$CONFIG_STATUS <<_ACEOF
13880 ac_datarootdir_hack='
13881 s&@datadir@&$datadir&g
13882 s&@docdir@&$docdir&g
13883 s&@infodir@&$infodir&g
13884 s&@localedir@&$localedir&g
13885 s&@mandir@&$mandir&g
13886 s&\\\${datarootdir}&$datarootdir&g' ;;
13887 esac
13888 _ACEOF
13890 # Neutralize VPATH when `$srcdir' = `.'.
13891 # Shell code in configure.ac might set extrasub.
13892 # FIXME: do we really want to maintain this feature?
13893 cat >>$CONFIG_STATUS <<_ACEOF
13894 sed "$ac_vpsub
13895 $extrasub
13896 _ACEOF
13897 cat >>$CONFIG_STATUS <<\_ACEOF
13899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13900 s&@configure_input@&$configure_input&;t t
13901 s&@top_builddir@&$ac_top_builddir_sub&;t t
13902 s&@srcdir@&$ac_srcdir&;t t
13903 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13904 s&@top_srcdir@&$ac_top_srcdir&;t t
13905 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13906 s&@builddir@&$ac_builddir&;t t
13907 s&@abs_builddir@&$ac_abs_builddir&;t t
13908 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13909 $ac_datarootdir_hack
13910 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13913 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13915 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13916 which seems to be undefined. Please make sure it is defined." >&5
13917 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13918 which seems to be undefined. Please make sure it is defined." >&2;}
13920 rm -f "$tmp/stdin"
13921 case $ac_file in
13922 -) cat "$tmp/out"; rm -f "$tmp/out";;
13923 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13924 esac
13928 # CONFIG_HEADER
13930 _ACEOF
13932 # Transform confdefs.h into a sed script `conftest.defines', that
13933 # substitutes the proper values into config.h.in to produce config.h.
13934 rm -f conftest.defines conftest.tail
13935 # First, append a space to every undef/define line, to ease matching.
13936 echo 's/$/ /' >conftest.defines
13937 # Then, protect against being on the right side of a sed subst, or in
13938 # an unquoted here document, in config.status. If some macros were
13939 # called several times there might be several #defines for the same
13940 # symbol, which is useless. But do not sort them, since the last
13941 # AC_DEFINE must be honored.
13942 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13943 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13944 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13945 # PARAMS is the parameter list in the macro definition--in most cases, it's
13946 # just an empty string.
13947 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13948 ac_dB='\\)[ (].*,\\1define\\2'
13949 ac_dC=' '
13950 ac_dD=' ,'
13952 uniq confdefs.h |
13953 sed -n '
13954 t rset
13955 :rset
13956 s/^[ ]*#[ ]*define[ ][ ]*//
13957 t ok
13960 s/[\\&,]/\\&/g
13961 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13962 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13963 ' >>conftest.defines
13965 # Remove the space that was appended to ease matching.
13966 # Then replace #undef with comments. This is necessary, for
13967 # example, in the case of _POSIX_SOURCE, which is predefined and required
13968 # on some systems where configure will not decide to define it.
13969 # (The regexp can be short, since the line contains either #define or #undef.)
13970 echo 's/ $//
13971 s,^[ #]*u.*,/* & */,' >>conftest.defines
13973 # Break up conftest.defines:
13974 ac_max_sed_lines=50
13976 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13977 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13978 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13979 # et cetera.
13980 ac_in='$ac_file_inputs'
13981 ac_out='"$tmp/out1"'
13982 ac_nxt='"$tmp/out2"'
13984 while :
13986 # Write a here document:
13987 cat >>$CONFIG_STATUS <<_ACEOF
13988 # First, check the format of the line:
13989 cat >"\$tmp/defines.sed" <<\\CEOF
13990 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13991 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13993 :def
13994 _ACEOF
13995 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13996 echo 'CEOF
13997 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13998 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13999 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14000 grep . conftest.tail >/dev/null || break
14001 rm -f conftest.defines
14002 mv conftest.tail conftest.defines
14003 done
14004 rm -f conftest.defines conftest.tail
14006 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14007 cat >>$CONFIG_STATUS <<\_ACEOF
14008 if test x"$ac_file" != x-; then
14009 echo "/* $configure_input */" >"$tmp/config.h"
14010 cat "$ac_result" >>"$tmp/config.h"
14011 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14012 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14013 echo "$as_me: $ac_file is unchanged" >&6;}
14014 else
14015 rm -f $ac_file
14016 mv "$tmp/config.h" $ac_file
14018 else
14019 echo "/* $configure_input */"
14020 cat "$ac_result"
14022 rm -f "$tmp/out12"
14025 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14026 echo "$as_me: executing $ac_file commands" >&6;}
14028 esac
14031 case $ac_file$ac_mode in
14032 "compiler_executable":C)
14033 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14034 mkdir -p $prefix
14035 prefix="${prefix}/${aros_target_cpu}-aros"
14036 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14038 echo ${prefix}
14039 echo ${prefix2}
14040 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14042 ln -sf ${prefix2}-gcc ${prefix}-gcc
14043 ln -sf ${prefix2}-ld ${prefix}-ld
14045 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14046 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14047 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14048 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14049 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14050 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14051 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14053 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14054 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14055 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14056 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14057 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14058 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14059 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14061 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14062 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14064 esac
14065 done # for ac_tag
14068 { (exit 0); exit 0; }
14069 _ACEOF
14070 chmod +x $CONFIG_STATUS
14071 ac_clean_files=$ac_clean_files_save
14074 # configure is writing to config.log, and then calls config.status.
14075 # config.status does its own redirection, appending to config.log.
14076 # Unfortunately, on DOS this fails, as config.log is still kept open
14077 # by configure, so config.status won't be able to write to it; its
14078 # output is simply discarded. So we exec the FD to /dev/null,
14079 # effectively closing config.log, so it can be properly (re)opened and
14080 # appended to by config.status. When coming back to configure, we
14081 # need to make the FD available again.
14082 if test "$no_create" != yes; then
14083 ac_cs_success=:
14084 ac_config_status_args=
14085 test "$silent" = yes &&
14086 ac_config_status_args="$ac_config_status_args --quiet"
14087 exec 5>/dev/null
14088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14089 exec 5>>config.log
14090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14091 # would make configure fail if this is the last instruction.
14092 $ac_cs_success || { (exit 1); exit 1; }
14097 #XXX compatability...
14098 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14100 if test -n "$aros_shared_cflags" ; then
14101 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14102 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg