missing properties
[AROS.git] / configure
blobba8ebc12b43d52e175b8ecadbae818f75b2f89aa
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_host_sdl_libs
655 aros_host_sdl_cflags
656 aros_host_x11_libdirs
657 aros_host_x11_includes
658 DO_VIDMODE_SUPPORT
659 DO_XSHM_SUPPORT
660 aros_default_wbdepth
661 aros_default_wbheight
662 aros_default_wbwidth
663 sdl_hidd_target
664 x11_hidd_target
665 aros_target_strip_flags
666 aros_target_genmap
667 aros_debug_ldflags
668 aros_debug_aflags
669 aros_debug_cflags
670 aros_kernel_ldflags
671 aros_kernel_cflags
672 aros_shared_ldflags
673 aros_shared_aflags
674 aros_shared_cflags
675 aros_config_ldflags
676 aros_config_aflags
677 aros_config_cflags
678 aros_arch_libs
679 aros_compiler_libs
680 aros_object_format
681 aros_shared_ld
682 aros_shared_default
683 aros_target_nm
684 aros_target_strip
685 aros_target_objcopy
686 aros_target_objdump
687 aros_target_cc_path
688 aros_target_cc_includes
689 orig_target_ld
690 aros_target_as
691 aros_kernel_cc
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_UNIX
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 CCACHE
752 DISTCC
753 LIBOBJS
754 EGREP
755 GREP
757 TEST
760 pkgpyexecdir
761 pyexecdir
762 pkgpythondir
763 pythondir
764 PYTHON_PLATFORM
765 PYTHON_EXEC_PREFIX
766 PYTHON_PREFIX
767 PYTHON_VERSION
768 PYTHON
769 CHMOD
771 PPMTOILBM
772 PNGTOPNM
773 FLEX
774 BISON
777 UNIQ
778 SORT
779 TOUCH
780 MKDIR
781 ECHO
785 aros_host_strip
786 aros_host_ranlib
787 aros_host_ar
788 aros_host_automake
789 aros_host_autoheader
790 aros_host_autoconf
791 aros_host_aclocal
792 aros_host_ld
793 MMAKE
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL'
848 ac_subst_files=''
849 ac_user_opts='
850 enable_option_checking
851 enable_build_type
852 enable_debug
853 enable_crosstools
854 enable_distcc
855 enable_ccache
856 with_optimization
857 enable_target_variant
858 with_portssources
859 with_bootloader
860 with_iconset
861 with_theme
862 enable_includes
863 with_resolution
864 with_serial_debug
865 enable_palm_debug_hack
866 enable_nesting_supervisor
867 enable_x11_hidd
868 with_x
869 enable_x11_shm
870 enable_x11_vidmode
871 enable_sdl_hidd
872 with_sdl_prefix
873 with_sdl_exec_prefix
874 enable_sdltest
875 enable_dbus
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
886 XMKMF'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996 { (exit 1); exit 1; }; }
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1276 Try \`$0 --help' for more information." >&2
1277 { (exit 1); exit 1; }; }
1280 *=*)
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1284 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1285 { (exit 1); exit 1; }; }
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 esac
1298 done
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1303 { (exit 1); exit 1; }; }
1306 if test -n "$ac_unrecognized_opts"; then
1307 case $enable_option_checking in
1308 no) ;;
1309 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1310 { (exit 1); exit 1; }; } ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 esac
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1323 case $ac_val in
1324 */ )
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1327 esac
1328 # Be sure to have absolute directory names.
1329 case $ac_val in
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 esac
1333 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334 { (exit 1); exit 1; }; }
1335 done
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1365 { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1368 { (exit 1); exit 1; }; }
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1389 /^X\(\/\/\)$/{
1390 s//\1/
1393 /^X\(\/\).*/{
1394 s//\1/
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1402 else
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408 { (exit 1); exit 1; }; }
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1413 { (exit 1); exit 1; }; }
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures this package to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1494 cat <<\_ACEOF
1496 X features:
1497 --x-includes=DIR X include files are in DIR
1498 --x-libraries=DIR X library files are in DIR
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1506 if test -n "$ac_init_help"; then
1508 cat <<\_ACEOF
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-build-type=TYPE
1515 Select the build type. Available types are:
1516 personal, nightly, snapshot, milestone, release. Do
1517 NOT use this option unless you know what you are
1518 doing! (default=personal)
1519 --enable-debug=list Enable different types of debug. Commas or
1520 whitespaces can be used to separate the items in the
1521 list. Available types of debug are: all, none,
1522 messages, stack, mungwall, modules, symbols. If no
1523 list is provided then "all" is assumed.
1524 (default=none)
1525 --enable-crosstools Build cross-compiler toolchains if necessary
1526 (default=no).
1527 --enable-distcc Use distcc as a front end to the compiler
1528 (default=no).
1529 --enable-ccache Use ccache as a front end to the compiler
1530 (default=no).
1531 --enable-target-variant=NAME
1532 Enable a specific target variant(default=none)
1533 --enable-includes=dir Alternative system include directory
1534 --enable-palm-debug-hack
1535 Enable palm debug output hack in palm native
1536 (default=no)
1537 --enable-nesting-supervisor
1538 Enable nesting supervisor support in unix
1539 (default=no)
1540 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1541 --enable-x11-shm use X11 shared memory (default=auto)
1542 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1543 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1544 --disable-sdltest Do not try to compile and run a test SDL program
1545 --enable-dbus Enable DBUS support via dbus.library (default=no)
1547 Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-optimization=FLAGS
1551 Use optimization flags FLAGS (default=-O2).
1552 --with-portssources=DIR Where to download sourcecode for external ports
1553 --with-bootloader=NAME Use a specific bootloader
1554 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1555 --with-theme=NAME Use a specific GUI Theme
1556 --with-resolution=XRESxYRESxDEPTH
1557 Default resolution of the initial WorkbenchScreen
1558 --with-serial-debug Enable serial debug output in native (default=no)
1559 --with-x use the X Window System
1560 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1561 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1563 Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
1571 CPP C preprocessor
1572 XMKMF Path to xmkmf, Makefile generator for X Window System
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1577 _ACEOF
1578 ac_status=$?
1581 if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
1583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584 test -d "$ac_dir" ||
1585 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 continue
1587 ac_builddir=.
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1593 # A ".." for each directory in $ac_dir_suffix.
1594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1595 case $ac_top_builddir_sub in
1596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1605 case $srcdir in
1606 .) # We are building in place.
1607 ac_srcdir=.
1608 ac_top_srcdir=$ac_top_builddir_sub
1609 ac_abs_top_srcdir=$ac_pwd ;;
1610 [\\/]* | ?:[\\/]* ) # Absolute name.
1611 ac_srcdir=$srcdir$ac_dir_suffix;
1612 ac_top_srcdir=$srcdir
1613 ac_abs_top_srcdir=$srcdir ;;
1614 *) # Relative name.
1615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616 ac_top_srcdir=$ac_top_build_prefix$srcdir
1617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621 cd "$ac_dir" || { ac_status=$?; continue; }
1622 # Check for guested configure.
1623 if test -f "$ac_srcdir/configure.gnu"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626 elif test -f "$ac_srcdir/configure"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure" --help=recursive
1629 else
1630 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 fi || ac_status=$?
1632 cd "$ac_pwd" || { ac_status=$?; break; }
1633 done
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638 cat <<\_ACEOF
1639 configure
1640 generated by GNU Autoconf 2.63
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647 exit
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1653 It was created by $as_me, which was
1654 generated by GNU Autoconf 2.63. Invocation command line was
1656 $ $0 $@
1658 _ACEOF
1659 exec 5>>config.log
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683 _ASUNAME
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 $as_echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1694 } >&5
1696 cat >&5 <<_ACEOF
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1703 _ACEOF
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1717 for ac_arg
1719 case $ac_arg in
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1723 continue ;;
1724 *\'*)
1725 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 esac
1727 case $ac_pass in
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
1732 ac_must_keep_next=false # Got value, back to normal.
1733 else
1734 case $ac_arg in
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741 esac
1743 -* ) ac_must_keep_next=true ;;
1744 esac
1746 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 esac
1749 done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log. We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1762 echo
1764 cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769 echo
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in #(
1775 *${as_nl}*)
1776 case $ac_var in #(
1777 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1779 esac
1780 case $ac_var in #(
1781 _ | IFS | as_nl) ;; #(
1782 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1783 *) $as_unset $ac_var ;;
1784 esac ;;
1785 esac
1786 done
1787 (set) 2>&1 |
1788 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789 *${as_nl}ac_space=\ *)
1790 sed -n \
1791 "s/'\''/'\''\\\\'\'''\''/g;
1792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793 ;; #(
1795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 esac |
1798 sort
1800 echo
1802 cat <<\_ASBOX
1803 ## ----------------- ##
1804 ## Output variables. ##
1805 ## ----------------- ##
1806 _ASBOX
1807 echo
1808 for ac_var in $ac_subst_vars
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 $as_echo "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1818 if test -n "$ac_subst_files"; then
1819 cat <<\_ASBOX
1820 ## ------------------- ##
1821 ## File substitutions. ##
1822 ## ------------------- ##
1823 _ASBOX
1824 echo
1825 for ac_var in $ac_subst_files
1827 eval ac_val=\$$ac_var
1828 case $ac_val in
1829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 esac
1831 $as_echo "$ac_var='\''$ac_val'\''"
1832 done | sort
1833 echo
1836 if test -s confdefs.h; then
1837 cat <<\_ASBOX
1838 ## ----------- ##
1839 ## confdefs.h. ##
1840 ## ----------- ##
1841 _ASBOX
1842 echo
1843 cat confdefs.h
1844 echo
1846 test "$ac_signal" != 0 &&
1847 $as_echo "$as_me: caught signal $ac_signal"
1848 $as_echo "$as_me: exit $exit_status"
1849 } >&5
1850 rm -f core *.core core.conftest.* &&
1851 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852 exit $exit_status
1854 for ac_signal in 1 2 13 15; do
1855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 done
1857 ac_signal=0
1859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1860 rm -f -r conftest* confdefs.h
1862 # Predefined preprocessor variables.
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_NAME "$PACKAGE_NAME"
1866 _ACEOF
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 _ACEOF
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 _ACEOF
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_STRING "$PACKAGE_STRING"
1881 _ACEOF
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 _ACEOF
1889 # Let the site file select an alternate cache file if it wants to.
1890 # Prefer an explicitly selected file to automatically selected ones.
1891 ac_site_file1=NONE
1892 ac_site_file2=NONE
1893 if test -n "$CONFIG_SITE"; then
1894 ac_site_file1=$CONFIG_SITE
1895 elif test "x$prefix" != xNONE; then
1896 ac_site_file1=$prefix/share/config.site
1897 ac_site_file2=$prefix/etc/config.site
1898 else
1899 ac_site_file1=$ac_default_prefix/share/config.site
1900 ac_site_file2=$ac_default_prefix/etc/config.site
1902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1904 test "x$ac_site_file" = xNONE && continue
1905 if test -r "$ac_site_file"; then
1906 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1908 sed 's/^/| /' "$ac_site_file" >&5
1909 . "$ac_site_file"
1911 done
1913 if test -r "$cache_file"; then
1914 # Some versions of bash will fail to source /dev/null (special
1915 # files actually), so we avoid doing that.
1916 if test -f "$cache_file"; then
1917 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918 $as_echo "$as_me: loading cache $cache_file" >&6;}
1919 case $cache_file in
1920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921 *) . "./$cache_file";;
1922 esac
1924 else
1925 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926 $as_echo "$as_me: creating cache $cache_file" >&6;}
1927 >$cache_file
1930 # Check that the precious variables saved in the cache have kept the same
1931 # value.
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1939 set,)
1940 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,set)
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,);;
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 # differences in whitespace do not lead to failure.
1951 ac_old_val_w=`echo x $ac_old_val`
1952 ac_new_val_w=`echo x $ac_new_val`
1953 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1954 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 ac_cache_corrupted=:
1957 else
1958 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1960 eval $ac_var=\$ac_old_val
1962 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1963 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1964 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1965 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1966 fi;;
1967 esac
1968 # Pass precious variables to config.status.
1969 if test "$ac_new_set" = set; then
1970 case $ac_new_val in
1971 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 *) ac_arg=$ac_var=$ac_new_val ;;
1973 esac
1974 case " $ac_configure_args " in
1975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1976 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1977 esac
1979 done
1980 if $ac_cache_corrupted; then
1981 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1983 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 ac_aux_dir=
2015 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2016 if test -f "$ac_dir/install-sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 break
2020 elif 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/shtool"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 break
2029 done
2030 if test -z "$ac_aux_dir"; then
2031 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 # Check what host we are running on.
2047 # If a target is not suggested, we use this one.
2048 # Note that what we call a target, Autoconf calls a host.
2049 # Make sure we can run config.sub.
2050 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2051 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2052 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2053 { (exit 1); exit 1; }; }
2055 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2056 $as_echo_n "checking build system type... " >&6; }
2057 if test "${ac_cv_build+set}" = set; then
2058 $as_echo_n "(cached) " >&6
2059 else
2060 ac_build_alias=$build_alias
2061 test "x$ac_build_alias" = x &&
2062 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2063 test "x$ac_build_alias" = x &&
2064 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2065 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2066 { (exit 1); exit 1; }; }
2067 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2068 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2069 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2073 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2074 $as_echo "$ac_cv_build" >&6; }
2075 case $ac_cv_build in
2076 *-*-*) ;;
2077 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2078 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2079 { (exit 1); exit 1; }; };;
2080 esac
2081 build=$ac_cv_build
2082 ac_save_IFS=$IFS; IFS='-'
2083 set x $ac_cv_build
2084 shift
2085 build_cpu=$1
2086 build_vendor=$2
2087 shift; shift
2088 # Remember, the first character of IFS is used to create $*,
2089 # except with old shells:
2090 build_os=$*
2091 IFS=$ac_save_IFS
2092 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2095 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2096 $as_echo_n "checking host system type... " >&6; }
2097 if test "${ac_cv_host+set}" = set; then
2098 $as_echo_n "(cached) " >&6
2099 else
2100 if test "x$host_alias" = x; then
2101 ac_cv_host=$ac_cv_build
2102 else
2103 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2104 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2105 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2110 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2111 $as_echo "$ac_cv_host" >&6; }
2112 case $ac_cv_host in
2113 *-*-*) ;;
2114 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2115 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2116 { (exit 1); exit 1; }; };;
2117 esac
2118 host=$ac_cv_host
2119 ac_save_IFS=$IFS; IFS='-'
2120 set x $ac_cv_host
2121 shift
2122 host_cpu=$1
2123 host_vendor=$2
2124 shift; shift
2125 # Remember, the first character of IFS is used to create $*,
2126 # except with old shells:
2127 host_os=$*
2128 IFS=$ac_save_IFS
2129 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2133 # The AROS target is slightly different to the normal GNU style
2134 # format. We don't have the middle part, and we reverse the order
2135 # of the $(CPU) and $(OS) bits.
2137 # Don't strip the version of the target yet, it might be
2138 # useful on some systems.
2140 { $as_echo "$as_me:$LINENO: checking for AROS style target" >&5
2141 $as_echo_n "checking for AROS style target... " >&6; }
2143 if test "$target" = "NONE" ; then
2144 target=$host_os-$host_cpu
2145 cross_compile=no
2146 else
2147 if test "$target" = "" ; then
2148 target=$host_os-$host_cpu
2149 cross_compile=no
2150 else
2151 cross_compile=yes
2154 { $as_echo "$as_me:$LINENO: result: $target" >&5
2155 $as_echo "$target" >&6; }
2157 if test "$host_os" = "mingw32" ; then
2158 PWDCMD="pwd -W"
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=`${PWDCMD-pwd}`
2165 AROS_BUILDDIR_UNIX=${PWD}
2166 { $as_echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2167 $as_echo "$AROS_BUILDDIR" >&6; }
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 case "$host_cpu" in
4297 *i?86*)
4298 aros_host_cpu="i386"
4301 { $as_echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4302 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4303 aros_host_cpu="$host_cpu"
4305 esac
4308 { { $as_echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4309 $as_echo "$as_me: error: Unsupported host architecture $host" >&2;}
4310 { (exit 1); exit 1; }; }
4312 esac
4314 # Extract the first word of "ar", so it can be a program name with args.
4315 set dummy ar; ac_word=$2
4316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$aros_host_ar"; then
4322 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_aros_host_ar="ar cr"
4332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 aros_host_ar=$ac_cv_prog_aros_host_ar
4342 if test -n "$aros_host_ar"; then
4343 { $as_echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4344 $as_echo "$aros_host_ar" >&6; }
4345 else
4346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347 $as_echo "no" >&6; }
4351 if test "$aros_host_ar" = ""; then
4352 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4353 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4354 { (exit 1); exit 1; }; }
4356 # Extract the first word of "ranlib", so it can be a program name with args.
4357 set dummy ranlib; ac_word=$2
4358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -n "$aros_host_ranlib"; then
4364 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_aros_host_ranlib="ranlib "
4374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4384 if test -n "$aros_host_ranlib"; then
4385 { $as_echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4386 $as_echo "$aros_host_ranlib" >&6; }
4387 else
4388 { $as_echo "$as_me:$LINENO: result: no" >&5
4389 $as_echo "no" >&6; }
4393 if test "$aros_host_ranlib" = ""; then
4394 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4395 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4396 { (exit 1); exit 1; }; }
4398 # Extract the first word of "strip", so it can be a program name with args.
4399 set dummy strip; ac_word=$2
4400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$aros_host_strip"; then
4406 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_aros_host_strip="strip "
4416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 aros_host_strip=$ac_cv_prog_aros_host_strip
4426 if test -n "$aros_host_strip"; then
4427 { $as_echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4428 $as_echo "$aros_host_strip" >&6; }
4429 else
4430 { $as_echo "$as_me:$LINENO: result: no" >&5
4431 $as_echo "no" >&6; }
4435 if test "$aros_host_strip" = ""; then
4436 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4437 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4438 { (exit 1); exit 1; }; }
4441 # Extract the first word of "rm", so it can be a program name with args.
4442 set dummy rm; ac_word=$2
4443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_RM+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$RM"; then
4449 ac_cv_prog_RM="$RM" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_RM="rm -rf"
4459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 RM=$ac_cv_prog_RM
4469 if test -n "$RM"; then
4470 { $as_echo "$as_me:$LINENO: result: $RM" >&5
4471 $as_echo "$RM" >&6; }
4472 else
4473 { $as_echo "$as_me:$LINENO: result: no" >&5
4474 $as_echo "no" >&6; }
4478 if test "$RM" = ""; then
4479 { { $as_echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4480 $as_echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4481 { (exit 1); exit 1; }; }
4483 # Extract the first word of "cp", so it can be a program name with args.
4484 set dummy cp; ac_word=$2
4485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_CP+set}" = set; then
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$CP"; then
4491 ac_cv_prog_CP="$CP" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_CP="cp "
4501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 CP=$ac_cv_prog_CP
4511 if test -n "$CP"; then
4512 { $as_echo "$as_me:$LINENO: result: $CP" >&5
4513 $as_echo "$CP" >&6; }
4514 else
4515 { $as_echo "$as_me:$LINENO: result: no" >&5
4516 $as_echo "no" >&6; }
4520 if test "$CP" = ""; then
4521 { { $as_echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4522 $as_echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4523 { (exit 1); exit 1; }; }
4525 # Extract the first word of "mv", so it can be a program name with args.
4526 set dummy mv; ac_word=$2
4527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_MV+set}" = set; then
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$MV"; then
4533 ac_cv_prog_MV="$MV" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_MV="mv "
4543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 MV=$ac_cv_prog_MV
4553 if test -n "$MV"; then
4554 { $as_echo "$as_me:$LINENO: result: $MV" >&5
4555 $as_echo "$MV" >&6; }
4556 else
4557 { $as_echo "$as_me:$LINENO: result: no" >&5
4558 $as_echo "no" >&6; }
4562 if test "$MV" = ""; then
4563 { { $as_echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4564 $as_echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4565 { (exit 1); exit 1; }; }
4567 # Extract the first word of "echo", so it can be a program name with args.
4568 set dummy echo; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ECHO+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$ECHO"; then
4575 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ECHO="echo "
4585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4588 done
4589 done
4590 IFS=$as_save_IFS
4594 ECHO=$ac_cv_prog_ECHO
4595 if test -n "$ECHO"; then
4596 { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
4597 $as_echo "$ECHO" >&6; }
4598 else
4599 { $as_echo "$as_me:$LINENO: result: no" >&5
4600 $as_echo "no" >&6; }
4604 if test "$ECHO" = ""; then
4605 { { $as_echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4606 $as_echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4607 { (exit 1); exit 1; }; }
4609 # Extract the first word of "mkdir", so it can be a program name with args.
4610 set dummy mkdir; ac_word=$2
4611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_MKDIR+set}" = set; then
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$MKDIR"; then
4617 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_MKDIR="mkdir -p"
4627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4630 done
4631 done
4632 IFS=$as_save_IFS
4636 MKDIR=$ac_cv_prog_MKDIR
4637 if test -n "$MKDIR"; then
4638 { $as_echo "$as_me:$LINENO: result: $MKDIR" >&5
4639 $as_echo "$MKDIR" >&6; }
4640 else
4641 { $as_echo "$as_me:$LINENO: result: no" >&5
4642 $as_echo "no" >&6; }
4646 if test "$MKDIR" = ""; then
4647 { { $as_echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4648 $as_echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4649 { (exit 1); exit 1; }; }
4651 # Extract the first word of "touch", so it can be a program name with args.
4652 set dummy touch; ac_word=$2
4653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_TOUCH+set}" = set; then
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$TOUCH"; then
4659 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_TOUCH="touch "
4669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 TOUCH=$ac_cv_prog_TOUCH
4679 if test -n "$TOUCH"; then
4680 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
4681 $as_echo "$TOUCH" >&6; }
4682 else
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4688 if test "$TOUCH" = ""; then
4689 { { $as_echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4690 $as_echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4691 { (exit 1); exit 1; }; }
4693 # Extract the first word of "sort", so it can be a program name with args.
4694 set dummy sort; ac_word=$2
4695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_SORT+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$SORT"; then
4701 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_SORT="sort "
4711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 SORT=$ac_cv_prog_SORT
4721 if test -n "$SORT"; then
4722 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
4723 $as_echo "$SORT" >&6; }
4724 else
4725 { $as_echo "$as_me:$LINENO: result: no" >&5
4726 $as_echo "no" >&6; }
4730 if test "$SORT" = ""; then
4731 { { $as_echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4732 $as_echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4733 { (exit 1); exit 1; }; }
4735 # Extract the first word of "uniq", so it can be a program name with args.
4736 set dummy uniq; ac_word=$2
4737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_UNIQ+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$UNIQ"; then
4743 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_UNIQ="uniq "
4753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 UNIQ=$ac_cv_prog_UNIQ
4763 if test -n "$UNIQ"; then
4764 { $as_echo "$as_me:$LINENO: result: $UNIQ" >&5
4765 $as_echo "$UNIQ" >&6; }
4766 else
4767 { $as_echo "$as_me:$LINENO: result: no" >&5
4768 $as_echo "no" >&6; }
4772 if test "$UNIQ" = ""; then
4773 { { $as_echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4774 $as_echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4775 { (exit 1); exit 1; }; }
4777 # Extract the first word of "true", so it can be a program name with args.
4778 set dummy true; ac_word=$2
4779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_NOP+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$NOP"; then
4785 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_NOP="true "
4795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4800 IFS=$as_save_IFS
4804 NOP=$ac_cv_prog_NOP
4805 if test -n "$NOP"; then
4806 { $as_echo "$as_me:$LINENO: result: $NOP" >&5
4807 $as_echo "$NOP" >&6; }
4808 else
4809 { $as_echo "$as_me:$LINENO: result: no" >&5
4810 $as_echo "no" >&6; }
4814 if test "$NOP" = ""; then
4815 { { $as_echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4816 $as_echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4817 { (exit 1); exit 1; }; }
4819 # Extract the first word of "cat", so it can be a program name with args.
4820 set dummy cat; ac_word=$2
4821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_CAT+set}" = set; then
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$CAT"; then
4827 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_CAT="cat "
4837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 CAT=$ac_cv_prog_CAT
4847 if test -n "$CAT"; then
4848 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4849 $as_echo "$CAT" >&6; }
4850 else
4851 { $as_echo "$as_me:$LINENO: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test "$CAT" = ""; then
4857 { { $as_echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4858 $as_echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4859 { (exit 1); exit 1; }; }
4861 # Extract the first word of "bison", so it can be a program name with args.
4862 set dummy bison; ac_word=$2
4863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_BISON+set}" = set; then
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -n "$BISON"; then
4869 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_BISON="bison "
4879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4888 BISON=$ac_cv_prog_BISON
4889 if test -n "$BISON"; then
4890 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4891 $as_echo "$BISON" >&6; }
4892 else
4893 { $as_echo "$as_me:$LINENO: result: no" >&5
4894 $as_echo "no" >&6; }
4898 if test "$BISON" = ""; then
4899 { { $as_echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4900 $as_echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4901 { (exit 1); exit 1; }; }
4903 # Extract the first word of "flex", so it can be a program name with args.
4904 set dummy flex; ac_word=$2
4905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_FLEX+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$FLEX"; then
4911 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_FLEX="flex "
4921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 FLEX=$ac_cv_prog_FLEX
4931 if test -n "$FLEX"; then
4932 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
4933 $as_echo "$FLEX" >&6; }
4934 else
4935 { $as_echo "$as_me:$LINENO: result: no" >&5
4936 $as_echo "no" >&6; }
4940 if test "$FLEX" = ""; then
4941 { { $as_echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4942 $as_echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4943 { (exit 1); exit 1; }; }
4945 # Extract the first word of "pngtopnm", so it can be a program name with args.
4946 set dummy pngtopnm; ac_word=$2
4947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$PNGTOPNM"; then
4953 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_PNGTOPNM="pngtopnm "
4963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4973 if test -n "$PNGTOPNM"; then
4974 { $as_echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4975 $as_echo "$PNGTOPNM" >&6; }
4976 else
4977 { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4982 if test "$PNGTOPNM" = ""; then
4983 { { $as_echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4984 $as_echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4985 { (exit 1); exit 1; }; }
4987 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4988 set dummy ppmtoilbm; ac_word=$2
4989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$PPMTOILBM"; then
4995 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5015 if test -n "$PPMTOILBM"; then
5016 { $as_echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
5017 $as_echo "$PPMTOILBM" >&6; }
5018 else
5019 { $as_echo "$as_me:$LINENO: result: no" >&5
5020 $as_echo "no" >&6; }
5024 if test "$PPMTOILBM" = ""; then
5025 { { $as_echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
5026 $as_echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
5027 { (exit 1); exit 1; }; }
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_SED+set}" = set; then
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$SED"; then
5037 ac_cv_prog_SED="$SED" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_SED="sed "
5047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5056 SED=$ac_cv_prog_SED
5057 if test -n "$SED"; then
5058 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5059 $as_echo "$SED" >&6; }
5060 else
5061 { $as_echo "$as_me:$LINENO: result: no" >&5
5062 $as_echo "no" >&6; }
5066 if test "$SED" = ""; then
5067 { { $as_echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
5068 $as_echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
5069 { (exit 1); exit 1; }; }
5071 # Extract the first word of "chmod", so it can be a program name with args.
5072 set dummy chmod; ac_word=$2
5073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_CHMOD+set}" = set; then
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$CHMOD"; then
5079 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_CHMOD="chmod "
5089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 CHMOD=$ac_cv_prog_CHMOD
5099 if test -n "$CHMOD"; then
5100 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
5101 $as_echo "$CHMOD" >&6; }
5102 else
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5108 if test "$CHMOD" = ""; then
5109 { { $as_echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5110 $as_echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5111 { (exit 1); exit 1; }; }
5118 if test -n "$PYTHON"; then
5119 # If the user set $PYTHON, use it and don't search something else.
5120 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
5121 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5122 prog="import sys, string
5123 # split strings by '.' and convert to numeric. Append some zeros
5124 # because we need at least 4 digits for the hex conversion.
5125 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5126 minverhex = 0
5127 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5128 sys.exit(sys.hexversion < minverhex)"
5129 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5130 ($PYTHON -c "$prog") >&5 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; then
5134 { $as_echo "$as_me:$LINENO: result: yes" >&5
5135 $as_echo "yes" >&6; }
5136 else
5137 { { $as_echo "$as_me:$LINENO: error: too old" >&5
5138 $as_echo "$as_me: error: too old" >&2;}
5139 { (exit 1); exit 1; }; }
5142 am_display_PYTHON=$PYTHON
5143 else
5144 # Otherwise, try each interpreter until we find one that satisfies
5145 # VERSION.
5146 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
5147 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5148 if test "${am_cv_pathless_PYTHON+set}" = set; then
5149 $as_echo_n "(cached) " >&6
5150 else
5152 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
5153 test "$am_cv_pathless_PYTHON" = none && break
5154 prog="import sys, string
5155 # split strings by '.' and convert to numeric. Append some zeros
5156 # because we need at least 4 digits for the hex conversion.
5157 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5158 minverhex = 0
5159 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5160 sys.exit(sys.hexversion < minverhex)"
5161 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5162 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; then
5166 break
5169 done
5171 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5172 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5173 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5174 if test "$am_cv_pathless_PYTHON" = none; then
5175 PYTHON=:
5176 else
5177 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5178 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_path_PYTHON+set}" = set; then
5182 $as_echo_n "(cached) " >&6
5183 else
5184 case $PYTHON in
5185 [\\/]* | ?:[\\/]*)
5186 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5205 esac
5207 PYTHON=$ac_cv_path_PYTHON
5208 if test -n "$PYTHON"; then
5209 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
5210 $as_echo "$PYTHON" >&6; }
5211 else
5212 { $as_echo "$as_me:$LINENO: result: no" >&5
5213 $as_echo "no" >&6; }
5218 am_display_PYTHON=$am_cv_pathless_PYTHON
5222 if test "$PYTHON" = :; then
5223 { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5224 $as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
5225 { (exit 1); exit 1; }; }
5226 else
5229 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5230 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5231 if test "${am_cv_python_version+set}" = set; then
5232 $as_echo_n "(cached) " >&6
5233 else
5234 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5236 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5237 $as_echo "$am_cv_python_version" >&6; }
5238 PYTHON_VERSION=$am_cv_python_version
5242 PYTHON_PREFIX='${prefix}'
5244 PYTHON_EXEC_PREFIX='${exec_prefix}'
5248 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5249 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5250 if test "${am_cv_python_platform+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5255 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5256 $as_echo "$am_cv_python_platform" >&6; }
5257 PYTHON_PLATFORM=$am_cv_python_platform
5262 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5263 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5264 if test "${am_cv_python_pythondir+set}" = set; then
5265 $as_echo_n "(cached) " >&6
5266 else
5267 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5268 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5270 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5271 $as_echo "$am_cv_python_pythondir" >&6; }
5272 pythondir=$am_cv_python_pythondir
5276 pkgpythondir=\${pythondir}/$PACKAGE
5279 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5280 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5281 if test "${am_cv_python_pyexecdir+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5283 else
5284 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5285 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5287 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5288 $as_echo "$am_cv_python_pyexecdir" >&6; }
5289 pyexecdir=$am_cv_python_pyexecdir
5293 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5301 FOR=for
5303 IF=if
5305 TEST=test
5307 CMP=cmp
5311 # Check for some includes for the X11 HIDD and the kernel
5314 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5316 if test "${ac_cv_path_GREP+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -z "$GREP"; then
5320 ac_path_GREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in grep ggrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5330 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5331 # Check for GNU ac_path_GREP and select it if it is found.
5332 # Check for GNU $ac_path_GREP
5333 case `"$ac_path_GREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'GREP' >> "conftest.nl"
5345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 ac_count=`expr $ac_count + 1`
5348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_GREP="$ac_path_GREP"
5351 ac_path_GREP_max=$ac_count
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5359 $ac_path_GREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_GREP"; then
5365 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5366 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5367 { (exit 1); exit 1; }; }
5369 else
5370 ac_cv_path_GREP=$GREP
5374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5375 $as_echo "$ac_cv_path_GREP" >&6; }
5376 GREP="$ac_cv_path_GREP"
5379 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5380 $as_echo_n "checking for egrep... " >&6; }
5381 if test "${ac_cv_path_EGREP+set}" = set; then
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5385 then ac_cv_path_EGREP="$GREP -E"
5386 else
5387 if test -z "$EGREP"; then
5388 ac_path_EGREP_found=false
5389 # Loop through the user's path and test for each of PROGNAME-LIST
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_prog in egrep; do
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5398 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5399 # Check for GNU ac_path_EGREP and select it if it is found.
5400 # Check for GNU $ac_path_EGREP
5401 case `"$ac_path_EGREP" --version 2>&1` in
5402 *GNU*)
5403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5405 ac_count=0
5406 $as_echo_n 0123456789 >"conftest.in"
5407 while :
5409 cat "conftest.in" "conftest.in" >"conftest.tmp"
5410 mv "conftest.tmp" "conftest.in"
5411 cp "conftest.in" "conftest.nl"
5412 $as_echo 'EGREP' >> "conftest.nl"
5413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5415 ac_count=`expr $ac_count + 1`
5416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5417 # Best one so far, save it but keep looking for a better one
5418 ac_cv_path_EGREP="$ac_path_EGREP"
5419 ac_path_EGREP_max=$ac_count
5421 # 10*(2^10) chars as input seems more than enough
5422 test $ac_count -gt 10 && break
5423 done
5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 esac
5427 $ac_path_EGREP_found && break 3
5428 done
5429 done
5430 done
5431 IFS=$as_save_IFS
5432 if test -z "$ac_cv_path_EGREP"; then
5433 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5434 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5435 { (exit 1); exit 1; }; }
5437 else
5438 ac_cv_path_EGREP=$EGREP
5443 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5444 $as_echo "$ac_cv_path_EGREP" >&6; }
5445 EGREP="$ac_cv_path_EGREP"
5448 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5449 $as_echo_n "checking for ANSI C header files... " >&6; }
5450 if test "${ac_cv_header_stdc+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5452 else
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <stdlib.h>
5460 #include <stdarg.h>
5461 #include <string.h>
5462 #include <float.h>
5465 main ()
5469 return 0;
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (ac_try="$ac_compile"
5474 case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477 esac
5478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5479 $as_echo "$ac_try_echo") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_header_stdc=yes
5491 else
5492 $as_echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_cv_header_stdc=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502 cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h. */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <string.h>
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 $EGREP "memchr" >/dev/null 2>&1; then
5514 else
5515 ac_cv_header_stdc=no
5517 rm -f conftest*
5521 if test $ac_cv_header_stdc = yes; then
5522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 #include <stdlib.h>
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "free" >/dev/null 2>&1; then
5535 else
5536 ac_cv_header_stdc=no
5538 rm -f conftest*
5542 if test $ac_cv_header_stdc = yes; then
5543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5544 if test "$cross_compiling" = yes; then
5546 else
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <ctype.h>
5554 #include <stdlib.h>
5555 #if ((' ' & 0x0FF) == 0x020)
5556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558 #else
5559 # define ISLOWER(c) \
5560 (('a' <= (c) && (c) <= 'i') \
5561 || ('j' <= (c) && (c) <= 'r') \
5562 || ('s' <= (c) && (c) <= 'z'))
5563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5564 #endif
5566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5568 main ()
5570 int i;
5571 for (i = 0; i < 256; i++)
5572 if (XOR (islower (i), ISLOWER (i))
5573 || toupper (i) != TOUPPER (i))
5574 return 2;
5575 return 0;
5577 _ACEOF
5578 rm -f conftest$ac_exeext
5579 if { (ac_try="$ac_link"
5580 case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585 $as_echo "$ac_try_echo") >&5
5586 (eval "$ac_link") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5590 { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5601 else
5602 $as_echo "$as_me: program exited with status $ac_status" >&5
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5609 rm -rf conftest.dSYM
5610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5617 $as_echo "$ac_cv_header_stdc" >&6; }
5618 if test $ac_cv_header_stdc = yes; then
5620 cat >>confdefs.h <<\_ACEOF
5621 #define STDC_HEADERS 1
5622 _ACEOF
5626 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5636 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5637 inttypes.h stdint.h unistd.h
5639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 $as_echo_n "checking for $ac_header... " >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5653 #include <$ac_header>
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662 $as_echo "$ac_try_echo") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 eval "$as_ac_Header=yes"
5674 else
5675 $as_echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 eval "$as_ac_Header=no"
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 ac_res=`eval 'as_val=${'$as_ac_Header'}
5684 $as_echo "$as_val"'`
5685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5686 $as_echo "$ac_res" >&6; }
5687 as_val=`eval 'as_val=${'$as_ac_Header'}
5688 $as_echo "$as_val"'`
5689 if test "x$as_val" = x""yes; then
5690 cat >>confdefs.h <<_ACEOF
5691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5692 _ACEOF
5696 done
5708 for ac_header in sys/ipc.h sys/shm.h \
5709 sys/mmap.h sys/mman.h sysexits.h \
5710 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5715 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5716 $as_echo_n "checking for $ac_header... " >&6; }
5717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5718 $as_echo_n "(cached) " >&6
5720 ac_res=`eval 'as_val=${'$as_ac_Header'}
5721 $as_echo "$as_val"'`
5722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5723 $as_echo "$ac_res" >&6; }
5724 else
5725 # Is the header compilable?
5726 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727 $as_echo_n "checking $ac_header usability... " >&6; }
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5735 #include <$ac_header>
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_header_compiler=yes
5756 else
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_header_compiler=no
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5765 $as_echo "$ac_header_compiler" >&6; }
5767 # Is the header present?
5768 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5769 $as_echo_n "checking $ac_header presence... " >&6; }
5770 cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 #include <$ac_header>
5777 _ACEOF
5778 if { (ac_try="$ac_cpp conftest.$ac_ext"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5784 $as_echo "$ac_try_echo") >&5
5785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } >/dev/null && {
5792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 }; then
5795 ac_header_preproc=yes
5796 else
5797 $as_echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ac_header_preproc=no
5803 rm -f conftest.err conftest.$ac_ext
5804 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5805 $as_echo "$ac_header_preproc" >&6; }
5807 # So? What about this header?
5808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5809 yes:no: )
5810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5811 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5814 ac_header_preproc=yes
5816 no:yes:* )
5817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5818 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5820 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5822 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5824 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5828 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5831 esac
5832 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5833 $as_echo_n "checking for $ac_header... " >&6; }
5834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5835 $as_echo_n "(cached) " >&6
5836 else
5837 eval "$as_ac_Header=\$ac_header_preproc"
5839 ac_res=`eval 'as_val=${'$as_ac_Header'}
5840 $as_echo "$as_val"'`
5841 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5842 $as_echo "$ac_res" >&6; }
5845 as_val=`eval 'as_val=${'$as_ac_Header'}
5846 $as_echo "$as_val"'`
5847 if test "x$as_val" = x""yes; then
5848 cat >>confdefs.h <<_ACEOF
5849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850 _ACEOF
5854 done
5858 for ac_header in sys/mount.h
5860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5862 $as_echo_n "checking for $ac_header... " >&6; }
5863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5864 $as_echo_n "(cached) " >&6
5865 else
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <sys/param.h>
5874 #include <$ac_header>
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5883 $as_echo "$ac_try_echo") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest.$ac_objext; then
5894 eval "$as_ac_Header=yes"
5895 else
5896 $as_echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 eval "$as_ac_Header=no"
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 ac_res=`eval 'as_val=${'$as_ac_Header'}
5905 $as_echo "$as_val"'`
5906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5907 $as_echo "$ac_res" >&6; }
5908 as_val=`eval 'as_val=${'$as_ac_Header'}
5909 $as_echo "$as_val"'`
5910 if test "x$as_val" = x""yes; then
5911 cat >>confdefs.h <<_ACEOF
5912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913 _ACEOF
5917 done
5925 ac_header_dirent=no
5926 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5927 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5928 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5929 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5931 $as_echo_n "(cached) " >&6
5932 else
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 #include <$ac_hdr>
5943 main ()
5945 if ((DIR *) 0)
5946 return 0;
5948 return 0;
5950 _ACEOF
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 eval "$as_ac_Header=yes"
5970 else
5971 $as_echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 eval "$as_ac_Header=no"
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_res=`eval 'as_val=${'$as_ac_Header'}
5980 $as_echo "$as_val"'`
5981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5982 $as_echo "$ac_res" >&6; }
5983 as_val=`eval 'as_val=${'$as_ac_Header'}
5984 $as_echo "$as_val"'`
5985 if test "x$as_val" = x""yes; then
5986 cat >>confdefs.h <<_ACEOF
5987 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5988 _ACEOF
5990 ac_header_dirent=$ac_hdr; break
5993 done
5994 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5995 if test $ac_header_dirent = dirent.h; then
5996 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5997 $as_echo_n "checking for library containing opendir... " >&6; }
5998 if test "${ac_cv_search_opendir+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6000 else
6001 ac_func_search_save_LIBS=$LIBS
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6009 /* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 char opendir ();
6017 main ()
6019 return opendir ();
6021 return 0;
6023 _ACEOF
6024 for ac_lib in '' dir; do
6025 if test -z "$ac_lib"; then
6026 ac_res="none required"
6027 else
6028 ac_res=-l$ac_lib
6029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (ac_try="$ac_link"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6038 $as_echo "$ac_try_echo") >&5
6039 (eval "$ac_link") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest$ac_exeext && {
6049 test "$cross_compiling" = yes ||
6050 $as_test_x conftest$ac_exeext
6051 }; then
6052 ac_cv_search_opendir=$ac_res
6053 else
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -rf conftest.dSYM
6061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6062 conftest$ac_exeext
6063 if test "${ac_cv_search_opendir+set}" = set; then
6064 break
6066 done
6067 if test "${ac_cv_search_opendir+set}" = set; then
6069 else
6070 ac_cv_search_opendir=no
6072 rm conftest.$ac_ext
6073 LIBS=$ac_func_search_save_LIBS
6075 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6076 $as_echo "$ac_cv_search_opendir" >&6; }
6077 ac_res=$ac_cv_search_opendir
6078 if test "$ac_res" != no; then
6079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6083 else
6084 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6085 $as_echo_n "checking for library containing opendir... " >&6; }
6086 if test "${ac_cv_search_opendir+set}" = set; then
6087 $as_echo_n "(cached) " >&6
6088 else
6089 ac_func_search_save_LIBS=$LIBS
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6097 /* Override any GCC internal prototype to avoid an error.
6098 Use char because int might match the return type of a GCC
6099 builtin and then its argument prototype would still apply. */
6100 #ifdef __cplusplus
6101 extern "C"
6102 #endif
6103 char opendir ();
6105 main ()
6107 return opendir ();
6109 return 0;
6111 _ACEOF
6112 for ac_lib in '' x; do
6113 if test -z "$ac_lib"; then
6114 ac_res="none required"
6115 else
6116 ac_res=-l$ac_lib
6117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (ac_try="$ac_link"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127 (eval "$ac_link") 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest$ac_exeext && {
6137 test "$cross_compiling" = yes ||
6138 $as_test_x conftest$ac_exeext
6139 }; then
6140 ac_cv_search_opendir=$ac_res
6141 else
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -rf conftest.dSYM
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150 conftest$ac_exeext
6151 if test "${ac_cv_search_opendir+set}" = set; then
6152 break
6154 done
6155 if test "${ac_cv_search_opendir+set}" = set; then
6157 else
6158 ac_cv_search_opendir=no
6160 rm conftest.$ac_ext
6161 LIBS=$ac_func_search_save_LIBS
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6164 $as_echo "$ac_cv_search_opendir" >&6; }
6165 ac_res=$ac_cv_search_opendir
6166 if test "$ac_res" != no; then
6167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6173 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6174 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6175 if test "${ac_cv_header_stat_broken+set}" = set; then
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 #include <sys/stat.h>
6187 #if defined S_ISBLK && defined S_IFDIR
6188 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6189 #endif
6191 #if defined S_ISBLK && defined S_IFCHR
6192 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6193 #endif
6195 #if defined S_ISLNK && defined S_IFREG
6196 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6197 #endif
6199 #if defined S_ISSOCK && defined S_IFREG
6200 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6201 #endif
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 ac_cv_header_stat_broken=no
6223 else
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_header_stat_broken=yes
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6233 $as_echo "$ac_cv_header_stat_broken" >&6; }
6234 if test $ac_cv_header_stat_broken = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define STAT_MACROS_BROKEN 1
6238 _ACEOF
6242 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6243 $as_echo_n "checking for ANSI C header files... " >&6; }
6244 if test "${ac_cv_header_stdc+set}" = set; then
6245 $as_echo_n "(cached) " >&6
6246 else
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #include <stdlib.h>
6254 #include <stdarg.h>
6255 #include <string.h>
6256 #include <float.h>
6259 main ()
6263 return 0;
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273 $as_echo "$ac_try_echo") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_c_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest.$ac_objext; then
6284 ac_cv_header_stdc=yes
6285 else
6286 $as_echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_cv_header_stdc=no
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 if test $ac_cv_header_stdc = yes; then
6295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h. */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 #include <string.h>
6304 _ACEOF
6305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 $EGREP "memchr" >/dev/null 2>&1; then
6308 else
6309 ac_cv_header_stdc=no
6311 rm -f conftest*
6315 if test $ac_cv_header_stdc = yes; then
6316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <stdlib.h>
6325 _ACEOF
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327 $EGREP "free" >/dev/null 2>&1; then
6329 else
6330 ac_cv_header_stdc=no
6332 rm -f conftest*
6336 if test $ac_cv_header_stdc = yes; then
6337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6338 if test "$cross_compiling" = yes; then
6340 else
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <ctype.h>
6348 #include <stdlib.h>
6349 #if ((' ' & 0x0FF) == 0x020)
6350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6352 #else
6353 # define ISLOWER(c) \
6354 (('a' <= (c) && (c) <= 'i') \
6355 || ('j' <= (c) && (c) <= 'r') \
6356 || ('s' <= (c) && (c) <= 'z'))
6357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6358 #endif
6360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6362 main ()
6364 int i;
6365 for (i = 0; i < 256; i++)
6366 if (XOR (islower (i), ISLOWER (i))
6367 || toupper (i) != TOUPPER (i))
6368 return 2;
6369 return 0;
6371 _ACEOF
6372 rm -f conftest$ac_exeext
6373 if { (ac_try="$ac_link"
6374 case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379 $as_echo "$ac_try_echo") >&5
6380 (eval "$ac_link") 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384 { (case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387 esac
6388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6389 $as_echo "$ac_try_echo") >&5
6390 (eval "$ac_try") 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6395 else
6396 $as_echo "$as_me: program exited with status $ac_status" >&5
6397 $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ( exit $ac_status )
6401 ac_cv_header_stdc=no
6403 rm -rf conftest.dSYM
6404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6410 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6411 $as_echo "$ac_cv_header_stdc" >&6; }
6412 if test $ac_cv_header_stdc = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6415 #define STDC_HEADERS 1
6416 _ACEOF
6420 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6421 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6422 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6423 $as_echo_n "(cached) " >&6
6424 else
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <sys/types.h>
6432 #include <sys/wait.h>
6433 #ifndef WEXITSTATUS
6434 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6435 #endif
6436 #ifndef WIFEXITED
6437 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6438 #endif
6441 main ()
6443 int s;
6444 wait (&s);
6445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6447 return 0;
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455 esac
6456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6457 $as_echo "$ac_try_echo") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 ac_cv_header_sys_wait_h=yes
6469 else
6470 $as_echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_cv_header_sys_wait_h=no
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6479 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6480 if test $ac_cv_header_sys_wait_h = yes; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define HAVE_SYS_WAIT_H 1
6484 _ACEOF
6488 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6489 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6490 if test "${ac_cv_header_time+set}" = set; then
6491 $as_echo_n "(cached) " >&6
6492 else
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h. */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <sys/types.h>
6500 #include <sys/time.h>
6501 #include <time.h>
6504 main ()
6506 if ((struct tm *) 0)
6507 return 0;
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6514 case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517 esac
6518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6519 $as_echo "$ac_try_echo") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest.$ac_objext; then
6530 ac_cv_header_time=yes
6531 else
6532 $as_echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_cv_header_time=no
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6541 $as_echo "$ac_cv_header_time" >&6; }
6542 if test $ac_cv_header_time = yes; then
6544 cat >>confdefs.h <<\_ACEOF
6545 #define TIME_WITH_SYS_TIME 1
6546 _ACEOF
6550 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6551 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6552 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554 else
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 $ac_includes_default
6563 main ()
6565 static struct stat ac_aggr;
6566 if (ac_aggr.st_blksize)
6567 return 0;
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext
6573 if { (ac_try="$ac_compile"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579 $as_echo "$ac_try_echo") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest.$ac_objext; then
6590 ac_cv_member_struct_stat_st_blksize=yes
6591 else
6592 $as_echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6603 main ()
6605 static struct stat ac_aggr;
6606 if (sizeof ac_aggr.st_blksize)
6607 return 0;
6609 return 0;
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (ac_try="$ac_compile"
6614 case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6619 $as_echo "$ac_try_echo") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.$ac_objext; then
6630 ac_cv_member_struct_stat_st_blksize=yes
6631 else
6632 $as_echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_cv_member_struct_stat_st_blksize=no
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6644 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6645 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6649 _ACEOF
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_ST_BLKSIZE 1
6654 _ACEOF
6659 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6660 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
6661 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 $ac_includes_default
6672 main ()
6674 static struct stat ac_aggr;
6675 if (ac_aggr.st_blocks)
6676 return 0;
6678 return 0;
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6688 $as_echo "$ac_try_echo") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6699 ac_cv_member_struct_stat_st_blocks=yes
6700 else
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 $ac_includes_default
6712 main ()
6714 static struct stat ac_aggr;
6715 if (sizeof ac_aggr.st_blocks)
6716 return 0;
6718 return 0;
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6723 case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726 esac
6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728 $as_echo "$ac_try_echo") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 ac_cv_member_struct_stat_st_blocks=yes
6740 else
6741 $as_echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_member_struct_stat_st_blocks=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6753 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
6754 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
6756 cat >>confdefs.h <<_ACEOF
6757 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6758 _ACEOF
6761 cat >>confdefs.h <<\_ACEOF
6762 #define HAVE_ST_BLOCKS 1
6763 _ACEOF
6765 else
6766 case " $LIBOBJS " in
6767 *" fileblocks.$ac_objext "* ) ;;
6768 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6770 esac
6775 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6776 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6777 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 static struct stat ac_aggr;
6791 if (ac_aggr.st_rdev)
6792 return 0;
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6799 case "(($ac_try" in
6800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801 *) ac_try_echo=$ac_try;;
6802 esac
6803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6804 $as_echo "$ac_try_echo") >&5
6805 (eval "$ac_compile") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && {
6812 test -z "$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 } && test -s conftest.$ac_objext; then
6815 ac_cv_member_struct_stat_st_rdev=yes
6816 else
6817 $as_echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6828 main ()
6830 static struct stat ac_aggr;
6831 if (sizeof ac_aggr.st_rdev)
6832 return 0;
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6844 $as_echo "$ac_try_echo") >&5
6845 (eval "$ac_compile") 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest.$ac_objext; then
6855 ac_cv_member_struct_stat_st_rdev=yes
6856 else
6857 $as_echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_cv_member_struct_stat_st_rdev=no
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6869 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6870 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define HAVE_STRUCT_STAT_ST_RDEV 1
6874 _ACEOF
6877 cat >>confdefs.h <<\_ACEOF
6878 #define HAVE_ST_RDEV 1
6879 _ACEOF
6884 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6885 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6886 if test "${ac_cv_struct_tm+set}" = set; then
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <sys/types.h>
6896 #include <time.h>
6899 main ()
6901 struct tm tm;
6902 int *p = &tm.tm_sec;
6903 return !p;
6905 return 0;
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (ac_try="$ac_compile"
6910 case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6915 $as_echo "$ac_try_echo") >&5
6916 (eval "$ac_compile") 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest.$ac_objext; then
6926 ac_cv_struct_tm=time.h
6927 else
6928 $as_echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 ac_cv_struct_tm=sys/time.h
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6937 $as_echo "$ac_cv_struct_tm" >&6; }
6938 if test $ac_cv_struct_tm = sys/time.h; then
6940 cat >>confdefs.h <<\_ACEOF
6941 #define TM_IN_SYS_TIME 1
6942 _ACEOF
6946 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6947 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
6948 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6949 $as_echo_n "(cached) " >&6
6950 else
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #include <sys/types.h>
6958 #include <$ac_cv_struct_tm>
6962 main ()
6964 static struct tm ac_aggr;
6965 if (ac_aggr.tm_zone)
6966 return 0;
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_cv_member_struct_tm_tm_zone=yes
6990 else
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <sys/types.h>
7001 #include <$ac_cv_struct_tm>
7005 main ()
7007 static struct tm ac_aggr;
7008 if (sizeof ac_aggr.tm_zone)
7009 return 0;
7011 return 0;
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021 $as_echo "$ac_try_echo") >&5
7022 (eval "$ac_compile") 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
7032 ac_cv_member_struct_tm_tm_zone=yes
7033 else
7034 $as_echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_member_struct_tm_tm_zone=no
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7046 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7047 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7049 cat >>confdefs.h <<_ACEOF
7050 #define HAVE_STRUCT_TM_TM_ZONE 1
7051 _ACEOF
7056 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_TM_ZONE 1
7060 _ACEOF
7062 else
7063 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7064 $as_echo_n "checking whether tzname is declared... " >&6; }
7065 if test "${ac_cv_have_decl_tzname+set}" = set; then
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <time.h>
7077 main ()
7079 #ifndef tzname
7080 (void) tzname;
7081 #endif
7084 return 0;
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (ac_try="$ac_compile"
7089 case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092 esac
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_compile") 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest.$ac_objext; then
7105 ac_cv_have_decl_tzname=yes
7106 else
7107 $as_echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_have_decl_tzname=no
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7116 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7117 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7119 cat >>confdefs.h <<_ACEOF
7120 #define HAVE_DECL_TZNAME 1
7121 _ACEOF
7124 else
7125 cat >>confdefs.h <<_ACEOF
7126 #define HAVE_DECL_TZNAME 0
7127 _ACEOF
7133 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7134 $as_echo_n "checking for tzname... " >&6; }
7135 if test "${ac_cv_var_tzname+set}" = set; then
7136 $as_echo_n "(cached) " >&6
7137 else
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 #include <time.h>
7145 #if !HAVE_DECL_TZNAME
7146 extern char *tzname[];
7147 #endif
7150 main ()
7152 return tzname[0][0];
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7164 $as_echo "$ac_try_echo") >&5
7165 (eval "$ac_link") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest$ac_exeext && {
7175 test "$cross_compiling" = yes ||
7176 $as_test_x conftest$ac_exeext
7177 }; then
7178 ac_cv_var_tzname=yes
7179 else
7180 $as_echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_var_tzname=no
7186 rm -rf conftest.dSYM
7187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7188 conftest$ac_exeext conftest.$ac_ext
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7191 $as_echo "$ac_cv_var_tzname" >&6; }
7192 if test $ac_cv_var_tzname = yes; then
7194 cat >>confdefs.h <<\_ACEOF
7195 #define HAVE_TZNAME 1
7196 _ACEOF
7201 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
7202 $as_echo_n "checking for off_t... " >&6; }
7203 if test "${ac_cv_type_off_t+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7205 else
7206 ac_cv_type_off_t=no
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7215 main ()
7217 if (sizeof (off_t))
7218 return 0;
7220 return 0;
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7230 $as_echo "$ac_try_echo") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7249 main ()
7251 if (sizeof ((off_t)))
7252 return 0;
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264 $as_echo "$ac_try_echo") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7276 else
7277 $as_echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_type_off_t=yes
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 else
7285 $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7294 $as_echo "$ac_cv_type_off_t" >&6; }
7295 if test "x$ac_cv_type_off_t" = x""yes; then
7297 else
7299 cat >>confdefs.h <<_ACEOF
7300 #define off_t long int
7301 _ACEOF
7305 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7306 $as_echo_n "checking for pid_t... " >&6; }
7307 if test "${ac_cv_type_pid_t+set}" = set; then
7308 $as_echo_n "(cached) " >&6
7309 else
7310 ac_cv_type_pid_t=no
7311 cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 $ac_includes_default
7319 main ()
7321 if (sizeof (pid_t))
7322 return 0;
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (ac_try="$ac_compile"
7329 case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332 esac
7333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7334 $as_echo "$ac_try_echo") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
7345 cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351 $ac_includes_default
7353 main ()
7355 if (sizeof ((pid_t)))
7356 return 0;
7358 return 0;
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7368 $as_echo "$ac_try_echo") >&5
7369 (eval "$ac_compile") 2>conftest.er1
7370 ac_status=$?
7371 grep -v '^ *+' conftest.er1 >conftest.err
7372 rm -f conftest.er1
7373 cat conftest.err >&5
7374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } && {
7376 test -z "$ac_c_werror_flag" ||
7377 test ! -s conftest.err
7378 } && test -s conftest.$ac_objext; then
7380 else
7381 $as_echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 ac_cv_type_pid_t=yes
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 else
7389 $as_echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7398 $as_echo "$ac_cv_type_pid_t" >&6; }
7399 if test "x$ac_cv_type_pid_t" = x""yes; then
7401 else
7403 cat >>confdefs.h <<_ACEOF
7404 #define pid_t int
7405 _ACEOF
7409 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7410 $as_echo_n "checking for size_t... " >&6; }
7411 if test "${ac_cv_type_size_t+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7413 else
7414 ac_cv_type_size_t=no
7415 cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h. */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 $ac_includes_default
7423 main ()
7425 if (sizeof (size_t))
7426 return 0;
7428 return 0;
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 $ac_includes_default
7457 main ()
7459 if (sizeof ((size_t)))
7460 return 0;
7462 return 0;
7464 _ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (ac_try="$ac_compile"
7467 case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470 esac
7471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7472 $as_echo "$ac_try_echo") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.$ac_objext; then
7484 else
7485 $as_echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 ac_cv_type_size_t=yes
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 else
7493 $as_echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7502 $as_echo "$ac_cv_type_size_t" >&6; }
7503 if test "x$ac_cv_type_size_t" = x""yes; then
7505 else
7507 cat >>confdefs.h <<_ACEOF
7508 #define size_t unsigned int
7509 _ACEOF
7513 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7514 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7515 if test "${ac_cv_type_uid_t+set}" = set; then
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <sys/types.h>
7526 _ACEOF
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528 $EGREP "uid_t" >/dev/null 2>&1; then
7529 ac_cv_type_uid_t=yes
7530 else
7531 ac_cv_type_uid_t=no
7533 rm -f conftest*
7536 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7537 $as_echo "$ac_cv_type_uid_t" >&6; }
7538 if test $ac_cv_type_uid_t = no; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define uid_t int
7542 _ACEOF
7545 cat >>confdefs.h <<\_ACEOF
7546 #define gid_t int
7547 _ACEOF
7552 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7553 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
7554 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7565 main ()
7567 static struct tm ac_aggr;
7568 if (ac_aggr.tm_gmtoff)
7569 return 0;
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 ac_cv_member_struct_tm_tm_gmtoff=yes
7593 else
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h. */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7605 main ()
7607 static struct tm ac_aggr;
7608 if (sizeof ac_aggr.tm_gmtoff)
7609 return 0;
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_cv_member_struct_tm_tm_gmtoff=yes
7633 else
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_member_struct_tm_tm_gmtoff=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7646 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7647 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7651 _ACEOF
7657 # Look for some functions
7672 for ac_func in getpagesize kqueue statfs statvfs \
7673 clone kse_create rfork_thread thr_create sa_register \
7674 getcontext makecontext setcontext sigaltstack swapcontext
7676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7677 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7678 $as_echo_n "checking for $ac_func... " >&6; }
7679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7690 #define $ac_func innocuous_$ac_func
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char $ac_func (); below.
7694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7695 <limits.h> exists even on freestanding compilers. */
7697 #ifdef __STDC__
7698 # include <limits.h>
7699 #else
7700 # include <assert.h>
7701 #endif
7703 #undef $ac_func
7705 /* Override any GCC internal prototype to avoid an error.
7706 Use char because int might match the return type of a GCC
7707 builtin and then its argument prototype would still apply. */
7708 #ifdef __cplusplus
7709 extern "C"
7710 #endif
7711 char $ac_func ();
7712 /* The GNU C library defines this for functions which it implements
7713 to always fail with ENOSYS. Some functions are actually named
7714 something starting with __ and the normal name is an alias. */
7715 #if defined __stub_$ac_func || defined __stub___$ac_func
7716 choke me
7717 #endif
7720 main ()
7722 return $ac_func ();
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_link") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest$ac_exeext && {
7745 test "$cross_compiling" = yes ||
7746 $as_test_x conftest$ac_exeext
7747 }; then
7748 eval "$as_ac_var=yes"
7749 else
7750 $as_echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 eval "$as_ac_var=no"
7756 rm -rf conftest.dSYM
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7760 ac_res=`eval 'as_val=${'$as_ac_var'}
7761 $as_echo "$as_val"'`
7762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7763 $as_echo "$ac_res" >&6; }
7764 as_val=`eval 'as_val=${'$as_ac_var'}
7765 $as_echo "$as_val"'`
7766 if test "x$as_val" = x""yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7769 _ACEOF
7772 done
7777 for ac_header in stdlib.h unistd.h
7779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7782 $as_echo_n "checking for $ac_header... " >&6; }
7783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 $as_echo_n "(cached) " >&6
7786 ac_res=`eval 'as_val=${'$as_ac_Header'}
7787 $as_echo "$as_val"'`
7788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7789 $as_echo "$ac_res" >&6; }
7790 else
7791 # Is the header compilable?
7792 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7793 $as_echo_n "checking $ac_header usability... " >&6; }
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #include <$ac_header>
7802 _ACEOF
7803 rm -f conftest.$ac_objext
7804 if { (ac_try="$ac_compile"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7810 $as_echo "$ac_try_echo") >&5
7811 (eval "$ac_compile") 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest.$ac_objext; then
7821 ac_header_compiler=yes
7822 else
7823 $as_echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_header_compiler=no
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7831 $as_echo "$ac_header_compiler" >&6; }
7833 # Is the header present?
7834 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7835 $as_echo_n "checking $ac_header presence... " >&6; }
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <$ac_header>
7843 _ACEOF
7844 if { (ac_try="$ac_cpp conftest.$ac_ext"
7845 case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848 esac
7849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7850 $as_echo "$ac_try_echo") >&5
7851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } >/dev/null && {
7858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 }; then
7861 ac_header_preproc=yes
7862 else
7863 $as_echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ac_header_preproc=no
7869 rm -f conftest.err conftest.$ac_ext
7870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7871 $as_echo "$ac_header_preproc" >&6; }
7873 # So? What about this header?
7874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875 yes:no: )
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7880 ac_header_preproc=yes
7882 no:yes:* )
7883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7884 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7886 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7888 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7890 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7894 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7897 esac
7898 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 $as_echo_n "checking for $ac_header... " >&6; }
7900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7901 $as_echo_n "(cached) " >&6
7902 else
7903 eval "$as_ac_Header=\$ac_header_preproc"
7905 ac_res=`eval 'as_val=${'$as_ac_Header'}
7906 $as_echo "$as_val"'`
7907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7908 $as_echo "$ac_res" >&6; }
7911 as_val=`eval 'as_val=${'$as_ac_Header'}
7912 $as_echo "$as_val"'`
7913 if test "x$as_val" = x""yes; then
7914 cat >>confdefs.h <<_ACEOF
7915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7916 _ACEOF
7920 done
7923 for ac_func in getpagesize
7925 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7927 $as_echo_n "checking for $ac_func... " >&6; }
7928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h. */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7939 #define $ac_func innocuous_$ac_func
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func (); below.
7943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7944 <limits.h> exists even on freestanding compilers. */
7946 #ifdef __STDC__
7947 # include <limits.h>
7948 #else
7949 # include <assert.h>
7950 #endif
7952 #undef $ac_func
7954 /* Override any GCC internal prototype to avoid an error.
7955 Use char because int might match the return type of a GCC
7956 builtin and then its argument prototype would still apply. */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 char $ac_func ();
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined __stub_$ac_func || defined __stub___$ac_func
7965 choke me
7966 #endif
7969 main ()
7971 return $ac_func ();
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (ac_try="$ac_link"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_link") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest$ac_exeext && {
7994 test "$cross_compiling" = yes ||
7995 $as_test_x conftest$ac_exeext
7996 }; then
7997 eval "$as_ac_var=yes"
7998 else
7999 $as_echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 eval "$as_ac_var=no"
8005 rm -rf conftest.dSYM
8006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8007 conftest$ac_exeext conftest.$ac_ext
8009 ac_res=`eval 'as_val=${'$as_ac_var'}
8010 $as_echo "$as_val"'`
8011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8012 $as_echo "$ac_res" >&6; }
8013 as_val=`eval 'as_val=${'$as_ac_var'}
8014 $as_echo "$as_val"'`
8015 if test "x$as_val" = x""yes; then
8016 cat >>confdefs.h <<_ACEOF
8017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8018 _ACEOF
8021 done
8023 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8024 $as_echo_n "checking for working mmap... " >&6; }
8025 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test "$cross_compiling" = yes; then
8029 ac_cv_func_mmap_fixed_mapped=no
8030 else
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 /* malloc might have been renamed as rpl_malloc. */
8039 #undef malloc
8041 /* Thanks to Mike Haertel and Jim Avera for this test.
8042 Here is a matrix of mmap possibilities:
8043 mmap private not fixed
8044 mmap private fixed at somewhere currently unmapped
8045 mmap private fixed at somewhere already mapped
8046 mmap shared not fixed
8047 mmap shared fixed at somewhere currently unmapped
8048 mmap shared fixed at somewhere already mapped
8049 For private mappings, we should verify that changes cannot be read()
8050 back from the file, nor mmap's back from the file at a different
8051 address. (There have been systems where private was not correctly
8052 implemented like the infamous i386 svr4.0, and systems where the
8053 VM page cache was not coherent with the file system buffer cache
8054 like early versions of FreeBSD and possibly contemporary NetBSD.)
8055 For shared mappings, we should conversely verify that changes get
8056 propagated back to all the places they're supposed to be.
8058 Grep wants private fixed already mapped.
8059 The main things grep needs to know about mmap are:
8060 * does it exist and is it safe to write into the mmap'd area
8061 * how to use it (BSD variants) */
8063 #include <fcntl.h>
8064 #include <sys/mman.h>
8066 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8067 char *malloc ();
8068 #endif
8070 /* This mess was copied from the GNU getpagesize.h. */
8071 #ifndef HAVE_GETPAGESIZE
8072 /* Assume that all systems that can run configure have sys/param.h. */
8073 # ifndef HAVE_SYS_PARAM_H
8074 # define HAVE_SYS_PARAM_H 1
8075 # endif
8077 # ifdef _SC_PAGESIZE
8078 # define getpagesize() sysconf(_SC_PAGESIZE)
8079 # else /* no _SC_PAGESIZE */
8080 # ifdef HAVE_SYS_PARAM_H
8081 # include <sys/param.h>
8082 # ifdef EXEC_PAGESIZE
8083 # define getpagesize() EXEC_PAGESIZE
8084 # else /* no EXEC_PAGESIZE */
8085 # ifdef NBPG
8086 # define getpagesize() NBPG * CLSIZE
8087 # ifndef CLSIZE
8088 # define CLSIZE 1
8089 # endif /* no CLSIZE */
8090 # else /* no NBPG */
8091 # ifdef NBPC
8092 # define getpagesize() NBPC
8093 # else /* no NBPC */
8094 # ifdef PAGESIZE
8095 # define getpagesize() PAGESIZE
8096 # endif /* PAGESIZE */
8097 # endif /* no NBPC */
8098 # endif /* no NBPG */
8099 # endif /* no EXEC_PAGESIZE */
8100 # else /* no HAVE_SYS_PARAM_H */
8101 # define getpagesize() 8192 /* punt totally */
8102 # endif /* no HAVE_SYS_PARAM_H */
8103 # endif /* no _SC_PAGESIZE */
8105 #endif /* no HAVE_GETPAGESIZE */
8108 main ()
8110 char *data, *data2, *data3;
8111 int i, pagesize;
8112 int fd;
8114 pagesize = getpagesize ();
8116 /* First, make a file with some known garbage in it. */
8117 data = (char *) malloc (pagesize);
8118 if (!data)
8119 return 1;
8120 for (i = 0; i < pagesize; ++i)
8121 *(data + i) = rand ();
8122 umask (0);
8123 fd = creat ("conftest.mmap", 0600);
8124 if (fd < 0)
8125 return 1;
8126 if (write (fd, data, pagesize) != pagesize)
8127 return 1;
8128 close (fd);
8130 /* Next, try to mmap the file at a fixed address which already has
8131 something else allocated at it. If we can, also make sure that
8132 we see the same garbage. */
8133 fd = open ("conftest.mmap", O_RDWR);
8134 if (fd < 0)
8135 return 1;
8136 data2 = (char *) malloc (2 * pagesize);
8137 if (!data2)
8138 return 1;
8139 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8140 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8141 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8142 return 1;
8143 for (i = 0; i < pagesize; ++i)
8144 if (*(data + i) != *(data2 + i))
8145 return 1;
8147 /* Finally, make sure that changes to the mapped area do not
8148 percolate back to the file as seen by read(). (This is a bug on
8149 some variants of i386 svr4.0.) */
8150 for (i = 0; i < pagesize; ++i)
8151 *(data2 + i) = *(data2 + i) + 1;
8152 data3 = (char *) malloc (pagesize);
8153 if (!data3)
8154 return 1;
8155 if (read (fd, data3, pagesize) != pagesize)
8156 return 1;
8157 for (i = 0; i < pagesize; ++i)
8158 if (*(data + i) != *(data3 + i))
8159 return 1;
8160 close (fd);
8161 return 0;
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171 $as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>&5
8173 ac_status=$?
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8176 { (case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179 esac
8180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8181 $as_echo "$ac_try_echo") >&5
8182 (eval "$ac_try") 2>&5
8183 ac_status=$?
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_func_mmap_fixed_mapped=yes
8187 else
8188 $as_echo "$as_me: program exited with status $ac_status" >&5
8189 $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ( exit $ac_status )
8193 ac_cv_func_mmap_fixed_mapped=no
8195 rm -rf conftest.dSYM
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8201 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8202 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8203 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8205 cat >>confdefs.h <<\_ACEOF
8206 #define HAVE_MMAP 1
8207 _ACEOF
8210 rm -f conftest.mmap
8215 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
8216 aros_config_aflags="-Wall -x assembler-with-cpp -c"
8217 aros_config_ldflags=""
8219 aros_shared_default=yes
8221 aros_shared_cflags="-fPIC"
8222 aros_shared_aflags=""
8223 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8224 aros_kernel_ldflags="-Wl,-rpath,./lib"
8226 aros_target_ar_flags="cr"
8227 aros_target_nm_flags="-C -ul"
8228 aros_target_strip_flags="--strip-unneeded -R.comment"
8230 aros_compiler_libs=
8231 aros_arch_libs=
8233 aros_target_genmap="-Wl,-Map -Xlinker"
8235 # Native flavour stuff
8236 aros_serial_debug="0"
8238 # Palm native flavour stuff
8239 aros_palm_debug_hack="0"
8241 # Unix flavour stuff
8242 aros_nesting_supervisor="0"
8244 # Collect-aros stuff: "-ius" to ignore undefined symbols
8245 ignore_undefined_symbols=""
8247 #-----------------------------------------------------------------------------
8250 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
8251 # it switched on by default, and we use the host compiler, so it compiles AROS
8252 # code with this enabled resulting in link failures as we don't have support
8253 # for it.
8255 # We use two methods to disable it. For the host compiler (used to compile
8256 # some hosted modules), we test to see if the compiler supports stack
8257 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
8258 # work on all platforms.
8260 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8261 # (this is done unconditionally, as it should have no effect on compilers
8262 # without the stack protection feature). This may be specific to the way that
8263 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8264 # strong enough to disable it in a generic way though, so we'll live with it
8265 # until another vendor ships GCC with it enabled in a different way, and deal
8266 # with it then.
8269 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8270 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
8271 save_cflags="$CFLAGS"
8272 CFLAGS="$CFLAGS -fno-stack-protector"
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h. */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8281 main ()
8285 return 0;
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 use_no_stack_protector="yes"
8307 else
8308 $as_echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 use_no_stack_protector="no"
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8316 $as_echo "$use_no_stack_protector" >&6; }
8317 if test "x-$use_no_stack_protector" = "x-yes" ; then
8318 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8320 CFLAGS="$save_cflags"
8322 #-----------------------------------------------------------------------------
8324 # Disable pointer-signedness warnings if the compiler recognises the option
8325 # (this only works for the host compiler at the moment)
8327 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8328 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8329 save_cflags="$CFLAGS"
8330 CFLAGS="$CFLAGS -Wno-pointer-sign"
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8339 main ()
8343 return 0;
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8348 case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351 esac
8352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8353 $as_echo "$ac_try_echo") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 use_no_sign_warning="yes"
8365 else
8366 $as_echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 use_no_sign_warning="no"
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8374 $as_echo "$use_no_sign_warning" >&6; }
8375 if test "x-$use_no_sign_warning" = "x-yes" ; then
8376 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8378 CFLAGS="$save_cflags"
8380 #-----------------------------------------------------------------------------
8382 { $as_echo "$as_me:$LINENO: checking for type of build" >&5
8383 $as_echo_n "checking for type of build... " >&6; }
8384 # Check whether --enable-build_type was given.
8385 if test "${enable_build_type+set}" = set; then
8386 enableval=$enable_build_type; build_type=$enableval
8387 else
8388 build_type="personal"
8392 if test "$build_type" = "nightly"; then
8393 build_type_string="NIGHTLY"
8394 elif test "$build_type" = "snapshot"; then
8395 build_type_string="SNAPSHOT"
8396 elif test "$build_type" = "milestone"; then
8397 build_type_string="MILESTONE"
8398 elif test "$build_type" = "release"; then
8399 build_type_string="RELEASE"
8400 else
8401 build_type_string="PERSONAL"
8402 build_type="personal"
8405 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8407 { $as_echo "$as_me:$LINENO: result: $build_type" >&5
8408 $as_echo "$build_type" >&6; }
8410 #-----------------------------------------------------------------------------
8411 all_debug_types="messages stack mungwall modules symbols"
8413 { $as_echo "$as_me:$LINENO: checking which debug types to enable" >&5
8414 $as_echo_n "checking which debug types to enable... " >&6; }
8415 # Check whether --enable-debug was given.
8416 if test "${enable_debug+set}" = set; then
8417 enableval=$enable_debug; debug="$enableval"
8418 else
8419 debug=""
8423 if test "$debug" = "" -o "$debug" = "no"; then
8424 debug="none"
8425 elif test "$debug" = "yes"; then
8426 debug="all"
8429 if test "$debug" = "all" ; then
8430 debug=$all_debug_types
8431 for d in $all_debug_types; do
8432 export aros_${d}_debug="1"
8433 done
8434 else
8435 for d in $all_debug_types; do
8436 export aros_${d}_debug="0"
8437 done
8440 if test "$debug" != "none"; then
8441 debug=`echo $debug | sed s/,/\ /g`
8442 for d in $debug; do
8443 found="0"
8444 for d2 in $all_debug_types; do
8445 if test "$d2" = "$d"; then
8446 found="1"
8447 break
8449 done
8450 if test "$found" = "0"; then
8451 { { $as_echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8452 $as_echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8453 { (exit 1); exit 1; }; }
8455 export aros_${d}_debug="1"
8456 done
8457 aros_debug="yes"
8459 { $as_echo "$as_me:$LINENO: result: $debug" >&5
8460 $as_echo "$debug" >&6; }
8462 if test "$aros_messages_debug" = "1"; then
8463 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8464 else
8465 aros_messages_debug=""
8467 if test "$aros_symbols_debug" = "1"; then
8468 aros_symbols_debug="-g"
8469 else
8470 aros_symbols_debug=""
8473 # These are the flags to pass when compiling debugged programs
8474 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8475 aros_debug_aflags=""
8476 aros_debug_ldflags="$aros_symbols_debug"
8478 aros_crosstools="no"
8480 #-----------------------------------------------------------------------------
8481 # Checking if we should build crosstools..
8482 { $as_echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8483 $as_echo_n "checking whether to build crosstools... " >&6; }
8484 # Check whether --enable-crosstools was given.
8485 if test "${enable_crosstools+set}" = set; then
8486 enableval=$enable_crosstools; crosstools="$enableval"
8487 else
8488 crosstools="no"
8491 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8492 { $as_echo "$as_me:$LINENO: result: yes" >&5
8493 $as_echo "yes" >&6; }
8494 aros_crosstools="yes"
8495 else
8496 { $as_echo "$as_me:$LINENO: result: no" >&5
8497 $as_echo "no" >&6; }
8500 #-----------------------------------------------------------------------------
8501 # Checking for distcc and ccache.
8503 # Always apply the transforms in this particular order. Basically you should
8504 # always run 'ccache distcc compiler' in that order for the best performance.
8506 { $as_echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8507 $as_echo_n "checking whether to enable distcc... " >&6; }
8508 # Check whether --enable-distcc was given.
8509 if test "${enable_distcc+set}" = set; then
8510 enableval=$enable_distcc; distcc="$enableval"
8511 else
8512 distcc="no"
8515 if test "$distcc" != "" -a "$distcc" != "no"; then
8516 # AC_CHECK_PROG will print out the result in this case
8517 # Extract the first word of "distcc", so it can be a program name with args.
8518 set dummy distcc; ac_word=$2
8519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if test "${ac_cv_path_DISTCC+set}" = set; then
8522 $as_echo_n "(cached) " >&6
8523 else
8524 case $DISTCC in
8525 [\\/]* | ?:[\\/]*)
8526 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8538 break 2
8540 done
8541 done
8542 IFS=$as_save_IFS
8544 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8546 esac
8548 DISTCC=$ac_cv_path_DISTCC
8549 if test -n "$DISTCC"; then
8550 { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
8551 $as_echo "$DISTCC" >&6; }
8552 else
8553 { $as_echo "$as_me:$LINENO: result: no" >&5
8554 $as_echo "no" >&6; }
8558 else
8559 { $as_echo "$as_me:$LINENO: result: no" >&5
8560 $as_echo "no" >&6; }
8563 { $as_echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8564 $as_echo_n "checking whether to enable ccache... " >&6; }
8565 # Check whether --enable-ccache was given.
8566 if test "${enable_ccache+set}" = set; then
8567 enableval=$enable_ccache; ccache="$enableval"
8568 else
8569 ccache="no"
8572 if test "$ccache" != "" -a "$ccache" != "no"; then
8573 # AC_CHECK_PROG will print out the result in this case
8574 # Extract the first word of "ccache", so it can be a program name with args.
8575 set dummy ccache; ac_word=$2
8576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if test "${ac_cv_prog_CCACHE+set}" = set; then
8579 $as_echo_n "(cached) " >&6
8580 else
8581 if test -n "$CCACHE"; then
8582 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_prog_CCACHE="ccache"
8592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8595 done
8596 done
8597 IFS=$as_save_IFS
8601 CCACHE=$ac_cv_prog_CCACHE
8602 if test -n "$CCACHE"; then
8603 { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
8604 $as_echo "$CCACHE" >&6; }
8605 else
8606 { $as_echo "$as_me:$LINENO: result: no" >&5
8607 $as_echo "no" >&6; }
8611 else
8612 { $as_echo "$as_me:$LINENO: result: no" >&5
8613 $as_echo "no" >&6; }
8616 #-----------------------------------------------------------------------------
8617 { $as_echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8618 $as_echo_n "checking what optimization flags to use... " >&6; }
8620 # Check whether --with-optimization was given.
8621 if test "${with_optimization+set}" = set; then
8622 withval=$with_optimization; optimization="$withval"
8623 else
8624 optimization="unknown"
8627 if test "$optimization" = "unknown"; then
8628 if test "$debug" != "none"; then
8629 optimization="-O0"
8630 else
8631 optimization="-O2"
8634 aros_config_cflags="$aros_config_cflags $optimization"
8635 { $as_echo "$as_me:$LINENO: result: $optimization" >&5
8636 $as_echo "$optimization" >&6; }
8638 #-----------------------------------------------------------------------------
8639 { $as_echo "$as_me:$LINENO: checking what target variant to enable" >&5
8640 $as_echo_n "checking what target variant to enable... " >&6; }
8641 # Check whether --enable-target_variant was given.
8642 if test "${enable_target_variant+set}" = set; then
8643 enableval=$enable_target_variant; target_variant=$enableval
8644 else
8645 target_variant="none"
8648 if test "$target_variant" = "none"; then
8649 aros_target_variant=""
8650 aros_target_suffix=""
8651 else
8652 aros_target_variant="$target_variant"
8653 aros_target_suffix="-$target_variant"
8655 { $as_echo "$as_me:$LINENO: result: $enableval" >&5
8656 $as_echo "$enableval" >&6; }
8658 target_bootloader="none"
8660 #-----------------------------------------------------------------------------
8661 # This is the target configuration switch.
8662 case "$target_os" in
8663 linux*)
8664 aros_target_arch="linux"
8665 case "$target_cpu" in
8666 *m68k*)
8667 aros_target_cpu="m68k"
8668 aros_object_format="m68kelf"
8669 aros_flavour="emulcompat"
8670 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8671 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8672 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8673 gcc_target_cpu="mc68000"
8675 *i?86*)
8676 aros_target_cpu="i386"
8677 aros_object_format="elf_i386"
8678 aros_flavour="emulation"
8679 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8680 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8681 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8682 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8683 aros_config_ldflags="-m32 -march=i486"
8684 aros_kernel_ldflags="-melf_i386"
8685 aros_default_wbdepth=8
8686 gcc_target_cpu="i386"
8688 *x86_64*)
8689 aros_target_cpu="x86_64"
8690 aros_object_format="elf_x86_64"
8691 aros_flavour="emulation"
8692 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8693 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8694 aros_default_wbdepth=8
8695 gcc_target_cpu="x86_64"
8697 *powerpc*)
8698 aros_target_cpu="ppc"
8699 aros_object_format="elf32ppc"
8700 aros_flavour="emulation"
8701 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8702 aros_default_wbdepth=8
8703 gcc_target_cpu="ppc"
8705 # TODO
8706 # Same as powerpc, but I need this for the nightly build to work again.
8707 # Actually, the nightly should be made working with powerpc target.
8708 # That just was too much work for the moment, another week or two.
8709 *ppc*)
8710 aros_target_cpu="ppc"
8711 aros_object_format="elf32ppc"
8712 aros_flavour="emulation"
8713 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8714 aros_default_wbdepth=8
8715 gcc_target_cpu="ppc"
8718 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8719 $as_echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8720 { (exit 1); exit 1; }; }
8722 esac
8726 aros_target_arch="pc"
8727 aros_shared_default="no"
8728 target_bootloader="grub2"
8729 case "$target_cpu" in
8730 *i?86*)
8731 aros_target_cpu="i386"
8734 if test "$aros_object_format" = "" ; then
8735 aros_object_format="elf_i386"
8737 aros_flavour="standalone"
8738 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8739 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8740 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8741 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8742 aros_config_ldflags="-m32 -march=i486"
8743 aros_kernel_ldflags="-melf_i386"
8744 aros_default_wbwidth=640
8745 aros_default_wbheight=480
8746 gcc_target_cpu="i386"
8748 *x86_64*)
8749 aros_target_cpu="x86_64"
8750 aros_serial_debug=1
8751 if test "$aros_object_format" = "" ; then
8752 aros_object_format="elf_x86_64"
8754 aros_flavour="standalone"
8755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8756 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8757 aros_kernel_ldflags=""
8758 aros_default_wbwidth=640
8759 aros_default_wbheight=480
8760 gcc_target_cpu="x86_64"
8763 { { $as_echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8764 $as_echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8765 { (exit 1); exit 1; }; }
8767 esac
8770 prep)
8771 aros_target_arch="prep"
8772 aros_shared_default="no"
8773 aros_target_cpu="ppc"
8774 aros_object_format="elf32ppc"
8775 aros_flavour="ppcnative"
8776 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8777 aros_kernel_ldflags=""
8778 aros_default_wbwidth=640
8779 aros_default_wbheight=480
8780 gcc_target_cpu="ppc"
8783 freebsd*)
8784 aros_target_arch="freebsd"
8785 aros_target_cpu="i386"
8786 aros_flavour="emulation"
8787 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8788 gcc_target_cpu="i386"
8790 aros_target_strip_flags="-x"
8793 darwin*)
8794 aros_target_arch="darwin"
8795 aros_flavour="emulation"
8796 need_dlopen="no"
8797 case "$target_cpu" in
8798 *i?86*)
8799 aros_target_cpu="i386"
8800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8801 gcc_target_cpu="i386"
8802 aros_object_format="elf_i386"
8803 aros_target_strip_flags="-x"
8806 { { $as_echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8807 $as_echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8808 { (exit 1); exit 1; }; }
8810 esac
8813 dragonfly*)
8814 aros_target_arch="dragonfly"
8815 aros_flavour="emulation"
8816 case "$target_cpu" in
8817 *i?86*)
8818 aros_target_cpu="i386"
8819 aros_object_format="elf_i386"
8820 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8822 *x86_64*)
8823 aros_target_cpu="x86_64"
8824 aros_object_format="elf_x86_64"
8825 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8828 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8829 $as_echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8830 { (exit 1); exit 1; }; }
8832 esac
8835 netbsd*)
8836 aros_target_arch="netbsd"
8837 case "$target_cpu" in
8838 *m68k*)
8839 aros_target_cpu="m68k"
8840 aros_object_format="m68kelf"
8841 aros_flavour="emulcompat"
8842 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8843 gcc_target_cpu="mc68000"
8845 *i?86*)
8846 aros_target_cpu="i386"
8847 aros_object_format="elf_i386"
8848 aros_flavour="emulation"
8849 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8850 aros_default_wbdepth=8
8851 gcc_target_cpu="i386"
8854 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8855 $as_echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8856 { (exit 1); exit 1; }; }
8858 esac
8859 aros_target_genmap="-Wl,-M -Xlinker >"
8860 aros_flavour="emulation"
8861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8864 openbsd*)
8865 aros_target_arch="openbsd"
8866 case "$target_cpu" in
8867 *i?86*)
8868 aros_target_cpu="i386"
8869 aros_object_format="elf_i386"
8870 aros_flavour="emulation"
8871 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8872 gcc_target_cpu="i386"
8875 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8876 $as_echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8877 { (exit 1); exit 1; }; }
8879 esac
8880 aros_target_genmap="-Wl,-M -Xlinker >"
8881 aros_target_nm_flags="-u"
8882 aros_flavour="emulation"
8885 solaris*)
8886 aros_target_arch="solaris"
8887 case "$target_cpu" in
8888 *i?86*)
8889 aros_target_cpu="i386"
8890 aros_object_format="elf_i386"
8891 aros_flavour="emulation"
8892 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8893 aros_default_wbdepth=8
8894 gcc_target_cpu="i386"
8896 *sparc*)
8897 aros_target_cpu="sparc"
8898 aros_object_format="elf_sparc"
8899 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8900 gcc_target_cpu="sparc"
8903 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8904 $as_echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8905 { (exit 1); exit 1; }; }
8907 esac
8908 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8909 aros_flavour="emulation"
8912 morphos*)
8913 aros_target_arch="morphos"
8914 aros_shared_default="no"
8915 aros_target_cpu="ppc"
8916 aros_object_format="elf_ppc"
8917 aros_flavour="nativecompat"
8918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8919 gcc_target_cpu="ppc"
8922 sam440)
8923 aros_target_arch="sam440"
8924 aros_shared_default="no"
8925 aros_target_cpu="ppc"
8926 aros_object_format="elf32ppc"
8927 aros_flavour="ppcnative"
8928 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8929 aros_kernel_ldflags=""
8930 aros_default_wbwidth=1024
8931 aros_default_wbheight=768
8932 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8933 gcc_target_cpu="powerpc"
8936 efika)
8937 aros_target_arch="efika"
8938 aros_shared_default="no"
8939 aros_target_cpu="arm"
8940 aros_object_format="armelf_linux_eabi"
8941 aros_flavour="standalone"
8942 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8943 aros_kernel_ldflags=""
8944 aros_default_wbwidth=1024
8945 aros_default_wbheight=600
8946 aros_arch_libs="-laeabi"
8947 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8948 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8951 chrp)
8952 aros_target_arch="chrp"
8953 aros_shared_default="no"
8954 aros_target_cpu="ppc"
8955 aros_object_format="elf32ppc"
8956 aros_flavour="ppcnative"
8957 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8958 aros_kernel_ldflags=""
8959 aros_default_wbwidth=640
8960 aros_default_wbheight=480
8961 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8962 gcc_target_cpu="powerpc"
8963 case "$aros_target_variant" in
8964 efika)
8965 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8967 esac
8970 amiga*)
8971 aros_target_arch="amiga"
8972 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8973 aros_shared_default="no"
8975 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8977 case "$target_cpu" in
8978 *m68k*)
8979 aros_target_cpu="m68k"
8980 aros_object_format="m68kelf"
8981 aros_flavour="nativecompat"
8982 gcc_target_cpu="mc68000"
8984 *ppc*)
8985 aros_cpu="ppc"
8986 aros_flavour="native"
8987 gcc_target_cpu="ppc"
8990 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8991 $as_echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8992 { (exit 1); exit 1; }; }
8994 esac
8997 mingw*)
8998 aros_target_arch="mingw32"
8999 aros_shared_default="no"
9000 aros_flavour="emulation"
9001 aros_shared_cflags=""
9002 need_dlopen="no"
9003 rescomp="windres"
9004 case "$target_cpu" in
9005 *i?86*)
9006 aros_target_cpu="i386"
9007 aros_object_format="elf_i386"
9008 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9009 aros_default_wbdepth=8
9010 gcc_target_cpu="i386"
9011 aros_target_cc="i386-aros-gcc"
9012 aros_target_ld="i386-aros-ld"
9013 aros_target_as="i386-aros-as"
9014 aros_target_ar="i386-aros-ar"
9015 aros_target_ranlib="i386-aros-ranlib"
9016 aros_target_nm="i386-aros-nm"
9017 aros_target_strip="i386-aros-strip"
9018 aros_target_objcopy="i386-aros-objcopy"
9019 aros_target_objdump="i386-aros-objdump"
9020 target_tool_prefix="i386-mingw32-"
9022 *x86_64*)
9023 aros_target_cpu="x86_64"
9024 aros_object_format="elf_x86_64"
9025 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9026 aros_default_wbdepth=8
9027 gcc_target_cpu="x86_64"
9028 aros_target_cc="x86_64-aros-gcc"
9029 aros_target_ld="x86_64-aros-ld"
9030 aros_target_as="x86_64-aros-as"
9031 aros_target_ar="x86_64-aros-ar"
9032 aros_target_ranlib="x86_64-aros-ranlib"
9033 aros_target_nm="x86_64-aros-nm"
9034 aros_target_strip="x86_64-aros-strip"
9035 aros_target_objcopy="x86_64-aros-objcopy"
9036 aros_target_objdump="x86_64-aros-objdump"
9037 target_tool_prefix="x86_64-w64-mingw32-"
9039 *arm*)
9040 aros_target_cpu="arm"
9041 aros_object_format="armelf_linux_eabi"
9042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9043 aros_default_wbdepth=8
9044 gcc_target_cpu="arm"
9045 aros_target_cc="arm-elf-gcc"
9046 aros_target_ld="arm-elf-ld"
9047 aros_target_as="arm-elf-as"
9048 aros_target_ar="arm-elf-ar"
9049 aros_target_ranlib="arm-elf-ranlib"
9050 aros_target_nm="arm-elf-nm"
9051 aros_target_strip="arm-elf-strip"
9052 aros_target_objcopy="arm-elf-objcopy"
9053 aros_target_objdump="arm-elf-objdump"
9054 target_tool_prefix="arm-mingw32ce-"
9055 aros_default_wbwidth=160
9056 aros_default_wbheight=160
9059 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9060 $as_echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9061 { (exit 1); exit 1; }; }
9063 esac
9064 if test $host_os = "cygwin"; then
9065 aros_kernel_cflags="-mno-cygwin"
9068 pp*)
9069 aros_target_arch="pp"
9070 aros_shared_default="no"
9071 case "$target_cpu" in
9072 *m68k*)
9073 aros_target_cpu="m68k"
9074 aros_object_format="m68kelf"
9075 aros_flavour="palmnative"
9076 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9077 aros_default_wbwidth=160
9078 aros_default_wbheight=160
9079 aros_default_wbdepth=1
9080 aros_target_ar_flags="cru"
9081 aros_compiler_libs="-lgcc1"
9082 aros_shared_default=no
9083 aros_shared_cflags="-fpic"
9084 aros_shared_aflags=""
9085 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9086 aros_kernel_ldflags="-Wl,-rpath,./lib"
9087 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9088 aros_debug_aflags=""
9089 aros_debug_ldflags="$aros_symbols_debug"
9090 aros_mungwall_debug="0"
9091 aros_modules_debug="0"
9092 gcc_target_cpu="mc68000"
9093 ignore_undefined_symbols="-ius"
9096 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9097 $as_echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9098 { (exit 1); exit 1; }; }
9100 esac
9103 mac*)
9104 aros_target_arch="mac"
9105 aros_shared_default="no"
9106 case "$target_cpu" in
9107 *m68k*)
9108 aros_target_cpu="m68k"
9109 aros_object_format="m68kelf"
9110 aros_flavour="mac68knative"
9111 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9112 aros_default_wbwidth=512
9113 aros_default_wbheight=384
9114 aros_default_wbdepth=8
9115 aros_target_ar_flags="cru"
9116 aros_compiler_libs="-lgcc1"
9117 aros_shared_default=no
9118 aros_shared_cflags="-fpic"
9119 aros_shared_aflags=""
9120 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9121 aros_kernel_ldflags="-Wl,-rpath,./lib"
9122 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9123 aros_debug_aflags=""
9124 aros_debug_ldflags="$aros_symbols_debug"
9125 aros_mungwall_debug="0"
9126 aros_modules_debug="0"
9127 gcc_target_cpu="mc68000"
9128 ignore_undefined_symbols="-ius"
9131 { { $as_echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9132 $as_echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9133 { (exit 1); exit 1; }; }
9135 esac
9139 { { $as_echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9140 $as_echo "$as_me: error: Unsupported target architecture $target" >&2;}
9141 { (exit 1); exit 1; }; }
9143 esac
9145 { $as_echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9146 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
9148 # Check whether --with-portssources was given.
9149 if test "${with_portssources+set}" = set; then
9150 withval=$with_portssources; with_portssrcdir=$withval
9151 else
9152 with_portssrcdir="default"
9155 if test "$with_portssrcdir" = "default"; then
9156 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9157 else
9158 AROS_PORTSSRCDIR="$with_portssrcdir"
9160 { $as_echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9161 $as_echo "$AROS_PORTSSRCDIR" >&6; }
9163 { $as_echo "$as_me:$LINENO: checking which bootloader to use" >&5
9164 $as_echo_n "checking which bootloader to use... " >&6; }
9166 # Check whether --with-bootloader was given.
9167 if test "${with_bootloader+set}" = set; then
9168 withval=$with_bootloader; target_bootloader=$withval
9169 else
9170 target_bootloader=$target_bootloader
9173 if test "$target_bootloader" = "none"; then
9174 aros_target_bootloader=""
9175 else
9176 aros_target_bootloader="$target_bootloader"
9178 { $as_echo "$as_me:$LINENO: result: $target_bootloader" >&5
9179 $as_echo "$target_bootloader" >&6; }
9181 { $as_echo "$as_me:$LINENO: checking which icon-set to use" >&5
9182 $as_echo_n "checking which icon-set to use... " >&6; }
9184 # Check whether --with-iconset was given.
9185 if test "${with_iconset+set}" = set; then
9186 withval=$with_iconset; target_iconset=$withval
9187 else
9188 target_iconset="default"
9191 if test "$target_iconset" = "default"; then
9192 aros_target_iconset="Gorilla"
9193 target_iconset="default (Gorilla)"
9194 else
9195 aros_target_iconset="$target_iconset"
9197 { $as_echo "$as_me:$LINENO: result: $target_iconset" >&5
9198 $as_echo "$target_iconset" >&6; }
9200 { $as_echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9201 $as_echo_n "checking which GUI Theme to use... " >&6; }
9203 # Check whether --with-theme was given.
9204 if test "${with_theme+set}" = set; then
9205 withval=$with_theme; target_guitheme=$withval
9206 else
9207 target_guitheme="default"
9210 if test "$target_guitheme" = "default"; then
9211 aros_target_guitheme="Ice"
9212 else
9213 aros_target_guitheme="$target_guitheme"
9215 { $as_echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9216 $as_echo "$aros_target_guitheme" >&6; }
9218 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9219 # for target code)
9220 cross_compiling=no
9221 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9222 cross_compiling=yes
9224 if test "$aros_host_cpu" == "x86_64" ; then
9225 if test "$aros_target_cpu" == "i386" ; then
9226 if test "$aros_target_arch" != "mingw32"; then
9227 cross_compiling=no
9231 if test "$aros_host_arch" == "darwin" ; then
9232 cross_compiling=yes
9235 # Set prefix for target compiler etc. if we're cross-compiling
9236 # (should possibly be earlier but needs to be after AC_PROG_CC)
9237 if test "$cross_compiling" = "yes" ; then
9238 if test "$target_tool_prefix" = ""; then
9239 target_tool_prefix=${target_cpu}-elf-
9241 CC=${target_tool_prefix}gcc
9244 #-----------------------------------------------------------------------------
9246 # Disable pointer-signedness warnings if the compiler recognises the option
9248 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9249 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
9250 save_cflags="$CFLAGS"
9251 CFLAGS="$CFLAGS -Wno-pointer-sign"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9260 main ()
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext
9268 if { (ac_try="$ac_compile"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9274 $as_echo "$ac_try_echo") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 use_no_sign_warning="yes"
9286 else
9287 $as_echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 use_no_sign_warning="no"
9293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 { $as_echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9295 $as_echo "$use_no_sign_warning" >&6; }
9296 if test "x-$use_no_sign_warning" = "x-yes" ; then
9297 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9299 CFLAGS="$save_cflags"
9301 #-----------------------------------------------------------------------------
9303 # Find all the tools we need to compile. This could be cross-compiling
9304 # though! If that is the case we use the GNU form of the target and
9305 # simply add this to the front of the binary name. This is rather simple,
9306 # but it should work under most circumstances.
9308 # The default tools are to use the same as the host, but only if the
9309 # host and target CPU are the same. With GCC this is normally enough.
9312 aros_cc_pre=""
9313 aros_shared_ld="$aros_host_ld"
9315 aros_target_mkdep="$aros_host_mkdep"
9316 aros_target_incl_def="$aros_host_incl"
9318 aros_kernel_cc="$CC"
9320 # The default tools executables to be linked to.
9321 if test "$aros_target_cc" != ""; then
9322 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9323 set dummy $aros_target_cc; ac_word=$2
9324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9327 $as_echo_n "(cached) " >&6
9328 else
9329 case $aros_target_cc in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9350 esac
9352 aros_target_cc=$ac_cv_path_aros_target_cc
9353 if test -n "$aros_target_cc"; then
9354 { $as_echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9355 $as_echo "$aros_target_cc" >&6; }
9356 else
9357 { $as_echo "$as_me:$LINENO: result: no" >&5
9358 $as_echo "no" >&6; }
9362 if test "$aros_target_cc" = ""; then
9363 { { $as_echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9364 $as_echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9365 { (exit 1); exit 1; }; }
9368 if test "$aros_target_ld" != ""; then
9369 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9370 set dummy $aros_target_ld; ac_word=$2
9371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9374 $as_echo_n "(cached) " >&6
9375 else
9376 case $aros_target_ld in
9377 [\\/]* | ?:[\\/]*)
9378 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9397 esac
9399 aros_target_ld=$ac_cv_path_aros_target_ld
9400 if test -n "$aros_target_ld"; then
9401 { $as_echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9402 $as_echo "$aros_target_ld" >&6; }
9403 else
9404 { $as_echo "$as_me:$LINENO: result: no" >&5
9405 $as_echo "no" >&6; }
9409 if test "$aros_target_ld" = ""; then
9410 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9411 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9412 { (exit 1); exit 1; }; }
9416 if test "$crosstools" != "yes"; then
9418 if test "$aros_target_as" = ""; then
9419 if test "$cross_compiling" = "yes" ; then
9420 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9421 set dummy ${target_tool_prefix}as; ac_word=$2
9422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9425 $as_echo_n "(cached) " >&6
9426 else
9427 case $aros_target_as_ln in
9428 [\\/]* | ?:[\\/]*)
9429 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9443 done
9444 done
9445 IFS=$as_save_IFS
9448 esac
9450 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9451 if test -n "$aros_target_as_ln"; then
9452 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9453 $as_echo "$aros_target_as_ln" >&6; }
9454 else
9455 { $as_echo "$as_me:$LINENO: result: no" >&5
9456 $as_echo "no" >&6; }
9460 else
9461 if test "$GCC" = "yes"; then
9462 aros_gcc_as=`$CC -print-prog-name=as`
9463 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9464 set dummy `basename $aros_gcc_as`; ac_word=$2
9465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9469 else
9470 case $aros_target_as_ln in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in `dirname $aros_gcc_as`
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9482 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9486 done
9487 done
9488 IFS=$as_save_IFS
9491 esac
9493 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9494 if test -n "$aros_target_as_ln"; then
9495 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9496 $as_echo "$aros_target_as_ln" >&6; }
9497 else
9498 { $as_echo "$as_me:$LINENO: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test "$aros_target_as_ln" = ""; then
9505 # Extract the first word of "as", so it can be a program name with args.
9506 set dummy as; ac_word=$2
9507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9510 $as_echo_n "(cached) " >&6
9511 else
9512 case $aros_target_as_ln in
9513 [\\/]* | ?:[\\/]*)
9514 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9520 IFS=$as_save_IFS
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9526 break 2
9528 done
9529 done
9530 IFS=$as_save_IFS
9533 esac
9535 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9536 if test -n "$aros_target_as_ln"; then
9537 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9538 $as_echo "$aros_target_as_ln" >&6; }
9539 else
9540 { $as_echo "$as_me:$LINENO: result: no" >&5
9541 $as_echo "no" >&6; }
9547 else
9548 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9549 set dummy $aros_target_as; ac_word=$2
9550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9553 $as_echo_n "(cached) " >&6
9554 else
9555 case $aros_target_as_ln in
9556 [\\/]* | ?:[\\/]*)
9557 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9571 done
9572 done
9573 IFS=$as_save_IFS
9576 esac
9578 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9579 if test -n "$aros_target_as_ln"; then
9580 { $as_echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9581 $as_echo "$aros_target_as_ln" >&6; }
9582 else
9583 { $as_echo "$as_me:$LINENO: result: no" >&5
9584 $as_echo "no" >&6; }
9590 if test "$aros_target_as_ln" = ""; then
9591 { { $as_echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9592 $as_echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9593 { (exit 1); exit 1; }; }
9596 if test "$aros_kernel_ld" = ""; then
9597 if test "$cross_compiling" = "yes" ; then
9598 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9599 set dummy ${target_tool_prefix}ld; ac_word=$2
9600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9604 else
9605 case $aros_kernel_ld in
9606 [\\/]* | ?:[\\/]*)
9607 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9626 esac
9628 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9629 if test -n "$aros_kernel_ld"; then
9630 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9631 $as_echo "$aros_kernel_ld" >&6; }
9632 else
9633 { $as_echo "$as_me:$LINENO: result: no" >&5
9634 $as_echo "no" >&6; }
9638 else
9639 if test "$GCC" = "yes"; then
9640 aros_gcc_ld=`$CC -print-prog-name=ld`
9641 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9642 set dummy `basename $aros_gcc_ld`; ac_word=$2
9643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9646 $as_echo_n "(cached) " >&6
9647 else
9648 case $aros_kernel_ld in
9649 [\\/]* | ?:[\\/]*)
9650 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in `dirname $aros_gcc_ld`
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9664 done
9665 done
9666 IFS=$as_save_IFS
9669 esac
9671 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9672 if test -n "$aros_kernel_ld"; then
9673 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9674 $as_echo "$aros_kernel_ld" >&6; }
9675 else
9676 { $as_echo "$as_me:$LINENO: result: no" >&5
9677 $as_echo "no" >&6; }
9682 if test "$aros_kernel_ld" = ""; then
9683 # Extract the first word of "ld", so it can be a program name with args.
9684 set dummy ld; ac_word=$2
9685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9688 $as_echo_n "(cached) " >&6
9689 else
9690 case $aros_kernel_ld in
9691 [\\/]* | ?:[\\/]*)
9692 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696 for as_dir in $PATH
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for ac_exec_ext in '' $ac_executable_extensions; do
9701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9702 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 break 2
9706 done
9707 done
9708 IFS=$as_save_IFS
9711 esac
9713 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9714 if test -n "$aros_kernel_ld"; then
9715 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9716 $as_echo "$aros_kernel_ld" >&6; }
9717 else
9718 { $as_echo "$as_me:$LINENO: result: no" >&5
9719 $as_echo "no" >&6; }
9725 else
9726 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9727 set dummy $aros_kernel_ld; ac_word=$2
9728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9731 $as_echo_n "(cached) " >&6
9732 else
9733 case $aros_kernel_ld in
9734 [\\/]* | ?:[\\/]*)
9735 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9754 esac
9756 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9757 if test -n "$aros_kernel_ld"; then
9758 { $as_echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9759 $as_echo "$aros_kernel_ld" >&6; }
9760 else
9761 { $as_echo "$as_me:$LINENO: result: no" >&5
9762 $as_echo "no" >&6; }
9768 if test "$aros_kernel_ld" = ""; then
9769 { { $as_echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9770 $as_echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9771 { (exit 1); exit 1; }; }
9774 if test "$aros_target_ar" = ""; then
9775 if test "$cross_compiling" = "yes" ; then
9776 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9777 set dummy ${target_tool_prefix}ar; ac_word=$2
9778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9781 $as_echo_n "(cached) " >&6
9782 else
9783 case $aros_target_ar_ln in
9784 [\\/]* | ?:[\\/]*)
9785 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9801 IFS=$as_save_IFS
9804 esac
9806 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9807 if test -n "$aros_target_ar_ln"; then
9808 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9809 $as_echo "$aros_target_ar_ln" >&6; }
9810 else
9811 { $as_echo "$as_me:$LINENO: result: no" >&5
9812 $as_echo "no" >&6; }
9816 else
9817 if test "$GCC" = "yes"; then
9818 aros_gcc_ar=`$CC -print-prog-name=ar`
9819 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9820 set dummy `basename $aros_gcc_ar`; ac_word=$2
9821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9824 $as_echo_n "(cached) " >&6
9825 else
9826 case $aros_target_ar_ln in
9827 [\\/]* | ?:[\\/]*)
9828 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in `dirname $aros_gcc_ar`
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9842 done
9843 done
9844 IFS=$as_save_IFS
9847 esac
9849 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9850 if test -n "$aros_target_ar_ln"; then
9851 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9852 $as_echo "$aros_target_ar_ln" >&6; }
9853 else
9854 { $as_echo "$as_me:$LINENO: result: no" >&5
9855 $as_echo "no" >&6; }
9860 if test "$aros_target_ar_ln" = ""; then
9861 # Extract the first word of "ar", so it can be a program name with args.
9862 set dummy ar; ac_word=$2
9863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9866 $as_echo_n "(cached) " >&6
9867 else
9868 case $aros_target_ar_ln in
9869 [\\/]* | ?:[\\/]*)
9870 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 for as_dir in $PATH
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9884 done
9885 done
9886 IFS=$as_save_IFS
9889 esac
9891 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9892 if test -n "$aros_target_ar_ln"; then
9893 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9894 $as_echo "$aros_target_ar_ln" >&6; }
9895 else
9896 { $as_echo "$as_me:$LINENO: result: no" >&5
9897 $as_echo "no" >&6; }
9903 else
9904 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9905 set dummy $aros_target_ar; ac_word=$2
9906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9909 $as_echo_n "(cached) " >&6
9910 else
9911 case $aros_target_ar_ln in
9912 [\\/]* | ?:[\\/]*)
9913 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9927 done
9928 done
9929 IFS=$as_save_IFS
9932 esac
9934 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9935 if test -n "$aros_target_ar_ln"; then
9936 { $as_echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9937 $as_echo "$aros_target_ar_ln" >&6; }
9938 else
9939 { $as_echo "$as_me:$LINENO: result: no" >&5
9940 $as_echo "no" >&6; }
9946 if test "$aros_target_ar_ln" = ""; then
9947 { { $as_echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9948 $as_echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9949 { (exit 1); exit 1; }; }
9952 if test "$aros_target_nm" = ""; then
9953 if test "$cross_compiling" = "yes" ; then
9954 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9955 set dummy ${target_tool_prefix}nm; ac_word=$2
9956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9959 $as_echo_n "(cached) " >&6
9960 else
9961 case $aros_target_nm_ln in
9962 [\\/]* | ?:[\\/]*)
9963 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $PATH
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9977 done
9978 done
9979 IFS=$as_save_IFS
9982 esac
9984 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9985 if test -n "$aros_target_nm_ln"; then
9986 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9987 $as_echo "$aros_target_nm_ln" >&6; }
9988 else
9989 { $as_echo "$as_me:$LINENO: result: no" >&5
9990 $as_echo "no" >&6; }
9994 else
9995 if test "$GCC" = "yes"; then
9996 aros_gcc_nm=`$CC -print-prog-name=nm`
9997 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9998 set dummy `basename $aros_gcc_nm`; ac_word=$2
9999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10002 $as_echo_n "(cached) " >&6
10003 else
10004 case $aros_target_nm_ln in
10005 [\\/]* | ?:[\\/]*)
10006 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in `dirname $aros_gcc_nm`
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10020 done
10021 done
10022 IFS=$as_save_IFS
10025 esac
10027 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10028 if test -n "$aros_target_nm_ln"; then
10029 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10030 $as_echo "$aros_target_nm_ln" >&6; }
10031 else
10032 { $as_echo "$as_me:$LINENO: result: no" >&5
10033 $as_echo "no" >&6; }
10038 if test "$aros_target_nm_ln" = ""; then
10039 # Extract the first word of "nm", so it can be a program name with args.
10040 set dummy nm; ac_word=$2
10041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10044 $as_echo_n "(cached) " >&6
10045 else
10046 case $aros_target_nm_ln in
10047 [\\/]* | ?:[\\/]*)
10048 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10058 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10062 done
10063 done
10064 IFS=$as_save_IFS
10067 esac
10069 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10070 if test -n "$aros_target_nm_ln"; then
10071 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10072 $as_echo "$aros_target_nm_ln" >&6; }
10073 else
10074 { $as_echo "$as_me:$LINENO: result: no" >&5
10075 $as_echo "no" >&6; }
10081 else
10082 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10083 set dummy $aros_target_nm; ac_word=$2
10084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10088 else
10089 case $aros_target_nm_ln in
10090 [\\/]* | ?:[\\/]*)
10091 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10110 esac
10112 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10113 if test -n "$aros_target_nm_ln"; then
10114 { $as_echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10115 $as_echo "$aros_target_nm_ln" >&6; }
10116 else
10117 { $as_echo "$as_me:$LINENO: result: no" >&5
10118 $as_echo "no" >&6; }
10124 if test "$aros_target_nm_ln" = ""; then
10125 { { $as_echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10126 $as_echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10127 { (exit 1); exit 1; }; }
10130 if test "$aros_target_objcopy" = ""; then
10131 if test "$cross_compiling" = "yes" ; then
10132 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10133 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10135 $as_echo_n "checking for $ac_word... " >&6; }
10136 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10138 else
10139 case $aros_target_objcopy_ln in
10140 [\\/]* | ?:[\\/]*)
10141 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10151 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10155 done
10156 done
10157 IFS=$as_save_IFS
10160 esac
10162 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10163 if test -n "$aros_target_objcopy_ln"; then
10164 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10165 $as_echo "$aros_target_objcopy_ln" >&6; }
10166 else
10167 { $as_echo "$as_me:$LINENO: result: no" >&5
10168 $as_echo "no" >&6; }
10172 else
10173 if test "$GCC" = "yes"; then
10174 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10175 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10176 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10180 $as_echo_n "(cached) " >&6
10181 else
10182 case $aros_target_objcopy_ln in
10183 [\\/]* | ?:[\\/]*)
10184 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in `dirname $aros_gcc_objcopy`
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10198 done
10199 done
10200 IFS=$as_save_IFS
10203 esac
10205 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10206 if test -n "$aros_target_objcopy_ln"; then
10207 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10208 $as_echo "$aros_target_objcopy_ln" >&6; }
10209 else
10210 { $as_echo "$as_me:$LINENO: result: no" >&5
10211 $as_echo "no" >&6; }
10216 if test "$aros_target_objcopy_ln" = ""; then
10217 # Extract the first word of "objcopy", so it can be a program name with args.
10218 set dummy objcopy; ac_word=$2
10219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10222 $as_echo_n "(cached) " >&6
10223 else
10224 case $aros_target_objcopy_ln in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10236 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10240 done
10241 done
10242 IFS=$as_save_IFS
10245 esac
10247 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10248 if test -n "$aros_target_objcopy_ln"; then
10249 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10250 $as_echo "$aros_target_objcopy_ln" >&6; }
10251 else
10252 { $as_echo "$as_me:$LINENO: result: no" >&5
10253 $as_echo "no" >&6; }
10259 else
10260 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10261 set dummy $aros_target_objcopy; ac_word=$2
10262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $aros_target_objcopy_ln in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10288 esac
10290 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10291 if test -n "$aros_target_objcopy_ln"; then
10292 { $as_echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10293 $as_echo "$aros_target_objcopy_ln" >&6; }
10294 else
10295 { $as_echo "$as_me:$LINENO: result: no" >&5
10296 $as_echo "no" >&6; }
10302 if test "$aros_target_objcopy_ln" = ""; then
10303 { { $as_echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10304 $as_echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10305 { (exit 1); exit 1; }; }
10308 if test "$aros_target_objdump" = ""; then
10309 if test "$cross_compiling" = "yes" ; then
10310 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10311 set dummy ${target_tool_prefix}objdump; ac_word=$2
10312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10315 $as_echo_n "(cached) " >&6
10316 else
10317 case $aros_target_objdump_ln in
10318 [\\/]* | ?:[\\/]*)
10319 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10338 esac
10340 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10341 if test -n "$aros_target_objdump_ln"; then
10342 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10343 $as_echo "$aros_target_objdump_ln" >&6; }
10344 else
10345 { $as_echo "$as_me:$LINENO: result: no" >&5
10346 $as_echo "no" >&6; }
10350 else
10351 if test "$GCC" = "yes"; then
10352 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10353 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10354 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10359 else
10360 case $aros_target_objdump_ln in
10361 [\\/]* | ?:[\\/]*)
10362 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in `dirname $aros_gcc_objdump`
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10381 esac
10383 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10384 if test -n "$aros_target_objdump_ln"; then
10385 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10386 $as_echo "$aros_target_objdump_ln" >&6; }
10387 else
10388 { $as_echo "$as_me:$LINENO: result: no" >&5
10389 $as_echo "no" >&6; }
10394 if test "$aros_target_objdump_ln" = ""; then
10395 # Extract the first word of "objdump", so it can be a program name with args.
10396 set dummy objdump; ac_word=$2
10397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10400 $as_echo_n "(cached) " >&6
10401 else
10402 case $aros_target_objdump_ln in
10403 [\\/]* | ?:[\\/]*)
10404 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in $PATH
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10414 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10418 done
10419 done
10420 IFS=$as_save_IFS
10423 esac
10425 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10426 if test -n "$aros_target_objdump_ln"; then
10427 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10428 $as_echo "$aros_target_objdump_ln" >&6; }
10429 else
10430 { $as_echo "$as_me:$LINENO: result: no" >&5
10431 $as_echo "no" >&6; }
10437 else
10438 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10439 set dummy $aros_target_objdump; ac_word=$2
10440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10443 $as_echo_n "(cached) " >&6
10444 else
10445 case $aros_target_objdump_ln in
10446 [\\/]* | ?:[\\/]*)
10447 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10461 done
10462 done
10463 IFS=$as_save_IFS
10466 esac
10468 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10469 if test -n "$aros_target_objdump_ln"; then
10470 { $as_echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10471 $as_echo "$aros_target_objdump_ln" >&6; }
10472 else
10473 { $as_echo "$as_me:$LINENO: result: no" >&5
10474 $as_echo "no" >&6; }
10480 if test "$aros_target_objdump_ln" = ""; then
10481 { { $as_echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10482 $as_echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10483 { (exit 1); exit 1; }; }
10486 if test "$aros_target_ranlib" = ""; then
10487 if test "$cross_compiling" = "yes" ; then
10488 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10489 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10491 $as_echo_n "checking for $ac_word... " >&6; }
10492 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10493 $as_echo_n "(cached) " >&6
10494 else
10495 case $aros_target_ranlib_ln in
10496 [\\/]* | ?:[\\/]*)
10497 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10507 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10511 done
10512 done
10513 IFS=$as_save_IFS
10516 esac
10518 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10519 if test -n "$aros_target_ranlib_ln"; then
10520 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10521 $as_echo "$aros_target_ranlib_ln" >&6; }
10522 else
10523 { $as_echo "$as_me:$LINENO: result: no" >&5
10524 $as_echo "no" >&6; }
10528 else
10529 if test "$GCC" = "yes"; then
10530 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10531 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10532 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10536 $as_echo_n "(cached) " >&6
10537 else
10538 case $aros_target_ranlib_ln in
10539 [\\/]* | ?:[\\/]*)
10540 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in `dirname $aros_gcc_ranlib`
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10554 done
10555 done
10556 IFS=$as_save_IFS
10559 esac
10561 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10562 if test -n "$aros_target_ranlib_ln"; then
10563 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10564 $as_echo "$aros_target_ranlib_ln" >&6; }
10565 else
10566 { $as_echo "$as_me:$LINENO: result: no" >&5
10567 $as_echo "no" >&6; }
10572 if test "$aros_target_ranlib_ln" = ""; then
10573 # Extract the first word of "ranlib", so it can be a program name with args.
10574 set dummy ranlib; ac_word=$2
10575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10579 else
10580 case $aros_target_ranlib_ln in
10581 [\\/]* | ?:[\\/]*)
10582 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10601 esac
10603 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10604 if test -n "$aros_target_ranlib_ln"; then
10605 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10606 $as_echo "$aros_target_ranlib_ln" >&6; }
10607 else
10608 { $as_echo "$as_me:$LINENO: result: no" >&5
10609 $as_echo "no" >&6; }
10615 else
10616 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10617 set dummy $aros_target_ranlib; ac_word=$2
10618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10622 else
10623 case $aros_target_ranlib_ln in
10624 [\\/]* | ?:[\\/]*)
10625 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10635 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10639 done
10640 done
10641 IFS=$as_save_IFS
10644 esac
10646 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10647 if test -n "$aros_target_ranlib_ln"; then
10648 { $as_echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10649 $as_echo "$aros_target_ranlib_ln" >&6; }
10650 else
10651 { $as_echo "$as_me:$LINENO: result: no" >&5
10652 $as_echo "no" >&6; }
10658 if test "$aros_target_ranlib_ln" = ""; then
10659 { { $as_echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10660 $as_echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10661 { (exit 1); exit 1; }; }
10664 if test "$aros_target_strip" = ""; then
10665 if test "$cross_compiling" = "yes" ; then
10666 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10667 set dummy ${target_tool_prefix}strip; ac_word=$2
10668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10669 $as_echo_n "checking for $ac_word... " >&6; }
10670 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10672 else
10673 case $aros_target_strip_ln in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10694 esac
10696 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10697 if test -n "$aros_target_strip_ln"; then
10698 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10699 $as_echo "$aros_target_strip_ln" >&6; }
10700 else
10701 { $as_echo "$as_me:$LINENO: result: no" >&5
10702 $as_echo "no" >&6; }
10706 else
10707 if test "$GCC" = "yes"; then
10708 aros_gcc_strip=`$CC -print-prog-name=strip`
10709 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10710 set dummy `basename $aros_gcc_strip`; ac_word=$2
10711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10714 $as_echo_n "(cached) " >&6
10715 else
10716 case $aros_target_strip_ln in
10717 [\\/]* | ?:[\\/]*)
10718 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in `dirname $aros_gcc_strip`
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10734 IFS=$as_save_IFS
10737 esac
10739 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10740 if test -n "$aros_target_strip_ln"; then
10741 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10742 $as_echo "$aros_target_strip_ln" >&6; }
10743 else
10744 { $as_echo "$as_me:$LINENO: result: no" >&5
10745 $as_echo "no" >&6; }
10750 if test "$aros_target_strip_ln" = ""; then
10751 # Extract the first word of "strip", so it can be a program name with args.
10752 set dummy strip; ac_word=$2
10753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10756 $as_echo_n "(cached) " >&6
10757 else
10758 case $aros_target_strip_ln in
10759 [\\/]* | ?:[\\/]*)
10760 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10774 done
10775 done
10776 IFS=$as_save_IFS
10779 esac
10781 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10782 if test -n "$aros_target_strip_ln"; then
10783 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10784 $as_echo "$aros_target_strip_ln" >&6; }
10785 else
10786 { $as_echo "$as_me:$LINENO: result: no" >&5
10787 $as_echo "no" >&6; }
10793 else
10794 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10795 set dummy $aros_target_strip; ac_word=$2
10796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10800 else
10801 case $aros_target_strip_ln in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10817 done
10818 done
10819 IFS=$as_save_IFS
10822 esac
10824 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10825 if test -n "$aros_target_strip_ln"; then
10826 { $as_echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10827 $as_echo "$aros_target_strip_ln" >&6; }
10828 else
10829 { $as_echo "$as_me:$LINENO: result: no" >&5
10830 $as_echo "no" >&6; }
10836 if test "$aros_target_strip_ln" = ""; then
10837 { { $as_echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10838 $as_echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10839 { (exit 1); exit 1; }; }
10843 if test "$rescomp" != ""; then
10844 if test "$cross_compiling" = "yes" ; then
10845 rescomp=${target_tool_prefix}${rescomp}
10847 # Extract the first word of "$rescomp", so it can be a program name with args.
10848 set dummy $rescomp; ac_word=$2
10849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10852 $as_echo_n "(cached) " >&6
10853 else
10854 case $aros_kernel_rescomp in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10875 esac
10877 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10878 if test -n "$aros_kernel_rescomp"; then
10879 { $as_echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10880 $as_echo "$aros_kernel_rescomp" >&6; }
10881 else
10882 { $as_echo "$as_me:$LINENO: result: no" >&5
10883 $as_echo "no" >&6; }
10887 if test "$aros_kernel_rescomp" = ""; then
10888 { { $as_echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10889 $as_echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10890 { (exit 1); exit 1; }; }
10894 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10895 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10896 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10897 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10898 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10899 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10900 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10902 # aros_cc_pre is a variable that is added to the front of the compiler name
10903 # in the generated aros-gcc shell script. We need this to enable the cache
10904 # to work across cleaned builds. Also, support DISTCC using the correct
10905 # environment variable.
10908 if test "x${DISTCC}" != "x" ; then
10909 if test "x${CCACHE}" != "x" ; then
10910 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10911 else
10912 aros_cc_pre="${DISTCC} "
10914 else
10915 if test "x${CCACHE}" != "x" ; then
10916 aros_cc_pre="${CCACHE} "
10920 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10922 aros_target_nostdinc_cflags=-nostdinc
10924 aros_target_nostartup_ldflags=-nostartfiles
10926 aros_target_nix_ldflags=-nix
10928 aros_target_detach_ldflags=-detach
10930 aros_target_nostdlib_ldflags=-nostdlib
10933 # Target tools
10934 if test "$aros_target_cc" = ""; then
10935 orig_target_cc=$aros_kernel_cc
10936 else
10937 orig_target_cc=$aros_target_cc
10939 if test "$aros_target_ld" = ""; then
10940 orig_target_ld=$aros_kernel_ld
10941 else
10942 orig_target_ld=$aros_target_ld
10944 if test "$GCC" = "yes"; then
10945 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10947 aros_target_cc="${prefix}-gcc"
10948 aros_target_as="${prefix}-as"
10949 aros_target_ld="${prefix}-ld"
10950 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10951 aros_target_objcopy=${prefix}-objcopy
10952 aros_target_objdump=${prefix}-objdump
10953 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10954 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10955 aros_kernel_nm="${prefix}-nm"
10956 aros_target_strip=${prefix}-strip
10958 # Find the system include path. We can suggest that an alternative is
10959 # used if we don't get it correct. The default is to use /usr/include.
10960 # Which is set in the aros_target_incl_def variable.
10962 # Check whether --enable-includes was given.
10963 if test "${enable_includes+set}" = set; then
10964 enableval=$enable_includes; aros_target_incl=$enable_includes
10965 else
10966 aros_target_incl=$aros_target_incl_def
10970 { $as_echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10971 $as_echo_n "checking for the target compiler's include path... " >&6; }
10972 if test "$aros_target_cc_includes" = "" ; then
10973 #try to guess where the directory is
10974 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10975 if ! test -d $aros_target_cc_includes; then
10976 #the directory doesn't exist, we need to do some more work
10977 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10979 #these are the headers we're looling for
10980 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10981 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10982 zutil.h"
10984 dirs=
10985 for h in $headers; do
10986 #which other headers each of the above headers needs?
10987 deps=$(echo "#include <$h>" | \
10988 $aros_host_cc -E -M - 2>/dev/null | \
10989 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10991 #copy all the needed headers to a directory beneath gendir
10992 for d in $deps; do
10993 h=$(basename $d)
10994 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10995 sed -n "s,^.*/include\(/.*\),\1,p")
10996 ! test -d $dir && mkdir -p $dir
10997 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10998 done
10999 done
11002 { $as_echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11003 $as_echo "$aros_target_cc_includes" >&6; }
11006 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11007 # On GCC >= 4.0 -iquote should be used
11010 save_cc="$CC"
11011 save_cflags="$CFLAGS"
11012 CFLAGS="-iquote."
11013 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11023 main ()
11027 return 0;
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (ac_try="$ac_compile"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035 esac
11036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11037 $as_echo "$ac_try_echo") >&5
11038 (eval "$ac_compile") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest.$ac_objext; then
11048 has_iquote="yes"
11049 else
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 has_iquote="no"
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11058 $as_echo "$has_iquote" >&6; }
11059 if test "x-$has_iquote" = "x-yes" ; then
11060 host_cflags_iquote=-iquote
11061 host_cflags_iquote_end=
11062 else
11063 host_cflags_iquote=-I
11064 host_cflags_iquote_end=-I-
11066 kernel_cflags_iquote=$host_cflags_iquote
11067 kernel_cflags_iquote_end=$host_cflags_iquote_end
11068 if test "x-$cross_compiling" = "x-yes"; then
11069 CC="$aros_kernel_cc"
11070 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11071 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11080 main ()
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (ac_try="$ac_compile"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11094 $as_echo "$ac_try_echo") >&5
11095 (eval "$ac_compile") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest.$ac_objext; then
11105 use_no_stack_protector="yes"
11106 else
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 use_no_stack_protector="no"
11113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11115 $as_echo "$use_no_stack_protector" >&6; }
11116 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11117 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11126 main ()
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext
11134 if { (ac_try="$ac_compile"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11140 $as_echo "$ac_try_echo") >&5
11141 (eval "$ac_compile") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest.$ac_objext; then
11151 has_iquote="yes"
11152 else
11153 $as_echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 has_iquote="no"
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11161 $as_echo "$has_iquote" >&6; }
11162 if test "x-$has_iquote" = "x-yes" ; then
11163 kernel_cflags_iquote=-iquote
11164 kernel_cflags_iquote_end=
11165 else
11166 kernel_cflags_iquote=-I
11167 kernel_cflags_iquote_end=-I-
11170 aros_cflags_iquote=$kernel_cflags_iquote
11171 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11172 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11173 CC="$orig_target_cc"
11174 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11175 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11184 main ()
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198 $as_echo "$ac_try_echo") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11209 has_iquote="yes"
11210 else
11211 $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 has_iquote="no"
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { $as_echo "$as_me:$LINENO: result: $has_iquote" >&5
11219 $as_echo "$has_iquote" >&6; }
11220 if test "x-$has_iquote" = "x-yes" ; then
11221 aros_cflags_iquote=-iquote
11222 aros_cflags_iquote_end=
11223 else
11224 aros_cflags_iquote=-I
11225 aros_cflags_iquote_end=-I-
11228 if test "x-$use_no_stack_protector" = "x-yes" ; then
11229 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11232 #-----------------------------------------------------------------------------
11234 # Check if we can explicitly choose older version of symbol hashing
11236 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11237 CC="$aros_kernel_cc"
11238 { $as_echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11239 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11248 main ()
11252 return 0;
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11262 $as_echo "$ac_try_echo") >&5
11263 (eval "$ac_link") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext && {
11273 test "$cross_compiling" = yes ||
11274 $as_test_x conftest$ac_exeext
11275 }; then
11276 use_hash_style="yes"
11277 else
11278 $as_echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 use_hash_style="no"
11284 rm -rf conftest.dSYM
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11287 { $as_echo "$as_me:$LINENO: result: $use_hash_style" >&5
11288 $as_echo "$use_hash_style" >&6; }
11289 if test "x-$use_hash_style" = "x-yes" ; then
11290 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11292 CC="$save_cc"
11293 CFLAGS="$save_cflags"
11303 { $as_echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11304 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11306 # Check whether --with-resolution was given.
11307 if test "${with_resolution+set}" = set; then
11308 withval=$with_resolution; resolution=$withval
11309 else
11310 resolution=none
11313 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11314 if test "$resolution" = "yes" ; then
11315 resolution="none"
11317 if test "$resolution" = "no" ; then
11318 resolution="none"
11320 if test "$resolution" != "none" ; then
11321 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11322 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11323 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11325 { $as_echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11326 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11327 aros_cv_default_wbwidth=$aros_default_wbwidth
11328 aros_cv_default_wbheight=$aros_default_wbheight
11329 aros_cv_default_wbdepth=$aros_default_wbdepth
11331 { $as_echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11332 $as_echo_n "checking if serial debug is enabled... " >&6; }
11334 # Check whether --with-serial-debug was given.
11335 if test "${with_serial_debug+set}" = set; then
11336 withval=$with_serial_debug; serial_debug=$withval
11337 else
11338 serial_debug=none
11341 if test "$aros_serial_debug" = 0 ; then
11342 serial_debug_forced=""
11343 if test "$serial_debug" = "yes" ; then
11344 serial_debug="2"
11346 if test "$serial_debug" = "no" ; then
11347 serial_debug="none"
11349 else
11350 serial_debug_forced="(forced)"
11351 serial_debug=$aros_serial_debug
11353 if test "$serial_debug" != "none" ; then
11354 aros_serial_debug=$serial_debug
11355 { $as_echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11356 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11357 else
11358 { $as_echo "$as_me:$LINENO: result: no" >&5
11359 $as_echo "no" >&6; }
11362 { $as_echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11363 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11364 # Check whether --enable-palm_debug_hack was given.
11365 if test "${enable_palm_debug_hack+set}" = set; then
11366 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11367 else
11368 palm_debug_hack="no"
11371 if test "$palm_debug_hack" = "yes" ; then
11372 aros_palm_debug_hack="1"
11374 { $as_echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11375 $as_echo "$palm_debug_hack" >&6; }
11378 { $as_echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11379 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11380 # Check whether --enable-nesting_supervisor was given.
11381 if test "${enable_nesting_supervisor+set}" = set; then
11382 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11383 else
11384 nesting_supervisor="no"
11387 if test "$nesting_supervisor" = "yes" ; then
11388 aros_nesting_supervisor="1"
11390 { $as_echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11391 $as_echo "$nesting_supervisor" >&6; }
11394 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11396 if test "x-$need_dlopen" != "x-no" ; then
11397 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11398 $as_echo_n "checking for dlopen... " >&6; }
11399 if test "${ac_cv_func_dlopen+set}" = set; then
11400 $as_echo_n "(cached) " >&6
11401 else
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11410 #define dlopen innocuous_dlopen
11412 /* System header to define __stub macros and hopefully few prototypes,
11413 which can conflict with char dlopen (); below.
11414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11415 <limits.h> exists even on freestanding compilers. */
11417 #ifdef __STDC__
11418 # include <limits.h>
11419 #else
11420 # include <assert.h>
11421 #endif
11423 #undef dlopen
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char dlopen ();
11432 /* The GNU C library defines this for functions which it implements
11433 to always fail with ENOSYS. Some functions are actually named
11434 something starting with __ and the normal name is an alias. */
11435 #if defined __stub_dlopen || defined __stub___dlopen
11436 choke me
11437 #endif
11440 main ()
11442 return dlopen ();
11444 return 0;
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11454 $as_echo "$ac_try_echo") >&5
11455 (eval "$ac_link") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext && {
11465 test "$cross_compiling" = yes ||
11466 $as_test_x conftest$ac_exeext
11467 }; then
11468 ac_cv_func_dlopen=yes
11469 else
11470 $as_echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_cv_func_dlopen=no
11476 rm -rf conftest.dSYM
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11481 $as_echo "$ac_cv_func_dlopen" >&6; }
11482 if test "x$ac_cv_func_dlopen" = x""yes; then
11483 have_dl="yes"
11484 else
11485 have_dl="no"
11488 if test "x-$have_dl" = "x-no" ; then
11489 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldl $LIBS"
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11511 main ()
11513 return dlopen ();
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523 esac
11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11525 $as_echo "$ac_try_echo") >&5
11526 (eval "$ac_link") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest$ac_exeext && {
11536 test "$cross_compiling" = yes ||
11537 $as_test_x conftest$ac_exeext
11538 }; then
11539 ac_cv_lib_dl_dlopen=yes
11540 else
11541 $as_echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_cv_lib_dl_dlopen=no
11547 rm -rf conftest.dSYM
11548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11552 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11554 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11555 have_dl="yes"
11556 aros_host_ldflags="$aros_host_ldflags -ldl"
11557 else
11558 have_dl="no"
11562 if test "x-$have_dl" = "x-no" ; then
11563 { { $as_echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11564 $as_echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11565 { (exit 1); exit 1; }; }
11570 # Check whether --enable-x11_hidd was given.
11571 if test "${enable_x11_hidd+set}" = set; then
11572 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11573 else
11574 x11_hidd="auto"
11577 case "x-$x11_hidd" in
11578 x-yes|x-no|x-auto) ;;
11579 *) x11_hidd="auto" ;;
11580 esac
11582 ENABLE_X11=0
11584 if test "x-$x11_hidd" != "x-no" ; then
11586 { $as_echo "$as_me:$LINENO: checking for X" >&5
11587 $as_echo_n "checking for X... " >&6; }
11590 # Check whether --with-x was given.
11591 if test "${with_x+set}" = set; then
11592 withval=$with_x;
11595 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11596 if test "x$with_x" = xno; then
11597 # The user explicitly disabled X.
11598 have_x=disabled
11599 else
11600 case $x_includes,$x_libraries in #(
11601 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11602 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11603 { (exit 1); exit 1; }; };; #(
11604 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11605 $as_echo_n "(cached) " >&6
11606 else
11607 # One or both of the vars are not set, and there is no cached value.
11608 ac_x_includes=no ac_x_libraries=no
11609 rm -f -r conftest.dir
11610 if mkdir conftest.dir; then
11611 cd conftest.dir
11612 cat >Imakefile <<'_ACEOF'
11613 incroot:
11614 @echo incroot='${INCROOT}'
11615 usrlibdir:
11616 @echo usrlibdir='${USRLIBDIR}'
11617 libdir:
11618 @echo libdir='${LIBDIR}'
11619 _ACEOF
11620 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11622 for ac_var in incroot usrlibdir libdir; do
11623 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11624 done
11625 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11626 for ac_extension in a so sl dylib la dll; do
11627 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11628 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11629 ac_im_usrlibdir=$ac_im_libdir; break
11631 done
11632 # Screen out bogus values from the imake configuration. They are
11633 # bogus both because they are the default anyway, and because
11634 # using them would break gcc on systems where it needs fixed includes.
11635 case $ac_im_incroot in
11636 /usr/include) ac_x_includes= ;;
11637 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11638 esac
11639 case $ac_im_usrlibdir in
11640 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11641 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11642 esac
11644 cd ..
11645 rm -f -r conftest.dir
11648 # Standard set of common directories for X headers.
11649 # Check X11 before X11Rn because it is often a symlink to the current release.
11650 ac_x_header_dirs='
11651 /usr/X11/include
11652 /usr/X11R6/include
11653 /usr/X11R5/include
11654 /usr/X11R4/include
11656 /usr/include/X11
11657 /usr/include/X11R6
11658 /usr/include/X11R5
11659 /usr/include/X11R4
11661 /usr/local/X11/include
11662 /usr/local/X11R6/include
11663 /usr/local/X11R5/include
11664 /usr/local/X11R4/include
11666 /usr/local/include/X11
11667 /usr/local/include/X11R6
11668 /usr/local/include/X11R5
11669 /usr/local/include/X11R4
11671 /usr/X386/include
11672 /usr/x386/include
11673 /usr/XFree86/include/X11
11675 /usr/include
11676 /usr/local/include
11677 /usr/unsupported/include
11678 /usr/athena/include
11679 /usr/local/x11r5/include
11680 /usr/lpp/Xamples/include
11682 /usr/openwin/include
11683 /usr/openwin/share/include'
11685 if test "$ac_x_includes" = no; then
11686 # Guess where to find include files, by looking for Xlib.h.
11687 # First, try using that file with no special directory specified.
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 #include <X11/Xlib.h>
11695 _ACEOF
11696 if { (ac_try="$ac_cpp conftest.$ac_ext"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11700 esac
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } >/dev/null && {
11710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 }; then
11713 # We can compile using X headers with no special include directory.
11714 ac_x_includes=
11715 else
11716 $as_echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 for ac_dir in $ac_x_header_dirs; do
11720 if test -r "$ac_dir/X11/Xlib.h"; then
11721 ac_x_includes=$ac_dir
11722 break
11724 done
11727 rm -f conftest.err conftest.$ac_ext
11728 fi # $ac_x_includes = no
11730 if test "$ac_x_libraries" = no; then
11731 # Check for the libraries.
11732 # See if we find them without any special options.
11733 # Don't add to $LIBS permanently.
11734 ac_save_LIBS=$LIBS
11735 LIBS="-lX11 $LIBS"
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h. */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <X11/Xlib.h>
11744 main ()
11746 XrmInitialize ()
11748 return 0;
11750 _ACEOF
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (ac_try="$ac_link"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11758 $as_echo "$ac_try_echo") >&5
11759 (eval "$ac_link") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest$ac_exeext && {
11769 test "$cross_compiling" = yes ||
11770 $as_test_x conftest$ac_exeext
11771 }; then
11772 LIBS=$ac_save_LIBS
11773 # We can link X programs with no special library path.
11774 ac_x_libraries=
11775 else
11776 $as_echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 LIBS=$ac_save_LIBS
11780 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11782 # Don't even attempt the hair of trying to link an X program!
11783 for ac_extension in a so sl dylib la dll; do
11784 if test -r "$ac_dir/libX11.$ac_extension"; then
11785 ac_x_libraries=$ac_dir
11786 break 2
11788 done
11789 done
11792 rm -rf conftest.dSYM
11793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11794 conftest$ac_exeext conftest.$ac_ext
11795 fi # $ac_x_libraries = no
11797 case $ac_x_includes,$ac_x_libraries in #(
11798 no,* | *,no | *\'*)
11799 # Didn't find X, or a directory has "'" in its name.
11800 ac_cv_have_x="have_x=no";; #(
11802 # Record where we found X for the cache.
11803 ac_cv_have_x="have_x=yes\
11804 ac_x_includes='$ac_x_includes'\
11805 ac_x_libraries='$ac_x_libraries'"
11806 esac
11808 ;; #(
11809 *) have_x=yes;;
11810 esac
11811 eval "$ac_cv_have_x"
11812 fi # $with_x != no
11814 if test "$have_x" != yes; then
11815 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
11816 $as_echo "$have_x" >&6; }
11817 no_x=yes
11818 else
11819 # If each of the values was on the command line, it overrides each guess.
11820 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11821 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11822 # Update the cache value to reflect the command line values.
11823 ac_cv_have_x="have_x=yes\
11824 ac_x_includes='$x_includes'\
11825 ac_x_libraries='$x_libraries'"
11826 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11827 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11831 x_cflags=
11832 for path in $x_libraries
11834 x_cflags="$x_cflags -L$path"
11835 done
11837 for path in $x_includes
11839 x_cflags="$x_cflags -I$path"
11840 done
11842 if test "x-$no_x" = "x-yes" ; then
11844 if test "x-$x11_hidd" != "x-auto" ; then
11845 { { $as_echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11846 $as_echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11847 { (exit 1); exit 1; }; }
11850 else
11851 x11_hidd_target=kernel-x11gfx-kobj
11852 ENABLE_X11=1
11854 # Check whether --enable-x11_shm was given.
11855 if test "${enable_x11_shm+set}" = set; then
11856 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11857 else
11858 x11_hidd_shm="auto"
11861 case "x-$x11_hidd_shm" in
11862 x-yes|x-no|x-auto) ;;
11863 *) x11_hidd_shm="auto" ;;
11864 esac
11866 have_xshm=no
11868 if test "x-$x11_hidd_shm" != "x-no" ; then
11871 for ac_header in sys/ipc.h
11873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11876 $as_echo_n "checking for $ac_header... " >&6; }
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878 $as_echo_n "(cached) " >&6
11880 ac_res=`eval 'as_val=${'$as_ac_Header'}
11881 $as_echo "$as_val"'`
11882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11883 $as_echo "$ac_res" >&6; }
11884 else
11885 # Is the header compilable?
11886 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11887 $as_echo_n "checking $ac_header usability... " >&6; }
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 $ac_includes_default
11895 #include <$ac_header>
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (ac_try="$ac_compile"
11899 case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902 esac
11903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11904 $as_echo "$ac_try_echo") >&5
11905 (eval "$ac_compile") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest.$ac_objext; then
11915 ac_header_compiler=yes
11916 else
11917 $as_echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_header_compiler=no
11923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11925 $as_echo "$ac_header_compiler" >&6; }
11927 # Is the header present?
11928 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11929 $as_echo_n "checking $ac_header presence... " >&6; }
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 #include <$ac_header>
11937 _ACEOF
11938 if { (ac_try="$ac_cpp conftest.$ac_ext"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942 esac
11943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11944 $as_echo "$ac_try_echo") >&5
11945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } >/dev/null && {
11952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11953 test ! -s conftest.err
11954 }; then
11955 ac_header_preproc=yes
11956 else
11957 $as_echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 ac_header_preproc=no
11963 rm -f conftest.err conftest.$ac_ext
11964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11965 $as_echo "$ac_header_preproc" >&6; }
11967 # So? What about this header?
11968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11969 yes:no: )
11970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11971 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11973 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11974 ac_header_preproc=yes
11976 no:yes:* )
11977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11978 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11980 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11982 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11984 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11986 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11988 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11991 esac
11992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 $as_echo_n "checking for $ac_header... " >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 $as_echo_n "(cached) " >&6
11996 else
11997 eval "$as_ac_Header=\$ac_header_preproc"
11999 ac_res=`eval 'as_val=${'$as_ac_Header'}
12000 $as_echo "$as_val"'`
12001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12002 $as_echo "$ac_res" >&6; }
12005 as_val=`eval 'as_val=${'$as_ac_Header'}
12006 $as_echo "$as_val"'`
12007 if test "x$as_val" = x""yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12010 _ACEOF
12014 done
12017 for ac_header in sys/shm.h
12019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 $as_echo_n "checking for $ac_header... " >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 $as_echo_n "(cached) " >&6
12026 ac_res=`eval 'as_val=${'$as_ac_Header'}
12027 $as_echo "$as_val"'`
12028 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12029 $as_echo "$ac_res" >&6; }
12030 else
12031 # Is the header compilable?
12032 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12033 $as_echo_n "checking $ac_header usability... " >&6; }
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 #include <$ac_header>
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048 esac
12049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12050 $as_echo "$ac_try_echo") >&5
12051 (eval "$ac_compile") 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest.$ac_objext; then
12061 ac_header_compiler=yes
12062 else
12063 $as_echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_header_compiler=no
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 $as_echo "$ac_header_compiler" >&6; }
12073 # Is the header present?
12074 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 $as_echo_n "checking $ac_header presence... " >&6; }
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <$ac_header>
12083 _ACEOF
12084 if { (ac_try="$ac_cpp conftest.$ac_ext"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088 esac
12089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } >/dev/null && {
12098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 }; then
12101 ac_header_preproc=yes
12102 else
12103 $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_header_preproc=no
12109 rm -f conftest.err conftest.$ac_ext
12110 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 $as_echo "$ac_header_preproc" >&6; }
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12115 yes:no: )
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12120 ac_header_preproc=yes
12122 no:yes:* )
12123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12124 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12128 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12130 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12134 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12137 esac
12138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12139 $as_echo_n "checking for $ac_header... " >&6; }
12140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12141 $as_echo_n "(cached) " >&6
12142 else
12143 eval "$as_ac_Header=\$ac_header_preproc"
12145 ac_res=`eval 'as_val=${'$as_ac_Header'}
12146 $as_echo "$as_val"'`
12147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12148 $as_echo "$ac_res" >&6; }
12151 as_val=`eval 'as_val=${'$as_ac_Header'}
12152 $as_echo "$as_val"'`
12153 if test "x$as_val" = x""yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12156 _ACEOF
12160 done
12163 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12165 save_cflags="$CFLAGS"
12166 CFLAGS="$CFLAGS $x_cflags"
12167 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12168 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
12169 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-lXext $LIBS"
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char XShmQueryExtension ();
12189 main ()
12191 return XShmQueryExtension ();
12193 return 0;
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203 $as_echo "$ac_try_echo") >&5
12204 (eval "$ac_link") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest$ac_exeext && {
12214 test "$cross_compiling" = yes ||
12215 $as_test_x conftest$ac_exeext
12216 }; then
12217 ac_cv_lib_Xext_XShmQueryExtension=yes
12218 else
12219 $as_echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_lib_Xext_XShmQueryExtension=no
12225 rm -rf conftest.dSYM
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12230 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12231 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12232 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then
12233 have_xshm=yes
12236 CFLAGS="$save_cflags"
12240 if test "x-$have_xshm" = "x-yes" ; then
12241 DO_XSHM_SUPPORT="1"
12242 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12243 { { $as_echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12244 $as_echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12245 { (exit 1); exit 1; }; }
12246 else
12247 DO_XSHM_SUPPORT="0"
12251 # Check whether --enable-x11_vidmode was given.
12252 if test "${enable_x11_vidmode+set}" = set; then
12253 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12254 else
12255 x11_hidd_vidmode="auto"
12258 case "x-$x11_hidd_vidmode" in
12259 x-yes|x-no|x-auto) ;;
12260 *) x11_hidd_vidmode="auto" ;;
12261 esac
12263 have_vidmode=no
12265 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12267 save_cflags="$CFLAGS"
12268 CFLAGS="$CFLAGS $x_cflags"
12269 { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12270 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
12271 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-lXxf86vm $LIBS"
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 char XF86VidModeQueryExtension ();
12291 main ()
12293 return XF86VidModeQueryExtension ();
12295 return 0;
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303 esac
12304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12305 $as_echo "$ac_try_echo") >&5
12306 (eval "$ac_link") 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
12310 cat conftest.err >&5
12311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } && {
12313 test -z "$ac_c_werror_flag" ||
12314 test ! -s conftest.err
12315 } && test -s conftest$ac_exeext && {
12316 test "$cross_compiling" = yes ||
12317 $as_test_x conftest$ac_exeext
12318 }; then
12319 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12320 else
12321 $as_echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12327 rm -rf conftest.dSYM
12328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12333 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12334 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
12335 have_vidmode=yes
12338 CFLAGS="$save_cflags"
12341 if test "x-$have_vidmode" = "x-yes" ; then
12342 DO_VIDMODE_SUPPORT="1"
12343 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12344 { { $as_echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12345 $as_echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12346 { (exit 1); exit 1; }; }
12347 else
12348 DO_VIDMODE_SUPPORT="0"
12352 aros_host_x11_includes=$x_includes
12353 aros_host_x11_libdirs=$x_libraries
12357 # Check whether --enable-sdl_hidd was given.
12358 if test "${enable_sdl_hidd+set}" = set; then
12359 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12360 else
12361 sdl_hidd="auto"
12364 case "x-$sdl_hidd" in
12365 x-yes|x-no|x-auto) ;;
12366 *) sdl_hidd="auto" ;;
12367 esac
12369 if test "x-$sdl_hidd" != "x-no" ; then
12372 # Check whether --with-sdl-prefix was given.
12373 if test "${with_sdl_prefix+set}" = set; then
12374 withval=$with_sdl_prefix; sdl_prefix="$withval"
12375 else
12376 sdl_prefix=""
12380 # Check whether --with-sdl-exec-prefix was given.
12381 if test "${with_sdl_exec_prefix+set}" = set; then
12382 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12383 else
12384 sdl_exec_prefix=""
12387 # Check whether --enable-sdltest was given.
12388 if test "${enable_sdltest+set}" = set; then
12389 enableval=$enable_sdltest;
12390 else
12391 enable_sdltest=yes
12395 if test x$sdl_exec_prefix != x ; then
12396 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12397 if test x${SDL_CONFIG+set} != xset ; then
12398 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12401 if test x$sdl_prefix != x ; then
12402 sdl_args="$sdl_args --prefix=$sdl_prefix"
12403 if test x${SDL_CONFIG+set} != xset ; then
12404 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12408 if test "x$prefix" != xNONE; then
12409 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12411 # Extract the first word of "sdl-config", so it can be a program name with args.
12412 set dummy sdl-config; ac_word=$2
12413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12416 $as_echo_n "(cached) " >&6
12417 else
12418 case $SDL_CONFIG in
12419 [\\/]* | ?:[\\/]*)
12420 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12434 done
12435 done
12436 IFS=$as_save_IFS
12438 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12440 esac
12442 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12443 if test -n "$SDL_CONFIG"; then
12444 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12445 $as_echo "$SDL_CONFIG" >&6; }
12446 else
12447 { $as_echo "$as_me:$LINENO: result: no" >&5
12448 $as_echo "no" >&6; }
12452 min_sdl_version=1.2.10
12453 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12454 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12455 no_sdl=""
12456 if test "$SDL_CONFIG" = "no" ; then
12457 no_sdl=yes
12458 else
12459 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12460 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12462 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12463 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12464 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12466 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12468 if test "x$enable_sdltest" = "xyes" ; then
12469 ac_save_CFLAGS="$CFLAGS"
12470 ac_save_CXXFLAGS="$CXXFLAGS"
12471 ac_save_LIBS="$LIBS"
12472 CFLAGS="$CFLAGS $SDL_CFLAGS"
12473 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12474 LIBS="$LIBS $SDL_LIBS"
12475 rm -f conf.sdltest
12476 if test "$cross_compiling" = yes; then
12477 echo $ac_n "cross compiling; assumed OK... $ac_c"
12478 else
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 #include <stdio.h>
12487 #include <stdlib.h>
12488 #include <string.h>
12489 #include "SDL.h"
12491 char*
12492 my_strdup (char *str)
12494 char *new_str;
12496 if (str)
12498 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12499 strcpy (new_str, str);
12501 else
12502 new_str = NULL;
12504 return new_str;
12507 int main (int argc, char *argv[])
12509 int major, minor, micro;
12510 char *tmp_version;
12512 /* This hangs on some systems (?)
12513 system ("touch conf.sdltest");
12515 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12517 /* HP/UX 9 (%@#!) writes to sscanf strings */
12518 tmp_version = my_strdup("$min_sdl_version");
12519 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12520 printf("%s, bad version string\n", "$min_sdl_version");
12521 exit(1);
12524 if (($sdl_major_version > major) ||
12525 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12526 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12528 return 0;
12530 else
12532 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12533 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12534 printf("*** best to upgrade to the required version.\n");
12535 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12536 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12537 printf("*** config.cache before re-running configure\n");
12538 return 1;
12543 _ACEOF
12544 rm -f conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12551 $as_echo "$ac_try_echo") >&5
12552 (eval "$ac_link") 2>&5
12553 ac_status=$?
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559 esac
12560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12561 $as_echo "$ac_try_echo") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12567 else
12568 $as_echo "$as_me: program exited with status $ac_status" >&5
12569 $as_echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ( exit $ac_status )
12573 no_sdl=yes
12575 rm -rf conftest.dSYM
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12580 CFLAGS="$ac_save_CFLAGS"
12581 CXXFLAGS="$ac_save_CXXFLAGS"
12582 LIBS="$ac_save_LIBS"
12585 if test "x$no_sdl" = x ; then
12586 { $as_echo "$as_me:$LINENO: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 have_sdl="yes"
12589 else
12590 { $as_echo "$as_me:$LINENO: result: no" >&5
12591 $as_echo "no" >&6; }
12592 if test "$SDL_CONFIG" = "no" ; then
12593 echo "*** The sdl-config script installed by SDL could not be found"
12594 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12595 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12596 echo "*** full path to sdl-config."
12597 else
12598 if test -f conf.sdltest ; then
12600 else
12601 echo "*** Could not run SDL test program, checking why..."
12602 CFLAGS="$CFLAGS $SDL_CFLAGS"
12603 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12604 LIBS="$LIBS $SDL_LIBS"
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h. */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12612 #include <stdio.h>
12613 #include "SDL.h"
12615 int main(int argc, char *argv[])
12616 { return 0; }
12617 #undef main
12618 #define main K_and_R_C_main
12621 main ()
12623 return 0;
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12635 $as_echo "$ac_try_echo") >&5
12636 (eval "$ac_link") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest$ac_exeext && {
12646 test "$cross_compiling" = yes ||
12647 $as_test_x conftest$ac_exeext
12648 }; then
12649 echo "*** The test program compiled, but did not run. This usually means"
12650 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12651 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12652 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12653 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12654 echo "*** is required on your system"
12655 echo "***"
12656 echo "*** If you have an old version installed, it is best to remove it, although"
12657 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12658 else
12659 $as_echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 echo "*** The test program failed to compile or link. See the file config.log for the"
12663 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12664 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12665 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12668 rm -rf conftest.dSYM
12669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12670 conftest$ac_exeext conftest.$ac_ext
12671 CFLAGS="$ac_save_CFLAGS"
12672 CXXFLAGS="$ac_save_CXXFLAGS"
12673 LIBS="$ac_save_LIBS"
12676 SDL_CFLAGS=""
12677 SDL_LIBS=""
12678 have_sdl="no"
12682 rm -f conf.sdltest
12685 if test "x-$have_sdl" != "x-yes" ; then
12687 if test "x-$sdl_hidd" != "x-auto" ; then
12688 { { $as_echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12689 $as_echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12690 { (exit 1); exit 1; }; }
12693 else
12694 sdl_hidd_target=kernel-hidd-sdl
12695 aros_host_sdl_cflags=SDL_CFLAGS
12696 aros_host_sdl_libs=SDL_LIBS
12703 { $as_echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12704 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12705 # Check whether --enable-dbus was given.
12706 if test "${enable_dbus+set}" = set; then
12707 enableval=$enable_dbus; dbus="yes"
12708 else
12709 dbus="no"
12712 if test "$dbus" = "yes" ; then
12713 ENABLE_DBUS=1
12714 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12715 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12716 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12717 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12718 else
12719 ENABLE_DBUS=0
12721 { $as_echo "$as_me:$LINENO: result: $dbus" >&5
12722 $as_echo "$dbus" >&6; }
12726 # Generic
12736 # Host related
12759 # Target Related
12806 # Graphics Related
12821 # Native version related
12824 # Palm native version related
12827 # Unix/Hosted version related
12830 # DBUS related
12837 #X11 related
12840 # Debug related
12846 # Collect-aros stuff: "-ius" to ignore undefined symbols
12849 # C compiler related
12852 case "$aros_flavour" in
12853 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12854 aros_flavour="emulation" ;;
12855 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12856 aros_flavour="emulation" ;;
12857 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12858 aros_flavour="standalone";;
12859 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12860 aros_flavour="native" ;;
12861 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12862 aros_flavour="native" ;;
12863 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12864 aros_flavour="linklib" ;;
12865 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12866 aros_flavour="palmnative" ;;
12867 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12868 aros_flavour="mac68knative" ;;
12869 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12870 aros_flavour="ppcnative" ;;
12871 esac
12873 if test ! -d ${aros_inc_dir} ; then
12874 ${MKDIR} ${aros_inc_dir}
12876 if test ! -d ${aros_geninc_dir} ; then
12877 ${MKDIR} ${aros_geninc_dir}
12879 if test ! -d ${aros_hostcfg_dir} ; then
12880 ${MKDIR} ${aros_hostcfg_dir}
12882 if test ! -d ${aros_targetcfg_dir} ; then
12883 ${MKDIR} ${aros_targetcfg_dir}
12885 if test ! -d ${aros_tools_dir} ; then
12886 ${MKDIR} ${aros_tools_dir}
12888 if test ! -d ${aros_scripts_dir} ; then
12889 ${MKDIR} ${aros_scripts_dir}
12892 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12895 ac_config_commands="$ac_config_commands compiler_executable"
12897 ac_config_commands="$ac_config_commands genshared_executable"
12899 ac_config_commands="$ac_config_commands genmf_executable"
12902 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"
12905 cat >confcache <<\_ACEOF
12906 # This file is a shell script that caches the results of configure
12907 # tests run on this system so they can be shared between configure
12908 # scripts and configure runs, see configure's option --config-cache.
12909 # It is not useful on other systems. If it contains results you don't
12910 # want to keep, you may remove or edit it.
12912 # config.status only pays attention to the cache file if you give it
12913 # the --recheck option to rerun configure.
12915 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12916 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12917 # following values.
12919 _ACEOF
12921 # The following way of writing the cache mishandles newlines in values,
12922 # but we know of no workaround that is simple, portable, and efficient.
12923 # So, we kill variables containing newlines.
12924 # Ultrix sh set writes to stderr and can't be redirected directly,
12925 # and sets the high bit in the cache file unless we assign to the vars.
12927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12928 eval ac_val=\$$ac_var
12929 case $ac_val in #(
12930 *${as_nl}*)
12931 case $ac_var in #(
12932 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12934 esac
12935 case $ac_var in #(
12936 _ | IFS | as_nl) ;; #(
12937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12938 *) $as_unset $ac_var ;;
12939 esac ;;
12940 esac
12941 done
12943 (set) 2>&1 |
12944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12945 *${as_nl}ac_space=\ *)
12946 # `set' does not quote correctly, so add quotes (double-quote
12947 # substitution turns \\\\ into \\, and sed turns \\ into \).
12948 sed -n \
12949 "s/'/'\\\\''/g;
12950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12951 ;; #(
12953 # `set' quotes correctly as required by POSIX, so do not add quotes.
12954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12956 esac |
12957 sort
12959 sed '
12960 /^ac_cv_env_/b end
12961 t clear
12962 :clear
12963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12964 t end
12965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12966 :end' >>confcache
12967 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12968 if test -w "$cache_file"; then
12969 test "x$cache_file" != "x/dev/null" &&
12970 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12971 $as_echo "$as_me: updating cache $cache_file" >&6;}
12972 cat confcache >$cache_file
12973 else
12974 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12978 rm -f confcache
12980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12981 # Let make expand exec_prefix.
12982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12984 DEFS=-DHAVE_CONFIG_H
12986 ac_libobjs=
12987 ac_ltlibobjs=
12988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12989 # 1. Remove the extension, and $U if already installed.
12990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12993 # will be set to the directory where LIBOBJS objects are built.
12994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12996 done
12997 LIBOBJS=$ac_libobjs
12999 LTLIBOBJS=$ac_ltlibobjs
13003 : ${CONFIG_STATUS=./config.status}
13004 ac_write_fail=0
13005 ac_clean_files_save=$ac_clean_files
13006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13007 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13009 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13010 #! $SHELL
13011 # Generated by $as_me.
13012 # Run this file to recreate the current configuration.
13013 # Compiler output produced by configure, useful for debugging
13014 # configure, is in config.log if it exists.
13016 debug=false
13017 ac_cs_recheck=false
13018 ac_cs_silent=false
13019 SHELL=\${CONFIG_SHELL-$SHELL}
13020 _ACEOF
13022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13023 ## --------------------- ##
13024 ## M4sh Initialization. ##
13025 ## --------------------- ##
13027 # Be more Bourne compatible
13028 DUALCASE=1; export DUALCASE # for MKS sh
13029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13030 emulate sh
13031 NULLCMD=:
13032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13033 # is contrary to our usage. Disable this feature.
13034 alias -g '${1+"$@"}'='"$@"'
13035 setopt NO_GLOB_SUBST
13036 else
13037 case `(set -o) 2>/dev/null` in
13038 *posix*) set -o posix ;;
13039 esac
13046 # PATH needs CR
13047 # Avoid depending upon Character Ranges.
13048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13051 as_cr_digits='0123456789'
13052 as_cr_alnum=$as_cr_Letters$as_cr_digits
13054 as_nl='
13056 export as_nl
13057 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13058 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13059 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13061 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13062 as_echo='printf %s\n'
13063 as_echo_n='printf %s'
13064 else
13065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13067 as_echo_n='/usr/ucb/echo -n'
13068 else
13069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13070 as_echo_n_body='eval
13071 arg=$1;
13072 case $arg in
13073 *"$as_nl"*)
13074 expr "X$arg" : "X\\(.*\\)$as_nl";
13075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13076 esac;
13077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13079 export as_echo_n_body
13080 as_echo_n='sh -c $as_echo_n_body as_echo'
13082 export as_echo_body
13083 as_echo='sh -c $as_echo_body as_echo'
13086 # The user is always right.
13087 if test "${PATH_SEPARATOR+set}" != set; then
13088 PATH_SEPARATOR=:
13089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13091 PATH_SEPARATOR=';'
13095 # Support unset when possible.
13096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13097 as_unset=unset
13098 else
13099 as_unset=false
13103 # IFS
13104 # We need space, tab and new line, in precisely that order. Quoting is
13105 # there to prevent editors from complaining about space-tab.
13106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13107 # splitting by setting IFS to empty value.)
13108 IFS=" "" $as_nl"
13110 # Find who we are. Look in the path if we contain no directory separator.
13111 case $0 in
13112 *[\\/]* ) as_myself=$0 ;;
13113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13119 done
13120 IFS=$as_save_IFS
13123 esac
13124 # We did not find ourselves, most probably we were run as `sh COMMAND'
13125 # in which case we are not to be found in the path.
13126 if test "x$as_myself" = x; then
13127 as_myself=$0
13129 if test ! -f "$as_myself"; then
13130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13131 { (exit 1); exit 1; }
13134 # Work around bugs in pre-3.0 UWIN ksh.
13135 for as_var in ENV MAIL MAILPATH
13136 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13137 done
13138 PS1='$ '
13139 PS2='> '
13140 PS4='+ '
13142 # NLS nuisances.
13143 LC_ALL=C
13144 export LC_ALL
13145 LANGUAGE=C
13146 export LANGUAGE
13148 # Required to use basename.
13149 if expr a : '\(a\)' >/dev/null 2>&1 &&
13150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13151 as_expr=expr
13152 else
13153 as_expr=false
13156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13157 as_basename=basename
13158 else
13159 as_basename=false
13163 # Name of the executable.
13164 as_me=`$as_basename -- "$0" ||
13165 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13166 X"$0" : 'X\(//\)$' \| \
13167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13168 $as_echo X/"$0" |
13169 sed '/^.*\/\([^/][^/]*\)\/*$/{
13170 s//\1/
13173 /^X\/\(\/\/\)$/{
13174 s//\1/
13177 /^X\/\(\/\).*/{
13178 s//\1/
13181 s/.*/./; q'`
13183 # CDPATH.
13184 $as_unset CDPATH
13188 as_lineno_1=$LINENO
13189 as_lineno_2=$LINENO
13190 test "x$as_lineno_1" != "x$as_lineno_2" &&
13191 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13193 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13194 # uniformly replaced by the line number. The first 'sed' inserts a
13195 # line-number line after each line using $LINENO; the second 'sed'
13196 # does the real work. The second script uses 'N' to pair each
13197 # line-number line with the line containing $LINENO, and appends
13198 # trailing '-' during substitution so that $LINENO is not a special
13199 # case at line end.
13200 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13201 # scripts with optimization help from Paolo Bonzini. Blame Lee
13202 # E. McMahon (1931-1989) for sed's syntax. :-)
13203 sed -n '
13205 /[$]LINENO/=
13206 ' <$as_myself |
13207 sed '
13208 s/[$]LINENO.*/&-/
13209 t lineno
13211 :lineno
13213 :loop
13214 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13215 t loop
13216 s/-\n.*//
13217 ' >$as_me.lineno &&
13218 chmod +x "$as_me.lineno" ||
13219 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13220 { (exit 1); exit 1; }; }
13222 # Don't try to exec as it changes $[0], causing all sort of problems
13223 # (the dirname of $[0] is not the place where we might find the
13224 # original and so on. Autoconf is especially sensitive to this).
13225 . "./$as_me.lineno"
13226 # Exit status is that of the last command.
13227 exit
13231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13232 as_dirname=dirname
13233 else
13234 as_dirname=false
13237 ECHO_C= ECHO_N= ECHO_T=
13238 case `echo -n x` in
13239 -n*)
13240 case `echo 'x\c'` in
13241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13242 *) ECHO_C='\c';;
13243 esac;;
13245 ECHO_N='-n';;
13246 esac
13247 if expr a : '\(a\)' >/dev/null 2>&1 &&
13248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13249 as_expr=expr
13250 else
13251 as_expr=false
13254 rm -f conf$$ conf$$.exe conf$$.file
13255 if test -d conf$$.dir; then
13256 rm -f conf$$.dir/conf$$.file
13257 else
13258 rm -f conf$$.dir
13259 mkdir conf$$.dir 2>/dev/null
13261 if (echo >conf$$.file) 2>/dev/null; then
13262 if ln -s conf$$.file conf$$ 2>/dev/null; then
13263 as_ln_s='ln -s'
13264 # ... but there are two gotchas:
13265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13267 # In both cases, we have to default to `cp -p'.
13268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13269 as_ln_s='cp -p'
13270 elif ln conf$$.file conf$$ 2>/dev/null; then
13271 as_ln_s=ln
13272 else
13273 as_ln_s='cp -p'
13275 else
13276 as_ln_s='cp -p'
13278 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13279 rmdir conf$$.dir 2>/dev/null
13281 if mkdir -p . 2>/dev/null; then
13282 as_mkdir_p=:
13283 else
13284 test -d ./-p && rmdir ./-p
13285 as_mkdir_p=false
13288 if test -x / >/dev/null 2>&1; then
13289 as_test_x='test -x'
13290 else
13291 if ls -dL / >/dev/null 2>&1; then
13292 as_ls_L_option=L
13293 else
13294 as_ls_L_option=
13296 as_test_x='
13297 eval sh -c '\''
13298 if test -d "$1"; then
13299 test -d "$1/.";
13300 else
13301 case $1 in
13302 -*)set "./$1";;
13303 esac;
13304 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13305 ???[sx]*):;;*)false;;esac;fi
13306 '\'' sh
13309 as_executable_p=$as_test_x
13311 # Sed expression to map a string onto a valid CPP name.
13312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13314 # Sed expression to map a string onto a valid variable name.
13315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13318 exec 6>&1
13320 # Save the log message, to keep $[0] and so on meaningful, and to
13321 # report actual input values of CONFIG_FILES etc. instead of their
13322 # values after options handling.
13323 ac_log="
13324 This file was extended by $as_me, which was
13325 generated by GNU Autoconf 2.63. Invocation command line was
13327 CONFIG_FILES = $CONFIG_FILES
13328 CONFIG_HEADERS = $CONFIG_HEADERS
13329 CONFIG_LINKS = $CONFIG_LINKS
13330 CONFIG_COMMANDS = $CONFIG_COMMANDS
13331 $ $0 $@
13333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13336 _ACEOF
13338 case $ac_config_files in *"
13339 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13340 esac
13342 case $ac_config_headers in *"
13343 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13344 esac
13347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13348 # Files that config.status was made for.
13349 config_files="$ac_config_files"
13350 config_headers="$ac_config_headers"
13351 config_commands="$ac_config_commands"
13353 _ACEOF
13355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356 ac_cs_usage="\
13357 \`$as_me' instantiates files from templates according to the
13358 current configuration.
13360 Usage: $0 [OPTION]... [FILE]...
13362 -h, --help print this help, then exit
13363 -V, --version print version number and configuration settings, then exit
13364 -q, --quiet, --silent
13365 do not print progress messages
13366 -d, --debug don't remove temporary files
13367 --recheck update $as_me by reconfiguring in the same conditions
13368 --file=FILE[:TEMPLATE]
13369 instantiate the configuration file FILE
13370 --header=FILE[:TEMPLATE]
13371 instantiate the configuration header FILE
13373 Configuration files:
13374 $config_files
13376 Configuration headers:
13377 $config_headers
13379 Configuration commands:
13380 $config_commands
13382 Report bugs to <bug-autoconf@gnu.org>."
13384 _ACEOF
13385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13386 ac_cs_version="\\
13387 config.status
13388 configured by $0, generated by GNU Autoconf 2.63,
13389 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13391 Copyright (C) 2008 Free Software Foundation, Inc.
13392 This config.status script is free software; the Free Software Foundation
13393 gives unlimited permission to copy, distribute and modify it."
13395 ac_pwd='$ac_pwd'
13396 srcdir='$srcdir'
13397 test -n "\$AWK" || AWK=awk
13398 _ACEOF
13400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 # The default lists apply if the user does not specify any file.
13402 ac_need_defaults=:
13403 while test $# != 0
13405 case $1 in
13406 --*=*)
13407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13409 ac_shift=:
13412 ac_option=$1
13413 ac_optarg=$2
13414 ac_shift=shift
13416 esac
13418 case $ac_option in
13419 # Handling of the options.
13420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13421 ac_cs_recheck=: ;;
13422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13423 $as_echo "$ac_cs_version"; exit ;;
13424 --debug | --debu | --deb | --de | --d | -d )
13425 debug=: ;;
13426 --file | --fil | --fi | --f )
13427 $ac_shift
13428 case $ac_optarg in
13429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13430 esac
13431 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13432 ac_need_defaults=false;;
13433 --header | --heade | --head | --hea )
13434 $ac_shift
13435 case $ac_optarg in
13436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13437 esac
13438 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13439 ac_need_defaults=false;;
13440 --he | --h)
13441 # Conflict between --help and --header
13442 { $as_echo "$as_me: error: ambiguous option: $1
13443 Try \`$0 --help' for more information." >&2
13444 { (exit 1); exit 1; }; };;
13445 --help | --hel | -h )
13446 $as_echo "$ac_cs_usage"; exit ;;
13447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13448 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13449 ac_cs_silent=: ;;
13451 # This is an error.
13452 -*) { $as_echo "$as_me: error: unrecognized option: $1
13453 Try \`$0 --help' for more information." >&2
13454 { (exit 1); exit 1; }; } ;;
13456 *) ac_config_targets="$ac_config_targets $1"
13457 ac_need_defaults=false ;;
13459 esac
13460 shift
13461 done
13463 ac_configure_extra_args=
13465 if $ac_cs_silent; then
13466 exec 6>/dev/null
13467 ac_configure_extra_args="$ac_configure_extra_args --silent"
13470 _ACEOF
13471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472 if \$ac_cs_recheck; then
13473 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13474 shift
13475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13476 CONFIG_SHELL='$SHELL'
13477 export CONFIG_SHELL
13478 exec "\$@"
13481 _ACEOF
13482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13483 exec 5>>config.log
13485 echo
13486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13487 ## Running $as_me. ##
13488 _ASBOX
13489 $as_echo "$ac_log"
13490 } >&5
13492 _ACEOF
13493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13495 # INIT-COMMANDS
13498 aros_host_exe_suffix=${aros_host_exe_suffix}
13499 aros_tools_dir=${aros_tools_dir}
13500 aros_target_cpu=${aros_target_cpu}
13501 aros_target_arch=${aros_target_arch}
13502 aros_target_suffix=${aros_target_suffix}
13503 aros_target_nm_ln=${aros_target_nm_ln}
13504 aros_target_as_ln=${aros_target_as_ln}
13505 aros_target_ar_ln=${aros_target_ar_ln}
13506 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13507 aros_target_objdump_ln=${aros_target_objdump_ln}
13508 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13509 aros_target_strip_ln=${aros_target_strip_ln}
13512 aros_scripts_dir=${aros_scripts_dir}
13514 aros_tools_dir=${aros_tools_dir}
13517 _ACEOF
13519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13521 # Handling of arguments.
13522 for ac_config_target in $ac_config_targets
13524 case $ac_config_target in
13525 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13526 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13527 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13528 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13529 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13530 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13531 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13532 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13533 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13534 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13535 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13536 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13537 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13538 "${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" ;;
13539 "${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" ;;
13540 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13541 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13542 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13544 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13545 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13546 { (exit 1); exit 1; }; };;
13547 esac
13548 done
13551 # If the user did not use the arguments to specify the items to instantiate,
13552 # then the envvar interface is used. Set only those that are not.
13553 # We use the long form for the default assignment because of an extremely
13554 # bizarre bug on SunOS 4.1.3.
13555 if $ac_need_defaults; then
13556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13561 # Have a temporary directory for convenience. Make it in the build tree
13562 # simply because there is no reason against having it here, and in addition,
13563 # creating and moving files from /tmp can sometimes cause problems.
13564 # Hook for its removal unless debugging.
13565 # Note that there is a small window in which the directory will not be cleaned:
13566 # after its creation but before its name has been assigned to `$tmp'.
13567 $debug ||
13569 tmp=
13570 trap 'exit_status=$?
13571 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13573 trap '{ (exit 1); exit 1; }' 1 2 13 15
13575 # Create a (secure) tmp directory for tmp files.
13578 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13579 test -n "$tmp" && test -d "$tmp"
13580 } ||
13582 tmp=./conf$$-$RANDOM
13583 (umask 077 && mkdir "$tmp")
13584 } ||
13586 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13587 { (exit 1); exit 1; }
13590 # Set up the scripts for CONFIG_FILES section.
13591 # No need to generate them if there are no CONFIG_FILES.
13592 # This happens for instance with `./config.status config.h'.
13593 if test -n "$CONFIG_FILES"; then
13596 ac_cr='
13598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13600 ac_cs_awk_cr='\\r'
13601 else
13602 ac_cs_awk_cr=$ac_cr
13605 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13606 _ACEOF
13610 echo "cat >conf$$subs.awk <<_ACEOF" &&
13611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13612 echo "_ACEOF"
13613 } >conf$$subs.sh ||
13614 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13615 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13616 { (exit 1); exit 1; }; }
13617 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13618 ac_delim='%!_!# '
13619 for ac_last_try in false false false false false :; do
13620 . ./conf$$subs.sh ||
13621 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13622 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13623 { (exit 1); exit 1; }; }
13625 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13626 if test $ac_delim_n = $ac_delim_num; then
13627 break
13628 elif $ac_last_try; then
13629 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13630 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13631 { (exit 1); exit 1; }; }
13632 else
13633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13635 done
13636 rm -f conf$$subs.sh
13638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13639 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13640 _ACEOF
13641 sed -n '
13643 s/^/S["/; s/!.*/"]=/
13646 s/^[^!]*!//
13647 :repl
13648 t repl
13649 s/'"$ac_delim"'$//
13650 t delim
13653 s/\(.\{148\}\).*/\1/
13654 t more1
13655 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13658 b repl
13659 :more1
13660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13663 s/.\{148\}//
13664 t nl
13665 :delim
13667 s/\(.\{148\}\).*/\1/
13668 t more2
13669 s/["\\]/\\&/g; s/^/"/; s/$/"/
13672 :more2
13673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13676 s/.\{148\}//
13677 t delim
13678 ' <conf$$subs.awk | sed '
13679 /^[^""]/{
13681 s/\n//
13683 ' >>$CONFIG_STATUS || ac_write_fail=1
13684 rm -f conf$$subs.awk
13685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13686 _ACAWK
13687 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13688 for (key in S) S_is_set[key] = 1
13689 FS = "\a"
13693 line = $ 0
13694 nfields = split(line, field, "@")
13695 substed = 0
13696 len = length(field[1])
13697 for (i = 2; i < nfields; i++) {
13698 key = field[i]
13699 keylen = length(key)
13700 if (S_is_set[key]) {
13701 value = S[key]
13702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13703 len += length(value) + length(field[++i])
13704 substed = 1
13705 } else
13706 len += 1 + keylen
13709 print line
13712 _ACAWK
13713 _ACEOF
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13717 else
13719 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13720 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13721 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13722 { (exit 1); exit 1; }; }
13723 _ACEOF
13725 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13726 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13727 # trailing colons and then remove the whole line if VPATH becomes empty
13728 # (actually we leave an empty line to preserve line numbers).
13729 if test "x$srcdir" = x.; then
13730 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13731 s/:*\$(srcdir):*/:/
13732 s/:*\${srcdir}:*/:/
13733 s/:*@srcdir@:*/:/
13734 s/^\([^=]*=[ ]*\):*/\1/
13735 s/:*$//
13736 s/^[^=]*=[ ]*$//
13740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13741 fi # test -n "$CONFIG_FILES"
13743 # Set up the scripts for CONFIG_HEADERS section.
13744 # No need to generate them if there are no CONFIG_HEADERS.
13745 # This happens for instance with `./config.status Makefile'.
13746 if test -n "$CONFIG_HEADERS"; then
13747 cat >"$tmp/defines.awk" <<\_ACAWK ||
13748 BEGIN {
13749 _ACEOF
13751 # Transform confdefs.h into an awk script `defines.awk', embedded as
13752 # here-document in config.status, that substitutes the proper values into
13753 # config.h.in to produce config.h.
13755 # Create a delimiter string that does not exist in confdefs.h, to ease
13756 # handling of long lines.
13757 ac_delim='%!_!# '
13758 for ac_last_try in false false :; do
13759 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13760 if test -z "$ac_t"; then
13761 break
13762 elif $ac_last_try; then
13763 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13764 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13765 { (exit 1); exit 1; }; }
13766 else
13767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13769 done
13771 # For the awk script, D is an array of macro values keyed by name,
13772 # likewise P contains macro parameters if any. Preserve backslash
13773 # newline sequences.
13775 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13776 sed -n '
13777 s/.\{148\}/&'"$ac_delim"'/g
13778 t rset
13779 :rset
13780 s/^[ ]*#[ ]*define[ ][ ]*/ /
13781 t def
13783 :def
13784 s/\\$//
13785 t bsnl
13786 s/["\\]/\\&/g
13787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13788 D["\1"]=" \3"/p
13789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13791 :bsnl
13792 s/["\\]/\\&/g
13793 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13794 D["\1"]=" \3\\\\\\n"\\/p
13795 t cont
13796 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13797 t cont
13799 :cont
13801 s/.\{148\}/&'"$ac_delim"'/g
13802 t clear
13803 :clear
13804 s/\\$//
13805 t bsnlc
13806 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13808 :bsnlc
13809 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13810 b cont
13811 ' <confdefs.h | sed '
13812 s/'"$ac_delim"'/"\\\
13813 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 for (key in D) D_is_set[key] = 1
13817 FS = "\a"
13819 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13820 line = \$ 0
13821 split(line, arg, " ")
13822 if (arg[1] == "#") {
13823 defundef = arg[2]
13824 mac1 = arg[3]
13825 } else {
13826 defundef = substr(arg[1], 2)
13827 mac1 = arg[2]
13829 split(mac1, mac2, "(") #)
13830 macro = mac2[1]
13831 prefix = substr(line, 1, index(line, defundef) - 1)
13832 if (D_is_set[macro]) {
13833 # Preserve the white space surrounding the "#".
13834 print prefix "define", macro P[macro] D[macro]
13835 next
13836 } else {
13837 # Replace #undef with comments. This is necessary, for example,
13838 # in the case of _POSIX_SOURCE, which is predefined and required
13839 # on some systems where configure will not decide to define it.
13840 if (defundef == "undef") {
13841 print "/*", prefix defundef, macro, "*/"
13842 next
13846 { print }
13847 _ACAWK
13848 _ACEOF
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13851 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13852 { (exit 1); exit 1; }; }
13853 fi # test -n "$CONFIG_HEADERS"
13856 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13857 shift
13858 for ac_tag
13860 case $ac_tag in
13861 :[FHLC]) ac_mode=$ac_tag; continue;;
13862 esac
13863 case $ac_mode$ac_tag in
13864 :[FHL]*:*);;
13865 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13866 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13867 { (exit 1); exit 1; }; };;
13868 :[FH]-) ac_tag=-:-;;
13869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13870 esac
13871 ac_save_IFS=$IFS
13872 IFS=:
13873 set x $ac_tag
13874 IFS=$ac_save_IFS
13875 shift
13876 ac_file=$1
13877 shift
13879 case $ac_mode in
13880 :L) ac_source=$1;;
13881 :[FH])
13882 ac_file_inputs=
13883 for ac_f
13885 case $ac_f in
13886 -) ac_f="$tmp/stdin";;
13887 *) # Look for the file first in the build tree, then in the source tree
13888 # (if the path is not absolute). The absolute path cannot be DOS-style,
13889 # because $ac_f cannot contain `:'.
13890 test -f "$ac_f" ||
13891 case $ac_f in
13892 [\\/$]*) false;;
13893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13894 esac ||
13895 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13896 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13897 { (exit 1); exit 1; }; };;
13898 esac
13899 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13900 ac_file_inputs="$ac_file_inputs '$ac_f'"
13901 done
13903 # Let's still pretend it is `configure' which instantiates (i.e., don't
13904 # use $as_me), people would be surprised to read:
13905 # /* config.h. Generated by config.status. */
13906 configure_input='Generated from '`
13907 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13908 `' by configure.'
13909 if test x"$ac_file" != x-; then
13910 configure_input="$ac_file. $configure_input"
13911 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13912 $as_echo "$as_me: creating $ac_file" >&6;}
13914 # Neutralize special characters interpreted by sed in replacement strings.
13915 case $configure_input in #(
13916 *\&* | *\|* | *\\* )
13917 ac_sed_conf_input=`$as_echo "$configure_input" |
13918 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13919 *) ac_sed_conf_input=$configure_input;;
13920 esac
13922 case $ac_tag in
13923 *:-:* | *:-) cat >"$tmp/stdin" \
13924 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13925 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13926 { (exit 1); exit 1; }; } ;;
13927 esac
13929 esac
13931 ac_dir=`$as_dirname -- "$ac_file" ||
13932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13933 X"$ac_file" : 'X\(//\)[^/]' \| \
13934 X"$ac_file" : 'X\(//\)$' \| \
13935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13936 $as_echo X"$ac_file" |
13937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13938 s//\1/
13941 /^X\(\/\/\)[^/].*/{
13942 s//\1/
13945 /^X\(\/\/\)$/{
13946 s//\1/
13949 /^X\(\/\).*/{
13950 s//\1/
13953 s/.*/./; q'`
13954 { as_dir="$ac_dir"
13955 case $as_dir in #(
13956 -*) as_dir=./$as_dir;;
13957 esac
13958 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13959 as_dirs=
13960 while :; do
13961 case $as_dir in #(
13962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13963 *) as_qdir=$as_dir;;
13964 esac
13965 as_dirs="'$as_qdir' $as_dirs"
13966 as_dir=`$as_dirname -- "$as_dir" ||
13967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13968 X"$as_dir" : 'X\(//\)[^/]' \| \
13969 X"$as_dir" : 'X\(//\)$' \| \
13970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13971 $as_echo X"$as_dir" |
13972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13973 s//\1/
13976 /^X\(\/\/\)[^/].*/{
13977 s//\1/
13980 /^X\(\/\/\)$/{
13981 s//\1/
13984 /^X\(\/\).*/{
13985 s//\1/
13988 s/.*/./; q'`
13989 test -d "$as_dir" && break
13990 done
13991 test -z "$as_dirs" || eval "mkdir $as_dirs"
13992 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13993 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13994 { (exit 1); exit 1; }; }; }
13995 ac_builddir=.
13997 case "$ac_dir" in
13998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14001 # A ".." for each directory in $ac_dir_suffix.
14002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14003 case $ac_top_builddir_sub in
14004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14006 esac ;;
14007 esac
14008 ac_abs_top_builddir=$ac_pwd
14009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14010 # for backward compatibility:
14011 ac_top_builddir=$ac_top_build_prefix
14013 case $srcdir in
14014 .) # We are building in place.
14015 ac_srcdir=.
14016 ac_top_srcdir=$ac_top_builddir_sub
14017 ac_abs_top_srcdir=$ac_pwd ;;
14018 [\\/]* | ?:[\\/]* ) # Absolute name.
14019 ac_srcdir=$srcdir$ac_dir_suffix;
14020 ac_top_srcdir=$srcdir
14021 ac_abs_top_srcdir=$srcdir ;;
14022 *) # Relative name.
14023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14024 ac_top_srcdir=$ac_top_build_prefix$srcdir
14025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14026 esac
14027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14030 case $ac_mode in
14033 # CONFIG_FILE
14036 _ACEOF
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 # If the template does not know about datarootdir, expand it.
14040 # FIXME: This hack should be removed a few years after 2.60.
14041 ac_datarootdir_hack=; ac_datarootdir_seen=
14043 ac_sed_dataroot='
14044 /datarootdir/ {
14048 /@datadir@/p
14049 /@docdir@/p
14050 /@infodir@/p
14051 /@localedir@/p
14052 /@mandir@/p
14054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14055 *datarootdir*) ac_datarootdir_seen=yes;;
14056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14057 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14059 _ACEOF
14060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14061 ac_datarootdir_hack='
14062 s&@datadir@&$datadir&g
14063 s&@docdir@&$docdir&g
14064 s&@infodir@&$infodir&g
14065 s&@localedir@&$localedir&g
14066 s&@mandir@&$mandir&g
14067 s&\\\${datarootdir}&$datarootdir&g' ;;
14068 esac
14069 _ACEOF
14071 # Neutralize VPATH when `$srcdir' = `.'.
14072 # Shell code in configure.ac might set extrasub.
14073 # FIXME: do we really want to maintain this feature?
14074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14075 ac_sed_extra="$ac_vpsub
14076 $extrasub
14077 _ACEOF
14078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14081 s|@configure_input@|$ac_sed_conf_input|;t t
14082 s&@top_builddir@&$ac_top_builddir_sub&;t t
14083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14084 s&@srcdir@&$ac_srcdir&;t t
14085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14086 s&@top_srcdir@&$ac_top_srcdir&;t t
14087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14088 s&@builddir@&$ac_builddir&;t t
14089 s&@abs_builddir@&$ac_abs_builddir&;t t
14090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14091 $ac_datarootdir_hack
14093 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14094 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14095 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14096 { (exit 1); exit 1; }; }
14098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14101 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14102 which seems to be undefined. Please make sure it is defined." >&5
14103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14104 which seems to be undefined. Please make sure it is defined." >&2;}
14106 rm -f "$tmp/stdin"
14107 case $ac_file in
14108 -) cat "$tmp/out" && rm -f "$tmp/out";;
14109 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14110 esac \
14111 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14112 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14113 { (exit 1); exit 1; }; }
14117 # CONFIG_HEADER
14119 if test x"$ac_file" != x-; then
14121 $as_echo "/* $configure_input */" \
14122 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14123 } >"$tmp/config.h" \
14124 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14125 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14126 { (exit 1); exit 1; }; }
14127 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14128 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14129 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14130 else
14131 rm -f "$ac_file"
14132 mv "$tmp/config.h" "$ac_file" \
14133 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14134 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14135 { (exit 1); exit 1; }; }
14137 else
14138 $as_echo "/* $configure_input */" \
14139 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14140 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14141 $as_echo "$as_me: error: could not create -" >&2;}
14142 { (exit 1); exit 1; }; }
14146 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14147 $as_echo "$as_me: executing $ac_file commands" >&6;}
14149 esac
14152 case $ac_file$ac_mode in
14153 "compiler_executable":C)
14154 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14155 mkdir -p $prefix
14156 prefix="${prefix}/${aros_target_cpu}-aros"
14157 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14159 echo ${prefix}
14160 echo ${prefix2}
14161 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14163 ln -sf ${prefix2}-gcc ${prefix}-gcc
14164 ln -sf ${prefix2}-ld ${prefix}-ld
14166 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14167 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14168 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14169 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14170 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14171 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14172 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14174 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14175 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14176 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14177 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14178 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14179 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14180 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14182 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14183 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14185 esac
14186 done # for ac_tag
14189 { (exit 0); exit 0; }
14190 _ACEOF
14191 chmod +x $CONFIG_STATUS
14192 ac_clean_files=$ac_clean_files_save
14194 test $ac_write_fail = 0 ||
14195 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14196 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14197 { (exit 1); exit 1; }; }
14200 # configure is writing to config.log, and then calls config.status.
14201 # config.status does its own redirection, appending to config.log.
14202 # Unfortunately, on DOS this fails, as config.log is still kept open
14203 # by configure, so config.status won't be able to write to it; its
14204 # output is simply discarded. So we exec the FD to /dev/null,
14205 # effectively closing config.log, so it can be properly (re)opened and
14206 # appended to by config.status. When coming back to configure, we
14207 # need to make the FD available again.
14208 if test "$no_create" != yes; then
14209 ac_cs_success=:
14210 ac_config_status_args=
14211 test "$silent" = yes &&
14212 ac_config_status_args="$ac_config_status_args --quiet"
14213 exec 5>/dev/null
14214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14215 exec 5>>config.log
14216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14217 # would make configure fail if this is the last instruction.
14218 $ac_cs_success || { (exit 1); exit 1; }
14220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14221 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14227 #XXX compatability...
14228 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14230 if test -n "$aros_shared_cflags" ; then
14231 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14232 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg