enable boot time usb support by default
[AROS.git] / configure
blobd5be332c359bdfc5ff68acb9bffc03ee535ebaad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="mmakefile"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 gcc_target_cpu
640 ignore_undefined_symbols
641 aros_modules_debug
642 aros_stack_debug
643 aros_mungwall_debug
644 aros_debug
645 ENABLE_X11
646 KERNEL_DBUS_INCLUDES
647 KERNEL_DBUS_KOBJ
648 DBUS_LIBFLAGS
649 DBUS_CFLAGS
650 ENABLE_DBUS
651 aros_nesting_supervisor
652 aros_palm_debug_hack
653 aros_serial_debug
654 aros_bochs_hack
655 aros_host_sdl_libs
656 aros_host_sdl_cflags
657 aros_host_x11_libdirs
658 aros_host_x11_includes
659 DO_VIDMODE_SUPPORT
660 DO_XSHM_SUPPORT
661 aros_default_wbdepth
662 aros_default_wbheight
663 aros_default_wbwidth
664 sdl_hidd_target
665 x11_hidd_target
666 aros_target_strip_flags
667 aros_target_genmap
668 aros_debug_ldflags
669 aros_debug_aflags
670 aros_debug_cflags
671 aros_kernel_ldflags
672 aros_kernel_cflags
673 aros_shared_ldflags
674 aros_shared_aflags
675 aros_shared_cflags
676 aros_config_ldflags
677 aros_config_aflags
678 aros_config_cflags
679 aros_arch_libs
680 aros_compiler_libs
681 aros_object_format
682 aros_shared_ld
683 aros_shared_default
684 aros_target_nm
685 aros_target_strip
686 aros_target_objcopy
687 aros_target_objdump
688 aros_target_cc_path
689 aros_target_cc_includes
690 orig_target_ld
691 aros_target_as
692 orig_target_cc
693 aros_kernel_nm
694 aros_target_ranlib
695 aros_target_ar
696 aros_target_incl
697 aros_target_suffix
698 aros_target_variant
699 aros_target_cpu
700 aros_target_arch
701 aros_target_bootloader
702 aros_target_iconset
703 aros_target_guitheme
704 aros_tools_dir
705 aros_host_lib_suffix
706 aros_host_exe_suffix
707 aros_host_mkargs
708 aros_host_mkdep
709 aros_host_debug
710 aros_host_ldflags
711 aros_host_cflags
712 aros_host_make
713 aros_host_cc
714 aros_host_cpu
715 aros_host_arch
716 aros_cc_pre
717 AROS_PORTSSRCDIR
718 SRCDIR
719 AROS_BUILDDIR_NATIVE
720 AROS_BUILDDIR
721 aros_flavour_uc
722 aros_flavour
723 aros_cpu
724 aros_arch
725 SDL_LIBS
726 SDL_CFLAGS
727 SDL_CONFIG
728 XMKMF
729 aros_cflags_iquote_end
730 aros_cflags_iquote
731 kernel_cflags_iquote_end
732 kernel_cflags_iquote
733 host_cflags_iquote_end
734 host_cflags_iquote
735 aros_target_nostdlib_ldflags
736 aros_target_detach_ldflags
737 aros_target_nix_ldflags
738 aros_target_nostartup_ldflags
739 aros_target_nostdinc_cflags
740 aros_kernel_rescomp
741 aros_target_strip_ln
742 aros_target_ranlib_ln
743 aros_target_objdump_ln
744 aros_target_objcopy_ln
745 aros_target_nm_ln
746 aros_target_ar_ln
747 aros_kernel_ld
748 aros_target_as_ln
749 aros_target_ld
750 aros_target_cc
751 aros_kernel_cc
752 CCACHE
753 DISTCC
754 LIBOBJS
755 EGREP
756 GREP
758 TEST
761 pkgpyexecdir
762 pyexecdir
763 pkgpythondir
764 pythondir
765 PYTHON_PLATFORM
766 PYTHON_EXEC_PREFIX
767 PYTHON_PREFIX
768 PYTHON_VERSION
769 PYTHON
770 CHMOD
772 PPMTOILBM
773 PNGTOPNM
774 FLEX
775 BISON
778 UNIQ
779 SORT
780 TOUCH
781 MKDIR
782 ECHO
786 aros_host_strip
787 aros_host_ranlib
788 aros_host_ar
789 aros_host_automake
790 aros_host_autoheader
791 aros_host_autoconf
792 aros_host_aclocal
793 aros_host_ld
794 MMAKE
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 target_alias
813 host_alias
814 build_alias
815 LIBS
816 ECHO_T
817 ECHO_N
818 ECHO_C
819 DEFS
820 mandir
821 localedir
822 libdir
823 psdir
824 pdfdir
825 dvidir
826 htmldir
827 infodir
828 docdir
829 oldincludedir
830 includedir
831 localstatedir
832 sharedstatedir
833 sysconfdir
834 datadir
835 datarootdir
836 libexecdir
837 sbindir
838 bindir
839 program_transform_name
840 prefix
841 exec_prefix
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_build_type
853 enable_debug
854 enable_crosstools
855 enable_distcc
856 enable_ccache
857 with_optimization
858 enable_target_variant
859 with_portssources
860 with_bootloader
861 with_iconset
862 with_theme
863 enable_includes
864 with_resolution
865 enable_bochs_hack
866 with_serial_debug
867 enable_palm_debug_hack
868 enable_nesting_supervisor
869 enable_x11_hidd
870 with_x
871 enable_x11_shm
872 enable_x11_vidmode
873 enable_sdl_hidd
874 with_sdl_prefix
875 with_sdl_exec_prefix
876 enable_sdltest
877 enable_dbus
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
888 XMKMF'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
939 ac_prev=
940 ac_dashdash=
941 for ac_option
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
950 case $ac_option in
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *) ac_optarg=yes ;;
953 esac
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
959 ac_dashdash=yes ;;
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
978 --config-cache | -C)
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=no ;;
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1278 Try \`$0 --help' for more information." >&2
1279 { (exit 1); exit 1; }; }
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1286 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1287 { (exit 1); exit 1; }; }
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 esac
1300 done
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1305 { (exit 1); exit 1; }; }
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1312 { (exit 1); exit 1; }; } ;;
1313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 esac
1317 # Check all directory arguments for consistency.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1323 eval ac_val=\$$ac_var
1324 # Remove trailing slashes.
1325 case $ac_val in
1326 */ )
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1329 esac
1330 # Be sure to have absolute directory names.
1331 case $ac_val in
1332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 esac
1335 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1336 { (exit 1); exit 1; }; }
1337 done
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1351 If a cross compiler is detected then cross compile mode will be used." >&2
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360 test "$silent" = yes && exec 6>/dev/null
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1367 { (exit 1); exit 1; }; }
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1370 { (exit 1); exit 1; }; }
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1410 { (exit 1); exit 1; }; }
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1415 { (exit 1); exit 1; }; }
1416 pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432 done
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441 \`configure' configures this package to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1450 Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 [PREFIX]
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494 _ACEOF
1496 cat <<\_ACEOF
1498 X features:
1499 --x-includes=DIR X include files are in DIR
1500 --x-libraries=DIR X library files are in DIR
1502 System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1508 if test -n "$ac_init_help"; then
1510 cat <<\_ACEOF
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-build-type=TYPE
1517 Select the build type. Available types are:
1518 personal, nightly, snapshot, milestone, release. Do
1519 NOT use this option unless you know what you are
1520 doing! (default=personal)
1521 --enable-debug=list Enable different types of debug. Commas or
1522 whitespaces can be used to separate the items in the
1523 list. Available types of debug are: all, none,
1524 messages, stack, mungwall, modules, symbols. If no
1525 list is provided then "all" is assumed.
1526 (default=none)
1527 --enable-crosstools Build cross-compiler toolchains if necessary
1528 (default=no).
1529 --enable-distcc Use distcc as a front end to the compiler
1530 (default=no).
1531 --enable-ccache Use ccache as a front end to the compiler
1532 (default=no).
1533 --enable-target-variant=NAME
1534 Enable a specific target variant(default=none)
1535 --enable-includes=dir Alternative system include directory
1536 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1537 (default=no)
1538 --enable-palm-debug-hack
1539 Enable palm debug output hack in palm native
1540 (default=no)
1541 --enable-nesting-supervisor
1542 Enable nesting supervisor support in unix
1543 (default=no)
1544 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1545 --enable-x11-shm use X11 shared memory (default=auto)
1546 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1547 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1548 --disable-sdltest Do not try to compile and run a test SDL program
1549 --enable-dbus Enable DBUS support via dbus.library (default=no)
1551 Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-optimization=FLAGS
1555 Use optimization flags FLAGS (default=-O2).
1556 --with-portssources=DIR Where to download sourcecode for external ports
1557 --with-bootloader=NAME Use a specific bootloader
1558 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1559 --with-theme=NAME Use a specific GUI Theme
1560 --with-resolution=XRESxYRESxDEPTH
1561 Default resolution of the initial WorkbenchScreen
1562 --with-serial-debug Enable serial debug output in native (default=no)
1563 --with-x use the X Window System
1564 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1565 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CPP C preprocessor
1576 XMKMF Path to xmkmf, Makefile generator for X Window System
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1581 _ACEOF
1582 ac_status=$?
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 esac
1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
1633 else
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 configure
1644 generated by GNU Autoconf 2.63
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1657 It was created by $as_me, which was
1658 generated by GNU Autoconf 2.63. Invocation command line was
1660 $ $0 $@
1662 _ACEOF
1663 exec 5>>config.log
1665 cat <<_ASUNAME
1666 ## --------- ##
1667 ## Platform. ##
1668 ## --------- ##
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1687 _ASUNAME
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 $as_echo "PATH: $as_dir"
1695 done
1696 IFS=$as_save_IFS
1698 } >&5
1700 cat >&5 <<_ACEOF
1703 ## ----------- ##
1704 ## Core tests. ##
1705 ## ----------- ##
1707 _ACEOF
1710 # Keep a trace of the command line.
1711 # Strip out --no-create and --no-recursion so they do not pile up.
1712 # Strip out --silent because we don't want to record it for future runs.
1713 # Also quote any args containing shell meta-characters.
1714 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 ac_must_keep_next=false
1719 for ac_pass in 1 2
1721 for ac_arg
1723 case $ac_arg in
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1727 continue ;;
1728 *\'*)
1729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 esac
1731 case $ac_pass in
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
1736 ac_must_keep_next=false # Got value, back to normal.
1737 else
1738 case $ac_arg in
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 esac
1747 -* ) ac_must_keep_next=true ;;
1748 esac
1750 ac_configure_args="$ac_configure_args '$ac_arg'"
1752 esac
1753 done
1754 done
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1758 # When interrupted or exit'd, cleanup temporary files, and complete
1759 # config.log. We remove comments because anyway the quotes in there
1760 # would cause problems or look ugly.
1761 # WARNING: Use '\'' to represent an apostrophe within the trap.
1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1763 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1766 echo
1768 cat <<\_ASBOX
1769 ## ---------------- ##
1770 ## Cache variables. ##
1771 ## ---------------- ##
1772 _ASBOX
1773 echo
1774 # The following way of writing the cache mishandles newlines in values,
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in #(
1779 *${as_nl}*)
1780 case $ac_var in #(
1781 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1783 esac
1784 case $ac_var in #(
1785 _ | IFS | as_nl) ;; #(
1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1787 *) $as_unset $ac_var ;;
1788 esac ;;
1789 esac
1790 done
1791 (set) 2>&1 |
1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793 *${as_nl}ac_space=\ *)
1794 sed -n \
1795 "s/'\''/'\''\\\\'\'''\''/g;
1796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 ;; #(
1799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801 esac |
1802 sort
1804 echo
1806 cat <<\_ASBOX
1807 ## ----------------- ##
1808 ## Output variables. ##
1809 ## ----------------- ##
1810 _ASBOX
1811 echo
1812 for ac_var in $ac_subst_vars
1814 eval ac_val=\$$ac_var
1815 case $ac_val in
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 esac
1818 $as_echo "$ac_var='\''$ac_val'\''"
1819 done | sort
1820 echo
1822 if test -n "$ac_subst_files"; then
1823 cat <<\_ASBOX
1824 ## ------------------- ##
1825 ## File substitutions. ##
1826 ## ------------------- ##
1827 _ASBOX
1828 echo
1829 for ac_var in $ac_subst_files
1831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 $as_echo "$ac_var='\''$ac_val'\''"
1836 done | sort
1837 echo
1840 if test -s confdefs.h; then
1841 cat <<\_ASBOX
1842 ## ----------- ##
1843 ## confdefs.h. ##
1844 ## ----------- ##
1845 _ASBOX
1846 echo
1847 cat confdefs.h
1848 echo
1850 test "$ac_signal" != 0 &&
1851 $as_echo "$as_me: caught signal $ac_signal"
1852 $as_echo "$as_me: exit $exit_status"
1853 } >&5
1854 rm -f core *.core core.conftest.* &&
1855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856 exit $exit_status
1858 for ac_signal in 1 2 13 15; do
1859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 done
1861 ac_signal=0
1863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1864 rm -f -r conftest* confdefs.h
1866 # Predefined preprocessor variables.
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 _ACEOF
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 _ACEOF
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 _ACEOF
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 _ACEOF
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890 _ACEOF
1893 # Let the site file select an alternate cache file if it wants to.
1894 # Prefer an explicitly selected file to automatically selected ones.
1895 ac_site_file1=NONE
1896 ac_site_file2=NONE
1897 if test -n "$CONFIG_SITE"; then
1898 ac_site_file1=$CONFIG_SITE
1899 elif test "x$prefix" != xNONE; then
1900 ac_site_file1=$prefix/share/config.site
1901 ac_site_file2=$prefix/etc/config.site
1902 else
1903 ac_site_file1=$ac_default_prefix/share/config.site
1904 ac_site_file2=$ac_default_prefix/etc/config.site
1906 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1908 test "x$ac_site_file" = xNONE && continue
1909 if test -r "$ac_site_file"; then
1910 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1913 . "$ac_site_file"
1915 done
1917 if test -r "$cache_file"; then
1918 # Some versions of bash will fail to source /dev/null (special
1919 # files actually), so we avoid doing that.
1920 if test -f "$cache_file"; then
1921 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 $as_echo "$as_me: loading cache $cache_file" >&6;}
1923 case $cache_file in
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1926 esac
1928 else
1929 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 $as_echo "$as_me: creating cache $cache_file" >&6;}
1931 >$cache_file
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1943 set,)
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,set)
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,);;
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 # differences in whitespace do not lead to failure.
1955 ac_old_val_w=`echo x $ac_old_val`
1956 ac_new_val_w=`echo x $ac_new_val`
1957 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960 ac_cache_corrupted=:
1961 else
1962 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1963 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1964 eval $ac_var=\$ac_old_val
1966 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1967 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1968 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1969 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1970 fi;;
1971 esac
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1974 case $ac_new_val in
1975 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 *) ac_arg=$ac_var=$ac_new_val ;;
1977 esac
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981 esac
1983 done
1984 if $ac_cache_corrupted; then
1985 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2010 ac_ext=c
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018 ac_aux_dir=
2019 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2020 if test -f "$ac_dir/install-sh"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2023 break
2024 elif test -f "$ac_dir/install.sh"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2027 break
2028 elif test -f "$ac_dir/shtool"; then
2029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 break
2033 done
2034 if test -z "$ac_aux_dir"; then
2035 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
2037 { (exit 1); exit 1; }; }
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050 # Check what host we are running on.
2051 # If a target is not suggested, we use this one.
2052 # Note that what we call a target, Autoconf calls a host.
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057 { (exit 1); exit 1; }; }
2059 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2060 $as_echo_n "checking build system type... " >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062 $as_echo_n "(cached) " >&6
2063 else
2064 ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070 { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2077 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 $as_echo "$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2080 *-*-*) ;;
2081 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2083 { (exit 1); exit 1; }; };;
2084 esac
2085 build=$ac_cv_build
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_build
2088 shift
2089 build_cpu=$1
2090 build_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 build_os=$*
2095 IFS=$ac_save_IFS
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2100 $as_echo_n "checking host system type... " >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102 $as_echo_n "(cached) " >&6
2103 else
2104 if test "x$host_alias" = x; then
2105 ac_cv_host=$ac_cv_build
2106 else
2107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 $as_echo "$ac_cv_host" >&6; }
2116 case $ac_cv_host in
2117 *-*-*) ;;
2118 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 host=$ac_cv_host
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_host
2125 shift
2126 host_cpu=$1
2127 host_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 host_os=$*
2132 IFS=$ac_save_IFS
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2137 # The AROS target is slightly different to the normal GNU style
2138 # format. We don't have the middle part, and we reverse the order
2139 # of the $(CPU) and $(OS) bits.
2141 # Don't strip the version of the target yet, it might be
2142 # useful on some systems.
2144 { $as_echo "$as_me:$LINENO: checking for AROS style target" >&5
2145 $as_echo_n "checking for AROS style target... " >&6; }
2147 if test "$target" = "NONE" ; then
2148 target=$host_os-$host_cpu
2149 cross_compile=no
2150 else
2151 if test "$target" = "" ; then
2152 target=$host_os-$host_cpu
2153 cross_compile=no
2154 else
2155 cross_compile=yes
2158 { $as_echo "$as_me:$LINENO: result: $target" >&5
2159 $as_echo "$target" >&6; }
2161 #don't know where else to put this...
2162 { $as_echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2163 $as_echo_n "checking Building AROS in .. ... " >&6; }
2164 AROS_BUILDDIR=$PWD
2165 { $as_echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2166 $as_echo "$AROS_BUILDDIR" >&6; }
2167 AROS_BUILDDIR_NATIVE=$AROS_BUILDDIR
2169 { $as_echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2170 $as_echo_n "checking AROS Source in .. ... " >&6; }
2171 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2172 SRCDIR=${srcpwd}
2173 { $as_echo "$as_me:$LINENO: result: $SRCDIR" >&5
2174 $as_echo "$SRCDIR" >&6; }
2176 # Parse the target field into something useful.
2178 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2179 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2182 aros_default_wbwidth=800
2183 aros_default_wbheight=600
2184 aros_default_wbdepth=4
2187 # The first step is to find the host binaries.
2188 # Check for a compiler.
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 if test -n "$ac_tool_prefix"; then
2195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 $as_echo_n "checking for $ac_word... " >&6; }
2199 if test "${ac_cv_prog_CC+set}" = set; then
2200 $as_echo_n "(cached) " >&6
2201 else
2202 if test -n "$CC"; then
2203 ac_cv_prog_CC="$CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2218 IFS=$as_save_IFS
2222 CC=$ac_cv_prog_CC
2223 if test -n "$CC"; then
2224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2225 $as_echo "$CC" >&6; }
2226 else
2227 { $as_echo "$as_me:$LINENO: result: no" >&5
2228 $as_echo "no" >&6; }
2233 if test -z "$ac_cv_prog_CC"; then
2234 ac_ct_CC=$CC
2235 # Extract the first word of "gcc", so it can be a program name with args.
2236 set dummy gcc; ac_word=$2
2237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 $as_echo_n "checking for $ac_word... " >&6; }
2239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240 $as_echo_n "(cached) " >&6
2241 else
2242 if test -n "$ac_ct_CC"; then
2243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244 else
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_ac_ct_CC="gcc"
2253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2256 done
2257 done
2258 IFS=$as_save_IFS
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 $as_echo "$ac_ct_CC" >&6; }
2266 else
2267 { $as_echo "$as_me:$LINENO: result: no" >&5
2268 $as_echo "no" >&6; }
2271 if test "x$ac_ct_CC" = x; then
2272 CC=""
2273 else
2274 case $cross_compiling:$ac_tool_warned in
2275 yes:)
2276 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2278 ac_tool_warned=yes ;;
2279 esac
2280 CC=$ac_ct_CC
2282 else
2283 CC="$ac_cv_prog_CC"
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2289 set dummy ${ac_tool_prefix}cc; ac_word=$2
2290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="${ac_tool_prefix}cc"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2309 done
2310 done
2311 IFS=$as_save_IFS
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2319 else
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2327 if test -z "$CC"; then
2328 # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 $as_echo_n "checking for $ac_word... " >&6; }
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 $as_echo_n "(cached) " >&6
2334 else
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338 ac_prog_rejected=no
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347 ac_prog_rejected=yes
2348 continue
2350 ac_cv_prog_CC="cc"
2351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2358 if test $ac_prog_rejected = yes; then
2359 # We found a bogon in the path, so make sure we never use it.
2360 set dummy $ac_cv_prog_CC
2361 shift
2362 if test $# != 0; then
2363 # We chose a different compiler from the bogus one.
2364 # However, it has the same basename, so the bogon will be chosen
2365 # first if we set CC to just the basename; use the full file name.
2366 shift
2367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2375 $as_echo "$CC" >&6; }
2376 else
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2383 if test -z "$CC"; then
2384 if test -n "$ac_tool_prefix"; then
2385 for ac_prog in cl.exe
2387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then
2392 $as_echo_n "(cached) " >&6
2393 else
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2408 done
2409 done
2410 IFS=$as_save_IFS
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2417 $as_echo "$CC" >&6; }
2418 else
2419 { $as_echo "$as_me:$LINENO: result: no" >&5
2420 $as_echo "no" >&6; }
2424 test -n "$CC" && break
2425 done
2427 if test -z "$CC"; then
2428 ac_ct_CC=$CC
2429 for ac_prog in cl.exe
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="$ac_prog"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2452 done
2453 done
2454 IFS=$as_save_IFS
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 $as_echo "$ac_ct_CC" >&6; }
2462 else
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464 $as_echo "no" >&6; }
2468 test -n "$ac_ct_CC" && break
2469 done
2471 if test "x$ac_ct_CC" = x; then
2472 CC=""
2473 else
2474 case $cross_compiling:$ac_tool_warned in
2475 yes:)
2476 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2478 ac_tool_warned=yes ;;
2479 esac
2480 CC=$ac_ct_CC
2487 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." >&5
2491 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }; }
2495 # Provide some information about the compiler.
2496 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2497 set X $ac_compile
2498 ac_compiler=$2
2499 { (ac_try="$ac_compiler --version >&5"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2505 $as_echo "$ac_try_echo") >&5
2506 (eval "$ac_compiler --version >&5") 2>&5
2507 ac_status=$?
2508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (ac_try="$ac_compiler -v >&5"
2511 case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2516 $as_echo "$ac_try_echo") >&5
2517 (eval "$ac_compiler -v >&5") 2>&5
2518 ac_status=$?
2519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (ac_try="$ac_compiler -V >&5"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2527 $as_echo "$ac_try_echo") >&5
2528 (eval "$ac_compiler -V >&5") 2>&5
2529 ac_status=$?
2530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2541 main ()
2545 return 0;
2547 _ACEOF
2548 ac_clean_files_save=$ac_clean_files
2549 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2550 # Try to create an executable without -o first, disregard a.out.
2551 # It will help us diagnose broken compilers, and finding out an intuition
2552 # of exeext.
2553 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2554 $as_echo_n "checking for C compiler default output file name... " >&6; }
2555 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2557 # The possible output files:
2558 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2560 ac_rmfiles=
2561 for ac_file in $ac_files
2563 case $ac_file in
2564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2566 esac
2567 done
2568 rm -f $ac_rmfiles
2570 if { (ac_try="$ac_link_default"
2571 case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2576 $as_echo "$ac_try_echo") >&5
2577 (eval "$ac_link_default") 2>&5
2578 ac_status=$?
2579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; then
2581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2584 # so that the user can short-circuit this test for compilers unknown to
2585 # Autoconf.
2586 for ac_file in $ac_files ''
2588 test -f "$ac_file" || continue
2589 case $ac_file in
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2592 [ab].out )
2593 # We found the default executable, but exeext='' is most
2594 # certainly right.
2595 break;;
2596 *.* )
2597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2598 then :; else
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601 # We set ac_cv_exeext here because the later test for it is not
2602 # safe: cross compilers may not add the suffix if given an `-o'
2603 # argument, so we may need to know it at that point already.
2604 # Even if this section looks crufty: it has the advantage of
2605 # actually working.
2606 break;;
2608 break;;
2609 esac
2610 done
2611 test "$ac_cv_exeext" = no && ac_cv_exeext=
2613 else
2614 ac_file=''
2617 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2618 $as_echo "$ac_file" >&6; }
2619 if test -z "$ac_file"; then
2620 $as_echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2626 See \`config.log' for more details." >&5
2627 $as_echo "$as_me: error: C compiler cannot create executables
2628 See \`config.log' for more details." >&2;}
2629 { (exit 77); exit 77; }; }; }
2632 ac_exeext=$ac_cv_exeext
2634 # Check that the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2637 $as_echo_n "checking whether the C compiler works... " >&6; }
2638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2639 # If not cross compiling, check that we can run a simple program.
2640 if test "$cross_compiling" != yes; then
2641 if { ac_try='./$ac_file'
2642 { (case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2647 $as_echo "$ac_try_echo") >&5
2648 (eval "$ac_try") 2>&5
2649 ac_status=$?
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 cross_compiling=no
2653 else
2654 if test "$cross_compiling" = maybe; then
2655 cross_compiling=yes
2656 else
2657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2660 If you meant to cross compile, use \`--host'.
2661 See \`config.log' for more details." >&5
2662 $as_echo "$as_me: error: cannot run C compiled programs.
2663 If you meant to cross compile, use \`--host'.
2664 See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }; }
2669 { $as_echo "$as_me:$LINENO: result: yes" >&5
2670 $as_echo "yes" >&6; }
2672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2673 ac_clean_files=$ac_clean_files_save
2674 # Check that the compiler produces executables we can run. If not, either
2675 # the compiler is broken, or we cross compile.
2676 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2677 $as_echo_n "checking whether we are cross compiling... " >&6; }
2678 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2679 $as_echo "$cross_compiling" >&6; }
2681 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2682 $as_echo_n "checking for suffix of executables... " >&6; }
2683 if { (ac_try="$ac_link"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689 $as_echo "$ac_try_echo") >&5
2690 (eval "$ac_link") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2695 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2696 # work properly (i.e., refer to `conftest.exe'), while it won't with
2697 # `rm'.
2698 for ac_file in conftest.exe conftest conftest.*; do
2699 test -f "$ac_file" || continue
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 break;;
2704 * ) break;;
2705 esac
2706 done
2707 else
2708 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2711 See \`config.log' for more details." >&5
2712 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }; }
2717 rm -f conftest$ac_cv_exeext
2718 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2719 $as_echo "$ac_cv_exeext" >&6; }
2721 rm -f conftest.$ac_ext
2722 EXEEXT=$ac_cv_exeext
2723 ac_exeext=$EXEEXT
2724 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2725 $as_echo_n "checking for suffix of object files... " >&6; }
2726 if test "${ac_cv_objext+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2728 else
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2737 main ()
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.o conftest.obj
2745 if { (ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2751 $as_echo "$ac_try_echo") >&5
2752 (eval "$ac_compile") 2>&5
2753 ac_status=$?
2754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; then
2756 for ac_file in conftest.o conftest.obj conftest.*; do
2757 test -f "$ac_file" || continue;
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2760 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2761 break;;
2762 esac
2763 done
2764 else
2765 $as_echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details." >&5
2772 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2773 See \`config.log' for more details." >&2;}
2774 { (exit 1); exit 1; }; }; }
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2779 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2780 $as_echo "$ac_cv_objext" >&6; }
2781 OBJEXT=$ac_cv_objext
2782 ac_objext=$OBJEXT
2783 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2796 main ()
2798 #ifndef __GNUC__
2799 choke me
2800 #endif
2803 return 0;
2805 _ACEOF
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813 $as_echo "$ac_try_echo") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2824 ac_compiler_gnu=yes
2825 else
2826 $as_echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 ac_compiler_gnu=no
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2836 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2838 if test $ac_compiler_gnu = yes; then
2839 GCC=yes
2840 else
2841 GCC=
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2847 if test "${ac_cv_prog_cc_g+set}" = set; then
2848 $as_echo_n "(cached) " >&6
2849 else
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2852 ac_cv_prog_cc_g=no
2853 CFLAGS="-g"
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 main ()
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2876 $as_echo "$ac_try_echo") >&5
2877 (eval "$ac_compile") 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && {
2884 test -z "$ac_c_werror_flag" ||
2885 test ! -s conftest.err
2886 } && test -s conftest.$ac_objext; then
2887 ac_cv_prog_cc_g=yes
2888 else
2889 $as_echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 CFLAGS=""
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2901 main ()
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2915 $as_echo "$ac_try_echo") >&5
2916 (eval "$ac_compile") 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } && {
2923 test -z "$ac_c_werror_flag" ||
2924 test ! -s conftest.err
2925 } && test -s conftest.$ac_objext; then
2927 else
2928 $as_echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 ac_c_werror_flag=$ac_save_c_werror_flag
2932 CFLAGS="-g"
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 main ()
2945 return 0;
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2955 $as_echo "$ac_try_echo") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } && {
2963 test -z "$ac_c_werror_flag" ||
2964 test ! -s conftest.err
2965 } && test -s conftest.$ac_objext; then
2966 ac_cv_prog_cc_g=yes
2967 else
2968 $as_echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_c_werror_flag=$ac_save_c_werror_flag
2983 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2984 $as_echo "$ac_cv_prog_cc_g" >&6; }
2985 if test "$ac_test_CFLAGS" = set; then
2986 CFLAGS=$ac_save_CFLAGS
2987 elif test $ac_cv_prog_cc_g = yes; then
2988 if test "$GCC" = yes; then
2989 CFLAGS="-g -O2"
2990 else
2991 CFLAGS="-g"
2993 else
2994 if test "$GCC" = yes; then
2995 CFLAGS="-O2"
2996 else
2997 CFLAGS=
3000 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3002 if test "${ac_cv_prog_cc_c89+set}" = set; then
3003 $as_echo_n "(cached) " >&6
3004 else
3005 ac_cv_prog_cc_c89=no
3006 ac_save_CC=$CC
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 #include <stdarg.h>
3014 #include <stdio.h>
3015 #include <sys/types.h>
3016 #include <sys/stat.h>
3017 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3018 struct buf { int x; };
3019 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3020 static char *e (p, i)
3021 char **p;
3022 int i;
3024 return p[i];
3026 static char *f (char * (*g) (char **, int), char **p, ...)
3028 char *s;
3029 va_list v;
3030 va_start (v,p);
3031 s = g (p, va_arg (v,int));
3032 va_end (v);
3033 return s;
3036 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3037 function prototypes and stuff, but not '\xHH' hex character constants.
3038 These don't provoke an error unfortunately, instead are silently treated
3039 as 'x'. The following induces an error, until -std is added to get
3040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3041 array size at least. It's necessary to write '\x00'==0 to get something
3042 that's true only with -std. */
3043 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3045 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3046 inside strings and character constants. */
3047 #define FOO(x) 'x'
3048 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3050 int test (int i, double x);
3051 struct s1 {int (*f) (int a);};
3052 struct s2 {int (*f) (double a);};
3053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3054 int argc;
3055 char **argv;
3057 main ()
3059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3061 return 0;
3063 _ACEOF
3064 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3067 CC="$ac_save_CC $ac_arg"
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3086 ac_cv_prog_cc_c89=$ac_arg
3087 else
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f core conftest.err conftest.$ac_objext
3095 test "x$ac_cv_prog_cc_c89" != "xno" && break
3096 done
3097 rm -f conftest.$ac_ext
3098 CC=$ac_save_CC
3101 # AC_CACHE_VAL
3102 case "x$ac_cv_prog_cc_c89" in
3104 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3105 $as_echo "none needed" >&6; } ;;
3106 xno)
3107 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3108 $as_echo "unsupported" >&6; } ;;
3110 CC="$CC $ac_cv_prog_cc_c89"
3111 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3112 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3113 esac
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 case $ac_cv_prog_cc_stdc in
3123 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3124 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3125 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3126 if test "${ac_cv_prog_cc_c99+set}" = set; then
3127 $as_echo_n "(cached) " >&6
3128 else
3129 ac_cv_prog_cc_c99=no
3130 ac_save_CC=$CC
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <stdarg.h>
3138 #include <stdbool.h>
3139 #include <stdlib.h>
3140 #include <wchar.h>
3141 #include <stdio.h>
3143 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3144 #define debug(...) fprintf (stderr, __VA_ARGS__)
3145 #define showlist(...) puts (#__VA_ARGS__)
3146 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3147 static void
3148 test_varargs_macros (void)
3150 int x = 1234;
3151 int y = 5678;
3152 debug ("Flag");
3153 debug ("X = %d\n", x);
3154 showlist (The first, second, and third items.);
3155 report (x>y, "x is %d but y is %d", x, y);
3158 // Check long long types.
3159 #define BIG64 18446744073709551615ull
3160 #define BIG32 4294967295ul
3161 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3162 #if !BIG_OK
3163 your preprocessor is broken;
3164 #endif
3165 #if BIG_OK
3166 #else
3167 your preprocessor is broken;
3168 #endif
3169 static long long int bignum = -9223372036854775807LL;
3170 static unsigned long long int ubignum = BIG64;
3172 struct incomplete_array
3174 int datasize;
3175 double data[];
3178 struct named_init {
3179 int number;
3180 const wchar_t *name;
3181 double average;
3184 typedef const char *ccp;
3186 static inline int
3187 test_restrict (ccp restrict text)
3189 // See if C++-style comments work.
3190 // Iterate through items via the restricted pointer.
3191 // Also check for declarations in for loops.
3192 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3193 continue;
3194 return 0;
3197 // Check varargs and va_copy.
3198 static void
3199 test_varargs (const char *format, ...)
3201 va_list args;
3202 va_start (args, format);
3203 va_list args_copy;
3204 va_copy (args_copy, args);
3206 const char *str;
3207 int number;
3208 float fnumber;
3210 while (*format)
3212 switch (*format++)
3214 case 's': // string
3215 str = va_arg (args_copy, const char *);
3216 break;
3217 case 'd': // int
3218 number = va_arg (args_copy, int);
3219 break;
3220 case 'f': // float
3221 fnumber = va_arg (args_copy, double);
3222 break;
3223 default:
3224 break;
3227 va_end (args_copy);
3228 va_end (args);
3232 main ()
3235 // Check bool.
3236 _Bool success = false;
3238 // Check restrict.
3239 if (test_restrict ("String literal") == 0)
3240 success = true;
3241 char *restrict newvar = "Another string";
3243 // Check varargs.
3244 test_varargs ("s, d' f .", "string", 65, 34.234);
3245 test_varargs_macros ();
3247 // Check flexible array members.
3248 struct incomplete_array *ia =
3249 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3250 ia->datasize = 10;
3251 for (int i = 0; i < ia->datasize; ++i)
3252 ia->data[i] = i * 1.234;
3254 // Check named initializers.
3255 struct named_init ni = {
3256 .number = 34,
3257 .name = L"Test wide string",
3258 .average = 543.34343,
3261 ni.number = 58;
3263 int dynamic_array[ni.number];
3264 dynamic_array[ni.number - 1] = 543;
3266 // work around unused variable warnings
3267 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3268 || dynamic_array[ni.number - 1] != 543);
3271 return 0;
3273 _ACEOF
3274 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3276 CC="$ac_save_CC $ac_arg"
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_c_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cc_c99=$ac_arg
3296 else
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3303 rm -f core conftest.err conftest.$ac_objext
3304 test "x$ac_cv_prog_cc_c99" != "xno" && break
3305 done
3306 rm -f conftest.$ac_ext
3307 CC=$ac_save_CC
3310 # AC_CACHE_VAL
3311 case "x$ac_cv_prog_cc_c99" in
3313 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3314 $as_echo "none needed" >&6; } ;;
3315 xno)
3316 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3317 $as_echo "unsupported" >&6; } ;;
3319 CC="$CC $ac_cv_prog_cc_c99"
3320 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3321 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3322 esac
3323 if test "x$ac_cv_prog_cc_c99" != xno; then
3324 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3325 else
3326 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if test "${ac_cv_prog_cc_c89+set}" = set; then
3329 $as_echo_n "(cached) " >&6
3330 else
3331 ac_cv_prog_cc_c89=no
3332 ac_save_CC=$CC
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3350 return p[i];
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373 #define FOO(x) 'x'
3374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376 int test (int i, double x);
3377 struct s1 {int (*f) (int a);};
3378 struct s2 {int (*f) (double a);};
3379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 int argc;
3381 char **argv;
3383 main ()
3385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 return 0;
3389 _ACEOF
3390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393 CC="$ac_save_CC $ac_arg"
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401 $as_echo "$ac_try_echo") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_prog_cc_c89=$ac_arg
3413 else
3414 $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3420 rm -f core conftest.err conftest.$ac_objext
3421 test "x$ac_cv_prog_cc_c89" != "xno" && break
3422 done
3423 rm -f conftest.$ac_ext
3424 CC=$ac_save_CC
3427 # AC_CACHE_VAL
3428 case "x$ac_cv_prog_cc_c89" in
3430 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3431 $as_echo "none needed" >&6; } ;;
3432 xno)
3433 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3434 $as_echo "unsupported" >&6; } ;;
3436 CC="$CC $ac_cv_prog_cc_c89"
3437 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3438 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3439 esac
3440 if test "x$ac_cv_prog_cc_c89" != xno; then
3441 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3442 else
3443 ac_cv_prog_cc_stdc=no
3450 esac
3451 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3452 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3453 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3457 case $ac_cv_prog_cc_stdc in
3458 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3459 $as_echo "unsupported" >&6; } ;;
3460 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3463 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3464 esac
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3474 # On Suns, sometimes $CPP names a directory.
3475 if test -n "$CPP" && test -d "$CPP"; then
3476 CPP=
3478 if test -z "$CPP"; then
3479 if test "${ac_cv_prog_CPP+set}" = set; then
3480 $as_echo_n "(cached) " >&6
3481 else
3482 # Double quotes because CPP needs to be expanded
3483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3488 # Use a header file that comes with gcc, so configuring glibc
3489 # with a fresh cross-compiler works.
3490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491 # <limits.h> exists even on freestanding compilers.
3492 # On the NeXT, cc -E runs the code through the compiler's parser,
3493 # not just through cpp. "Syntax error" is here to catch this case.
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505 Syntax error
3506 _ACEOF
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513 $as_echo "$ac_try_echo") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 }; then
3525 else
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Broken: fails on valid input.
3530 continue
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3551 $as_echo "$ac_try_echo") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null && {
3559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 }; then
3562 # Broken: success on invalid input.
3563 continue
3564 else
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 # Passes both tests.
3569 ac_preproc_ok=:
3570 break
3573 rm -f conftest.err conftest.$ac_ext
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3579 break
3582 done
3583 ac_cv_prog_CPP=$CPP
3586 CPP=$ac_cv_prog_CPP
3587 else
3588 ac_cv_prog_CPP=$CPP
3590 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3591 $as_echo "$CPP" >&6; }
3592 ac_preproc_ok=false
3593 for ac_c_preproc_warn_flag in '' yes
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error" is here to catch this case.
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #ifdef __STDC__
3608 # include <limits.h>
3609 #else
3610 # include <assert.h>
3611 #endif
3612 Syntax error
3613 _ACEOF
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null && {
3628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 }; then
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 # Broken: fails on valid input.
3637 continue
3640 rm -f conftest.err conftest.$ac_ext
3642 # OK, works on sane cases. Now check whether nonexistent headers
3643 # can be detected and how.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <ac_nonexistent.h>
3651 _ACEOF
3652 if { (ac_try="$ac_cpp conftest.$ac_ext"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3658 $as_echo "$ac_try_echo") >&5
3659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } >/dev/null && {
3666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3667 test ! -s conftest.err
3668 }; then
3669 # Broken: success on invalid input.
3670 continue
3671 else
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 # Passes both tests.
3676 ac_preproc_ok=:
3677 break
3680 rm -f conftest.err conftest.$ac_ext
3682 done
3683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3684 rm -f conftest.err conftest.$ac_ext
3685 if $ac_preproc_ok; then
3687 else
3688 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3691 See \`config.log' for more details." >&5
3692 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3693 See \`config.log' for more details." >&2;}
3694 { (exit 1); exit 1; }; }; }
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 # Check for a compatible awk
3705 for ac_prog in gawk nawk
3707 # Extract the first word of "$ac_prog", so it can be a program name with args.
3708 set dummy $ac_prog; ac_word=$2
3709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_AWK+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$AWK"; then
3715 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_AWK="$ac_prog"
3725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 AWK=$ac_cv_prog_AWK
3735 if test -n "$AWK"; then
3736 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3737 $as_echo "$AWK" >&6; }
3738 else
3739 { $as_echo "$as_me:$LINENO: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$AWK" && break
3745 done
3747 if test "$AWK" = ""; then
3748 { { $as_echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3749 $as_echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3750 { (exit 1); exit 1; }; }
3752 # Extract the first word of "mmake", so it can be a program name with args.
3753 set dummy mmake; ac_word=$2
3754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_MMAKE+set}" = set; then
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -n "$MMAKE"; then
3760 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_MMAKE="mmake "
3770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3773 done
3774 done
3775 IFS=$as_save_IFS
3779 MMAKE=$ac_cv_prog_MMAKE
3780 if test -n "$MMAKE"; then
3781 { $as_echo "$as_me:$LINENO: result: $MMAKE" >&5
3782 $as_echo "$MMAKE" >&6; }
3783 else
3784 { $as_echo "$as_me:$LINENO: result: no" >&5
3785 $as_echo "no" >&6; }
3790 # Perform some default variable assignments. Note all of these will be
3791 # Regenerated from the script, so there is no need to cache them.
3793 aros_host_cc="$CC"
3794 if test "$GCC" = "yes"; then
3795 aros_gcc_ld=`$CC -print-prog-name=ld`
3796 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3797 set dummy `basename $aros_gcc_ld`; ac_word=$2
3798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3801 $as_echo_n "(cached) " >&6
3802 else
3803 case $aros_host_ld in
3804 [\\/]* | ?:[\\/]*)
3805 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in `dirname $aros_gcc_ld`
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3819 done
3820 done
3821 IFS=$as_save_IFS
3824 esac
3826 aros_host_ld=$ac_cv_path_aros_host_ld
3827 if test -n "$aros_host_ld"; then
3828 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3829 $as_echo "$aros_host_ld" >&6; }
3830 else
3831 { $as_echo "$as_me:$LINENO: result: no" >&5
3832 $as_echo "no" >&6; }
3837 if test "$aros_host_ld" = ""; then
3838 # Extract the first word of "ld", so it can be a program name with args.
3839 set dummy ld; ac_word=$2
3840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844 else
3845 case $aros_host_ld in
3846 [\\/]* | ?:[\\/]*)
3847 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3861 done
3862 done
3863 IFS=$as_save_IFS
3866 esac
3868 aros_host_ld=$ac_cv_path_aros_host_ld
3869 if test -n "$aros_host_ld"; then
3870 { $as_echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3871 $as_echo "$aros_host_ld" >&6; }
3872 else
3873 { $as_echo "$as_me:$LINENO: result: no" >&5
3874 $as_echo "no" >&6; }
3879 if test "$aros_host_ld" = ""; then
3880 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3881 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3882 { (exit 1); exit 1; }; }
3884 aros_host_make="make"
3885 aros_host_cflags=$CFLAGS
3886 aros_host_ldflags=$LDFLAGS
3887 aros_host_debug="-g -O0"
3888 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3889 aros_host_mkargs="--no-print-directory"
3890 aros_host_incl="/usr/include"
3891 aros_host_exe_suffix="$EXEEXT"
3892 aros_host_lib_suffix=""
3894 for ac_prog in aclocal aclocal19 aclocal-1.9
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3901 $as_echo_n "(cached) " >&6
3902 else
3903 if test -n "$aros_host_aclocal"; then
3904 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_aros_host_aclocal="$ac_prog"
3914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3919 IFS=$as_save_IFS
3923 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3924 if test -n "$aros_host_aclocal"; then
3925 { $as_echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3926 $as_echo "$aros_host_aclocal" >&6; }
3927 else
3928 { $as_echo "$as_me:$LINENO: result: no" >&5
3929 $as_echo "no" >&6; }
3933 test -n "$aros_host_aclocal" && break
3934 done
3936 for ac_prog in autoconf autoconf259 autoconf253
3938 # Extract the first word of "$ac_prog", so it can be a program name with args.
3939 set dummy $ac_prog; ac_word=$2
3940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$aros_host_autoconf"; then
3946 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_aros_host_autoconf="$ac_prog"
3956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3965 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3966 if test -n "$aros_host_autoconf"; then
3967 { $as_echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3968 $as_echo "$aros_host_autoconf" >&6; }
3969 else
3970 { $as_echo "$as_me:$LINENO: result: no" >&5
3971 $as_echo "no" >&6; }
3975 test -n "$aros_host_autoconf" && break
3976 done
3978 for ac_prog in autoheader autoheader259 autoheader253
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$aros_host_autoheader"; then
3988 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_aros_host_autoheader="$ac_prog"
3998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4008 if test -n "$aros_host_autoheader"; then
4009 { $as_echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
4010 $as_echo "$aros_host_autoheader" >&6; }
4011 else
4012 { $as_echo "$as_me:$LINENO: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$aros_host_autoheader" && break
4018 done
4020 for ac_prog in automake automake19 automake-1.9
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$aros_host_automake"; then
4030 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_aros_host_automake="$ac_prog"
4040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 aros_host_automake=$ac_cv_prog_aros_host_automake
4050 if test -n "$aros_host_automake"; then
4051 { $as_echo "$as_me:$LINENO: result: $aros_host_automake" >&5
4052 $as_echo "$aros_host_automake" >&6; }
4053 else
4054 { $as_echo "$as_me:$LINENO: result: no" >&5
4055 $as_echo "no" >&6; }
4059 test -n "$aros_host_automake" && break
4060 done
4063 if test "$aros_host_aclocal" = ""; then
4064 { { $as_echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
4065 $as_echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
4066 { (exit 1); exit 1; }; }
4068 if test "$aros_host_automake" = ""; then
4069 { { $as_echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
4070 $as_echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
4071 { (exit 1); exit 1; }; }
4074 case "$aros_host_cc" in
4075 *gcc*)
4076 aros_host_cc_pipe="-pipe"
4078 icc)
4079 aros_host_cc_pipe=""
4082 aros_host_cc_pipe=""
4084 esac
4086 aros_target_cc_includes=""
4088 # This is the main host configuration section. It is where the host
4089 # can change the values of any variables it needs to change. We do
4090 # not look at anything that compiles to the target yet, we'll get
4091 # to that later.
4093 case "$host_os" in
4094 aros*)
4095 aros_host_arch="aros"
4096 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4097 case "$host_cpu" in
4098 *i?86*)
4099 aros_host_cpu="i386"
4101 *x86_64*)
4102 aros_host_cpu="x86_64"
4105 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4106 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4107 aros_host_cpu="$host_cpu"
4109 esac
4112 linux*)
4113 aros_host_arch="linux"
4114 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4115 case "$host_cpu" in
4116 *i?86*)
4117 aros_host_cpu="i386"
4119 *x86_64*)
4120 aros_host_cpu="x86_64"
4122 *m68k*)
4123 aros_host_cpu="m68k"
4125 *powerpc*)
4126 aros_host_cpu="ppc"
4129 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4130 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4131 aros_host_cpu="$host_cpu"
4133 esac
4136 freebsd*)
4137 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4138 aros_host_make="gmake"
4139 aros_host_arch="freebsd"
4140 aros_host_cpu="i386"
4142 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4145 case $host_os in
4146 freebsd[234]*)
4147 aros_object_format="elf_i386"
4151 aros_object_format="elf_i386_fbsd"
4153 esac
4157 darwin*)
4158 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4159 aros_host_arch="darwin"
4160 case "$host_cpu" in
4161 *i?86*)
4162 aros_host_cpu="i386"
4164 *powerpc*)
4165 aros_host_cpu="ppc"
4168 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4169 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4170 aros_host_cpu="$host_cpu"
4172 esac
4174 aros_host_ldflags="$aros_host_ldflags -liconv"
4178 dragonfly*)
4179 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4180 aros_host_make="gmake"
4181 aros_host_arch="dragonfly"
4182 case $host_cpu in
4183 *i?86*)
4184 aros_host_cpu="i386"
4186 *amd64*)
4187 aros_host_cpu="x86_64"
4190 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4191 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4192 aros_host_cpu="$host_cpu"
4194 esac
4197 netbsd*)
4198 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4199 aros_host_make="gmake"
4200 aros_host_arch="netbsd"
4201 case "$host_cpu" in
4202 *i?86*)
4203 aros_host_cpu="i386"
4205 *m68k*)
4206 aros_host_cpu="m68k"
4209 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4210 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4211 aros_host_cpu="$host_cpu"
4213 esac
4214 aros_host_lib_suffix=".0.0"
4217 openbsd*)
4218 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4219 aros_host_make="gmake"
4220 aros_host_arch="openbsd"
4221 case "$host_cpu" in
4222 *i?86*)
4223 aros_host_cpu="i386"
4226 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4227 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4228 aros_host_cpu="$host_cpu"
4230 esac
4233 solaris*)
4234 aros_host_arch="solaris"
4235 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4236 case "$host_cpu" in
4237 *i?86*)
4238 aros_host_cpu="i386"
4240 *sparc*)
4241 aros_host_cpu="sparc"
4244 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4245 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4246 aros_host_cpu="$host_cpu"
4248 esac
4251 morphos*)
4252 aros_host_arch="morphos"
4253 aros_host_cpu="ppc"
4256 amiga*)
4257 aros_host_arch="amiga"
4258 SORT="/gg/bin/sort"
4259 TEST="/gg/bin/test"
4260 UNIQ="/gg/bin/uniq"
4261 FOR="for"
4262 TOUCH="/gg/bin/touch"
4263 case "$host_cpu" in
4264 *m68k*)
4265 aros_host_cpu="m68k"
4267 *powerpc*)
4268 aros_host_cpu="ppc"
4271 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4272 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4273 aros_host_cpu="$host_cpu"
4275 esac
4278 cygwin*)
4279 aros_host_arch="cygwin"
4280 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4281 case "$host_cpu" in
4282 *i?86*)
4283 aros_host_cpu="i386"
4286 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4287 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4288 aros_host_cpu="$host_cpu"
4290 esac
4293 mingw32*)
4294 aros_host_arch="mingw32"
4295 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4296 AROS_BUILDDIR_NATIVE=`pwd -W`
4297 case "$host_cpu" in
4298 *i?86*)
4299 aros_host_cpu="i386"
4302 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4303 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4304 aros_host_cpu="$host_cpu"
4306 esac
4309 { { $as_echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4310 $as_echo "$as_me: error: Unsupported host architecture $host" >&2;}
4311 { (exit 1); exit 1; }; }
4313 esac
4315 # Extract the first word of "ar", so it can be a program name with args.
4316 set dummy ar; ac_word=$2
4317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$aros_host_ar"; then
4323 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_aros_host_ar="ar cr"
4333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 aros_host_ar=$ac_cv_prog_aros_host_ar
4343 if test -n "$aros_host_ar"; then
4344 { $as_echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4345 $as_echo "$aros_host_ar" >&6; }
4346 else
4347 { $as_echo "$as_me:$LINENO: result: no" >&5
4348 $as_echo "no" >&6; }
4352 if test "$aros_host_ar" = ""; then
4353 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4354 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4355 { (exit 1); exit 1; }; }
4357 # Extract the first word of "ranlib", so it can be a program name with args.
4358 set dummy ranlib; ac_word=$2
4359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$aros_host_ranlib"; then
4365 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_aros_host_ranlib="ranlib "
4375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4378 done
4379 done
4380 IFS=$as_save_IFS
4384 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4385 if test -n "$aros_host_ranlib"; then
4386 { $as_echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4387 $as_echo "$aros_host_ranlib" >&6; }
4388 else
4389 { $as_echo "$as_me:$LINENO: result: no" >&5
4390 $as_echo "no" >&6; }
4394 if test "$aros_host_ranlib" = ""; then
4395 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4396 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4397 { (exit 1); exit 1; }; }
4399 # Extract the first word of "strip", so it can be a program name with args.
4400 set dummy strip; ac_word=$2
4401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$aros_host_strip"; then
4407 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_aros_host_strip="strip "
4417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4420 done
4421 done
4422 IFS=$as_save_IFS
4426 aros_host_strip=$ac_cv_prog_aros_host_strip
4427 if test -n "$aros_host_strip"; then
4428 { $as_echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4429 $as_echo "$aros_host_strip" >&6; }
4430 else
4431 { $as_echo "$as_me:$LINENO: result: no" >&5
4432 $as_echo "no" >&6; }
4436 if test "$aros_host_strip" = ""; then
4437 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4438 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4439 { (exit 1); exit 1; }; }
4442 # Extract the first word of "rm", so it can be a program name with args.
4443 set dummy rm; ac_word=$2
4444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_RM+set}" = set; then
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$RM"; then
4450 ac_cv_prog_RM="$RM" # 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_RM="rm -rf"
4460 $as_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 RM=$ac_cv_prog_RM
4470 if test -n "$RM"; then
4471 { $as_echo "$as_me:$LINENO: result: $RM" >&5
4472 $as_echo "$RM" >&6; }
4473 else
4474 { $as_echo "$as_me:$LINENO: result: no" >&5
4475 $as_echo "no" >&6; }
4479 if test "$RM" = ""; then
4480 { { $as_echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4481 $as_echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4482 { (exit 1); exit 1; }; }
4484 # Extract the first word of "cp", so it can be a program name with args.
4485 set dummy cp; ac_word=$2
4486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if test "${ac_cv_prog_CP+set}" = set; then
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$CP"; then
4492 ac_cv_prog_CP="$CP" # 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_CP="cp "
4502 $as_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 CP=$ac_cv_prog_CP
4512 if test -n "$CP"; then
4513 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4514 $as_echo "$CP" >&6; }
4515 else
4516 { $as_echo "$as_me:$LINENO: result: no" >&5
4517 $as_echo "no" >&6; }
4521 if test "$CP" = ""; then
4522 { { $as_echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4523 $as_echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Extract the first word of "mv", so it can be a program name with args.
4527 set dummy mv; ac_word=$2
4528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_MV+set}" = set; then
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$MV"; then
4534 ac_cv_prog_MV="$MV" # 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_MV="mv "
4544 $as_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 MV=$ac_cv_prog_MV
4554 if test -n "$MV"; then
4555 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4556 $as_echo "$MV" >&6; }
4557 else
4558 { $as_echo "$as_me:$LINENO: result: no" >&5
4559 $as_echo "no" >&6; }
4563 if test "$MV" = ""; then
4564 { { $as_echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4565 $as_echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4566 { (exit 1); exit 1; }; }
4568 # Extract the first word of "echo", so it can be a program name with args.
4569 set dummy echo; ac_word=$2
4570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_ECHO+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$ECHO"; then
4576 ac_cv_prog_ECHO="$ECHO" # 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_ECHO="echo "
4586 $as_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 ECHO=$ac_cv_prog_ECHO
4596 if test -n "$ECHO"; then
4597 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4598 $as_echo "$ECHO" >&6; }
4599 else
4600 { $as_echo "$as_me:$LINENO: result: no" >&5
4601 $as_echo "no" >&6; }
4605 if test "$ECHO" = ""; then
4606 { { $as_echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4607 $as_echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4608 { (exit 1); exit 1; }; }
4610 # Extract the first word of "mkdir", so it can be a program name with args.
4611 set dummy mkdir; ac_word=$2
4612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_MKDIR+set}" = set; then
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$MKDIR"; then
4618 ac_cv_prog_MKDIR="$MKDIR" # 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_MKDIR="mkdir -p"
4628 $as_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 MKDIR=$ac_cv_prog_MKDIR
4638 if test -n "$MKDIR"; then
4639 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
4640 $as_echo "$MKDIR" >&6; }
4641 else
4642 { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4647 if test "$MKDIR" = ""; then
4648 { { $as_echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4649 $as_echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4650 { (exit 1); exit 1; }; }
4652 # Extract the first word of "touch", so it can be a program name with args.
4653 set dummy touch; ac_word=$2
4654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_TOUCH+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$TOUCH"; then
4660 ac_cv_prog_TOUCH="$TOUCH" # 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_TOUCH="touch "
4670 $as_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 TOUCH=$ac_cv_prog_TOUCH
4680 if test -n "$TOUCH"; then
4681 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
4682 $as_echo "$TOUCH" >&6; }
4683 else
4684 { $as_echo "$as_me:$LINENO: result: no" >&5
4685 $as_echo "no" >&6; }
4689 if test "$TOUCH" = ""; then
4690 { { $as_echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4691 $as_echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4692 { (exit 1); exit 1; }; }
4694 # Extract the first word of "sort", so it can be a program name with args.
4695 set dummy sort; ac_word=$2
4696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_SORT+set}" = set; then
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$SORT"; then
4702 ac_cv_prog_SORT="$SORT" # 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_SORT="sort "
4712 $as_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 SORT=$ac_cv_prog_SORT
4722 if test -n "$SORT"; then
4723 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
4724 $as_echo "$SORT" >&6; }
4725 else
4726 { $as_echo "$as_me:$LINENO: result: no" >&5
4727 $as_echo "no" >&6; }
4731 if test "$SORT" = ""; then
4732 { { $as_echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4733 $as_echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4734 { (exit 1); exit 1; }; }
4736 # Extract the first word of "uniq", so it can be a program name with args.
4737 set dummy uniq; ac_word=$2
4738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_UNIQ+set}" = set; then
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$UNIQ"; then
4744 ac_cv_prog_UNIQ="$UNIQ" # 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_UNIQ="uniq "
4754 $as_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 UNIQ=$ac_cv_prog_UNIQ
4764 if test -n "$UNIQ"; then
4765 { $as_echo "$as_me:$LINENO: result: $UNIQ" >&5
4766 $as_echo "$UNIQ" >&6; }
4767 else
4768 { $as_echo "$as_me:$LINENO: result: no" >&5
4769 $as_echo "no" >&6; }
4773 if test "$UNIQ" = ""; then
4774 { { $as_echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4775 $as_echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4776 { (exit 1); exit 1; }; }
4778 # Extract the first word of "true", so it can be a program name with args.
4779 set dummy true; ac_word=$2
4780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_NOP+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$NOP"; then
4786 ac_cv_prog_NOP="$NOP" # 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_NOP="true "
4796 $as_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 NOP=$ac_cv_prog_NOP
4806 if test -n "$NOP"; then
4807 { $as_echo "$as_me:$LINENO: result: $NOP" >&5
4808 $as_echo "$NOP" >&6; }
4809 else
4810 { $as_echo "$as_me:$LINENO: result: no" >&5
4811 $as_echo "no" >&6; }
4815 if test "$NOP" = ""; then
4816 { { $as_echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4817 $as_echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4818 { (exit 1); exit 1; }; }
4820 # Extract the first word of "cat", so it can be a program name with args.
4821 set dummy cat; ac_word=$2
4822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_CAT+set}" = set; then
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$CAT"; then
4828 ac_cv_prog_CAT="$CAT" # 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_CAT="cat "
4838 $as_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 CAT=$ac_cv_prog_CAT
4848 if test -n "$CAT"; then
4849 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4850 $as_echo "$CAT" >&6; }
4851 else
4852 { $as_echo "$as_me:$LINENO: result: no" >&5
4853 $as_echo "no" >&6; }
4857 if test "$CAT" = ""; then
4858 { { $as_echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4859 $as_echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4860 { (exit 1); exit 1; }; }
4862 # Extract the first word of "bison", so it can be a program name with args.
4863 set dummy bison; ac_word=$2
4864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_BISON+set}" = set; then
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$BISON"; then
4870 ac_cv_prog_BISON="$BISON" # 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_BISON="bison "
4880 $as_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 BISON=$ac_cv_prog_BISON
4890 if test -n "$BISON"; then
4891 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4892 $as_echo "$BISON" >&6; }
4893 else
4894 { $as_echo "$as_me:$LINENO: result: no" >&5
4895 $as_echo "no" >&6; }
4899 if test "$BISON" = ""; then
4900 { { $as_echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4901 $as_echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4902 { (exit 1); exit 1; }; }
4904 # Extract the first word of "flex", so it can be a program name with args.
4905 set dummy flex; ac_word=$2
4906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_FLEX+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$FLEX"; then
4912 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="flex "
4922 $as_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 FLEX=$ac_cv_prog_FLEX
4932 if test -n "$FLEX"; then
4933 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
4934 $as_echo "$FLEX" >&6; }
4935 else
4936 { $as_echo "$as_me:$LINENO: result: no" >&5
4937 $as_echo "no" >&6; }
4941 if test "$FLEX" = ""; then
4942 { { $as_echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4943 $as_echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4944 { (exit 1); exit 1; }; }
4946 # Extract the first word of "pngtopnm", so it can be a program name with args.
4947 set dummy pngtopnm; ac_word=$2
4948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$PNGTOPNM"; then
4954 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # 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_PNGTOPNM="pngtopnm "
4964 $as_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 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4974 if test -n "$PNGTOPNM"; then
4975 { $as_echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4976 $as_echo "$PNGTOPNM" >&6; }
4977 else
4978 { $as_echo "$as_me:$LINENO: result: no" >&5
4979 $as_echo "no" >&6; }
4983 if test "$PNGTOPNM" = ""; then
4984 { { $as_echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4985 $as_echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4986 { (exit 1); exit 1; }; }
4988 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4989 set dummy ppmtoilbm; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$PPMTOILBM"; then
4996 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5016 if test -n "$PPMTOILBM"; then
5017 { $as_echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
5018 $as_echo "$PPMTOILBM" >&6; }
5019 else
5020 { $as_echo "$as_me:$LINENO: result: no" >&5
5021 $as_echo "no" >&6; }
5025 if test "$PPMTOILBM" = ""; then
5026 { { $as_echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
5027 $as_echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
5028 { (exit 1); exit 1; }; }
5030 # Extract the first word of "sed", so it can be a program name with args.
5031 set dummy sed; ac_word=$2
5032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_SED+set}" = set; then
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$SED"; then
5038 ac_cv_prog_SED="$SED" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_SED="sed "
5048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5051 done
5052 done
5053 IFS=$as_save_IFS
5057 SED=$ac_cv_prog_SED
5058 if test -n "$SED"; then
5059 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5060 $as_echo "$SED" >&6; }
5061 else
5062 { $as_echo "$as_me:$LINENO: result: no" >&5
5063 $as_echo "no" >&6; }
5067 if test "$SED" = ""; then
5068 { { $as_echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
5069 $as_echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
5070 { (exit 1); exit 1; }; }
5072 # Extract the first word of "chmod", so it can be a program name with args.
5073 set dummy chmod; ac_word=$2
5074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_CHMOD+set}" = set; then
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$CHMOD"; then
5080 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_CHMOD="chmod "
5090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5095 IFS=$as_save_IFS
5099 CHMOD=$ac_cv_prog_CHMOD
5100 if test -n "$CHMOD"; then
5101 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
5102 $as_echo "$CHMOD" >&6; }
5103 else
5104 { $as_echo "$as_me:$LINENO: result: no" >&5
5105 $as_echo "no" >&6; }
5109 if test "$CHMOD" = ""; then
5110 { { $as_echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5111 $as_echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5112 { (exit 1); exit 1; }; }
5119 if test -n "$PYTHON"; then
5120 # If the user set $PYTHON, use it and don't search something else.
5121 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
5122 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5123 prog="import sys, string
5124 # split strings by '.' and convert to numeric. Append some zeros
5125 # because we need at least 4 digits for the hex conversion.
5126 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5127 minverhex = 0
5128 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5129 sys.exit(sys.hexversion < minverhex)"
5130 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5131 ($PYTHON -c "$prog") >&5 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; then
5135 { $as_echo "$as_me:$LINENO: result: yes" >&5
5136 $as_echo "yes" >&6; }
5137 else
5138 { { $as_echo "$as_me:$LINENO: error: too old" >&5
5139 $as_echo "$as_me: error: too old" >&2;}
5140 { (exit 1); exit 1; }; }
5143 am_display_PYTHON=$PYTHON
5144 else
5145 # Otherwise, try each interpreter until we find one that satisfies
5146 # VERSION.
5147 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5148 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5149 if test "${am_cv_pathless_PYTHON+set}" = set; then
5150 $as_echo_n "(cached) " >&6
5151 else
5153 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
5154 test "$am_cv_pathless_PYTHON" = none && break
5155 prog="import sys, string
5156 # split strings by '.' and convert to numeric. Append some zeros
5157 # because we need at least 4 digits for the hex conversion.
5158 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5159 minverhex = 0
5160 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5161 sys.exit(sys.hexversion < minverhex)"
5162 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5163 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; then
5167 break
5170 done
5172 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5173 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5174 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5175 if test "$am_cv_pathless_PYTHON" = none; then
5176 PYTHON=:
5177 else
5178 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5179 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_path_PYTHON+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184 else
5185 case $PYTHON in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5206 esac
5208 PYTHON=$ac_cv_path_PYTHON
5209 if test -n "$PYTHON"; then
5210 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5211 $as_echo "$PYTHON" >&6; }
5212 else
5213 { $as_echo "$as_me:$LINENO: result: no" >&5
5214 $as_echo "no" >&6; }
5219 am_display_PYTHON=$am_cv_pathless_PYTHON
5223 if test "$PYTHON" = :; then
5224 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5225 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
5226 { (exit 1); exit 1; }; }
5227 else
5230 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5231 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5232 if test "${am_cv_python_version+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5234 else
5235 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5237 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5238 $as_echo "$am_cv_python_version" >&6; }
5239 PYTHON_VERSION=$am_cv_python_version
5243 PYTHON_PREFIX='${prefix}'
5245 PYTHON_EXEC_PREFIX='${exec_prefix}'
5249 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5250 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5251 if test "${am_cv_python_platform+set}" = set; then
5252 $as_echo_n "(cached) " >&6
5253 else
5254 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5256 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5257 $as_echo "$am_cv_python_platform" >&6; }
5258 PYTHON_PLATFORM=$am_cv_python_platform
5263 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5264 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5265 if test "${am_cv_python_pythondir+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5267 else
5268 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5269 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5271 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5272 $as_echo "$am_cv_python_pythondir" >&6; }
5273 pythondir=$am_cv_python_pythondir
5277 pkgpythondir=\${pythondir}/$PACKAGE
5280 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5281 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5282 if test "${am_cv_python_pyexecdir+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5284 else
5285 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5286 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5288 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5289 $as_echo "$am_cv_python_pyexecdir" >&6; }
5290 pyexecdir=$am_cv_python_pyexecdir
5294 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5302 FOR=for
5304 IF=if
5306 TEST=test
5308 CMP=cmp
5312 # Check for some includes for the X11 HIDD and the kernel
5315 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5316 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5317 if test "${ac_cv_path_GREP+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -z "$GREP"; then
5321 ac_path_GREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in grep ggrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5332 # Check for GNU ac_path_GREP and select it if it is found.
5333 # Check for GNU $ac_path_GREP
5334 case `"$ac_path_GREP" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'GREP' >> "conftest.nl"
5346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 ac_count=`expr $ac_count + 1`
5349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_GREP="$ac_path_GREP"
5352 ac_path_GREP_max=$ac_count
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5360 $ac_path_GREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_GREP"; then
5366 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5367 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5368 { (exit 1); exit 1; }; }
5370 else
5371 ac_cv_path_GREP=$GREP
5375 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5376 $as_echo "$ac_cv_path_GREP" >&6; }
5377 GREP="$ac_cv_path_GREP"
5380 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5381 $as_echo_n "checking for egrep... " >&6; }
5382 if test "${ac_cv_path_EGREP+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5386 then ac_cv_path_EGREP="$GREP -E"
5387 else
5388 if test -z "$EGREP"; then
5389 ac_path_EGREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_prog in egrep; do
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5400 # Check for GNU ac_path_EGREP and select it if it is found.
5401 # Check for GNU $ac_path_EGREP
5402 case `"$ac_path_EGREP" --version 2>&1` in
5403 *GNU*)
5404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406 ac_count=0
5407 $as_echo_n 0123456789 >"conftest.in"
5408 while :
5410 cat "conftest.in" "conftest.in" >"conftest.tmp"
5411 mv "conftest.tmp" "conftest.in"
5412 cp "conftest.in" "conftest.nl"
5413 $as_echo 'EGREP' >> "conftest.nl"
5414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416 ac_count=`expr $ac_count + 1`
5417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418 # Best one so far, save it but keep looking for a better one
5419 ac_cv_path_EGREP="$ac_path_EGREP"
5420 ac_path_EGREP_max=$ac_count
5422 # 10*(2^10) chars as input seems more than enough
5423 test $ac_count -gt 10 && break
5424 done
5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426 esac
5428 $ac_path_EGREP_found && break 3
5429 done
5430 done
5431 done
5432 IFS=$as_save_IFS
5433 if test -z "$ac_cv_path_EGREP"; then
5434 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5435 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5436 { (exit 1); exit 1; }; }
5438 else
5439 ac_cv_path_EGREP=$EGREP
5444 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5445 $as_echo "$ac_cv_path_EGREP" >&6; }
5446 EGREP="$ac_cv_path_EGREP"
5449 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5450 $as_echo_n "checking for ANSI C header files... " >&6; }
5451 if test "${ac_cv_header_stdc+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453 else
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <stdlib.h>
5461 #include <stdarg.h>
5462 #include <string.h>
5463 #include <float.h>
5466 main ()
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_cv_header_stdc=yes
5492 else
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_header_stdc=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 if test $ac_cv_header_stdc = yes; then
5502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <string.h>
5511 _ACEOF
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "memchr" >/dev/null 2>&1; then
5515 else
5516 ac_cv_header_stdc=no
5518 rm -f conftest*
5522 if test $ac_cv_header_stdc = yes; then
5523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <stdlib.h>
5532 _ACEOF
5533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5534 $EGREP "free" >/dev/null 2>&1; then
5536 else
5537 ac_cv_header_stdc=no
5539 rm -f conftest*
5543 if test $ac_cv_header_stdc = yes; then
5544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545 if test "$cross_compiling" = yes; then
5547 else
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <ctype.h>
5555 #include <stdlib.h>
5556 #if ((' ' & 0x0FF) == 0x020)
5557 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5558 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5559 #else
5560 # define ISLOWER(c) \
5561 (('a' <= (c) && (c) <= 'i') \
5562 || ('j' <= (c) && (c) <= 'r') \
5563 || ('s' <= (c) && (c) <= 'z'))
5564 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565 #endif
5567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569 main ()
5571 int i;
5572 for (i = 0; i < 256; i++)
5573 if (XOR (islower (i), ISLOWER (i))
5574 || toupper (i) != TOUPPER (i))
5575 return 2;
5576 return 0;
5578 _ACEOF
5579 rm -f conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_link") 2>&5
5588 ac_status=$?
5589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5596 $as_echo "$ac_try_echo") >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5602 else
5603 $as_echo "$as_me: program exited with status $ac_status" >&5
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 ( exit $ac_status )
5608 ac_cv_header_stdc=no
5610 rm -rf conftest.dSYM
5611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 $as_echo "$ac_cv_header_stdc" >&6; }
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5623 _ACEOF
5627 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5637 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5638 inttypes.h stdint.h unistd.h
5640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5642 $as_echo_n "checking for $ac_header... " >&6; }
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 $as_echo_n "(cached) " >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5654 #include <$ac_header>
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663 $as_echo "$ac_try_echo") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
5674 eval "$as_ac_Header=yes"
5675 else
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 eval "$as_ac_Header=no"
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 ac_res=`eval 'as_val=${'$as_ac_Header'}
5685 $as_echo "$as_val"'`
5686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5687 $as_echo "$ac_res" >&6; }
5688 as_val=`eval 'as_val=${'$as_ac_Header'}
5689 $as_echo "$as_val"'`
5690 if test "x$as_val" = x""yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5697 done
5709 for ac_header in sys/ipc.h sys/shm.h \
5710 sys/mmap.h sys/mman.h sysexits.h \
5711 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5717 $as_echo_n "checking for $ac_header... " >&6; }
5718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5719 $as_echo_n "(cached) " >&6
5721 ac_res=`eval 'as_val=${'$as_ac_Header'}
5722 $as_echo "$as_val"'`
5723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5724 $as_echo "$ac_res" >&6; }
5725 else
5726 # Is the header compilable?
5727 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5728 $as_echo_n "checking $ac_header usability... " >&6; }
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 $ac_includes_default
5736 #include <$ac_header>
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (ac_try="$ac_compile"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5745 $as_echo "$ac_try_echo") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_header_compiler=yes
5757 else
5758 $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 ac_header_compiler=no
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5766 $as_echo "$ac_header_compiler" >&6; }
5768 # Is the header present?
5769 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5770 $as_echo_n "checking $ac_header presence... " >&6; }
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <$ac_header>
5778 _ACEOF
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785 $as_echo "$ac_try_echo") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 }; then
5796 ac_header_preproc=yes
5797 else
5798 $as_echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_header_preproc=no
5804 rm -f conftest.err conftest.$ac_ext
5805 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5806 $as_echo "$ac_header_preproc" >&6; }
5808 # So? What about this header?
5809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5810 yes:no: )
5811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5812 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5814 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5815 ac_header_preproc=yes
5817 no:yes:* )
5818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5819 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5821 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5823 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5825 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5827 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5829 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5832 esac
5833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 $as_echo_n "checking for $ac_header... " >&6; }
5835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836 $as_echo_n "(cached) " >&6
5837 else
5838 eval "$as_ac_Header=\$ac_header_preproc"
5840 ac_res=`eval 'as_val=${'$as_ac_Header'}
5841 $as_echo "$as_val"'`
5842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5843 $as_echo "$ac_res" >&6; }
5846 as_val=`eval 'as_val=${'$as_ac_Header'}
5847 $as_echo "$as_val"'`
5848 if test "x$as_val" = x""yes; then
5849 cat >>confdefs.h <<_ACEOF
5850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5851 _ACEOF
5855 done
5859 for ac_header in sys/mount.h
5861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5863 $as_echo_n "checking for $ac_header... " >&6; }
5864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <sys/param.h>
5875 #include <$ac_header>
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5884 $as_echo "$ac_try_echo") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest.$ac_objext; then
5895 eval "$as_ac_Header=yes"
5896 else
5897 $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 eval "$as_ac_Header=no"
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_res=`eval 'as_val=${'$as_ac_Header'}
5906 $as_echo "$as_val"'`
5907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5908 $as_echo "$ac_res" >&6; }
5909 as_val=`eval 'as_val=${'$as_ac_Header'}
5910 $as_echo "$as_val"'`
5911 if test "x$as_val" = x""yes; then
5912 cat >>confdefs.h <<_ACEOF
5913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5918 done
5926 ac_header_dirent=no
5927 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5928 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5929 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5930 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5932 $as_echo_n "(cached) " >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/types.h>
5941 #include <$ac_hdr>
5944 main ()
5946 if ((DIR *) 0)
5947 return 0;
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959 $as_echo "$ac_try_echo") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 eval "$as_ac_Header=yes"
5971 else
5972 $as_echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 eval "$as_ac_Header=no"
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 ac_res=`eval 'as_val=${'$as_ac_Header'}
5981 $as_echo "$as_val"'`
5982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5983 $as_echo "$ac_res" >&6; }
5984 as_val=`eval 'as_val=${'$as_ac_Header'}
5985 $as_echo "$as_val"'`
5986 if test "x$as_val" = x""yes; then
5987 cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5989 _ACEOF
5991 ac_header_dirent=$ac_hdr; break
5994 done
5995 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5996 if test $ac_header_dirent = dirent.h; then
5997 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5998 $as_echo_n "checking for library containing opendir... " >&6; }
5999 if test "${ac_cv_search_opendir+set}" = set; then
6000 $as_echo_n "(cached) " >&6
6001 else
6002 ac_func_search_save_LIBS=$LIBS
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 /* Override any GCC internal prototype to avoid an error.
6011 Use char because int might match the return type of a GCC
6012 builtin and then its argument prototype would still apply. */
6013 #ifdef __cplusplus
6014 extern "C"
6015 #endif
6016 char opendir ();
6018 main ()
6020 return opendir ();
6022 return 0;
6024 _ACEOF
6025 for ac_lib in '' dir; do
6026 if test -z "$ac_lib"; then
6027 ac_res="none required"
6028 else
6029 ac_res=-l$ac_lib
6030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (ac_try="$ac_link"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6039 $as_echo "$ac_try_echo") >&5
6040 (eval "$ac_link") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest$ac_exeext && {
6050 test "$cross_compiling" = yes ||
6051 $as_test_x conftest$ac_exeext
6052 }; then
6053 ac_cv_search_opendir=$ac_res
6054 else
6055 $as_echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6061 rm -rf conftest.dSYM
6062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6063 conftest$ac_exeext
6064 if test "${ac_cv_search_opendir+set}" = set; then
6065 break
6067 done
6068 if test "${ac_cv_search_opendir+set}" = set; then
6070 else
6071 ac_cv_search_opendir=no
6073 rm conftest.$ac_ext
6074 LIBS=$ac_func_search_save_LIBS
6076 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6077 $as_echo "$ac_cv_search_opendir" >&6; }
6078 ac_res=$ac_cv_search_opendir
6079 if test "$ac_res" != no; then
6080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6084 else
6085 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6086 $as_echo_n "checking for library containing opendir... " >&6; }
6087 if test "${ac_cv_search_opendir+set}" = set; then
6088 $as_echo_n "(cached) " >&6
6089 else
6090 ac_func_search_save_LIBS=$LIBS
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6098 /* Override any GCC internal prototype to avoid an error.
6099 Use char because int might match the return type of a GCC
6100 builtin and then its argument prototype would still apply. */
6101 #ifdef __cplusplus
6102 extern "C"
6103 #endif
6104 char opendir ();
6106 main ()
6108 return opendir ();
6110 return 0;
6112 _ACEOF
6113 for ac_lib in '' x; do
6114 if test -z "$ac_lib"; then
6115 ac_res="none required"
6116 else
6117 ac_res=-l$ac_lib
6118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6120 rm -f conftest.$ac_objext conftest$ac_exeext
6121 if { (ac_try="$ac_link"
6122 case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125 esac
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128 (eval "$ac_link") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest$ac_exeext && {
6138 test "$cross_compiling" = yes ||
6139 $as_test_x conftest$ac_exeext
6140 }; then
6141 ac_cv_search_opendir=$ac_res
6142 else
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6149 rm -rf conftest.dSYM
6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext
6152 if test "${ac_cv_search_opendir+set}" = set; then
6153 break
6155 done
6156 if test "${ac_cv_search_opendir+set}" = set; then
6158 else
6159 ac_cv_search_opendir=no
6161 rm conftest.$ac_ext
6162 LIBS=$ac_func_search_save_LIBS
6164 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6165 $as_echo "$ac_cv_search_opendir" >&6; }
6166 ac_res=$ac_cv_search_opendir
6167 if test "$ac_res" != no; then
6168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6174 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6175 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6176 if test "${ac_cv_header_stat_broken+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 #include <sys/types.h>
6186 #include <sys/stat.h>
6188 #if defined S_ISBLK && defined S_IFDIR
6189 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6190 #endif
6192 #if defined S_ISBLK && defined S_IFCHR
6193 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6194 #endif
6196 #if defined S_ISLNK && defined S_IFREG
6197 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6198 #endif
6200 #if defined S_ISSOCK && defined S_IFREG
6201 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6202 #endif
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6207 case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210 esac
6211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6212 $as_echo "$ac_try_echo") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 ac_cv_header_stat_broken=no
6224 else
6225 $as_echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 ac_cv_header_stat_broken=yes
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6234 $as_echo "$ac_cv_header_stat_broken" >&6; }
6235 if test $ac_cv_header_stat_broken = yes; then
6237 cat >>confdefs.h <<\_ACEOF
6238 #define STAT_MACROS_BROKEN 1
6239 _ACEOF
6243 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6244 $as_echo_n "checking for ANSI C header files... " >&6; }
6245 if test "${ac_cv_header_stdc+set}" = set; then
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #include <stdlib.h>
6255 #include <stdarg.h>
6256 #include <string.h>
6257 #include <float.h>
6260 main ()
6264 return 0;
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (ac_try="$ac_compile"
6269 case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274 $as_echo "$ac_try_echo") >&5
6275 (eval "$ac_compile") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_c_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest.$ac_objext; then
6285 ac_cv_header_stdc=yes
6286 else
6287 $as_echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_cv_header_stdc=no
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 if test $ac_cv_header_stdc = yes; then
6296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <string.h>
6305 _ACEOF
6306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6307 $EGREP "memchr" >/dev/null 2>&1; then
6309 else
6310 ac_cv_header_stdc=no
6312 rm -f conftest*
6316 if test $ac_cv_header_stdc = yes; then
6317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <stdlib.h>
6326 _ACEOF
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "free" >/dev/null 2>&1; then
6330 else
6331 ac_cv_header_stdc=no
6333 rm -f conftest*
6337 if test $ac_cv_header_stdc = yes; then
6338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6339 if test "$cross_compiling" = yes; then
6341 else
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #include <ctype.h>
6349 #include <stdlib.h>
6350 #if ((' ' & 0x0FF) == 0x020)
6351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6353 #else
6354 # define ISLOWER(c) \
6355 (('a' <= (c) && (c) <= 'i') \
6356 || ('j' <= (c) && (c) <= 'r') \
6357 || ('s' <= (c) && (c) <= 'z'))
6358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6359 #endif
6361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6363 main ()
6365 int i;
6366 for (i = 0; i < 256; i++)
6367 if (XOR (islower (i), ISLOWER (i))
6368 || toupper (i) != TOUPPER (i))
6369 return 2;
6370 return 0;
6372 _ACEOF
6373 rm -f conftest$ac_exeext
6374 if { (ac_try="$ac_link"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6380 $as_echo "$ac_try_echo") >&5
6381 (eval "$ac_link") 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6385 { (case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391 (eval "$ac_try") 2>&5
6392 ac_status=$?
6393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6396 else
6397 $as_echo "$as_me: program exited with status $ac_status" >&5
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 ( exit $ac_status )
6402 ac_cv_header_stdc=no
6404 rm -rf conftest.dSYM
6405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6411 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6412 $as_echo "$ac_cv_header_stdc" >&6; }
6413 if test $ac_cv_header_stdc = yes; then
6415 cat >>confdefs.h <<\_ACEOF
6416 #define STDC_HEADERS 1
6417 _ACEOF
6421 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6422 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6423 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425 else
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #include <sys/types.h>
6433 #include <sys/wait.h>
6434 #ifndef WEXITSTATUS
6435 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6436 #endif
6437 #ifndef WIFEXITED
6438 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6439 #endif
6442 main ()
6444 int s;
6445 wait (&s);
6446 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6448 return 0;
6450 _ACEOF
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6453 case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6458 $as_echo "$ac_try_echo") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
6469 ac_cv_header_sys_wait_h=yes
6470 else
6471 $as_echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 ac_cv_header_sys_wait_h=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6480 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6481 if test $ac_cv_header_sys_wait_h = yes; then
6483 cat >>confdefs.h <<\_ACEOF
6484 #define HAVE_SYS_WAIT_H 1
6485 _ACEOF
6489 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6490 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6491 if test "${ac_cv_header_time+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <sys/types.h>
6501 #include <sys/time.h>
6502 #include <time.h>
6505 main ()
6507 if ((struct tm *) 0)
6508 return 0;
6510 return 0;
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (ac_try="$ac_compile"
6515 case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518 esac
6519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6520 $as_echo "$ac_try_echo") >&5
6521 (eval "$ac_compile") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest.$ac_objext; then
6531 ac_cv_header_time=yes
6532 else
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_header_time=no
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6542 $as_echo "$ac_cv_header_time" >&6; }
6543 if test $ac_cv_header_time = yes; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define TIME_WITH_SYS_TIME 1
6547 _ACEOF
6551 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6552 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6553 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6554 $as_echo_n "(cached) " >&6
6555 else
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6564 main ()
6566 static struct stat ac_aggr;
6567 if (ac_aggr.st_blksize)
6568 return 0;
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6580 $as_echo "$ac_try_echo") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 ac_cv_member_struct_stat_st_blksize=yes
6592 else
6593 $as_echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6604 main ()
6606 static struct stat ac_aggr;
6607 if (sizeof ac_aggr.st_blksize)
6608 return 0;
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6615 case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618 esac
6619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6620 $as_echo "$ac_try_echo") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 ac_cv_member_struct_stat_st_blksize=yes
6632 else
6633 $as_echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 ac_cv_member_struct_stat_st_blksize=no
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6645 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6646 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6650 _ACEOF
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_ST_BLKSIZE 1
6655 _ACEOF
6660 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6661 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
6662 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6663 $as_echo_n "(cached) " >&6
6664 else
6665 cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h. */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 $ac_includes_default
6673 main ()
6675 static struct stat ac_aggr;
6676 if (ac_aggr.st_blocks)
6677 return 0;
6679 return 0;
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6684 case "(($ac_try" in
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6687 esac
6688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6689 $as_echo "$ac_try_echo") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6700 ac_cv_member_struct_stat_st_blocks=yes
6701 else
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6713 main ()
6715 static struct stat ac_aggr;
6716 if (sizeof ac_aggr.st_blocks)
6717 return 0;
6719 return 0;
6721 _ACEOF
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_cv_member_struct_stat_st_blocks=yes
6741 else
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_member_struct_stat_st_blocks=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6754 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
6755 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
6757 cat >>confdefs.h <<_ACEOF
6758 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6759 _ACEOF
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_ST_BLOCKS 1
6764 _ACEOF
6766 else
6767 case " $LIBOBJS " in
6768 *" fileblocks.$ac_objext "* ) ;;
6769 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6771 esac
6776 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6777 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6778 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6779 $as_echo_n "(cached) " >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 $ac_includes_default
6789 main ()
6791 static struct stat ac_aggr;
6792 if (ac_aggr.st_rdev)
6793 return 0;
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (ac_try="$ac_compile"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6805 $as_echo "$ac_try_echo") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_cv_member_struct_stat_st_rdev=yes
6817 else
6818 $as_echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6829 main ()
6831 static struct stat ac_aggr;
6832 if (sizeof ac_aggr.st_rdev)
6833 return 0;
6835 return 0;
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (ac_try="$ac_compile"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845 $as_echo "$ac_try_echo") >&5
6846 (eval "$ac_compile") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
6856 ac_cv_member_struct_stat_st_rdev=yes
6857 else
6858 $as_echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 ac_cv_member_struct_stat_st_rdev=no
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6870 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6871 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STRUCT_STAT_ST_RDEV 1
6875 _ACEOF
6878 cat >>confdefs.h <<\_ACEOF
6879 #define HAVE_ST_RDEV 1
6880 _ACEOF
6885 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6886 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6887 if test "${ac_cv_struct_tm+set}" = set; then
6888 $as_echo_n "(cached) " >&6
6889 else
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 #include <sys/types.h>
6897 #include <time.h>
6900 main ()
6902 struct tm tm;
6903 int *p = &tm.tm_sec;
6904 return !p;
6906 return 0;
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (ac_try="$ac_compile"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_struct_tm=time.h
6928 else
6929 $as_echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_struct_tm=sys/time.h
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6938 $as_echo "$ac_cv_struct_tm" >&6; }
6939 if test $ac_cv_struct_tm = sys/time.h; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define TM_IN_SYS_TIME 1
6943 _ACEOF
6947 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6948 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
6949 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6959 #include <$ac_cv_struct_tm>
6963 main ()
6965 static struct tm ac_aggr;
6966 if (ac_aggr.tm_zone)
6967 return 0;
6969 return 0;
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (ac_try="$ac_compile"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979 $as_echo "$ac_try_echo") >&5
6980 (eval "$ac_compile") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } && {
6987 test -z "$ac_c_werror_flag" ||
6988 test ! -s conftest.err
6989 } && test -s conftest.$ac_objext; then
6990 ac_cv_member_struct_tm_tm_zone=yes
6991 else
6992 $as_echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <sys/types.h>
7002 #include <$ac_cv_struct_tm>
7006 main ()
7008 static struct tm ac_aggr;
7009 if (sizeof ac_aggr.tm_zone)
7010 return 0;
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7020 esac
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_compile") 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
7033 ac_cv_member_struct_tm_tm_zone=yes
7034 else
7035 $as_echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_member_struct_tm_tm_zone=no
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7047 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7048 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7050 cat >>confdefs.h <<_ACEOF
7051 #define HAVE_STRUCT_TM_TM_ZONE 1
7052 _ACEOF
7057 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_TM_ZONE 1
7061 _ACEOF
7063 else
7064 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7065 $as_echo_n "checking whether tzname is declared... " >&6; }
7066 if test "${ac_cv_have_decl_tzname+set}" = set; then
7067 $as_echo_n "(cached) " >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <time.h>
7078 main ()
7080 #ifndef tzname
7081 (void) tzname;
7082 #endif
7085 return 0;
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (ac_try="$ac_compile"
7090 case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093 esac
7094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7095 $as_echo "$ac_try_echo") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7097 ac_status=$?
7098 grep -v '^ *+' conftest.er1 >conftest.err
7099 rm -f conftest.er1
7100 cat conftest.err >&5
7101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.$ac_objext; then
7106 ac_cv_have_decl_tzname=yes
7107 else
7108 $as_echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_cv_have_decl_tzname=no
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7117 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7118 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define HAVE_DECL_TZNAME 1
7122 _ACEOF
7125 else
7126 cat >>confdefs.h <<_ACEOF
7127 #define HAVE_DECL_TZNAME 0
7128 _ACEOF
7134 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7135 $as_echo_n "checking for tzname... " >&6; }
7136 if test "${ac_cv_var_tzname+set}" = set; then
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <time.h>
7146 #if !HAVE_DECL_TZNAME
7147 extern char *tzname[];
7148 #endif
7151 main ()
7153 return tzname[0][0];
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext conftest$ac_exeext
7159 if { (ac_try="$ac_link"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165 $as_echo "$ac_try_echo") >&5
7166 (eval "$ac_link") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest$ac_exeext && {
7176 test "$cross_compiling" = yes ||
7177 $as_test_x conftest$ac_exeext
7178 }; then
7179 ac_cv_var_tzname=yes
7180 else
7181 $as_echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_var_tzname=no
7187 rm -rf conftest.dSYM
7188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7189 conftest$ac_exeext conftest.$ac_ext
7191 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7192 $as_echo "$ac_cv_var_tzname" >&6; }
7193 if test $ac_cv_var_tzname = yes; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_TZNAME 1
7197 _ACEOF
7202 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7203 $as_echo_n "checking for off_t... " >&6; }
7204 if test "${ac_cv_type_off_t+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7206 else
7207 ac_cv_type_off_t=no
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7216 main ()
7218 if (sizeof (off_t))
7219 return 0;
7221 return 0;
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7231 $as_echo "$ac_try_echo") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7250 main ()
7252 if (sizeof ((off_t)))
7253 return 0;
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265 $as_echo "$ac_try_echo") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7277 else
7278 $as_echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 ac_cv_type_off_t=yes
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 else
7286 $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7295 $as_echo "$ac_cv_type_off_t" >&6; }
7296 if test "x$ac_cv_type_off_t" = x""yes; then
7298 else
7300 cat >>confdefs.h <<_ACEOF
7301 #define off_t long int
7302 _ACEOF
7306 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7307 $as_echo_n "checking for pid_t... " >&6; }
7308 if test "${ac_cv_type_pid_t+set}" = set; then
7309 $as_echo_n "(cached) " >&6
7310 else
7311 ac_cv_type_pid_t=no
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7320 main ()
7322 if (sizeof (pid_t))
7323 return 0;
7325 return 0;
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h. */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7352 $ac_includes_default
7354 main ()
7356 if (sizeof ((pid_t)))
7357 return 0;
7359 return 0;
7361 _ACEOF
7362 rm -f conftest.$ac_objext
7363 if { (ac_try="$ac_compile"
7364 case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7369 $as_echo "$ac_try_echo") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7381 else
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7385 ac_cv_type_pid_t=yes
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 else
7390 $as_echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7399 $as_echo "$ac_cv_type_pid_t" >&6; }
7400 if test "x$ac_cv_type_pid_t" = x""yes; then
7402 else
7404 cat >>confdefs.h <<_ACEOF
7405 #define pid_t int
7406 _ACEOF
7410 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7411 $as_echo_n "checking for size_t... " >&6; }
7412 if test "${ac_cv_type_size_t+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7414 else
7415 ac_cv_type_size_t=no
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 $ac_includes_default
7424 main ()
7426 if (sizeof (size_t))
7427 return 0;
7429 return 0;
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7439 $as_echo "$ac_try_echo") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7458 main ()
7460 if (sizeof ((size_t)))
7461 return 0;
7463 return 0;
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (ac_try="$ac_compile"
7468 case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471 esac
7472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473 $as_echo "$ac_try_echo") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.$ac_objext; then
7485 else
7486 $as_echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 ac_cv_type_size_t=yes
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 else
7494 $as_echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7503 $as_echo "$ac_cv_type_size_t" >&6; }
7504 if test "x$ac_cv_type_size_t" = x""yes; then
7506 else
7508 cat >>confdefs.h <<_ACEOF
7509 #define size_t unsigned int
7510 _ACEOF
7514 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7515 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7516 if test "${ac_cv_type_uid_t+set}" = set; then
7517 $as_echo_n "(cached) " >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 #include <sys/types.h>
7527 _ACEOF
7528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7529 $EGREP "uid_t" >/dev/null 2>&1; then
7530 ac_cv_type_uid_t=yes
7531 else
7532 ac_cv_type_uid_t=no
7534 rm -f conftest*
7537 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7538 $as_echo "$ac_cv_type_uid_t" >&6; }
7539 if test $ac_cv_type_uid_t = no; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define uid_t int
7543 _ACEOF
7546 cat >>confdefs.h <<\_ACEOF
7547 #define gid_t int
7548 _ACEOF
7553 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7554 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
7555 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7556 $as_echo_n "(cached) " >&6
7557 else
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7566 main ()
7568 static struct tm ac_aggr;
7569 if (ac_aggr.tm_gmtoff)
7570 return 0;
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_compile") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest.$ac_objext; then
7593 ac_cv_member_struct_tm_tm_gmtoff=yes
7594 else
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7606 main ()
7608 static struct tm ac_aggr;
7609 if (sizeof ac_aggr.tm_gmtoff)
7610 return 0;
7612 return 0;
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622 $as_echo "$ac_try_echo") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 ac_cv_member_struct_tm_tm_gmtoff=yes
7634 else
7635 $as_echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 ac_cv_member_struct_tm_tm_gmtoff=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7647 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7648 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
7650 cat >>confdefs.h <<_ACEOF
7651 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7652 _ACEOF
7658 # Look for some functions
7673 for ac_func in getpagesize kqueue statfs statvfs \
7674 clone kse_create rfork_thread thr_create sa_register \
7675 getcontext makecontext setcontext sigaltstack swapcontext
7677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7678 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7679 $as_echo_n "checking for $ac_func... " >&6; }
7680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7681 $as_echo_n "(cached) " >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7691 #define $ac_func innocuous_$ac_func
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char $ac_func (); below.
7695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696 <limits.h> exists even on freestanding compilers. */
7698 #ifdef __STDC__
7699 # include <limits.h>
7700 #else
7701 # include <assert.h>
7702 #endif
7704 #undef $ac_func
7706 /* Override any GCC internal prototype to avoid an error.
7707 Use char because int might match the return type of a GCC
7708 builtin and then its argument prototype would still apply. */
7709 #ifdef __cplusplus
7710 extern "C"
7711 #endif
7712 char $ac_func ();
7713 /* The GNU C library defines this for functions which it implements
7714 to always fail with ENOSYS. Some functions are actually named
7715 something starting with __ and the normal name is an alias. */
7716 #if defined __stub_$ac_func || defined __stub___$ac_func
7717 choke me
7718 #endif
7721 main ()
7723 return $ac_func ();
7725 return 0;
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (ac_try="$ac_link"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_link") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest$ac_exeext && {
7746 test "$cross_compiling" = yes ||
7747 $as_test_x conftest$ac_exeext
7748 }; then
7749 eval "$as_ac_var=yes"
7750 else
7751 $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 eval "$as_ac_var=no"
7757 rm -rf conftest.dSYM
7758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7759 conftest$ac_exeext conftest.$ac_ext
7761 ac_res=`eval 'as_val=${'$as_ac_var'}
7762 $as_echo "$as_val"'`
7763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7764 $as_echo "$ac_res" >&6; }
7765 as_val=`eval 'as_val=${'$as_ac_var'}
7766 $as_echo "$as_val"'`
7767 if test "x$as_val" = x""yes; then
7768 cat >>confdefs.h <<_ACEOF
7769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7770 _ACEOF
7773 done
7778 for ac_header in stdlib.h unistd.h
7780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 $as_echo_n "checking for $ac_header... " >&6; }
7784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785 $as_echo_n "(cached) " >&6
7787 ac_res=`eval 'as_val=${'$as_ac_Header'}
7788 $as_echo "$as_val"'`
7789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7790 $as_echo "$ac_res" >&6; }
7791 else
7792 # Is the header compilable?
7793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794 $as_echo_n "checking $ac_header usability... " >&6; }
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #include <$ac_header>
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7811 $as_echo "$ac_try_echo") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7822 ac_header_compiler=yes
7823 else
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_header_compiler=no
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7832 $as_echo "$ac_header_compiler" >&6; }
7834 # Is the header present?
7835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7836 $as_echo_n "checking $ac_header presence... " >&6; }
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <$ac_header>
7844 _ACEOF
7845 if { (ac_try="$ac_cpp conftest.$ac_ext"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } >/dev/null && {
7859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 }; then
7862 ac_header_preproc=yes
7863 else
7864 $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_header_preproc=no
7870 rm -f conftest.err conftest.$ac_ext
7871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7872 $as_echo "$ac_header_preproc" >&6; }
7874 # So? What about this header?
7875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7876 yes:no: )
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7881 ac_header_preproc=yes
7883 no:yes:* )
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7887 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7891 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7898 esac
7899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 $as_echo_n "checking for $ac_header... " >&6; }
7901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7902 $as_echo_n "(cached) " >&6
7903 else
7904 eval "$as_ac_Header=\$ac_header_preproc"
7906 ac_res=`eval 'as_val=${'$as_ac_Header'}
7907 $as_echo "$as_val"'`
7908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7909 $as_echo "$ac_res" >&6; }
7912 as_val=`eval 'as_val=${'$as_ac_Header'}
7913 $as_echo "$as_val"'`
7914 if test "x$as_val" = x""yes; then
7915 cat >>confdefs.h <<_ACEOF
7916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7917 _ACEOF
7921 done
7924 for ac_func in getpagesize
7926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7928 $as_echo_n "checking for $ac_func... " >&6; }
7929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7930 $as_echo_n "(cached) " >&6
7931 else
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7940 #define $ac_func innocuous_$ac_func
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char $ac_func (); below.
7944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7945 <limits.h> exists even on freestanding compilers. */
7947 #ifdef __STDC__
7948 # include <limits.h>
7949 #else
7950 # include <assert.h>
7951 #endif
7953 #undef $ac_func
7955 /* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 char $ac_func ();
7962 /* The GNU C library defines this for functions which it implements
7963 to always fail with ENOSYS. Some functions are actually named
7964 something starting with __ and the normal name is an alias. */
7965 #if defined __stub_$ac_func || defined __stub___$ac_func
7966 choke me
7967 #endif
7970 main ()
7972 return $ac_func ();
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7984 $as_echo "$ac_try_echo") >&5
7985 (eval "$ac_link") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest$ac_exeext && {
7995 test "$cross_compiling" = yes ||
7996 $as_test_x conftest$ac_exeext
7997 }; then
7998 eval "$as_ac_var=yes"
7999 else
8000 $as_echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 eval "$as_ac_var=no"
8006 rm -rf conftest.dSYM
8007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8008 conftest$ac_exeext conftest.$ac_ext
8010 ac_res=`eval 'as_val=${'$as_ac_var'}
8011 $as_echo "$as_val"'`
8012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8013 $as_echo "$ac_res" >&6; }
8014 as_val=`eval 'as_val=${'$as_ac_var'}
8015 $as_echo "$as_val"'`
8016 if test "x$as_val" = x""yes; then
8017 cat >>confdefs.h <<_ACEOF
8018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8019 _ACEOF
8022 done
8024 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8025 $as_echo_n "checking for working mmap... " >&6; }
8026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test "$cross_compiling" = yes; then
8030 ac_cv_func_mmap_fixed_mapped=no
8031 else
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 $ac_includes_default
8039 /* malloc might have been renamed as rpl_malloc. */
8040 #undef malloc
8042 /* Thanks to Mike Haertel and Jim Avera for this test.
8043 Here is a matrix of mmap possibilities:
8044 mmap private not fixed
8045 mmap private fixed at somewhere currently unmapped
8046 mmap private fixed at somewhere already mapped
8047 mmap shared not fixed
8048 mmap shared fixed at somewhere currently unmapped
8049 mmap shared fixed at somewhere already mapped
8050 For private mappings, we should verify that changes cannot be read()
8051 back from the file, nor mmap's back from the file at a different
8052 address. (There have been systems where private was not correctly
8053 implemented like the infamous i386 svr4.0, and systems where the
8054 VM page cache was not coherent with the file system buffer cache
8055 like early versions of FreeBSD and possibly contemporary NetBSD.)
8056 For shared mappings, we should conversely verify that changes get
8057 propagated back to all the places they're supposed to be.
8059 Grep wants private fixed already mapped.
8060 The main things grep needs to know about mmap are:
8061 * does it exist and is it safe to write into the mmap'd area
8062 * how to use it (BSD variants) */
8064 #include <fcntl.h>
8065 #include <sys/mman.h>
8067 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8068 char *malloc ();
8069 #endif
8071 /* This mess was copied from the GNU getpagesize.h. */
8072 #ifndef HAVE_GETPAGESIZE
8073 /* Assume that all systems that can run configure have sys/param.h. */
8074 # ifndef HAVE_SYS_PARAM_H
8075 # define HAVE_SYS_PARAM_H 1
8076 # endif
8078 # ifdef _SC_PAGESIZE
8079 # define getpagesize() sysconf(_SC_PAGESIZE)
8080 # else /* no _SC_PAGESIZE */
8081 # ifdef HAVE_SYS_PARAM_H
8082 # include <sys/param.h>
8083 # ifdef EXEC_PAGESIZE
8084 # define getpagesize() EXEC_PAGESIZE
8085 # else /* no EXEC_PAGESIZE */
8086 # ifdef NBPG
8087 # define getpagesize() NBPG * CLSIZE
8088 # ifndef CLSIZE
8089 # define CLSIZE 1
8090 # endif /* no CLSIZE */
8091 # else /* no NBPG */
8092 # ifdef NBPC
8093 # define getpagesize() NBPC
8094 # else /* no NBPC */
8095 # ifdef PAGESIZE
8096 # define getpagesize() PAGESIZE
8097 # endif /* PAGESIZE */
8098 # endif /* no NBPC */
8099 # endif /* no NBPG */
8100 # endif /* no EXEC_PAGESIZE */
8101 # else /* no HAVE_SYS_PARAM_H */
8102 # define getpagesize() 8192 /* punt totally */
8103 # endif /* no HAVE_SYS_PARAM_H */
8104 # endif /* no _SC_PAGESIZE */
8106 #endif /* no HAVE_GETPAGESIZE */
8109 main ()
8111 char *data, *data2, *data3;
8112 int i, pagesize;
8113 int fd;
8115 pagesize = getpagesize ();
8117 /* First, make a file with some known garbage in it. */
8118 data = (char *) malloc (pagesize);
8119 if (!data)
8120 return 1;
8121 for (i = 0; i < pagesize; ++i)
8122 *(data + i) = rand ();
8123 umask (0);
8124 fd = creat ("conftest.mmap", 0600);
8125 if (fd < 0)
8126 return 1;
8127 if (write (fd, data, pagesize) != pagesize)
8128 return 1;
8129 close (fd);
8131 /* Next, try to mmap the file at a fixed address which already has
8132 something else allocated at it. If we can, also make sure that
8133 we see the same garbage. */
8134 fd = open ("conftest.mmap", O_RDWR);
8135 if (fd < 0)
8136 return 1;
8137 data2 = (char *) malloc (2 * pagesize);
8138 if (!data2)
8139 return 1;
8140 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8141 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8143 return 1;
8144 for (i = 0; i < pagesize; ++i)
8145 if (*(data + i) != *(data2 + i))
8146 return 1;
8148 /* Finally, make sure that changes to the mapped area do not
8149 percolate back to the file as seen by read(). (This is a bug on
8150 some variants of i386 svr4.0.) */
8151 for (i = 0; i < pagesize; ++i)
8152 *(data2 + i) = *(data2 + i) + 1;
8153 data3 = (char *) malloc (pagesize);
8154 if (!data3)
8155 return 1;
8156 if (read (fd, data3, pagesize) != pagesize)
8157 return 1;
8158 for (i = 0; i < pagesize; ++i)
8159 if (*(data + i) != *(data3 + i))
8160 return 1;
8161 close (fd);
8162 return 0;
8164 _ACEOF
8165 rm -f conftest$ac_exeext
8166 if { (ac_try="$ac_link"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8172 $as_echo "$ac_try_echo") >&5
8173 (eval "$ac_link") 2>&5
8174 ac_status=$?
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182 $as_echo "$ac_try_echo") >&5
8183 (eval "$ac_try") 2>&5
8184 ac_status=$?
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_func_mmap_fixed_mapped=yes
8188 else
8189 $as_echo "$as_me: program exited with status $ac_status" >&5
8190 $as_echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 ( exit $ac_status )
8194 ac_cv_func_mmap_fixed_mapped=no
8196 rm -rf conftest.dSYM
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8203 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_MMAP 1
8208 _ACEOF
8211 rm -f conftest.mmap
8216 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8217 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8218 aros_config_ldflags=""
8220 aros_shared_default=yes
8222 aros_shared_cflags="-fPIC"
8223 aros_shared_aflags=""
8224 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8225 aros_kernel_ldflags="-Wl,-rpath,./lib"
8227 aros_target_ar_flags="cr"
8228 aros_target_nm_flags="-C -ul"
8229 aros_target_strip_flags="--strip-unneeded -R.comment"
8231 aros_compiler_libs=
8232 aros_arch_libs=
8234 aros_target_genmap="-Wl,-Map -Xlinker"
8236 # Native flavour stuff
8237 aros_bochs_hack="0"
8238 aros_serial_debug="0"
8240 # Palm native flavour stuff
8241 aros_palm_debug_hack="0"
8243 # Unix flavour stuff
8244 aros_nesting_supervisor="0"
8246 # Collect-aros stuff: "-ius" to ignore undefined symbols
8247 ignore_undefined_symbols=""
8249 #-----------------------------------------------------------------------------
8252 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8253 # it switched on by default, and we use the host compiler, so it compiles AROS
8254 # code with this enabled resulting in link failures as we don't have support
8255 # for it.
8257 # We use two methods to disable it. For the host compiler (used to compile
8258 # some hosted modules), we test to see if the compiler supports stack
8259 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8260 # work on all platforms.
8262 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8263 # (this is done unconditionally, as it should have no effect on compilers
8264 # without the stack protection feature). This may be specific to the way that
8265 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8266 # strong enough to disable it in a generic way though, so we'll live with it
8267 # until another vendor ships GCC with it enabled in a different way, and deal
8268 # with it then.
8271 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8272 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8273 save_cc="$CC"
8274 save_cflags="$CFLAGS"
8275 CFLAGS="$CFLAGS -fno-stack-protector"
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8284 main ()
8288 return 0;
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8293 case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 use_no_stack_protector="yes"
8310 else
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 use_no_stack_protector="no"
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8319 $as_echo "$use_no_stack_protector" >&6; }
8320 if test "x-$use_no_stack_protector" = "x-yes" ; then
8321 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8323 if test "x-$cross_compiling" = "x-yes"; then
8324 CC="$aros_kernel_cc"
8325 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8326 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8335 main ()
8339 return 0;
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8344 case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8349 $as_echo "$ac_try_echo") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 use_no_stack_protector="yes"
8361 else
8362 $as_echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 use_no_stack_protector="no"
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8370 $as_echo "$use_no_stack_protector" >&6; }
8372 if test "x-$use_no_stack_protector" = "x-yes" ; then
8373 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
8375 CC="$save_cc"
8376 CFLAGS="$save_cflags"
8379 #-----------------------------------------------------------------------------
8381 # Check if we can explicitly choose older version of symbol hashing
8383 save_cflags="$CFLAGS"
8384 CFLAGS="$CFLAGS -Wl,--hash-style=sysv"
8385 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
8386 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8395 main ()
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (ac_try="$ac_link"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8409 $as_echo "$ac_try_echo") >&5
8410 (eval "$ac_link") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest$ac_exeext && {
8420 test "$cross_compiling" = yes ||
8421 $as_test_x conftest$ac_exeext
8422 }; then
8423 use_hash_style="yes"
8424 else
8425 $as_echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 use_hash_style="no"
8431 rm -rf conftest.dSYM
8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433 conftest$ac_exeext conftest.$ac_ext
8434 { $as_echo "$as_me:$LINENO: result: $use_hash_style" >&5
8435 $as_echo "$use_hash_style" >&6; }
8436 if test "x-$use_hash_style" = "x-yes" ; then
8437 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
8439 CFLAGS="$save_cflags"
8442 #-----------------------------------------------------------------------------
8444 # Disable pointer-signedness warnings if the compiler recognises the option
8445 # (this only works for the host compiler at the moment)
8447 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8448 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8449 save_cflags="$CFLAGS"
8450 CFLAGS="$CFLAGS -Wno-pointer-sign"
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8459 main ()
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8468 case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471 esac
8472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8473 $as_echo "$ac_try_echo") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 use_no_sign_warning="yes"
8485 else
8486 $as_echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 use_no_sign_warning="no"
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8494 $as_echo "$use_no_sign_warning" >&6; }
8495 if test "x-$use_no_sign_warning" = "x-yes" ; then
8496 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8498 CFLAGS="$save_cflags"
8500 #-----------------------------------------------------------------------------
8502 { $as_echo "$as_me:$LINENO: checking for type of build" >&5
8503 $as_echo_n "checking for type of build... " >&6; }
8504 # Check whether --enable-build_type was given.
8505 if test "${enable_build_type+set}" = set; then
8506 enableval=$enable_build_type; build_type=$enableval
8507 else
8508 build_type="personal"
8512 if test "$build_type" = "nightly"; then
8513 build_type_string="NIGHTLY"
8514 elif test "$build_type" = "snapshot"; then
8515 build_type_string="SNAPSHOT"
8516 elif test "$build_type" = "milestone"; then
8517 build_type_string="MILESTONE"
8518 elif test "$build_type" = "release"; then
8519 build_type_string="RELEASE"
8520 else
8521 build_type_string="PERSONAL"
8522 build_type="personal"
8525 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8527 { $as_echo "$as_me:$LINENO: result: $build_type" >&5
8528 $as_echo "$build_type" >&6; }
8530 #-----------------------------------------------------------------------------
8531 all_debug_types="messages stack mungwall modules symbols"
8533 { $as_echo "$as_me:$LINENO: checking which debug types to enable" >&5
8534 $as_echo_n "checking which debug types to enable... " >&6; }
8535 # Check whether --enable-debug was given.
8536 if test "${enable_debug+set}" = set; then
8537 enableval=$enable_debug; debug="$enableval"
8538 else
8539 debug=""
8543 if test "$debug" = "" -o "$debug" = "no"; then
8544 debug="none"
8545 elif test "$debug" = "yes"; then
8546 debug="all"
8549 if test "$debug" = "all" ; then
8550 debug=$all_debug_types
8551 for d in $all_debug_types; do
8552 export aros_${d}_debug="1"
8553 done
8554 else
8555 for d in $all_debug_types; do
8556 export aros_${d}_debug="0"
8557 done
8560 if test "$debug" != "none"; then
8561 debug=`echo $debug | sed s/,/\ /g`
8562 for d in $debug; do
8563 found="0"
8564 for d2 in $all_debug_types; do
8565 if test "$d2" = "$d"; then
8566 found="1"
8567 break
8569 done
8570 if test "$found" = "0"; then
8571 { { $as_echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8572 $as_echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8573 { (exit 1); exit 1; }; }
8575 export aros_${d}_debug="1"
8576 done
8577 aros_debug="yes"
8579 { $as_echo "$as_me:$LINENO: result: $debug" >&5
8580 $as_echo "$debug" >&6; }
8582 if test "$aros_messages_debug" = "1"; then
8583 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8584 else
8585 aros_messages_debug=""
8587 if test "$aros_symbols_debug" = "1"; then
8588 aros_symbols_debug="-g"
8589 else
8590 aros_symbols_debug=""
8593 # These are the flags to pass when compiling debugged programs
8594 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8595 aros_debug_aflags=""
8596 aros_debug_ldflags="$aros_symbols_debug"
8598 aros_crosstools="no"
8600 #-----------------------------------------------------------------------------
8601 # Checking if we should build crosstools..
8602 { $as_echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8603 $as_echo_n "checking whether to build crosstools... " >&6; }
8604 # Check whether --enable-crosstools was given.
8605 if test "${enable_crosstools+set}" = set; then
8606 enableval=$enable_crosstools; crosstools="$enableval"
8607 else
8608 crosstools="no"
8611 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8612 { $as_echo "$as_me:$LINENO: result: yes" >&5
8613 $as_echo "yes" >&6; }
8614 aros_crosstools="yes"
8615 else
8616 { $as_echo "$as_me:$LINENO: result: no" >&5
8617 $as_echo "no" >&6; }
8620 #-----------------------------------------------------------------------------
8621 # Checking for distcc and ccache.
8623 # Always apply the transforms in this particular order. Basically you should
8624 # always run 'ccache distcc compiler' in that order for the best performance.
8626 { $as_echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8627 $as_echo_n "checking whether to enable distcc... " >&6; }
8628 # Check whether --enable-distcc was given.
8629 if test "${enable_distcc+set}" = set; then
8630 enableval=$enable_distcc; distcc="$enableval"
8631 else
8632 distcc="no"
8635 if test "$distcc" != "" -a "$distcc" != "no"; then
8636 # AC_CHECK_PROG will print out the result in this case
8637 # Extract the first word of "distcc", so it can be a program name with args.
8638 set dummy distcc; ac_word=$2
8639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_path_DISTCC+set}" = set; then
8642 $as_echo_n "(cached) " >&6
8643 else
8644 case $DISTCC in
8645 [\\/]* | ?:[\\/]*)
8646 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8660 done
8661 done
8662 IFS=$as_save_IFS
8664 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8666 esac
8668 DISTCC=$ac_cv_path_DISTCC
8669 if test -n "$DISTCC"; then
8670 { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
8671 $as_echo "$DISTCC" >&6; }
8672 else
8673 { $as_echo "$as_me:$LINENO: result: no" >&5
8674 $as_echo "no" >&6; }
8678 else
8679 { $as_echo "$as_me:$LINENO: result: no" >&5
8680 $as_echo "no" >&6; }
8683 { $as_echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8684 $as_echo_n "checking whether to enable ccache... " >&6; }
8685 # Check whether --enable-ccache was given.
8686 if test "${enable_ccache+set}" = set; then
8687 enableval=$enable_ccache; ccache="$enableval"
8688 else
8689 ccache="no"
8692 if test "$ccache" != "" -a "$ccache" != "no"; then
8693 # AC_CHECK_PROG will print out the result in this case
8694 # Extract the first word of "ccache", so it can be a program name with args.
8695 set dummy ccache; ac_word=$2
8696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_CCACHE+set}" = set; then
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$CCACHE"; then
8702 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_CCACHE="ccache"
8712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8715 done
8716 done
8717 IFS=$as_save_IFS
8721 CCACHE=$ac_cv_prog_CCACHE
8722 if test -n "$CCACHE"; then
8723 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
8724 $as_echo "$CCACHE" >&6; }
8725 else
8726 { $as_echo "$as_me:$LINENO: result: no" >&5
8727 $as_echo "no" >&6; }
8731 else
8732 { $as_echo "$as_me:$LINENO: result: no" >&5
8733 $as_echo "no" >&6; }
8736 #-----------------------------------------------------------------------------
8737 { $as_echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8738 $as_echo_n "checking what optimization flags to use... " >&6; }
8740 # Check whether --with-optimization was given.
8741 if test "${with_optimization+set}" = set; then
8742 withval=$with_optimization; optimization="$withval"
8743 else
8744 optimization="unknown"
8747 if test "$optimization" = "unknown"; then
8748 if test "$debug" != "none"; then
8749 optimization="-O0"
8750 else
8751 optimization="-O2"
8754 aros_config_cflags="$aros_config_cflags $optimization"
8755 { $as_echo "$as_me:$LINENO: result: $optimization" >&5
8756 $as_echo "$optimization" >&6; }
8758 #-----------------------------------------------------------------------------
8759 { $as_echo "$as_me:$LINENO: checking what target variant to enable" >&5
8760 $as_echo_n "checking what target variant to enable... " >&6; }
8761 # Check whether --enable-target_variant was given.
8762 if test "${enable_target_variant+set}" = set; then
8763 enableval=$enable_target_variant; target_variant=$enableval
8764 else
8765 target_variant="none"
8768 if test "$target_variant" = "none"; then
8769 aros_target_variant=""
8770 aros_target_suffix=""
8771 else
8772 aros_target_variant="$target_variant"
8773 aros_target_suffix="-$target_variant"
8775 { $as_echo "$as_me:$LINENO: result: $enableval" >&5
8776 $as_echo "$enableval" >&6; }
8778 target_bootloader="none"
8780 #-----------------------------------------------------------------------------
8781 # This is the target configuration switch.
8782 case "$target_os" in
8783 linux*)
8784 aros_target_arch="linux"
8785 case "$target_cpu" in
8786 *m68k*)
8787 aros_target_cpu="m68k"
8788 aros_object_format="m68kelf"
8789 aros_flavour="emulcompat"
8790 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8791 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8792 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8793 gcc_target_cpu="mc68000"
8795 *i?86*)
8796 aros_target_cpu="i386"
8797 aros_object_format="elf_i386"
8798 aros_flavour="emulation"
8799 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8800 aros_config_cflags="$aros_config_cflags -m32"
8801 aros_kernel_cflags="$aros_kernel_cflags -m32"
8802 aros_config_aflags="$aros_config_aflags -m32"
8803 aros_config_ldflags="-m32"
8804 aros_kernel_ldflags="-melf_i386"
8805 aros_default_wbdepth=8
8806 gcc_target_cpu="i386"
8808 *x86_64*)
8809 aros_target_cpu="x86_64"
8810 aros_object_format="elf_x86_64"
8811 aros_flavour="emulation"
8812 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8813 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8814 aros_default_wbdepth=8
8815 gcc_target_cpu="x86_64"
8817 *powerpc*)
8818 aros_target_cpu="ppc"
8819 aros_object_format="elf32ppc"
8820 aros_flavour="emulation"
8821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8822 aros_default_wbdepth=8
8823 gcc_target_cpu="ppc"
8825 # TODO
8826 # Same as powerpc, but I need this for the nightly build to work again.
8827 # Actually, the nightly should be made working with powerpc target.
8828 # That just was too much work for the moment, another week or two.
8829 *ppc*)
8830 aros_target_cpu="ppc"
8831 aros_object_format="elf32ppc"
8832 aros_flavour="emulation"
8833 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8834 aros_default_wbdepth=8
8835 gcc_target_cpu="ppc"
8838 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8839 $as_echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8840 { (exit 1); exit 1; }; }
8842 esac
8846 aros_target_arch="pc"
8847 aros_shared_default="no"
8848 target_bootloader="grub2"
8849 case "$target_cpu" in
8850 *i?86*)
8851 aros_target_cpu="i386"
8854 if test "$aros_object_format" = "" ; then
8855 aros_object_format="elf_i386"
8857 aros_flavour="standalone"
8858 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8859 aros_config_cflags="$aros_config_cflags -m32"
8860 aros_kernel_cflags="$aros_kernel_cflags -m32"
8861 aros_config_aflags="$aros_config_aflags -m32"
8862 aros_config_ldflags="-m32"
8863 aros_kernel_ldflags="-melf_i386"
8864 aros_default_wbwidth=640
8865 aros_default_wbheight=480
8866 gcc_target_cpu="i386"
8868 *x86_64*)
8869 aros_target_cpu="x86_64"
8870 aros_serial_debug=1
8871 if test "$aros_object_format" = "" ; then
8872 aros_object_format="elf_x86_64"
8874 aros_flavour="standalone"
8875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8876 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8877 aros_kernel_ldflags=""
8878 aros_default_wbwidth=640
8879 aros_default_wbheight=480
8880 gcc_target_cpu="x86_64"
8883 { { $as_echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8884 $as_echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8885 { (exit 1); exit 1; }; }
8887 esac
8890 prep)
8891 aros_target_arch="prep"
8892 aros_shared_default="no"
8893 aros_target_cpu="ppc"
8894 aros_object_format="elf32ppc"
8895 aros_flavour="ppcnative"
8896 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8897 aros_kernel_ldflags=""
8898 aros_default_wbwidth=640
8899 aros_default_wbheight=480
8900 gcc_target_cpu="ppc"
8903 freebsd*)
8904 aros_target_arch="freebsd"
8905 aros_target_cpu="i386"
8906 aros_flavour="emulation"
8907 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8908 gcc_target_cpu="i386"
8910 aros_target_strip_flags="-x"
8913 darwin*)
8914 aros_target_arch="darwin"
8915 aros_flavour="emulation"
8916 need_dlopen="no"
8917 case "$target_cpu" in
8918 *i?86*)
8919 aros_target_cpu="i386"
8920 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8921 gcc_target_cpu="i386"
8922 aros_object_format="elf_i386"
8923 aros_target_strip_flags="-x"
8926 { { $as_echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8927 $as_echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8928 { (exit 1); exit 1; }; }
8930 esac
8933 dragonfly*)
8934 aros_target_arch="dragonfly"
8935 aros_flavour="emulation"
8936 case "$target_cpu" in
8937 *i?86*)
8938 aros_target_cpu="i386"
8939 aros_object_format="elf_i386"
8940 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8942 *x86_64*)
8943 aros_target_cpu="x86_64"
8944 aros_object_format="elf_x86_64"
8945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8948 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8949 $as_echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8950 { (exit 1); exit 1; }; }
8952 esac
8955 netbsd*)
8956 aros_target_arch="netbsd"
8957 case "$target_cpu" in
8958 *m68k*)
8959 aros_target_cpu="m68k"
8960 aros_object_format="m68kelf"
8961 aros_flavour="emulcompat"
8962 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8963 gcc_target_cpu="mc68000"
8965 *i?86*)
8966 aros_target_cpu="i386"
8967 aros_object_format="elf_i386"
8968 aros_flavour="emulation"
8969 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8970 aros_default_wbdepth=8
8971 gcc_target_cpu="i386"
8974 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8975 $as_echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8976 { (exit 1); exit 1; }; }
8978 esac
8979 aros_target_genmap="-Wl,-M -Xlinker >"
8980 aros_flavour="emulation"
8981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8984 openbsd*)
8985 aros_target_arch="openbsd"
8986 case "$target_cpu" in
8987 *i?86*)
8988 aros_target_cpu="i386"
8989 aros_object_format="elf_i386"
8990 aros_flavour="emulation"
8991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8992 gcc_target_cpu="i386"
8995 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8996 $as_echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8997 { (exit 1); exit 1; }; }
8999 esac
9000 aros_target_genmap="-Wl,-M -Xlinker >"
9001 aros_target_nm_flags="-u"
9002 aros_flavour="emulation"
9005 solaris*)
9006 aros_target_arch="solaris"
9007 case "$target_cpu" in
9008 *i?86*)
9009 aros_target_cpu="i386"
9010 aros_object_format="elf_i386"
9011 aros_flavour="emulation"
9012 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9013 aros_default_wbdepth=8
9014 gcc_target_cpu="i386"
9016 *sparc*)
9017 aros_target_cpu="sparc"
9018 aros_object_format="elf_sparc"
9019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9020 gcc_target_cpu="sparc"
9023 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
9024 $as_echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
9025 { (exit 1); exit 1; }; }
9027 esac
9028 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
9029 aros_flavour="emulation"
9032 morphos*)
9033 aros_target_arch="morphos"
9034 aros_shared_default="no"
9035 aros_target_cpu="ppc"
9036 aros_object_format="elf_ppc"
9037 aros_flavour="nativecompat"
9038 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9039 gcc_target_cpu="ppc"
9042 sam440)
9043 aros_target_arch="sam440"
9044 aros_shared_default="no"
9045 aros_target_cpu="ppc"
9046 aros_object_format="elf32ppc"
9047 aros_flavour="ppcnative"
9048 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9049 aros_kernel_ldflags=""
9050 aros_default_wbwidth=640
9051 aros_default_wbheight=480
9052 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
9053 gcc_target_cpu="powerpc"
9056 efika)
9057 aros_target_arch="efika"
9058 aros_shared_default="no"
9059 aros_target_cpu="arm"
9060 aros_object_format="armelf_linux_eabi"
9061 aros_flavour="standalone"
9062 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9063 aros_kernel_ldflags=""
9064 aros_default_wbwidth=1024
9065 aros_default_wbheight=600
9066 aros_arch_libs="-laeabi"
9067 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
9068 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
9071 chrp)
9072 aros_target_arch="chrp"
9073 aros_shared_default="no"
9074 aros_target_cpu="ppc"
9075 aros_object_format="elf32ppc"
9076 aros_flavour="ppcnative"
9077 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9078 aros_kernel_ldflags=""
9079 aros_default_wbwidth=640
9080 aros_default_wbheight=480
9081 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
9082 gcc_target_cpu="powerpc"
9083 case "$aros_target_variant" in
9084 efika)
9085 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
9087 esac
9090 amiga*)
9091 aros_target_arch="amiga"
9092 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9093 aros_shared_default="no"
9095 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
9097 case "$target_cpu" in
9098 *m68k*)
9099 aros_target_cpu="m68k"
9100 aros_object_format="m68kelf"
9101 aros_flavour="nativecompat"
9102 gcc_target_cpu="mc68000"
9104 *ppc*)
9105 aros_cpu="ppc"
9106 aros_flavour="native"
9107 gcc_target_cpu="ppc"
9110 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
9111 $as_echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
9112 { (exit 1); exit 1; }; }
9114 esac
9117 mingw32*)
9118 aros_target_arch="mingw32"
9119 aros_shared_default="no"
9120 need_dlopen="no"
9121 rescomp="windres"
9122 case "$target_cpu" in
9123 *i?86*)
9124 aros_target_cpu="i386"
9125 aros_object_format="elf_i386"
9126 aros_flavour="emulation"
9127 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9128 aros_shared_cflags=""
9129 aros_default_wbdepth=8
9130 gcc_target_cpu="i386"
9131 aros_target_cc="i386-aros-gcc"
9132 aros_target_ld="i386-aros-ld"
9133 aros_target_as="i386-aros-as"
9134 aros_target_ar="i386-aros-ar"
9135 aros_target_ranlib="i386-aros-ranlib"
9136 aros_target_nm="i386-aros-nm"
9137 aros_target_strip="i386-aros-strip"
9138 aros_target_objcopy="i386-aros-objcopy"
9139 aros_target_objdump="i386-aros-objdump"
9140 target_tool_prefix="i386-mingw32-"
9143 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9144 $as_echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9145 { (exit 1); exit 1; }; }
9147 esac
9148 if test $host_os = "cygwin"; then
9149 aros_kernel_cflags="-mno-cygwin"
9152 pp*)
9153 aros_target_arch="pp"
9154 aros_shared_default="no"
9155 case "$target_cpu" in
9156 *m68k*)
9157 aros_target_cpu="m68k"
9158 aros_object_format="m68kelf"
9159 aros_flavour="palmnative"
9160 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9161 aros_default_wbwidth=160
9162 aros_default_wbheight=160
9163 aros_default_wbdepth=1
9164 aros_target_ar_flags="cru"
9165 aros_compiler_libs="-lgcc1"
9166 aros_shared_default=no
9167 aros_shared_cflags="-fpic"
9168 aros_shared_aflags=""
9169 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9170 aros_kernel_ldflags="-Wl,-rpath,./lib"
9171 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9172 aros_debug_aflags=""
9173 aros_debug_ldflags="$aros_symbols_debug"
9174 aros_mungwall_debug="0"
9175 aros_modules_debug="0"
9176 gcc_target_cpu="mc68000"
9177 ignore_undefined_symbols="-ius"
9180 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9181 $as_echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9182 { (exit 1); exit 1; }; }
9184 esac
9187 mac*)
9188 aros_target_arch="mac"
9189 aros_shared_default="no"
9190 case "$target_cpu" in
9191 *m68k*)
9192 aros_target_cpu="m68k"
9193 aros_object_format="m68kelf"
9194 aros_flavour="mac68knative"
9195 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9196 aros_default_wbwidth=512
9197 aros_default_wbheight=384
9198 aros_default_wbdepth=8
9199 aros_target_ar_flags="cru"
9200 aros_compiler_libs="-lgcc1"
9201 aros_shared_default=no
9202 aros_shared_cflags="-fpic"
9203 aros_shared_aflags=""
9204 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9205 aros_kernel_ldflags="-Wl,-rpath,./lib"
9206 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9207 aros_debug_aflags=""
9208 aros_debug_ldflags="$aros_symbols_debug"
9209 aros_mungwall_debug="0"
9210 aros_modules_debug="0"
9211 gcc_target_cpu="mc68000"
9212 ignore_undefined_symbols="-ius"
9215 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9216 $as_echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9217 { (exit 1); exit 1; }; }
9219 esac
9223 { { $as_echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9224 $as_echo "$as_me: error: Unsupported target architecture $target" >&2;}
9225 { (exit 1); exit 1; }; }
9227 esac
9229 { $as_echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9230 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
9232 # Check whether --with-portssources was given.
9233 if test "${with_portssources+set}" = set; then
9234 withval=$with_portssources; with_portssrcdir=$withval
9235 else
9236 with_portssrcdir="default"
9239 if test "$with_portssrcdir" = "default"; then
9240 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
9241 else
9242 AROS_PORTSSRCDIR="$with_portssrcdir"
9244 { $as_echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9245 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9247 { $as_echo "$as_me:$LINENO: checking which bootloader to use" >&5
9248 $as_echo_n "checking which bootloader to use... " >&6; }
9250 # Check whether --with-bootloader was given.
9251 if test "${with_bootloader+set}" = set; then
9252 withval=$with_bootloader; target_bootloader=$withval
9253 else
9254 target_bootloader=$target_bootloader
9257 if test "$target_bootloader" = "none"; then
9258 aros_target_bootloader=""
9259 else
9260 aros_target_bootloader="$target_bootloader"
9262 { $as_echo "$as_me:$LINENO: result: $target_bootloader" >&5
9263 $as_echo "$target_bootloader" >&6; }
9265 { $as_echo "$as_me:$LINENO: checking which icon-set to use" >&5
9266 $as_echo_n "checking which icon-set to use... " >&6; }
9268 # Check whether --with-iconset was given.
9269 if test "${with_iconset+set}" = set; then
9270 withval=$with_iconset; target_iconset=$withval
9271 else
9272 target_iconset="default"
9275 if test "$target_iconset" = "default"; then
9276 aros_target_iconset="Gorilla"
9277 target_iconset="default (Gorilla)"
9278 else
9279 aros_target_iconset="$target_iconset"
9281 { $as_echo "$as_me:$LINENO: result: $target_iconset" >&5
9282 $as_echo "$target_iconset" >&6; }
9284 { $as_echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9285 $as_echo_n "checking which GUI Theme to use... " >&6; }
9287 # Check whether --with-theme was given.
9288 if test "${with_theme+set}" = set; then
9289 withval=$with_theme; target_guitheme=$withval
9290 else
9291 target_guitheme="default"
9294 if test "$target_guitheme" = "default"; then
9295 aros_target_guitheme="Ice"
9296 else
9297 aros_target_guitheme="$target_guitheme"
9299 { $as_echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9300 $as_echo "$aros_target_guitheme" >&6; }
9302 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9303 # for target code)
9304 cross_compiling=no
9305 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9306 cross_compiling=yes
9308 if test "$aros_host_cpu" == "x86_64" ; then
9309 if test "$aros_target_cpu" == "i386" ; then
9310 cross_compiling=no
9313 if test "$aros_host_arch" == "darwin" ; then
9314 cross_compiling=yes
9317 # Set prefix for target compiler etc. if we're cross-compiling
9318 # (should possibly be earlier but needs to be after AC_PROG_CC)
9319 if test "$cross_compiling" = "yes" ; then
9320 if test "$target_tool_prefix" = ""; then
9321 target_tool_prefix=${target_cpu}-elf-
9323 CC=${target_tool_prefix}gcc
9326 #-----------------------------------------------------------------------------
9328 # Disable pointer-signedness warnings if the compiler recognises the option
9330 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9331 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
9332 save_cflags="$CFLAGS"
9333 CFLAGS="$CFLAGS -Wno-pointer-sign"
9334 cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h. */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9342 main ()
9346 return 0;
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (ac_try="$ac_compile"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9356 $as_echo "$ac_try_echo") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && {
9364 test -z "$ac_c_werror_flag" ||
9365 test ! -s conftest.err
9366 } && test -s conftest.$ac_objext; then
9367 use_no_sign_warning="yes"
9368 else
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 use_no_sign_warning="no"
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9377 $as_echo "$use_no_sign_warning" >&6; }
9378 if test "x-$use_no_sign_warning" = "x-yes" ; then
9379 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9381 CFLAGS="$save_cflags"
9383 #-----------------------------------------------------------------------------
9385 # Find all the tools we need to compile. This could be cross-compiling
9386 # though! If that is the case we use the GNU form of the target and
9387 # simply add this to the front of the binary name. This is rather simple,
9388 # but it should work under most circumstances.
9390 # The default tools are to use the same as the host, but only if the
9391 # host and target CPU are the same. With GCC this is normally enough.
9394 aros_cc_pre=""
9395 aros_shared_ld="$aros_host_ld"
9397 aros_target_mkdep="$aros_host_mkdep"
9398 aros_target_incl_def="$aros_host_incl"
9400 # Extract the first word of "$CC", so it can be a program name with args.
9401 set dummy $CC; ac_word=$2
9402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9406 else
9407 case $aros_kernel_cc in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # 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_cc="$as_dir/$ac_word$ac_exec_ext"
9420 $as_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_cc=$ac_cv_path_aros_kernel_cc
9431 if test -n "$aros_kernel_cc"; then
9432 { $as_echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9433 $as_echo "$aros_kernel_cc" >&6; }
9434 else
9435 { $as_echo "$as_me:$LINENO: result: no" >&5
9436 $as_echo "no" >&6; }
9441 # The default tools executables to be linked to.
9442 if test "$aros_target_cc" != ""; then
9443 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9444 set dummy $aros_target_cc; ac_word=$2
9445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9448 $as_echo_n "(cached) " >&6
9449 else
9450 case $aros_target_cc in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in $PATH
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_target_cc="$as_dir/$ac_word$ac_exec_ext"
9463 $as_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_target_cc=$ac_cv_path_aros_target_cc
9474 if test -n "$aros_target_cc"; then
9475 { $as_echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9476 $as_echo "$aros_target_cc" >&6; }
9477 else
9478 { $as_echo "$as_me:$LINENO: result: no" >&5
9479 $as_echo "no" >&6; }
9483 if test "$aros_target_cc" = ""; then
9484 { { $as_echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9485 $as_echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9486 { (exit 1); exit 1; }; }
9489 if test "$aros_target_ld" != ""; then
9490 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9491 set dummy $aros_target_ld; ac_word=$2
9492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9495 $as_echo_n "(cached) " >&6
9496 else
9497 case $aros_target_ld in
9498 [\\/]* | ?:[\\/]*)
9499 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9509 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9513 done
9514 done
9515 IFS=$as_save_IFS
9518 esac
9520 aros_target_ld=$ac_cv_path_aros_target_ld
9521 if test -n "$aros_target_ld"; then
9522 { $as_echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9523 $as_echo "$aros_target_ld" >&6; }
9524 else
9525 { $as_echo "$as_me:$LINENO: result: no" >&5
9526 $as_echo "no" >&6; }
9530 if test "$aros_target_ld" = ""; then
9531 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9532 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9533 { (exit 1); exit 1; }; }
9537 if test "$crosstools" != "yes"; then
9539 if test "$aros_target_as" = ""; then
9540 if test "$cross_compiling" = "yes" ; then
9541 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9542 set dummy ${target_tool_prefix}as; ac_word=$2
9543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9546 $as_echo_n "(cached) " >&6
9547 else
9548 case $aros_target_as_ln in
9549 [\\/]* | ?:[\\/]*)
9550 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9560 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9564 done
9565 done
9566 IFS=$as_save_IFS
9569 esac
9571 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9572 if test -n "$aros_target_as_ln"; then
9573 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9574 $as_echo "$aros_target_as_ln" >&6; }
9575 else
9576 { $as_echo "$as_me:$LINENO: result: no" >&5
9577 $as_echo "no" >&6; }
9581 else
9582 if test "$GCC" = "yes"; then
9583 aros_gcc_as=`$CC -print-prog-name=as`
9584 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9585 set dummy `basename $aros_gcc_as`; ac_word=$2
9586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9589 $as_echo_n "(cached) " >&6
9590 else
9591 case $aros_target_as_ln in
9592 [\\/]* | ?:[\\/]*)
9593 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in `dirname $aros_gcc_as`
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 break 2
9607 done
9608 done
9609 IFS=$as_save_IFS
9612 esac
9614 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9615 if test -n "$aros_target_as_ln"; then
9616 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9617 $as_echo "$aros_target_as_ln" >&6; }
9618 else
9619 { $as_echo "$as_me:$LINENO: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test "$aros_target_as_ln" = ""; then
9626 # Extract the first word of "as", so it can be a program name with args.
9627 set dummy as; ac_word=$2
9628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9631 $as_echo_n "(cached) " >&6
9632 else
9633 case $aros_target_as_ln in
9634 [\\/]* | ?:[\\/]*)
9635 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9649 done
9650 done
9651 IFS=$as_save_IFS
9654 esac
9656 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9657 if test -n "$aros_target_as_ln"; then
9658 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9659 $as_echo "$aros_target_as_ln" >&6; }
9660 else
9661 { $as_echo "$as_me:$LINENO: result: no" >&5
9662 $as_echo "no" >&6; }
9668 else
9669 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9670 set dummy $aros_target_as; ac_word=$2
9671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9674 $as_echo_n "(cached) " >&6
9675 else
9676 case $aros_target_as_ln in
9677 [\\/]* | ?:[\\/]*)
9678 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9692 done
9693 done
9694 IFS=$as_save_IFS
9697 esac
9699 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9700 if test -n "$aros_target_as_ln"; then
9701 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9702 $as_echo "$aros_target_as_ln" >&6; }
9703 else
9704 { $as_echo "$as_me:$LINENO: result: no" >&5
9705 $as_echo "no" >&6; }
9711 if test "$aros_target_as_ln" = ""; then
9712 { { $as_echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9713 $as_echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9714 { (exit 1); exit 1; }; }
9717 if test "$aros_kernel_ld" = ""; then
9718 if test "$cross_compiling" = "yes" ; then
9719 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9720 set dummy ${target_tool_prefix}ld; ac_word=$2
9721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9724 $as_echo_n "(cached) " >&6
9725 else
9726 case $aros_kernel_ld in
9727 [\\/]* | ?:[\\/]*)
9728 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9747 esac
9749 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9750 if test -n "$aros_kernel_ld"; then
9751 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9752 $as_echo "$aros_kernel_ld" >&6; }
9753 else
9754 { $as_echo "$as_me:$LINENO: result: no" >&5
9755 $as_echo "no" >&6; }
9759 else
9760 if test "$GCC" = "yes"; then
9761 aros_gcc_ld=`$CC -print-prog-name=ld`
9762 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9763 set dummy `basename $aros_gcc_ld`; ac_word=$2
9764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9767 $as_echo_n "(cached) " >&6
9768 else
9769 case $aros_kernel_ld in
9770 [\\/]* | ?:[\\/]*)
9771 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in `dirname $aros_gcc_ld`
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9781 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9785 done
9786 done
9787 IFS=$as_save_IFS
9790 esac
9792 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9793 if test -n "$aros_kernel_ld"; then
9794 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9795 $as_echo "$aros_kernel_ld" >&6; }
9796 else
9797 { $as_echo "$as_me:$LINENO: result: no" >&5
9798 $as_echo "no" >&6; }
9803 if test "$aros_kernel_ld" = ""; then
9804 # Extract the first word of "ld", so it can be a program name with args.
9805 set dummy ld; ac_word=$2
9806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9810 else
9811 case $aros_kernel_ld in
9812 [\\/]* | ?:[\\/]*)
9813 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9827 done
9828 done
9829 IFS=$as_save_IFS
9832 esac
9834 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9835 if test -n "$aros_kernel_ld"; then
9836 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9837 $as_echo "$aros_kernel_ld" >&6; }
9838 else
9839 { $as_echo "$as_me:$LINENO: result: no" >&5
9840 $as_echo "no" >&6; }
9846 else
9847 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9848 set dummy $aros_kernel_ld; ac_word=$2
9849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9852 $as_echo_n "(cached) " >&6
9853 else
9854 case $aros_kernel_ld in
9855 [\\/]* | ?:[\\/]*)
9856 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9866 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9870 done
9871 done
9872 IFS=$as_save_IFS
9875 esac
9877 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9878 if test -n "$aros_kernel_ld"; then
9879 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9880 $as_echo "$aros_kernel_ld" >&6; }
9881 else
9882 { $as_echo "$as_me:$LINENO: result: no" >&5
9883 $as_echo "no" >&6; }
9889 if test "$aros_kernel_ld" = ""; then
9890 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9891 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9892 { (exit 1); exit 1; }; }
9895 if test "$aros_target_ar" = ""; then
9896 if test "$cross_compiling" = "yes" ; then
9897 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9898 set dummy ${target_tool_prefix}ar; ac_word=$2
9899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9902 $as_echo_n "(cached) " >&6
9903 else
9904 case $aros_target_ar_ln in
9905 [\\/]* | ?:[\\/]*)
9906 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9912 IFS=$as_save_IFS
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9916 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 break 2
9920 done
9921 done
9922 IFS=$as_save_IFS
9925 esac
9927 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9928 if test -n "$aros_target_ar_ln"; then
9929 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9930 $as_echo "$aros_target_ar_ln" >&6; }
9931 else
9932 { $as_echo "$as_me:$LINENO: result: no" >&5
9933 $as_echo "no" >&6; }
9937 else
9938 if test "$GCC" = "yes"; then
9939 aros_gcc_ar=`$CC -print-prog-name=ar`
9940 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9941 set dummy `basename $aros_gcc_ar`; ac_word=$2
9942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9946 else
9947 case $aros_target_ar_ln in
9948 [\\/]* | ?:[\\/]*)
9949 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in `dirname $aros_gcc_ar`
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9968 esac
9970 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9971 if test -n "$aros_target_ar_ln"; then
9972 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9973 $as_echo "$aros_target_ar_ln" >&6; }
9974 else
9975 { $as_echo "$as_me:$LINENO: result: no" >&5
9976 $as_echo "no" >&6; }
9981 if test "$aros_target_ar_ln" = ""; then
9982 # Extract the first word of "ar", so it can be a program name with args.
9983 set dummy ar; ac_word=$2
9984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $aros_target_ar_ln in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10010 esac
10012 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10013 if test -n "$aros_target_ar_ln"; then
10014 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10015 $as_echo "$aros_target_ar_ln" >&6; }
10016 else
10017 { $as_echo "$as_me:$LINENO: result: no" >&5
10018 $as_echo "no" >&6; }
10024 else
10025 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
10026 set dummy $aros_target_ar; ac_word=$2
10027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10030 $as_echo_n "(cached) " >&6
10031 else
10032 case $aros_target_ar_ln in
10033 [\\/]* | ?:[\\/]*)
10034 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10048 done
10049 done
10050 IFS=$as_save_IFS
10053 esac
10055 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10056 if test -n "$aros_target_ar_ln"; then
10057 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10058 $as_echo "$aros_target_ar_ln" >&6; }
10059 else
10060 { $as_echo "$as_me:$LINENO: result: no" >&5
10061 $as_echo "no" >&6; }
10067 if test "$aros_target_ar_ln" = ""; then
10068 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10069 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10070 { (exit 1); exit 1; }; }
10073 if test "$aros_target_nm" = ""; then
10074 if test "$cross_compiling" = "yes" ; then
10075 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10076 set dummy ${target_tool_prefix}nm; ac_word=$2
10077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10080 $as_echo_n "(cached) " >&6
10081 else
10082 case $aros_target_nm_ln in
10083 [\\/]* | ?:[\\/]*)
10084 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10094 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10098 done
10099 done
10100 IFS=$as_save_IFS
10103 esac
10105 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10106 if test -n "$aros_target_nm_ln"; then
10107 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10108 $as_echo "$aros_target_nm_ln" >&6; }
10109 else
10110 { $as_echo "$as_me:$LINENO: result: no" >&5
10111 $as_echo "no" >&6; }
10115 else
10116 if test "$GCC" = "yes"; then
10117 aros_gcc_nm=`$CC -print-prog-name=nm`
10118 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10119 set dummy `basename $aros_gcc_nm`; ac_word=$2
10120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10123 $as_echo_n "(cached) " >&6
10124 else
10125 case $aros_target_nm_ln in
10126 [\\/]* | ?:[\\/]*)
10127 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in `dirname $aros_gcc_nm`
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10137 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10141 done
10142 done
10143 IFS=$as_save_IFS
10146 esac
10148 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10149 if test -n "$aros_target_nm_ln"; then
10150 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10151 $as_echo "$aros_target_nm_ln" >&6; }
10152 else
10153 { $as_echo "$as_me:$LINENO: result: no" >&5
10154 $as_echo "no" >&6; }
10159 if test "$aros_target_nm_ln" = ""; then
10160 # Extract the first word of "nm", so it can be a program name with args.
10161 set dummy nm; ac_word=$2
10162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10165 $as_echo_n "(cached) " >&6
10166 else
10167 case $aros_target_nm_ln in
10168 [\\/]* | ?:[\\/]*)
10169 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10179 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10183 done
10184 done
10185 IFS=$as_save_IFS
10188 esac
10190 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10191 if test -n "$aros_target_nm_ln"; then
10192 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10193 $as_echo "$aros_target_nm_ln" >&6; }
10194 else
10195 { $as_echo "$as_me:$LINENO: result: no" >&5
10196 $as_echo "no" >&6; }
10202 else
10203 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10204 set dummy $aros_target_nm; ac_word=$2
10205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10208 $as_echo_n "(cached) " >&6
10209 else
10210 case $aros_target_nm_ln in
10211 [\\/]* | ?:[\\/]*)
10212 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10231 esac
10233 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10234 if test -n "$aros_target_nm_ln"; then
10235 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10236 $as_echo "$aros_target_nm_ln" >&6; }
10237 else
10238 { $as_echo "$as_me:$LINENO: result: no" >&5
10239 $as_echo "no" >&6; }
10245 if test "$aros_target_nm_ln" = ""; then
10246 { { $as_echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10247 $as_echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10248 { (exit 1); exit 1; }; }
10251 if test "$aros_target_objcopy" = ""; then
10252 if test "$cross_compiling" = "yes" ; then
10253 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10254 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10258 $as_echo_n "(cached) " >&6
10259 else
10260 case $aros_target_objcopy_ln in
10261 [\\/]* | ?:[\\/]*)
10262 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10276 done
10277 done
10278 IFS=$as_save_IFS
10281 esac
10283 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10284 if test -n "$aros_target_objcopy_ln"; then
10285 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10286 $as_echo "$aros_target_objcopy_ln" >&6; }
10287 else
10288 { $as_echo "$as_me:$LINENO: result: no" >&5
10289 $as_echo "no" >&6; }
10293 else
10294 if test "$GCC" = "yes"; then
10295 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10296 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10297 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $aros_target_objcopy_ln in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in `dirname $aros_gcc_objcopy`
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10324 esac
10326 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10327 if test -n "$aros_target_objcopy_ln"; then
10328 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10329 $as_echo "$aros_target_objcopy_ln" >&6; }
10330 else
10331 { $as_echo "$as_me:$LINENO: result: no" >&5
10332 $as_echo "no" >&6; }
10337 if test "$aros_target_objcopy_ln" = ""; then
10338 # Extract the first word of "objcopy", so it can be a program name with args.
10339 set dummy objcopy; ac_word=$2
10340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10343 $as_echo_n "(cached) " >&6
10344 else
10345 case $aros_target_objcopy_ln in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10357 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10361 done
10362 done
10363 IFS=$as_save_IFS
10366 esac
10368 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10369 if test -n "$aros_target_objcopy_ln"; then
10370 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10371 $as_echo "$aros_target_objcopy_ln" >&6; }
10372 else
10373 { $as_echo "$as_me:$LINENO: result: no" >&5
10374 $as_echo "no" >&6; }
10380 else
10381 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10382 set dummy $aros_target_objcopy; ac_word=$2
10383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10386 $as_echo_n "(cached) " >&6
10387 else
10388 case $aros_target_objcopy_ln in
10389 [\\/]* | ?:[\\/]*)
10390 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10394 for as_dir in $PATH
10396 IFS=$as_save_IFS
10397 test -z "$as_dir" && as_dir=.
10398 for ac_exec_ext in '' $ac_executable_extensions; do
10399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10400 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 break 2
10404 done
10405 done
10406 IFS=$as_save_IFS
10409 esac
10411 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10412 if test -n "$aros_target_objcopy_ln"; then
10413 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10414 $as_echo "$aros_target_objcopy_ln" >&6; }
10415 else
10416 { $as_echo "$as_me:$LINENO: result: no" >&5
10417 $as_echo "no" >&6; }
10423 if test "$aros_target_objcopy_ln" = ""; then
10424 { { $as_echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10425 $as_echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10426 { (exit 1); exit 1; }; }
10429 if test "$aros_target_objdump" = ""; then
10430 if test "$cross_compiling" = "yes" ; then
10431 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10432 set dummy ${target_tool_prefix}objdump; ac_word=$2
10433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10436 $as_echo_n "(cached) " >&6
10437 else
10438 case $aros_target_objdump_ln in
10439 [\\/]* | ?:[\\/]*)
10440 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10450 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10454 done
10455 done
10456 IFS=$as_save_IFS
10459 esac
10461 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10462 if test -n "$aros_target_objdump_ln"; then
10463 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10464 $as_echo "$aros_target_objdump_ln" >&6; }
10465 else
10466 { $as_echo "$as_me:$LINENO: result: no" >&5
10467 $as_echo "no" >&6; }
10471 else
10472 if test "$GCC" = "yes"; then
10473 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10474 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10475 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10477 $as_echo_n "checking for $ac_word... " >&6; }
10478 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10479 $as_echo_n "(cached) " >&6
10480 else
10481 case $aros_target_objdump_ln in
10482 [\\/]* | ?:[\\/]*)
10483 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in `dirname $aros_gcc_objdump`
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10497 done
10498 done
10499 IFS=$as_save_IFS
10502 esac
10504 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10505 if test -n "$aros_target_objdump_ln"; then
10506 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10507 $as_echo "$aros_target_objdump_ln" >&6; }
10508 else
10509 { $as_echo "$as_me:$LINENO: result: no" >&5
10510 $as_echo "no" >&6; }
10515 if test "$aros_target_objdump_ln" = ""; then
10516 # Extract the first word of "objdump", so it can be a program name with args.
10517 set dummy objdump; ac_word=$2
10518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10521 $as_echo_n "(cached) " >&6
10522 else
10523 case $aros_target_objdump_ln in
10524 [\\/]* | ?:[\\/]*)
10525 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10544 esac
10546 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10547 if test -n "$aros_target_objdump_ln"; then
10548 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10549 $as_echo "$aros_target_objdump_ln" >&6; }
10550 else
10551 { $as_echo "$as_me:$LINENO: result: no" >&5
10552 $as_echo "no" >&6; }
10558 else
10559 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10560 set dummy $aros_target_objdump; ac_word=$2
10561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10565 else
10566 case $aros_target_objdump_ln in
10567 [\\/]* | ?:[\\/]*)
10568 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10587 esac
10589 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10590 if test -n "$aros_target_objdump_ln"; then
10591 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10592 $as_echo "$aros_target_objdump_ln" >&6; }
10593 else
10594 { $as_echo "$as_me:$LINENO: result: no" >&5
10595 $as_echo "no" >&6; }
10601 if test "$aros_target_objdump_ln" = ""; then
10602 { { $as_echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10603 $as_echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10604 { (exit 1); exit 1; }; }
10607 if test "$aros_target_ranlib" = ""; then
10608 if test "$cross_compiling" = "yes" ; then
10609 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10610 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10614 $as_echo_n "(cached) " >&6
10615 else
10616 case $aros_target_ranlib_ln in
10617 [\\/]* | ?:[\\/]*)
10618 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10628 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10632 done
10633 done
10634 IFS=$as_save_IFS
10637 esac
10639 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10640 if test -n "$aros_target_ranlib_ln"; then
10641 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10642 $as_echo "$aros_target_ranlib_ln" >&6; }
10643 else
10644 { $as_echo "$as_me:$LINENO: result: no" >&5
10645 $as_echo "no" >&6; }
10649 else
10650 if test "$GCC" = "yes"; then
10651 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10652 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10653 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10657 $as_echo_n "(cached) " >&6
10658 else
10659 case $aros_target_ranlib_ln in
10660 [\\/]* | ?:[\\/]*)
10661 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in `dirname $aros_gcc_ranlib`
10667 IFS=$as_save_IFS
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10671 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10673 break 2
10675 done
10676 done
10677 IFS=$as_save_IFS
10680 esac
10682 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10683 if test -n "$aros_target_ranlib_ln"; then
10684 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10685 $as_echo "$aros_target_ranlib_ln" >&6; }
10686 else
10687 { $as_echo "$as_me:$LINENO: result: no" >&5
10688 $as_echo "no" >&6; }
10693 if test "$aros_target_ranlib_ln" = ""; then
10694 # Extract the first word of "ranlib", so it can be a program name with args.
10695 set dummy ranlib; ac_word=$2
10696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10700 else
10701 case $aros_target_ranlib_ln in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $PATH
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10717 done
10718 done
10719 IFS=$as_save_IFS
10722 esac
10724 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10725 if test -n "$aros_target_ranlib_ln"; then
10726 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10727 $as_echo "$aros_target_ranlib_ln" >&6; }
10728 else
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730 $as_echo "no" >&6; }
10736 else
10737 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10738 set dummy $aros_target_ranlib; ac_word=$2
10739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10742 $as_echo_n "(cached) " >&6
10743 else
10744 case $aros_target_ranlib_ln in
10745 [\\/]* | ?:[\\/]*)
10746 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in $PATH
10752 IFS=$as_save_IFS
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
10755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10756 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 break 2
10760 done
10761 done
10762 IFS=$as_save_IFS
10765 esac
10767 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10768 if test -n "$aros_target_ranlib_ln"; then
10769 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10770 $as_echo "$aros_target_ranlib_ln" >&6; }
10771 else
10772 { $as_echo "$as_me:$LINENO: result: no" >&5
10773 $as_echo "no" >&6; }
10779 if test "$aros_target_ranlib_ln" = ""; then
10780 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10781 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10782 { (exit 1); exit 1; }; }
10785 if test "$aros_target_strip" = ""; then
10786 if test "$cross_compiling" = "yes" ; then
10787 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10788 set dummy ${target_tool_prefix}strip; ac_word=$2
10789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793 else
10794 case $aros_target_strip_ln in
10795 [\\/]* | ?:[\\/]*)
10796 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10810 done
10811 done
10812 IFS=$as_save_IFS
10815 esac
10817 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10818 if test -n "$aros_target_strip_ln"; then
10819 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10820 $as_echo "$aros_target_strip_ln" >&6; }
10821 else
10822 { $as_echo "$as_me:$LINENO: result: no" >&5
10823 $as_echo "no" >&6; }
10827 else
10828 if test "$GCC" = "yes"; then
10829 aros_gcc_strip=`$CC -print-prog-name=strip`
10830 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10831 set dummy `basename $aros_gcc_strip`; ac_word=$2
10832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10835 $as_echo_n "(cached) " >&6
10836 else
10837 case $aros_target_strip_ln in
10838 [\\/]* | ?:[\\/]*)
10839 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in `dirname $aros_gcc_strip`
10845 IFS=$as_save_IFS
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10849 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 break 2
10853 done
10854 done
10855 IFS=$as_save_IFS
10858 esac
10860 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10861 if test -n "$aros_target_strip_ln"; then
10862 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10863 $as_echo "$aros_target_strip_ln" >&6; }
10864 else
10865 { $as_echo "$as_me:$LINENO: result: no" >&5
10866 $as_echo "no" >&6; }
10871 if test "$aros_target_strip_ln" = ""; then
10872 # Extract the first word of "strip", so it can be a program name with args.
10873 set dummy strip; ac_word=$2
10874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10879 case $aros_target_strip_ln in
10880 [\\/]* | ?:[\\/]*)
10881 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10895 done
10896 done
10897 IFS=$as_save_IFS
10900 esac
10902 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10903 if test -n "$aros_target_strip_ln"; then
10904 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10905 $as_echo "$aros_target_strip_ln" >&6; }
10906 else
10907 { $as_echo "$as_me:$LINENO: result: no" >&5
10908 $as_echo "no" >&6; }
10914 else
10915 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10916 set dummy $aros_target_strip; ac_word=$2
10917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10920 $as_echo_n "(cached) " >&6
10921 else
10922 case $aros_target_strip_ln in
10923 [\\/]* | ?:[\\/]*)
10924 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10943 esac
10945 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10946 if test -n "$aros_target_strip_ln"; then
10947 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10948 $as_echo "$aros_target_strip_ln" >&6; }
10949 else
10950 { $as_echo "$as_me:$LINENO: result: no" >&5
10951 $as_echo "no" >&6; }
10957 if test "$aros_target_strip_ln" = ""; then
10958 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10959 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10960 { (exit 1); exit 1; }; }
10964 if test "$rescomp" != ""; then
10965 if test "$cross_compiling" = "yes" ; then
10966 rescomp=${target_tool_prefix}${rescomp}
10968 # Extract the first word of "$rescomp", so it can be a program name with args.
10969 set dummy $rescomp; ac_word=$2
10970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974 else
10975 case $aros_kernel_rescomp in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10996 esac
10998 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10999 if test -n "$aros_kernel_rescomp"; then
11000 { $as_echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
11001 $as_echo "$aros_kernel_rescomp" >&6; }
11002 else
11003 { $as_echo "$as_me:$LINENO: result: no" >&5
11004 $as_echo "no" >&6; }
11008 if test "$aros_kernel_rescomp" = ""; then
11009 { { $as_echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
11010 $as_echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
11011 { (exit 1); exit 1; }; }
11015 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11016 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11017 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11018 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11019 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11020 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11021 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11023 # aros_cc_pre is a variable that is added to the front of the compiler name
11024 # in the generated aros-gcc shell script. We need this to enable the cache
11025 # to work across cleaned builds. Also, support DISTCC using the correct
11026 # environment variable.
11029 if test "x${DISTCC}" != "x" ; then
11030 if test "x${CCACHE}" != "x" ; then
11031 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11032 else
11033 aros_cc_pre="${DISTCC} "
11035 else
11036 if test "x${CCACHE}" != "x" ; then
11037 aros_cc_pre="${CCACHE} "
11041 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11043 aros_target_nostdinc_cflags=-nostdinc
11045 aros_target_nostartup_ldflags=-nostartfiles
11047 aros_target_nix_ldflags=-nix
11049 aros_target_detach_ldflags=-detach
11051 aros_target_nostdlib_ldflags=-nostdlib
11054 # Target tools
11055 if test "$aros_target_cc" = ""; then
11056 orig_target_cc=$aros_kernel_cc
11057 else
11058 orig_target_cc=$aros_target_cc
11060 if test "$aros_target_ld" = ""; then
11061 orig_target_ld=$aros_kernel_ld
11062 else
11063 orig_target_ld=$aros_target_ld
11065 if test "$GCC" = "yes"; then
11066 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11068 aros_target_cc="${prefix}-gcc"
11069 aros_target_as="${prefix}-as"
11070 aros_target_ld="${prefix}-ld"
11071 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11072 aros_target_objcopy=${prefix}-objcopy
11073 aros_target_objdump=${prefix}-objdump
11074 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11075 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11076 aros_kernel_nm="${prefix}-nm"
11077 aros_target_strip=${prefix}-strip
11079 # Find the system include path. We can suggest that an alternative is
11080 # used if we don't get it correct. The default is to use /usr/include.
11081 # Which is set in the aros_target_incl_def variable.
11083 # Check whether --enable-includes was given.
11084 if test "${enable_includes+set}" = set; then
11085 enableval=$enable_includes; aros_target_incl=$enable_includes
11086 else
11087 aros_target_incl=$aros_target_incl_def
11091 { $as_echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11092 $as_echo_n "checking for the target compiler's include path... " >&6; }
11093 if test "$aros_target_cc_includes" = "" ; then
11094 #try to guess where the directory is
11095 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11096 if ! test -d $aros_target_cc_includes; then
11097 #the directory doesn't exist, we need to do some more work
11098 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11100 #these are the headers we're looling for
11101 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11102 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11103 zutil.h"
11105 dirs=
11106 for h in $headers; do
11107 #which other headers each of the above headers needs?
11108 deps=$(echo "#include <$h>" | \
11109 $aros_host_cc -E -M - 2>/dev/null | \
11110 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11112 #copy all the needed headers to a directory beneath gendir
11113 for d in $deps; do
11114 h=$(basename $d)
11115 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11116 sed -n "s,^.*/include\(/.*\),\1,p")
11117 ! test -d $dir && mkdir -p $dir
11118 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11119 done
11120 done
11123 { $as_echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11124 $as_echo "$aros_target_cc_includes" >&6; }
11127 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11128 # On GCC >= 4.0 -iquote should be used
11131 save_cc="$CC"
11132 save_cflags="$CFLAGS"
11133 CFLAGS="-iquote."
11134 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11135 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11144 main ()
11148 return 0;
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11158 $as_echo "$ac_try_echo") >&5
11159 (eval "$ac_compile") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest.$ac_objext; then
11169 has_iquote="yes"
11170 else
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 has_iquote="no"
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11179 $as_echo "$has_iquote" >&6; }
11180 if test "x-$has_iquote" = "x-yes" ; then
11181 host_cflags_iquote=-iquote
11182 host_cflags_iquote_end=
11183 else
11184 host_cflags_iquote=-I
11185 host_cflags_iquote_end=-I-
11187 kernel_cflags_iquote=$host_cflags_iquote
11188 kernel_cflags_iquote_end=$host_cflags_iquote_end
11189 if test "x-$cross_compiling" = "x-yes"; then
11190 CC="$aros_kernel_cc"
11191 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11192 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11201 main ()
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 has_iquote="yes"
11227 else
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 has_iquote="no"
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11236 $as_echo "$has_iquote" >&6; }
11237 if test "x-$has_iquote" = "x-yes" ; then
11238 kernel_cflags_iquote=-iquote
11239 kernel_cflags_iquote_end=
11240 else
11241 kernel_cflags_iquote=-I
11242 kernel_cflags_iquote_end=-I-
11245 aros_cflags_iquote=$kernel_cflags_iquote
11246 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11247 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11248 CC="$orig_target_cc"
11249 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11250 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h. */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11259 main ()
11263 return 0;
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11273 $as_echo "$ac_try_echo") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest.$ac_objext; then
11284 has_iquote="yes"
11285 else
11286 $as_echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 has_iquote="no"
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11294 $as_echo "$has_iquote" >&6; }
11295 if test "x-$has_iquote" = "x-yes" ; then
11296 aros_cflags_iquote=-iquote
11297 aros_cflags_iquote_end=
11298 else
11299 aros_cflags_iquote=-I
11300 aros_cflags_iquote_end=-I-
11303 CC="$save_cc"
11304 CFLAGS="$save_cflags"
11314 { $as_echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11315 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11317 # Check whether --with-resolution was given.
11318 if test "${with_resolution+set}" = set; then
11319 withval=$with_resolution; resolution=$withval
11320 else
11321 resolution=none
11324 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11325 if test "$resolution" = "yes" ; then
11326 resolution="none"
11328 if test "$resolution" = "no" ; then
11329 resolution="none"
11331 if test "$resolution" != "none" ; then
11332 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11333 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11334 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11336 { $as_echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11337 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11338 aros_cv_default_wbwidth=$aros_default_wbwidth
11339 aros_cv_default_wbheight=$aros_default_wbheight
11340 aros_cv_default_wbdepth=$aros_default_wbdepth
11342 { $as_echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11343 $as_echo_n "checking if bochs hack is enabled... " >&6; }
11344 # Check whether --enable-bochs_hack was given.
11345 if test "${enable_bochs_hack+set}" = set; then
11346 enableval=$enable_bochs_hack; bochs_hack="yes"
11347 else
11348 bochs_hack="no"
11351 if test "$bochs_hack" = "yes" ; then
11352 aros_bochs_hack="1"
11354 { $as_echo "$as_me:$LINENO: result: $bochs_hack" >&5
11355 $as_echo "$bochs_hack" >&6; }
11357 { $as_echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11358 $as_echo_n "checking if serial debug is enabled... " >&6; }
11360 # Check whether --with-serial-debug was given.
11361 if test "${with_serial_debug+set}" = set; then
11362 withval=$with_serial_debug; serial_debug=$withval
11363 else
11364 serial_debug=none
11367 if test "$aros_serial_debug" = 0 ; then
11368 serial_debug_forced=""
11369 if test "$serial_debug" = "yes" ; then
11370 serial_debug="2"
11372 if test "$serial_debug" = "no" ; then
11373 serial_debug="none"
11375 else
11376 serial_debug_forced="(forced)"
11377 serial_debug=$aros_serial_debug
11379 if test "$serial_debug" != "none" ; then
11380 aros_serial_debug=$serial_debug
11381 { $as_echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11382 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11383 else
11384 { $as_echo "$as_me:$LINENO: result: no" >&5
11385 $as_echo "no" >&6; }
11388 { $as_echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11389 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11390 # Check whether --enable-palm_debug_hack was given.
11391 if test "${enable_palm_debug_hack+set}" = set; then
11392 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11393 else
11394 palm_debug_hack="no"
11397 if test "$palm_debug_hack" = "yes" ; then
11398 aros_palm_debug_hack="1"
11400 { $as_echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11401 $as_echo "$palm_debug_hack" >&6; }
11404 { $as_echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11405 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11406 # Check whether --enable-nesting_supervisor was given.
11407 if test "${enable_nesting_supervisor+set}" = set; then
11408 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11409 else
11410 nesting_supervisor="no"
11413 if test "$nesting_supervisor" = "yes" ; then
11414 aros_nesting_supervisor="1"
11416 { $as_echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11417 $as_echo "$nesting_supervisor" >&6; }
11420 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11422 if test "x-$need_dlopen" != "x-no" ; then
11423 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11424 $as_echo_n "checking for dlopen... " >&6; }
11425 if test "${ac_cv_func_dlopen+set}" = set; then
11426 $as_echo_n "(cached) " >&6
11427 else
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11436 #define dlopen innocuous_dlopen
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char dlopen (); below.
11440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441 <limits.h> exists even on freestanding compilers. */
11443 #ifdef __STDC__
11444 # include <limits.h>
11445 #else
11446 # include <assert.h>
11447 #endif
11449 #undef dlopen
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dlopen ();
11458 /* The GNU C library defines this for functions which it implements
11459 to always fail with ENOSYS. Some functions are actually named
11460 something starting with __ and the normal name is an alias. */
11461 #if defined __stub_dlopen || defined __stub___dlopen
11462 choke me
11463 #endif
11466 main ()
11468 return dlopen ();
11470 return 0;
11472 _ACEOF
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478 esac
11479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11480 $as_echo "$ac_try_echo") >&5
11481 (eval "$ac_link") 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest$ac_exeext && {
11491 test "$cross_compiling" = yes ||
11492 $as_test_x conftest$ac_exeext
11493 }; then
11494 ac_cv_func_dlopen=yes
11495 else
11496 $as_echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_cv_func_dlopen=no
11502 rm -rf conftest.dSYM
11503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11504 conftest$ac_exeext conftest.$ac_ext
11506 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11507 $as_echo "$ac_cv_func_dlopen" >&6; }
11508 if test "x$ac_cv_func_dlopen" = x""yes; then
11509 have_dl="yes"
11510 else
11511 have_dl="no"
11514 if test "x-$have_dl" = "x-no" ; then
11515 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11516 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11518 $as_echo_n "(cached) " >&6
11519 else
11520 ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-ldl $LIBS"
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char dlopen ();
11537 main ()
11539 return dlopen ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11551 $as_echo "$ac_try_echo") >&5
11552 (eval "$ac_link") 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && {
11559 test -z "$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11561 } && test -s conftest$ac_exeext && {
11562 test "$cross_compiling" = yes ||
11563 $as_test_x conftest$ac_exeext
11564 }; then
11565 ac_cv_lib_dl_dlopen=yes
11566 else
11567 $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_cv_lib_dl_dlopen=no
11573 rm -rf conftest.dSYM
11574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11579 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11580 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11581 have_dl="yes"
11582 aros_host_ldflags="$aros_host_ldflags -ldl"
11583 else
11584 have_dl="no"
11588 if test "x-$have_dl" = "x-no" ; then
11589 { { $as_echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11590 $as_echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11591 { (exit 1); exit 1; }; }
11596 # Check whether --enable-x11_hidd was given.
11597 if test "${enable_x11_hidd+set}" = set; then
11598 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11599 else
11600 x11_hidd="auto"
11603 case "x-$x11_hidd" in
11604 x-yes|x-no|x-auto) ;;
11605 *) x11_hidd="auto" ;;
11606 esac
11608 ENABLE_X11=0
11610 if test "x-$x11_hidd" != "x-no" ; then
11612 { $as_echo "$as_me:$LINENO: checking for X" >&5
11613 $as_echo_n "checking for X... " >&6; }
11616 # Check whether --with-x was given.
11617 if test "${with_x+set}" = set; then
11618 withval=$with_x;
11621 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11622 if test "x$with_x" = xno; then
11623 # The user explicitly disabled X.
11624 have_x=disabled
11625 else
11626 case $x_includes,$x_libraries in #(
11627 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11628 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11629 { (exit 1); exit 1; }; };; #(
11630 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11631 $as_echo_n "(cached) " >&6
11632 else
11633 # One or both of the vars are not set, and there is no cached value.
11634 ac_x_includes=no ac_x_libraries=no
11635 rm -f -r conftest.dir
11636 if mkdir conftest.dir; then
11637 cd conftest.dir
11638 cat >Imakefile <<'_ACEOF'
11639 incroot:
11640 @echo incroot='${INCROOT}'
11641 usrlibdir:
11642 @echo usrlibdir='${USRLIBDIR}'
11643 libdir:
11644 @echo libdir='${LIBDIR}'
11645 _ACEOF
11646 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11648 for ac_var in incroot usrlibdir libdir; do
11649 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11650 done
11651 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11652 for ac_extension in a so sl dylib la dll; do
11653 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11654 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11655 ac_im_usrlibdir=$ac_im_libdir; break
11657 done
11658 # Screen out bogus values from the imake configuration. They are
11659 # bogus both because they are the default anyway, and because
11660 # using them would break gcc on systems where it needs fixed includes.
11661 case $ac_im_incroot in
11662 /usr/include) ac_x_includes= ;;
11663 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11664 esac
11665 case $ac_im_usrlibdir in
11666 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11667 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11668 esac
11670 cd ..
11671 rm -f -r conftest.dir
11674 # Standard set of common directories for X headers.
11675 # Check X11 before X11Rn because it is often a symlink to the current release.
11676 ac_x_header_dirs='
11677 /usr/X11/include
11678 /usr/X11R6/include
11679 /usr/X11R5/include
11680 /usr/X11R4/include
11682 /usr/include/X11
11683 /usr/include/X11R6
11684 /usr/include/X11R5
11685 /usr/include/X11R4
11687 /usr/local/X11/include
11688 /usr/local/X11R6/include
11689 /usr/local/X11R5/include
11690 /usr/local/X11R4/include
11692 /usr/local/include/X11
11693 /usr/local/include/X11R6
11694 /usr/local/include/X11R5
11695 /usr/local/include/X11R4
11697 /usr/X386/include
11698 /usr/x386/include
11699 /usr/XFree86/include/X11
11701 /usr/include
11702 /usr/local/include
11703 /usr/unsupported/include
11704 /usr/athena/include
11705 /usr/local/x11r5/include
11706 /usr/lpp/Xamples/include
11708 /usr/openwin/include
11709 /usr/openwin/share/include'
11711 if test "$ac_x_includes" = no; then
11712 # Guess where to find include files, by looking for Xlib.h.
11713 # First, try using that file with no special directory specified.
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #include <X11/Xlib.h>
11721 _ACEOF
11722 if { (ac_try="$ac_cpp conftest.$ac_ext"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726 esac
11727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728 $as_echo "$ac_try_echo") >&5
11729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } >/dev/null && {
11736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 }; then
11739 # We can compile using X headers with no special include directory.
11740 ac_x_includes=
11741 else
11742 $as_echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 for ac_dir in $ac_x_header_dirs; do
11746 if test -r "$ac_dir/X11/Xlib.h"; then
11747 ac_x_includes=$ac_dir
11748 break
11750 done
11753 rm -f conftest.err conftest.$ac_ext
11754 fi # $ac_x_includes = no
11756 if test "$ac_x_libraries" = no; then
11757 # Check for the libraries.
11758 # See if we find them without any special options.
11759 # Don't add to $LIBS permanently.
11760 ac_save_LIBS=$LIBS
11761 LIBS="-lX11 $LIBS"
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <X11/Xlib.h>
11770 main ()
11772 XrmInitialize ()
11774 return 0;
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11784 $as_echo "$ac_try_echo") >&5
11785 (eval "$ac_link") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest$ac_exeext && {
11795 test "$cross_compiling" = yes ||
11796 $as_test_x conftest$ac_exeext
11797 }; then
11798 LIBS=$ac_save_LIBS
11799 # We can link X programs with no special library path.
11800 ac_x_libraries=
11801 else
11802 $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 LIBS=$ac_save_LIBS
11806 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11808 # Don't even attempt the hair of trying to link an X program!
11809 for ac_extension in a so sl dylib la dll; do
11810 if test -r "$ac_dir/libX11.$ac_extension"; then
11811 ac_x_libraries=$ac_dir
11812 break 2
11814 done
11815 done
11818 rm -rf conftest.dSYM
11819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11820 conftest$ac_exeext conftest.$ac_ext
11821 fi # $ac_x_libraries = no
11823 case $ac_x_includes,$ac_x_libraries in #(
11824 no,* | *,no | *\'*)
11825 # Didn't find X, or a directory has "'" in its name.
11826 ac_cv_have_x="have_x=no";; #(
11828 # Record where we found X for the cache.
11829 ac_cv_have_x="have_x=yes\
11830 ac_x_includes='$ac_x_includes'\
11831 ac_x_libraries='$ac_x_libraries'"
11832 esac
11834 ;; #(
11835 *) have_x=yes;;
11836 esac
11837 eval "$ac_cv_have_x"
11838 fi # $with_x != no
11840 if test "$have_x" != yes; then
11841 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
11842 $as_echo "$have_x" >&6; }
11843 no_x=yes
11844 else
11845 # If each of the values was on the command line, it overrides each guess.
11846 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11847 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11848 # Update the cache value to reflect the command line values.
11849 ac_cv_have_x="have_x=yes\
11850 ac_x_includes='$x_includes'\
11851 ac_x_libraries='$x_libraries'"
11852 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11853 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11857 x_cflags=
11858 for path in $x_libraries
11860 x_cflags="$x_cflags -L$path"
11861 done
11863 for path in $x_includes
11865 x_cflags="$x_cflags -I$path"
11866 done
11868 if test "x-$no_x" = "x-yes" ; then
11870 if test "x-$x11_hidd" != "x-auto" ; then
11871 { { $as_echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11872 $as_echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11873 { (exit 1); exit 1; }; }
11876 else
11877 x11_hidd_target=kernel-x11gfx-kobj
11878 ENABLE_X11=1
11880 # Check whether --enable-x11_shm was given.
11881 if test "${enable_x11_shm+set}" = set; then
11882 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11883 else
11884 x11_hidd_shm="auto"
11887 case "x-$x11_hidd_shm" in
11888 x-yes|x-no|x-auto) ;;
11889 *) x11_hidd_shm="auto" ;;
11890 esac
11892 have_xshm=no
11894 if test "x-$x11_hidd_shm" != "x-no" ; then
11897 for ac_header in sys/ipc.h
11899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 $as_echo_n "checking for $ac_header... " >&6; }
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 $as_echo_n "(cached) " >&6
11906 ac_res=`eval 'as_val=${'$as_ac_Header'}
11907 $as_echo "$as_val"'`
11908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11909 $as_echo "$ac_res" >&6; }
11910 else
11911 # Is the header compilable?
11912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 $as_echo_n "checking $ac_header usability... " >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <$ac_header>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_compile") 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest.$ac_objext; then
11941 ac_header_compiler=yes
11942 else
11943 $as_echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 ac_header_compiler=no
11949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11951 $as_echo "$ac_header_compiler" >&6; }
11953 # Is the header present?
11954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11955 $as_echo_n "checking $ac_header presence... " >&6; }
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 #include <$ac_header>
11963 _ACEOF
11964 if { (ac_try="$ac_cpp conftest.$ac_ext"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968 esac
11969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11970 $as_echo "$ac_try_echo") >&5
11971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } >/dev/null && {
11978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 }; then
11981 ac_header_preproc=yes
11982 else
11983 $as_echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_preproc=no
11989 rm -f conftest.err conftest.$ac_ext
11990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11991 $as_echo "$ac_header_preproc" >&6; }
11993 # So? What about this header?
11994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11995 yes:no: )
11996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12000 ac_header_preproc=yes
12002 no:yes:* )
12003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12017 esac
12018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12019 $as_echo_n "checking for $ac_header... " >&6; }
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 $as_echo_n "(cached) " >&6
12022 else
12023 eval "$as_ac_Header=\$ac_header_preproc"
12025 ac_res=`eval 'as_val=${'$as_ac_Header'}
12026 $as_echo "$as_val"'`
12027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12028 $as_echo "$ac_res" >&6; }
12031 as_val=`eval 'as_val=${'$as_ac_Header'}
12032 $as_echo "$as_val"'`
12033 if test "x$as_val" = x""yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12036 _ACEOF
12040 done
12043 for ac_header in sys/shm.h
12045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 $as_echo_n "checking for $ac_header... " >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 $as_echo_n "(cached) " >&6
12052 ac_res=`eval 'as_val=${'$as_ac_Header'}
12053 $as_echo "$as_val"'`
12054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12055 $as_echo "$ac_res" >&6; }
12056 else
12057 # Is the header compilable?
12058 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059 $as_echo_n "checking $ac_header usability... " >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 $ac_includes_default
12067 #include <$ac_header>
12068 _ACEOF
12069 rm -f conftest.$ac_objext
12070 if { (ac_try="$ac_compile"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 $as_echo "$ac_try_echo") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest.$ac_objext; then
12087 ac_header_compiler=yes
12088 else
12089 $as_echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_header_compiler=no
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 $as_echo "$ac_header_compiler" >&6; }
12099 # Is the header present?
12100 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12101 $as_echo_n "checking $ac_header presence... " >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <$ac_header>
12109 _ACEOF
12110 if { (ac_try="$ac_cpp conftest.$ac_ext"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12116 $as_echo "$ac_try_echo") >&5
12117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } >/dev/null && {
12124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 }; then
12127 ac_header_preproc=yes
12128 else
12129 $as_echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_header_preproc=no
12135 rm -f conftest.err conftest.$ac_ext
12136 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137 $as_echo "$ac_header_preproc" >&6; }
12139 # So? What about this header?
12140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 yes:no: )
12142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12143 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc=yes
12148 no:yes:* )
12149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12150 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12152 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12154 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12156 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12160 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12163 esac
12164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 $as_echo_n "checking for $ac_header... " >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 $as_echo_n "(cached) " >&6
12168 else
12169 eval "$as_ac_Header=\$ac_header_preproc"
12171 ac_res=`eval 'as_val=${'$as_ac_Header'}
12172 $as_echo "$as_val"'`
12173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12174 $as_echo "$ac_res" >&6; }
12177 as_val=`eval 'as_val=${'$as_ac_Header'}
12178 $as_echo "$as_val"'`
12179 if test "x$as_val" = x""yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12182 _ACEOF
12186 done
12189 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12191 save_cflags="$CFLAGS"
12192 CFLAGS="$CFLAGS $x_cflags"
12193 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12194 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12195 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lXext $LIBS"
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char XShmQueryExtension ();
12215 main ()
12217 return XShmQueryExtension ();
12219 return 0;
12221 _ACEOF
12222 rm -f conftest.$ac_objext conftest$ac_exeext
12223 if { (ac_try="$ac_link"
12224 case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227 esac
12228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12229 $as_echo "$ac_try_echo") >&5
12230 (eval "$ac_link") 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext && {
12240 test "$cross_compiling" = yes ||
12241 $as_test_x conftest$ac_exeext
12242 }; then
12243 ac_cv_lib_Xext_XShmQueryExtension=yes
12244 else
12245 $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_cv_lib_Xext_XShmQueryExtension=no
12251 rm -rf conftest.dSYM
12252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12257 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12258 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then
12259 have_xshm=yes
12262 CFLAGS="$save_cflags"
12266 if test "x-$have_xshm" = "x-yes" ; then
12267 DO_XSHM_SUPPORT="1"
12268 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12269 { { $as_echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12270 $as_echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12271 { (exit 1); exit 1; }; }
12272 else
12273 DO_XSHM_SUPPORT="0"
12277 # Check whether --enable-x11_vidmode was given.
12278 if test "${enable_x11_vidmode+set}" = set; then
12279 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12280 else
12281 x11_hidd_vidmode="auto"
12284 case "x-$x11_hidd_vidmode" in
12285 x-yes|x-no|x-auto) ;;
12286 *) x11_hidd_vidmode="auto" ;;
12287 esac
12289 have_vidmode=no
12291 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12293 save_cflags="$CFLAGS"
12294 CFLAGS="$CFLAGS $x_cflags"
12295 { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12296 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12297 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12298 $as_echo_n "(cached) " >&6
12299 else
12300 ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-lXxf86vm $LIBS"
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char XF86VidModeQueryExtension ();
12317 main ()
12319 return XF86VidModeQueryExtension ();
12321 return 0;
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12331 $as_echo "$ac_try_echo") >&5
12332 (eval "$ac_link") 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest$ac_exeext && {
12342 test "$cross_compiling" = yes ||
12343 $as_test_x conftest$ac_exeext
12344 }; then
12345 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12346 else
12347 $as_echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12353 rm -rf conftest.dSYM
12354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12359 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12360 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
12361 have_vidmode=yes
12364 CFLAGS="$save_cflags"
12367 if test "x-$have_vidmode" = "x-yes" ; then
12368 DO_VIDMODE_SUPPORT="1"
12369 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12370 { { $as_echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12371 $as_echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12372 { (exit 1); exit 1; }; }
12373 else
12374 DO_VIDMODE_SUPPORT="0"
12378 aros_host_x11_includes=$x_includes
12379 aros_host_x11_libdirs=$x_libraries
12383 # Check whether --enable-sdl_hidd was given.
12384 if test "${enable_sdl_hidd+set}" = set; then
12385 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12386 else
12387 sdl_hidd="auto"
12390 case "x-$sdl_hidd" in
12391 x-yes|x-no|x-auto) ;;
12392 *) sdl_hidd="auto" ;;
12393 esac
12395 if test "x-$sdl_hidd" != "x-no" ; then
12398 # Check whether --with-sdl-prefix was given.
12399 if test "${with_sdl_prefix+set}" = set; then
12400 withval=$with_sdl_prefix; sdl_prefix="$withval"
12401 else
12402 sdl_prefix=""
12406 # Check whether --with-sdl-exec-prefix was given.
12407 if test "${with_sdl_exec_prefix+set}" = set; then
12408 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12409 else
12410 sdl_exec_prefix=""
12413 # Check whether --enable-sdltest was given.
12414 if test "${enable_sdltest+set}" = set; then
12415 enableval=$enable_sdltest;
12416 else
12417 enable_sdltest=yes
12421 if test x$sdl_exec_prefix != x ; then
12422 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12423 if test x${SDL_CONFIG+set} != xset ; then
12424 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12427 if test x$sdl_prefix != x ; then
12428 sdl_args="$sdl_args --prefix=$sdl_prefix"
12429 if test x${SDL_CONFIG+set} != xset ; then
12430 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12434 if test "x$prefix" != xNONE; then
12435 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12437 # Extract the first word of "sdl-config", so it can be a program name with args.
12438 set dummy sdl-config; ac_word=$2
12439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12442 $as_echo_n "(cached) " >&6
12443 else
12444 case $SDL_CONFIG in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12460 done
12461 done
12462 IFS=$as_save_IFS
12464 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12466 esac
12468 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12469 if test -n "$SDL_CONFIG"; then
12470 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12471 $as_echo "$SDL_CONFIG" >&6; }
12472 else
12473 { $as_echo "$as_me:$LINENO: result: no" >&5
12474 $as_echo "no" >&6; }
12478 min_sdl_version=1.2.10
12479 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12480 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12481 no_sdl=""
12482 if test "$SDL_CONFIG" = "no" ; then
12483 no_sdl=yes
12484 else
12485 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12486 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12488 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12489 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12490 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12491 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12492 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12493 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12494 if test "x$enable_sdltest" = "xyes" ; then
12495 ac_save_CFLAGS="$CFLAGS"
12496 ac_save_CXXFLAGS="$CXXFLAGS"
12497 ac_save_LIBS="$LIBS"
12498 CFLAGS="$CFLAGS $SDL_CFLAGS"
12499 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12500 LIBS="$LIBS $SDL_LIBS"
12501 rm -f conf.sdltest
12502 if test "$cross_compiling" = yes; then
12503 echo $ac_n "cross compiling; assumed OK... $ac_c"
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 #include <stdio.h>
12513 #include <stdlib.h>
12514 #include <string.h>
12515 #include "SDL.h"
12517 char*
12518 my_strdup (char *str)
12520 char *new_str;
12522 if (str)
12524 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12525 strcpy (new_str, str);
12527 else
12528 new_str = NULL;
12530 return new_str;
12533 int main (int argc, char *argv[])
12535 int major, minor, micro;
12536 char *tmp_version;
12538 /* This hangs on some systems (?)
12539 system ("touch conf.sdltest");
12541 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12543 /* HP/UX 9 (%@#!) writes to sscanf strings */
12544 tmp_version = my_strdup("$min_sdl_version");
12545 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12546 printf("%s, bad version string\n", "$min_sdl_version");
12547 exit(1);
12550 if (($sdl_major_version > major) ||
12551 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12552 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12554 return 0;
12556 else
12558 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12559 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12560 printf("*** best to upgrade to the required version.\n");
12561 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12562 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12563 printf("*** config.cache before re-running configure\n");
12564 return 1;
12569 _ACEOF
12570 rm -f conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12577 $as_echo "$ac_try_echo") >&5
12578 (eval "$ac_link") 2>&5
12579 ac_status=$?
12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588 (eval "$ac_try") 2>&5
12589 ac_status=$?
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12593 else
12594 $as_echo "$as_me: program exited with status $ac_status" >&5
12595 $as_echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ( exit $ac_status )
12599 no_sdl=yes
12601 rm -rf conftest.dSYM
12602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12606 CFLAGS="$ac_save_CFLAGS"
12607 CXXFLAGS="$ac_save_CXXFLAGS"
12608 LIBS="$ac_save_LIBS"
12611 if test "x$no_sdl" = x ; then
12612 { $as_echo "$as_me:$LINENO: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 have_sdl="yes"
12615 else
12616 { $as_echo "$as_me:$LINENO: result: no" >&5
12617 $as_echo "no" >&6; }
12618 if test "$SDL_CONFIG" = "no" ; then
12619 echo "*** The sdl-config script installed by SDL could not be found"
12620 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12621 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12622 echo "*** full path to sdl-config."
12623 else
12624 if test -f conf.sdltest ; then
12626 else
12627 echo "*** Could not run SDL test program, checking why..."
12628 CFLAGS="$CFLAGS $SDL_CFLAGS"
12629 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12630 LIBS="$LIBS $SDL_LIBS"
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12638 #include <stdio.h>
12639 #include "SDL.h"
12641 int main(int argc, char *argv[])
12642 { return 0; }
12643 #undef main
12644 #define main K_and_R_C_main
12647 main ()
12649 return 0;
12651 return 0;
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (ac_try="$ac_link"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659 esac
12660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12661 $as_echo "$ac_try_echo") >&5
12662 (eval "$ac_link") 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } && {
12669 test -z "$ac_c_werror_flag" ||
12670 test ! -s conftest.err
12671 } && test -s conftest$ac_exeext && {
12672 test "$cross_compiling" = yes ||
12673 $as_test_x conftest$ac_exeext
12674 }; then
12675 echo "*** The test program compiled, but did not run. This usually means"
12676 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12677 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12678 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12679 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12680 echo "*** is required on your system"
12681 echo "***"
12682 echo "*** If you have an old version installed, it is best to remove it, although"
12683 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12684 else
12685 $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 echo "*** The test program failed to compile or link. See the file config.log for the"
12689 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12690 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12691 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12694 rm -rf conftest.dSYM
12695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12696 conftest$ac_exeext conftest.$ac_ext
12697 CFLAGS="$ac_save_CFLAGS"
12698 CXXFLAGS="$ac_save_CXXFLAGS"
12699 LIBS="$ac_save_LIBS"
12702 SDL_CFLAGS=""
12703 SDL_LIBS=""
12704 have_sdl="no"
12708 rm -f conf.sdltest
12711 if test "x-$have_sdl" != "x-yes" ; then
12713 if test "x-$sdl_hidd" != "x-auto" ; then
12714 { { $as_echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12715 $as_echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12716 { (exit 1); exit 1; }; }
12719 else
12720 sdl_hidd_target=kernel-hidd-sdl
12721 aros_host_sdl_cflags=SDL_CFLAGS
12722 aros_host_sdl_libs=SDL_LIBS
12729 { $as_echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12730 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12731 # Check whether --enable-dbus was given.
12732 if test "${enable_dbus+set}" = set; then
12733 enableval=$enable_dbus; dbus="yes"
12734 else
12735 dbus="no"
12738 if test "$dbus" = "yes" ; then
12739 ENABLE_DBUS=1
12740 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12741 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12742 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12743 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12744 else
12745 ENABLE_DBUS=0
12747 { $as_echo "$as_me:$LINENO: result: $dbus" >&5
12748 $as_echo "$dbus" >&6; }
12752 # Generic
12762 # Host related
12785 # Target Related
12832 # Graphics Related
12847 # Native version related
12851 # Palm native version related
12854 # Unix/Hosted version related
12857 # DBUS related
12864 #X11 related
12867 # Debug related
12873 # Collect-aros stuff: "-ius" to ignore undefined symbols
12876 # C compiler related
12879 case "$aros_flavour" in
12880 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12881 aros_flavour="emulation" ;;
12882 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12883 aros_flavour="emulation" ;;
12884 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12885 aros_flavour="standalone";;
12886 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12887 aros_flavour="native" ;;
12888 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12889 aros_flavour="native" ;;
12890 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12891 aros_flavour="linklib" ;;
12892 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12893 aros_flavour="palmnative" ;;
12894 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12895 aros_flavour="mac68knative" ;;
12896 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12897 aros_flavour="ppcnative" ;;
12898 esac
12900 if test ! -d ${aros_inc_dir} ; then
12901 ${MKDIR} ${aros_inc_dir}
12903 if test ! -d ${aros_geninc_dir} ; then
12904 ${MKDIR} ${aros_geninc_dir}
12906 if test ! -d ${aros_hostcfg_dir} ; then
12907 ${MKDIR} ${aros_hostcfg_dir}
12909 if test ! -d ${aros_targetcfg_dir} ; then
12910 ${MKDIR} ${aros_targetcfg_dir}
12912 if test ! -d ${aros_tools_dir} ; then
12913 ${MKDIR} ${aros_tools_dir}
12915 if test ! -d ${aros_scripts_dir} ; then
12916 ${MKDIR} ${aros_scripts_dir}
12919 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12922 ac_config_commands="$ac_config_commands compiler_executable"
12924 ac_config_commands="$ac_config_commands genshared_executable"
12926 ac_config_commands="$ac_config_commands genmf_executable"
12929 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"
12932 cat >confcache <<\_ACEOF
12933 # This file is a shell script that caches the results of configure
12934 # tests run on this system so they can be shared between configure
12935 # scripts and configure runs, see configure's option --config-cache.
12936 # It is not useful on other systems. If it contains results you don't
12937 # want to keep, you may remove or edit it.
12939 # config.status only pays attention to the cache file if you give it
12940 # the --recheck option to rerun configure.
12942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12944 # following values.
12946 _ACEOF
12948 # The following way of writing the cache mishandles newlines in values,
12949 # but we know of no workaround that is simple, portable, and efficient.
12950 # So, we kill variables containing newlines.
12951 # Ultrix sh set writes to stderr and can't be redirected directly,
12952 # and sets the high bit in the cache file unless we assign to the vars.
12954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12955 eval ac_val=\$$ac_var
12956 case $ac_val in #(
12957 *${as_nl}*)
12958 case $ac_var in #(
12959 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12961 esac
12962 case $ac_var in #(
12963 _ | IFS | as_nl) ;; #(
12964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12965 *) $as_unset $ac_var ;;
12966 esac ;;
12967 esac
12968 done
12970 (set) 2>&1 |
12971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12972 *${as_nl}ac_space=\ *)
12973 # `set' does not quote correctly, so add quotes (double-quote
12974 # substitution turns \\\\ into \\, and sed turns \\ into \).
12975 sed -n \
12976 "s/'/'\\\\''/g;
12977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12978 ;; #(
12980 # `set' quotes correctly as required by POSIX, so do not add quotes.
12981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12983 esac |
12984 sort
12986 sed '
12987 /^ac_cv_env_/b end
12988 t clear
12989 :clear
12990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12991 t end
12992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12993 :end' >>confcache
12994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12995 if test -w "$cache_file"; then
12996 test "x$cache_file" != "x/dev/null" &&
12997 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12998 $as_echo "$as_me: updating cache $cache_file" >&6;}
12999 cat confcache >$cache_file
13000 else
13001 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13002 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13005 rm -f confcache
13007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13008 # Let make expand exec_prefix.
13009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13011 DEFS=-DHAVE_CONFIG_H
13013 ac_libobjs=
13014 ac_ltlibobjs=
13015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13016 # 1. Remove the extension, and $U if already installed.
13017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13018 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13020 # will be set to the directory where LIBOBJS objects are built.
13021 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13022 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13023 done
13024 LIBOBJS=$ac_libobjs
13026 LTLIBOBJS=$ac_ltlibobjs
13030 : ${CONFIG_STATUS=./config.status}
13031 ac_write_fail=0
13032 ac_clean_files_save=$ac_clean_files
13033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13034 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13035 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13036 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13037 #! $SHELL
13038 # Generated by $as_me.
13039 # Run this file to recreate the current configuration.
13040 # Compiler output produced by configure, useful for debugging
13041 # configure, is in config.log if it exists.
13043 debug=false
13044 ac_cs_recheck=false
13045 ac_cs_silent=false
13046 SHELL=\${CONFIG_SHELL-$SHELL}
13047 _ACEOF
13049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13050 ## --------------------- ##
13051 ## M4sh Initialization. ##
13052 ## --------------------- ##
13054 # Be more Bourne compatible
13055 DUALCASE=1; export DUALCASE # for MKS sh
13056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13057 emulate sh
13058 NULLCMD=:
13059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13060 # is contrary to our usage. Disable this feature.
13061 alias -g '${1+"$@"}'='"$@"'
13062 setopt NO_GLOB_SUBST
13063 else
13064 case `(set -o) 2>/dev/null` in
13065 *posix*) set -o posix ;;
13066 esac
13073 # PATH needs CR
13074 # Avoid depending upon Character Ranges.
13075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13078 as_cr_digits='0123456789'
13079 as_cr_alnum=$as_cr_Letters$as_cr_digits
13081 as_nl='
13083 export as_nl
13084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13088 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13089 as_echo='printf %s\n'
13090 as_echo_n='printf %s'
13091 else
13092 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13093 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13094 as_echo_n='/usr/ucb/echo -n'
13095 else
13096 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13097 as_echo_n_body='eval
13098 arg=$1;
13099 case $arg in
13100 *"$as_nl"*)
13101 expr "X$arg" : "X\\(.*\\)$as_nl";
13102 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13103 esac;
13104 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13106 export as_echo_n_body
13107 as_echo_n='sh -c $as_echo_n_body as_echo'
13109 export as_echo_body
13110 as_echo='sh -c $as_echo_body as_echo'
13113 # The user is always right.
13114 if test "${PATH_SEPARATOR+set}" != set; then
13115 PATH_SEPARATOR=:
13116 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13117 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13118 PATH_SEPARATOR=';'
13122 # Support unset when possible.
13123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13124 as_unset=unset
13125 else
13126 as_unset=false
13130 # IFS
13131 # We need space, tab and new line, in precisely that order. Quoting is
13132 # there to prevent editors from complaining about space-tab.
13133 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13134 # splitting by setting IFS to empty value.)
13135 IFS=" "" $as_nl"
13137 # Find who we are. Look in the path if we contain no directory separator.
13138 case $0 in
13139 *[\\/]* ) as_myself=$0 ;;
13140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13146 done
13147 IFS=$as_save_IFS
13150 esac
13151 # We did not find ourselves, most probably we were run as `sh COMMAND'
13152 # in which case we are not to be found in the path.
13153 if test "x$as_myself" = x; then
13154 as_myself=$0
13156 if test ! -f "$as_myself"; then
13157 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13158 { (exit 1); exit 1; }
13161 # Work around bugs in pre-3.0 UWIN ksh.
13162 for as_var in ENV MAIL MAILPATH
13163 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13164 done
13165 PS1='$ '
13166 PS2='> '
13167 PS4='+ '
13169 # NLS nuisances.
13170 LC_ALL=C
13171 export LC_ALL
13172 LANGUAGE=C
13173 export LANGUAGE
13175 # Required to use basename.
13176 if expr a : '\(a\)' >/dev/null 2>&1 &&
13177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13178 as_expr=expr
13179 else
13180 as_expr=false
13183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13184 as_basename=basename
13185 else
13186 as_basename=false
13190 # Name of the executable.
13191 as_me=`$as_basename -- "$0" ||
13192 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13193 X"$0" : 'X\(//\)$' \| \
13194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13195 $as_echo X/"$0" |
13196 sed '/^.*\/\([^/][^/]*\)\/*$/{
13197 s//\1/
13200 /^X\/\(\/\/\)$/{
13201 s//\1/
13204 /^X\/\(\/\).*/{
13205 s//\1/
13208 s/.*/./; q'`
13210 # CDPATH.
13211 $as_unset CDPATH
13215 as_lineno_1=$LINENO
13216 as_lineno_2=$LINENO
13217 test "x$as_lineno_1" != "x$as_lineno_2" &&
13218 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13220 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13221 # uniformly replaced by the line number. The first 'sed' inserts a
13222 # line-number line after each line using $LINENO; the second 'sed'
13223 # does the real work. The second script uses 'N' to pair each
13224 # line-number line with the line containing $LINENO, and appends
13225 # trailing '-' during substitution so that $LINENO is not a special
13226 # case at line end.
13227 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13228 # scripts with optimization help from Paolo Bonzini. Blame Lee
13229 # E. McMahon (1931-1989) for sed's syntax. :-)
13230 sed -n '
13232 /[$]LINENO/=
13233 ' <$as_myself |
13234 sed '
13235 s/[$]LINENO.*/&-/
13236 t lineno
13238 :lineno
13240 :loop
13241 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13242 t loop
13243 s/-\n.*//
13244 ' >$as_me.lineno &&
13245 chmod +x "$as_me.lineno" ||
13246 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13247 { (exit 1); exit 1; }; }
13249 # Don't try to exec as it changes $[0], causing all sort of problems
13250 # (the dirname of $[0] is not the place where we might find the
13251 # original and so on. Autoconf is especially sensitive to this).
13252 . "./$as_me.lineno"
13253 # Exit status is that of the last command.
13254 exit
13258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13259 as_dirname=dirname
13260 else
13261 as_dirname=false
13264 ECHO_C= ECHO_N= ECHO_T=
13265 case `echo -n x` in
13266 -n*)
13267 case `echo 'x\c'` in
13268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13269 *) ECHO_C='\c';;
13270 esac;;
13272 ECHO_N='-n';;
13273 esac
13274 if expr a : '\(a\)' >/dev/null 2>&1 &&
13275 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13276 as_expr=expr
13277 else
13278 as_expr=false
13281 rm -f conf$$ conf$$.exe conf$$.file
13282 if test -d conf$$.dir; then
13283 rm -f conf$$.dir/conf$$.file
13284 else
13285 rm -f conf$$.dir
13286 mkdir conf$$.dir 2>/dev/null
13288 if (echo >conf$$.file) 2>/dev/null; then
13289 if ln -s conf$$.file conf$$ 2>/dev/null; then
13290 as_ln_s='ln -s'
13291 # ... but there are two gotchas:
13292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13294 # In both cases, we have to default to `cp -p'.
13295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13296 as_ln_s='cp -p'
13297 elif ln conf$$.file conf$$ 2>/dev/null; then
13298 as_ln_s=ln
13299 else
13300 as_ln_s='cp -p'
13302 else
13303 as_ln_s='cp -p'
13305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13306 rmdir conf$$.dir 2>/dev/null
13308 if mkdir -p . 2>/dev/null; then
13309 as_mkdir_p=:
13310 else
13311 test -d ./-p && rmdir ./-p
13312 as_mkdir_p=false
13315 if test -x / >/dev/null 2>&1; then
13316 as_test_x='test -x'
13317 else
13318 if ls -dL / >/dev/null 2>&1; then
13319 as_ls_L_option=L
13320 else
13321 as_ls_L_option=
13323 as_test_x='
13324 eval sh -c '\''
13325 if test -d "$1"; then
13326 test -d "$1/.";
13327 else
13328 case $1 in
13329 -*)set "./$1";;
13330 esac;
13331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13332 ???[sx]*):;;*)false;;esac;fi
13333 '\'' sh
13336 as_executable_p=$as_test_x
13338 # Sed expression to map a string onto a valid CPP name.
13339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13341 # Sed expression to map a string onto a valid variable name.
13342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13345 exec 6>&1
13347 # Save the log message, to keep $[0] and so on meaningful, and to
13348 # report actual input values of CONFIG_FILES etc. instead of their
13349 # values after options handling.
13350 ac_log="
13351 This file was extended by $as_me, which was
13352 generated by GNU Autoconf 2.63. Invocation command line was
13354 CONFIG_FILES = $CONFIG_FILES
13355 CONFIG_HEADERS = $CONFIG_HEADERS
13356 CONFIG_LINKS = $CONFIG_LINKS
13357 CONFIG_COMMANDS = $CONFIG_COMMANDS
13358 $ $0 $@
13360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13363 _ACEOF
13365 case $ac_config_files in *"
13366 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13367 esac
13369 case $ac_config_headers in *"
13370 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13371 esac
13374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13375 # Files that config.status was made for.
13376 config_files="$ac_config_files"
13377 config_headers="$ac_config_headers"
13378 config_commands="$ac_config_commands"
13380 _ACEOF
13382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13383 ac_cs_usage="\
13384 \`$as_me' instantiates files from templates according to the
13385 current configuration.
13387 Usage: $0 [OPTION]... [FILE]...
13389 -h, --help print this help, then exit
13390 -V, --version print version number and configuration settings, then exit
13391 -q, --quiet, --silent
13392 do not print progress messages
13393 -d, --debug don't remove temporary files
13394 --recheck update $as_me by reconfiguring in the same conditions
13395 --file=FILE[:TEMPLATE]
13396 instantiate the configuration file FILE
13397 --header=FILE[:TEMPLATE]
13398 instantiate the configuration header FILE
13400 Configuration files:
13401 $config_files
13403 Configuration headers:
13404 $config_headers
13406 Configuration commands:
13407 $config_commands
13409 Report bugs to <bug-autoconf@gnu.org>."
13411 _ACEOF
13412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13413 ac_cs_version="\\
13414 config.status
13415 configured by $0, generated by GNU Autoconf 2.63,
13416 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13418 Copyright (C) 2008 Free Software Foundation, Inc.
13419 This config.status script is free software; the Free Software Foundation
13420 gives unlimited permission to copy, distribute and modify it."
13422 ac_pwd='$ac_pwd'
13423 srcdir='$srcdir'
13424 test -n "\$AWK" || AWK=awk
13425 _ACEOF
13427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13428 # The default lists apply if the user does not specify any file.
13429 ac_need_defaults=:
13430 while test $# != 0
13432 case $1 in
13433 --*=*)
13434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13435 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13436 ac_shift=:
13439 ac_option=$1
13440 ac_optarg=$2
13441 ac_shift=shift
13443 esac
13445 case $ac_option in
13446 # Handling of the options.
13447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13448 ac_cs_recheck=: ;;
13449 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13450 $as_echo "$ac_cs_version"; exit ;;
13451 --debug | --debu | --deb | --de | --d | -d )
13452 debug=: ;;
13453 --file | --fil | --fi | --f )
13454 $ac_shift
13455 case $ac_optarg in
13456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13457 esac
13458 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13459 ac_need_defaults=false;;
13460 --header | --heade | --head | --hea )
13461 $ac_shift
13462 case $ac_optarg in
13463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13464 esac
13465 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13466 ac_need_defaults=false;;
13467 --he | --h)
13468 # Conflict between --help and --header
13469 { $as_echo "$as_me: error: ambiguous option: $1
13470 Try \`$0 --help' for more information." >&2
13471 { (exit 1); exit 1; }; };;
13472 --help | --hel | -h )
13473 $as_echo "$ac_cs_usage"; exit ;;
13474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13476 ac_cs_silent=: ;;
13478 # This is an error.
13479 -*) { $as_echo "$as_me: error: unrecognized option: $1
13480 Try \`$0 --help' for more information." >&2
13481 { (exit 1); exit 1; }; } ;;
13483 *) ac_config_targets="$ac_config_targets $1"
13484 ac_need_defaults=false ;;
13486 esac
13487 shift
13488 done
13490 ac_configure_extra_args=
13492 if $ac_cs_silent; then
13493 exec 6>/dev/null
13494 ac_configure_extra_args="$ac_configure_extra_args --silent"
13497 _ACEOF
13498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13499 if \$ac_cs_recheck; then
13500 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13501 shift
13502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13503 CONFIG_SHELL='$SHELL'
13504 export CONFIG_SHELL
13505 exec "\$@"
13508 _ACEOF
13509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13510 exec 5>>config.log
13512 echo
13513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13514 ## Running $as_me. ##
13515 _ASBOX
13516 $as_echo "$ac_log"
13517 } >&5
13519 _ACEOF
13520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 # INIT-COMMANDS
13525 aros_host_exe_suffix=${aros_host_exe_suffix}
13526 aros_tools_dir=${aros_tools_dir}
13527 aros_target_cpu=${aros_target_cpu}
13528 aros_target_arch=${aros_target_arch}
13529 aros_target_suffix=${aros_target_suffix}
13530 aros_target_nm_ln=${aros_target_nm_ln}
13531 aros_target_as_ln=${aros_target_as_ln}
13532 aros_target_ar_ln=${aros_target_ar_ln}
13533 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13534 aros_target_objdump_ln=${aros_target_objdump_ln}
13535 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13536 aros_target_strip_ln=${aros_target_strip_ln}
13539 aros_scripts_dir=${aros_scripts_dir}
13541 aros_tools_dir=${aros_tools_dir}
13544 _ACEOF
13546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13548 # Handling of arguments.
13549 for ac_config_target in $ac_config_targets
13551 case $ac_config_target in
13552 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13553 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13554 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13555 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13557 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13558 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13559 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13560 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13561 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13562 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13563 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13564 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13565 "${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" ;;
13566 "${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" ;;
13567 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13568 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13569 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13571 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13572 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13573 { (exit 1); exit 1; }; };;
13574 esac
13575 done
13578 # If the user did not use the arguments to specify the items to instantiate,
13579 # then the envvar interface is used. Set only those that are not.
13580 # We use the long form for the default assignment because of an extremely
13581 # bizarre bug on SunOS 4.1.3.
13582 if $ac_need_defaults; then
13583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13588 # Have a temporary directory for convenience. Make it in the build tree
13589 # simply because there is no reason against having it here, and in addition,
13590 # creating and moving files from /tmp can sometimes cause problems.
13591 # Hook for its removal unless debugging.
13592 # Note that there is a small window in which the directory will not be cleaned:
13593 # after its creation but before its name has been assigned to `$tmp'.
13594 $debug ||
13596 tmp=
13597 trap 'exit_status=$?
13598 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13600 trap '{ (exit 1); exit 1; }' 1 2 13 15
13602 # Create a (secure) tmp directory for tmp files.
13605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13606 test -n "$tmp" && test -d "$tmp"
13607 } ||
13609 tmp=./conf$$-$RANDOM
13610 (umask 077 && mkdir "$tmp")
13611 } ||
13613 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13614 { (exit 1); exit 1; }
13617 # Set up the scripts for CONFIG_FILES section.
13618 # No need to generate them if there are no CONFIG_FILES.
13619 # This happens for instance with `./config.status config.h'.
13620 if test -n "$CONFIG_FILES"; then
13623 ac_cr='
13625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13627 ac_cs_awk_cr='\\r'
13628 else
13629 ac_cs_awk_cr=$ac_cr
13632 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13633 _ACEOF
13637 echo "cat >conf$$subs.awk <<_ACEOF" &&
13638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13639 echo "_ACEOF"
13640 } >conf$$subs.sh ||
13641 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13642 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13643 { (exit 1); exit 1; }; }
13644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13645 ac_delim='%!_!# '
13646 for ac_last_try in false false false false false :; do
13647 . ./conf$$subs.sh ||
13648 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13649 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13650 { (exit 1); exit 1; }; }
13652 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13653 if test $ac_delim_n = $ac_delim_num; then
13654 break
13655 elif $ac_last_try; then
13656 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13657 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13658 { (exit 1); exit 1; }; }
13659 else
13660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13662 done
13663 rm -f conf$$subs.sh
13665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13667 _ACEOF
13668 sed -n '
13670 s/^/S["/; s/!.*/"]=/
13673 s/^[^!]*!//
13674 :repl
13675 t repl
13676 s/'"$ac_delim"'$//
13677 t delim
13680 s/\(.\{148\}\).*/\1/
13681 t more1
13682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13685 b repl
13686 :more1
13687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13690 s/.\{148\}//
13691 t nl
13692 :delim
13694 s/\(.\{148\}\).*/\1/
13695 t more2
13696 s/["\\]/\\&/g; s/^/"/; s/$/"/
13699 :more2
13700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13703 s/.\{148\}//
13704 t delim
13705 ' <conf$$subs.awk | sed '
13706 /^[^""]/{
13708 s/\n//
13710 ' >>$CONFIG_STATUS || ac_write_fail=1
13711 rm -f conf$$subs.awk
13712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13713 _ACAWK
13714 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13715 for (key in S) S_is_set[key] = 1
13716 FS = "\a"
13720 line = $ 0
13721 nfields = split(line, field, "@")
13722 substed = 0
13723 len = length(field[1])
13724 for (i = 2; i < nfields; i++) {
13725 key = field[i]
13726 keylen = length(key)
13727 if (S_is_set[key]) {
13728 value = S[key]
13729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13730 len += length(value) + length(field[++i])
13731 substed = 1
13732 } else
13733 len += 1 + keylen
13736 print line
13739 _ACAWK
13740 _ACEOF
13741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13744 else
13746 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13747 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13748 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13749 { (exit 1); exit 1; }; }
13750 _ACEOF
13752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13754 # trailing colons and then remove the whole line if VPATH becomes empty
13755 # (actually we leave an empty line to preserve line numbers).
13756 if test "x$srcdir" = x.; then
13757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13758 s/:*\$(srcdir):*/:/
13759 s/:*\${srcdir}:*/:/
13760 s/:*@srcdir@:*/:/
13761 s/^\([^=]*=[ ]*\):*/\1/
13762 s/:*$//
13763 s/^[^=]*=[ ]*$//
13767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13768 fi # test -n "$CONFIG_FILES"
13770 # Set up the scripts for CONFIG_HEADERS section.
13771 # No need to generate them if there are no CONFIG_HEADERS.
13772 # This happens for instance with `./config.status Makefile'.
13773 if test -n "$CONFIG_HEADERS"; then
13774 cat >"$tmp/defines.awk" <<\_ACAWK ||
13775 BEGIN {
13776 _ACEOF
13778 # Transform confdefs.h into an awk script `defines.awk', embedded as
13779 # here-document in config.status, that substitutes the proper values into
13780 # config.h.in to produce config.h.
13782 # Create a delimiter string that does not exist in confdefs.h, to ease
13783 # handling of long lines.
13784 ac_delim='%!_!# '
13785 for ac_last_try in false false :; do
13786 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13787 if test -z "$ac_t"; then
13788 break
13789 elif $ac_last_try; then
13790 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13791 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13792 { (exit 1); exit 1; }; }
13793 else
13794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13796 done
13798 # For the awk script, D is an array of macro values keyed by name,
13799 # likewise P contains macro parameters if any. Preserve backslash
13800 # newline sequences.
13802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13803 sed -n '
13804 s/.\{148\}/&'"$ac_delim"'/g
13805 t rset
13806 :rset
13807 s/^[ ]*#[ ]*define[ ][ ]*/ /
13808 t def
13810 :def
13811 s/\\$//
13812 t bsnl
13813 s/["\\]/\\&/g
13814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13815 D["\1"]=" \3"/p
13816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13818 :bsnl
13819 s/["\\]/\\&/g
13820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13821 D["\1"]=" \3\\\\\\n"\\/p
13822 t cont
13823 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13824 t cont
13826 :cont
13828 s/.\{148\}/&'"$ac_delim"'/g
13829 t clear
13830 :clear
13831 s/\\$//
13832 t bsnlc
13833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13835 :bsnlc
13836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13837 b cont
13838 ' <confdefs.h | sed '
13839 s/'"$ac_delim"'/"\\\
13840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13843 for (key in D) D_is_set[key] = 1
13844 FS = "\a"
13846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13847 line = \$ 0
13848 split(line, arg, " ")
13849 if (arg[1] == "#") {
13850 defundef = arg[2]
13851 mac1 = arg[3]
13852 } else {
13853 defundef = substr(arg[1], 2)
13854 mac1 = arg[2]
13856 split(mac1, mac2, "(") #)
13857 macro = mac2[1]
13858 prefix = substr(line, 1, index(line, defundef) - 1)
13859 if (D_is_set[macro]) {
13860 # Preserve the white space surrounding the "#".
13861 print prefix "define", macro P[macro] D[macro]
13862 next
13863 } else {
13864 # Replace #undef with comments. This is necessary, for example,
13865 # in the case of _POSIX_SOURCE, which is predefined and required
13866 # on some systems where configure will not decide to define it.
13867 if (defundef == "undef") {
13868 print "/*", prefix defundef, macro, "*/"
13869 next
13873 { print }
13874 _ACAWK
13875 _ACEOF
13876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13878 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13879 { (exit 1); exit 1; }; }
13880 fi # test -n "$CONFIG_HEADERS"
13883 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13884 shift
13885 for ac_tag
13887 case $ac_tag in
13888 :[FHLC]) ac_mode=$ac_tag; continue;;
13889 esac
13890 case $ac_mode$ac_tag in
13891 :[FHL]*:*);;
13892 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13893 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13894 { (exit 1); exit 1; }; };;
13895 :[FH]-) ac_tag=-:-;;
13896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13897 esac
13898 ac_save_IFS=$IFS
13899 IFS=:
13900 set x $ac_tag
13901 IFS=$ac_save_IFS
13902 shift
13903 ac_file=$1
13904 shift
13906 case $ac_mode in
13907 :L) ac_source=$1;;
13908 :[FH])
13909 ac_file_inputs=
13910 for ac_f
13912 case $ac_f in
13913 -) ac_f="$tmp/stdin";;
13914 *) # Look for the file first in the build tree, then in the source tree
13915 # (if the path is not absolute). The absolute path cannot be DOS-style,
13916 # because $ac_f cannot contain `:'.
13917 test -f "$ac_f" ||
13918 case $ac_f in
13919 [\\/$]*) false;;
13920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13921 esac ||
13922 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13923 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13924 { (exit 1); exit 1; }; };;
13925 esac
13926 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13927 ac_file_inputs="$ac_file_inputs '$ac_f'"
13928 done
13930 # Let's still pretend it is `configure' which instantiates (i.e., don't
13931 # use $as_me), people would be surprised to read:
13932 # /* config.h. Generated by config.status. */
13933 configure_input='Generated from '`
13934 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13935 `' by configure.'
13936 if test x"$ac_file" != x-; then
13937 configure_input="$ac_file. $configure_input"
13938 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13939 $as_echo "$as_me: creating $ac_file" >&6;}
13941 # Neutralize special characters interpreted by sed in replacement strings.
13942 case $configure_input in #(
13943 *\&* | *\|* | *\\* )
13944 ac_sed_conf_input=`$as_echo "$configure_input" |
13945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13946 *) ac_sed_conf_input=$configure_input;;
13947 esac
13949 case $ac_tag in
13950 *:-:* | *:-) cat >"$tmp/stdin" \
13951 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13952 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13953 { (exit 1); exit 1; }; } ;;
13954 esac
13956 esac
13958 ac_dir=`$as_dirname -- "$ac_file" ||
13959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13960 X"$ac_file" : 'X\(//\)[^/]' \| \
13961 X"$ac_file" : 'X\(//\)$' \| \
13962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13963 $as_echo X"$ac_file" |
13964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13965 s//\1/
13968 /^X\(\/\/\)[^/].*/{
13969 s//\1/
13972 /^X\(\/\/\)$/{
13973 s//\1/
13976 /^X\(\/\).*/{
13977 s//\1/
13980 s/.*/./; q'`
13981 { as_dir="$ac_dir"
13982 case $as_dir in #(
13983 -*) as_dir=./$as_dir;;
13984 esac
13985 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13986 as_dirs=
13987 while :; do
13988 case $as_dir in #(
13989 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13990 *) as_qdir=$as_dir;;
13991 esac
13992 as_dirs="'$as_qdir' $as_dirs"
13993 as_dir=`$as_dirname -- "$as_dir" ||
13994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13995 X"$as_dir" : 'X\(//\)[^/]' \| \
13996 X"$as_dir" : 'X\(//\)$' \| \
13997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13998 $as_echo X"$as_dir" |
13999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14000 s//\1/
14003 /^X\(\/\/\)[^/].*/{
14004 s//\1/
14007 /^X\(\/\/\)$/{
14008 s//\1/
14011 /^X\(\/\).*/{
14012 s//\1/
14015 s/.*/./; q'`
14016 test -d "$as_dir" && break
14017 done
14018 test -z "$as_dirs" || eval "mkdir $as_dirs"
14019 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14020 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14021 { (exit 1); exit 1; }; }; }
14022 ac_builddir=.
14024 case "$ac_dir" in
14025 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14028 # A ".." for each directory in $ac_dir_suffix.
14029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14030 case $ac_top_builddir_sub in
14031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14033 esac ;;
14034 esac
14035 ac_abs_top_builddir=$ac_pwd
14036 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14037 # for backward compatibility:
14038 ac_top_builddir=$ac_top_build_prefix
14040 case $srcdir in
14041 .) # We are building in place.
14042 ac_srcdir=.
14043 ac_top_srcdir=$ac_top_builddir_sub
14044 ac_abs_top_srcdir=$ac_pwd ;;
14045 [\\/]* | ?:[\\/]* ) # Absolute name.
14046 ac_srcdir=$srcdir$ac_dir_suffix;
14047 ac_top_srcdir=$srcdir
14048 ac_abs_top_srcdir=$srcdir ;;
14049 *) # Relative name.
14050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14051 ac_top_srcdir=$ac_top_build_prefix$srcdir
14052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14053 esac
14054 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14057 case $ac_mode in
14060 # CONFIG_FILE
14063 _ACEOF
14065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14066 # If the template does not know about datarootdir, expand it.
14067 # FIXME: This hack should be removed a few years after 2.60.
14068 ac_datarootdir_hack=; ac_datarootdir_seen=
14070 ac_sed_dataroot='
14071 /datarootdir/ {
14075 /@datadir@/p
14076 /@docdir@/p
14077 /@infodir@/p
14078 /@localedir@/p
14079 /@mandir@/p
14081 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14082 *datarootdir*) ac_datarootdir_seen=yes;;
14083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14084 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14085 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14086 _ACEOF
14087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 ac_datarootdir_hack='
14089 s&@datadir@&$datadir&g
14090 s&@docdir@&$docdir&g
14091 s&@infodir@&$infodir&g
14092 s&@localedir@&$localedir&g
14093 s&@mandir@&$mandir&g
14094 s&\\\${datarootdir}&$datarootdir&g' ;;
14095 esac
14096 _ACEOF
14098 # Neutralize VPATH when `$srcdir' = `.'.
14099 # Shell code in configure.ac might set extrasub.
14100 # FIXME: do we really want to maintain this feature?
14101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14102 ac_sed_extra="$ac_vpsub
14103 $extrasub
14104 _ACEOF
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14108 s|@configure_input@|$ac_sed_conf_input|;t t
14109 s&@top_builddir@&$ac_top_builddir_sub&;t t
14110 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14111 s&@srcdir@&$ac_srcdir&;t t
14112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14113 s&@top_srcdir@&$ac_top_srcdir&;t t
14114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14115 s&@builddir@&$ac_builddir&;t t
14116 s&@abs_builddir@&$ac_abs_builddir&;t t
14117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14118 $ac_datarootdir_hack
14120 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14121 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14122 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14123 { (exit 1); exit 1; }; }
14125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14126 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14128 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14129 which seems to be undefined. Please make sure it is defined." >&5
14130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14131 which seems to be undefined. Please make sure it is defined." >&2;}
14133 rm -f "$tmp/stdin"
14134 case $ac_file in
14135 -) cat "$tmp/out" && rm -f "$tmp/out";;
14136 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14137 esac \
14138 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14139 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14140 { (exit 1); exit 1; }; }
14144 # CONFIG_HEADER
14146 if test x"$ac_file" != x-; then
14148 $as_echo "/* $configure_input */" \
14149 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14150 } >"$tmp/config.h" \
14151 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14152 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14153 { (exit 1); exit 1; }; }
14154 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14155 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14157 else
14158 rm -f "$ac_file"
14159 mv "$tmp/config.h" "$ac_file" \
14160 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14161 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14162 { (exit 1); exit 1; }; }
14164 else
14165 $as_echo "/* $configure_input */" \
14166 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14167 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14168 $as_echo "$as_me: error: could not create -" >&2;}
14169 { (exit 1); exit 1; }; }
14173 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14174 $as_echo "$as_me: executing $ac_file commands" >&6;}
14176 esac
14179 case $ac_file$ac_mode in
14180 "compiler_executable":C)
14181 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14182 mkdir -p $prefix
14183 prefix="${prefix}/${aros_target_cpu}-aros"
14184 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14186 echo ${prefix}
14187 echo ${prefix2}
14188 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14190 ln -sf ${prefix2}-gcc ${prefix}-gcc
14191 ln -sf ${prefix2}-ld ${prefix}-ld
14193 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14194 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14195 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14196 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14197 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14198 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14199 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14201 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14202 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14203 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14204 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14205 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14206 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14207 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14209 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14210 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14212 esac
14213 done # for ac_tag
14216 { (exit 0); exit 0; }
14217 _ACEOF
14218 chmod +x $CONFIG_STATUS
14219 ac_clean_files=$ac_clean_files_save
14221 test $ac_write_fail = 0 ||
14222 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14223 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14224 { (exit 1); exit 1; }; }
14227 # configure is writing to config.log, and then calls config.status.
14228 # config.status does its own redirection, appending to config.log.
14229 # Unfortunately, on DOS this fails, as config.log is still kept open
14230 # by configure, so config.status won't be able to write to it; its
14231 # output is simply discarded. So we exec the FD to /dev/null,
14232 # effectively closing config.log, so it can be properly (re)opened and
14233 # appended to by config.status. When coming back to configure, we
14234 # need to make the FD available again.
14235 if test "$no_create" != yes; then
14236 ac_cs_success=:
14237 ac_config_status_args=
14238 test "$silent" = yes &&
14239 ac_config_status_args="$ac_config_status_args --quiet"
14240 exec 5>/dev/null
14241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14242 exec 5>>config.log
14243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14244 # would make configure fail if this is the last instruction.
14245 $ac_cs_success || { (exit 1); exit 1; }
14247 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14248 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14249 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14254 #XXX compatability...
14255 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14257 if test -n "$aros_shared_cflags" ; then
14258 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14259 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg