2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
731 host_cflags_iquote_end
733 kernel_cflags_iquote_end
735 aros_cflags_iquote_end
763 aros_target_bootloader
776 aros_target_cc_includes
794 aros_kernel_objcflags
800 aros_target_strip_flags
805 aros_default_wbheight
809 aros_host_x11_includes
810 aros_host_x11_libdirs
815 aros_nesting_supervisor
829 ignore_undefined_symbols
833 ac_precious_vars
='build_alias
845 # Initialize some variables set by options.
847 ac_init_version
=false
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name
=s
,x
,x
,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir
='${exec_prefix}/bin'
872 sbindir
='${exec_prefix}/sbin'
873 libexecdir
='${exec_prefix}/libexec'
874 datarootdir
='${prefix}/share'
875 datadir
='${datarootdir}'
876 sysconfdir
='${prefix}/etc'
877 sharedstatedir
='${prefix}/com'
878 localstatedir
='${prefix}/var'
879 includedir
='${prefix}/include'
880 oldincludedir
='/usr/include'
881 docdir
='${datarootdir}/doc/${PACKAGE}'
882 infodir
='${datarootdir}/info'
887 libdir
='${exec_prefix}/lib'
888 localedir
='${datarootdir}/locale'
889 mandir
='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\
$ac_option
903 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
952 eval enable_
$ac_feature=no
;;
954 -docdir |
--docdir |
--docdi |
--doc |
--do)
956 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
959 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
961 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
964 -enable-* |
--enable-*)
965 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
968 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
969 { (exit 1); exit 1; }; }
970 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
971 eval enable_
$ac_feature=\
$ac_optarg ;;
973 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
974 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
975 |
--exec |
--exe |
--ex)
976 ac_prev
=exec_prefix
;;
977 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
978 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
979 |
--exec=* |
--exe=* |
--ex=*)
980 exec_prefix
=$ac_optarg ;;
982 -gas |
--gas |
--ga |
--g)
983 # Obsolete; use --with-gas.
986 -help |
--help |
--hel |
--he |
-h)
988 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
989 ac_init_help
=recursive
;;
990 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
991 ac_init_help
=short
;;
993 -host |
--host |
--hos |
--ho)
994 ac_prev
=host_alias
;;
995 -host=* |
--host=* |
--hos=* |
--ho=*)
996 host_alias
=$ac_optarg ;;
998 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1000 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1002 htmldir
=$ac_optarg ;;
1004 -includedir |
--includedir |
--includedi |
--included |
--include \
1005 |
--includ |
--inclu |
--incl |
--inc)
1006 ac_prev
=includedir
;;
1007 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1008 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1009 includedir
=$ac_optarg ;;
1011 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1013 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1014 infodir
=$ac_optarg ;;
1016 -libdir |
--libdir |
--libdi |
--libd)
1018 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1019 libdir
=$ac_optarg ;;
1021 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1022 |
--libexe |
--libex |
--libe)
1023 ac_prev
=libexecdir
;;
1024 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1025 |
--libexe=* |
--libex=* |
--libe=*)
1026 libexecdir
=$ac_optarg ;;
1028 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1029 ac_prev
=localedir
;;
1030 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1031 localedir
=$ac_optarg ;;
1033 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1034 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1035 ac_prev
=localstatedir
;;
1036 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1037 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1038 localstatedir
=$ac_optarg ;;
1040 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1042 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1043 mandir
=$ac_optarg ;;
1045 -nfp |
--nfp |
--nf)
1046 # Obsolete; use --without-fp.
1049 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1050 |
--no-cr |
--no-c |
-n)
1053 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1054 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1057 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1058 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1059 |
--oldin |
--oldi |
--old |
--ol |
--o)
1060 ac_prev
=oldincludedir
;;
1061 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1062 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1063 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1064 oldincludedir
=$ac_optarg ;;
1066 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1068 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1069 prefix
=$ac_optarg ;;
1071 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1072 |
--program-pre |
--program-pr |
--program-p)
1073 ac_prev
=program_prefix
;;
1074 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1075 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1076 program_prefix
=$ac_optarg ;;
1078 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1079 |
--program-suf |
--program-su |
--program-s)
1080 ac_prev
=program_suffix
;;
1081 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1082 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1083 program_suffix
=$ac_optarg ;;
1085 -program-transform-name |
--program-transform-name \
1086 |
--program-transform-nam |
--program-transform-na \
1087 |
--program-transform-n |
--program-transform- \
1088 |
--program-transform |
--program-transfor \
1089 |
--program-transfo |
--program-transf \
1090 |
--program-trans |
--program-tran \
1091 |
--progr-tra |
--program-tr |
--program-t)
1092 ac_prev
=program_transform_name
;;
1093 -program-transform-name=* |
--program-transform-name=* \
1094 |
--program-transform-nam=* |
--program-transform-na=* \
1095 |
--program-transform-n=* |
--program-transform-=* \
1096 |
--program-transform=* |
--program-transfor=* \
1097 |
--program-transfo=* |
--program-transf=* \
1098 |
--program-trans=* |
--program-tran=* \
1099 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1100 program_transform_name
=$ac_optarg ;;
1102 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1104 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1105 pdfdir
=$ac_optarg ;;
1107 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1109 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1112 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1113 |
-silent |
--silent |
--silen |
--sile |
--sil)
1116 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1118 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1120 sbindir
=$ac_optarg ;;
1122 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1123 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1124 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1126 ac_prev
=sharedstatedir
;;
1127 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1128 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1129 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1131 sharedstatedir
=$ac_optarg ;;
1133 -site |
--site |
--sit)
1135 -site=* |
--site=* |
--sit=*)
1138 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1140 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1141 srcdir
=$ac_optarg ;;
1143 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1144 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1145 ac_prev
=sysconfdir
;;
1146 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1147 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1148 sysconfdir
=$ac_optarg ;;
1150 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1151 ac_prev
=target_alias
;;
1152 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1153 target_alias
=$ac_optarg ;;
1155 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1158 -version |
--version |
--versio |
--versi |
--vers |
-V)
1159 ac_init_version
=: ;;
1162 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1168 eval with_
$ac_package=\
$ac_optarg ;;
1170 -without-* |
--without-*)
1171 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1177 eval with_
$ac_package=no
;;
1180 # Obsolete; use --with-x.
1183 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1184 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1185 ac_prev
=x_includes
;;
1186 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1187 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1188 x_includes
=$ac_optarg ;;
1190 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1191 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1192 ac_prev
=x_libraries
;;
1193 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1194 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1195 x_libraries
=$ac_optarg ;;
1197 -*) { echo "$as_me: error: unrecognized option: $ac_option
1198 Try \`$0 --help' for more information." >&2
1199 { (exit 1); exit 1; }; }
1203 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1206 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1207 { (exit 1); exit 1; }; }
1208 eval $ac_envvar=\
$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1215 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 if test -n "$ac_prev"; then
1223 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1224 { echo "$as_me: error: missing argument to $ac_option" >&2
1225 { (exit 1); exit 1; }; }
1228 # Be sure to have absolute directory names.
1229 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val
=\$
$ac_var
1236 [\\/$
]* | ?
:[\\/]* ) continue;;
1237 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1239 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1240 { (exit 1); exit 1; }; }
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1248 target
=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x
; then
1252 if test "x$build_alias" = x
; then
1253 cross_compiling
=maybe
1254 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used." >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1262 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1264 test "$silent" = yes && exec 6>/dev
/null
1267 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di
=`ls -di .` &&
1269 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1270 { echo "$as_me: error: Working directory cannot be determined" >&2
1271 { (exit 1); exit 1; }; }
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 { echo "$as_me: error: pwd does not report name of working directory" >&2
1274 { (exit 1); exit 1; }; }
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted
=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir
=`$as_dirname -- "$0" ||
1282 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$0" : 'X\(//\)[^/]' \| \
1284 X"$0" : 'X\(//\)$' \| \
1285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted
=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1313 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1314 { (exit 1); exit 1; }; }
1316 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1319 { (exit 1); exit 1; }; }
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var
in $ac_precious_vars; do
1332 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1334 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures this package to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --x-includes=DIR X include files are
in DIR
1404 --x-libraries=DIR X library files are
in DIR
1407 --build=BUILD configure
for building on BUILD
[guessed
]
1408 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1412 if test -n "$ac_init_help"; then
1417 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1418 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1419 --enable-build-type=TYPE
1420 Select the build
type. Available types are
:
1421 personal
, nightly
, snapshot
, milestone
, release. Do
1422 NOT use this option unless you know what you are
1423 doing
! (default
=personal
)
1424 --enable-debug=list Enable different types of debug. Commas or
1425 whitespaces can be used to separate the items
in the
1426 list. Available types of debug are
: all
, none
,
1427 messages
, stack
, mungwall
, modules
, symbols. If no
1428 list is provided
then "all" is assumed.
1430 --enable-crosstools Build cross-compiler toolchains
if necessary
1432 --enable-distcc Use distcc as a front end to the compiler
1434 --enable-ccache Use ccache as a front end to the compiler
1436 --enable-target-variant=NAME
1437 Enable a specific target variant
(default
=none
)
1438 --enable-includes=dir Alternative system include directory
1439 --enable-palm-debug-hack
1440 Enable palm debug output hack
in palm native
1442 --enable-nesting-supervisor
1443 Enable nesting supervisor support
in unix
1445 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1446 --enable-x11-shm use X11 shared memory
(default
=auto
)
1447 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1448 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1449 --disable-sdltest Do not try to compile and run a
test SDL program
1450 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1453 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1454 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1455 --with-gcc-version=VERSION
1456 Use gcc-VERSION
for building AROS
1457 --with-optimization=FLAGS
1458 Use optimization flags FLAGS
(default
=-O2).
1459 --with-xcode=PATH Specify XCode path
for iOS targets
1460 (default
=/Developer
).
1461 --with-ios-version=VERSION
1462 Specify minimum supported iOS version
(default
=2.0).
1463 --with-ios-sdk=VERSION Use iOS SDK version VERSION
(default
=4.1).
1464 --with-portssources=DIR Where to download sourcecode
for external ports
1465 --with-bootloader=NAME Use a specific bootloader
1466 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1467 --with-theme=NAME Use a specific GUI Theme
1468 --with-resolution=XRESxYRESxDEPTH
1469 Default resolution of the initial WorkbenchScreen
1470 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1471 --with-x use the X Window System
1472 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1473 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1475 Some influential environment variables
:
1476 CC C compiler
command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1479 nonstandard directory
<lib dir
>
1480 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1481 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1482 you have headers
in a nonstandard directory
<include dir
>
1484 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1486 Use these variables to override the choices made by
`configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" || continue
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1550 generated by GNU Autoconf 2.61
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1563 It was created by $as_me, which was
1564 generated by GNU Autoconf 2.61. Invocation command line was
1576 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1577 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1578 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1579 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1580 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1582 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1583 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1585 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1586 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1587 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1588 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1589 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1590 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1591 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1624 ac_must_keep_next=false
1630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1635 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641 if test $ac_must_keep_next = true; then
1642 ac_must_keep_next=false # Got value, back to normal.
1645 *=* | --config-cache | -C | -disable-* | --disable-* \
1646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648 | -with-* | --with-* | -without-* | --without-* | --x)
1649 case "$ac_configure_args0 " in
1650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 -* ) ac_must_keep_next=true ;;
1656 ac_configure_args="$ac_configure_args '$ac_arg'"
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664 # When interrupted or exit'd, cleanup temporary files, and complete
1665 # config.log. We remove comments because anyway the quotes in there
1666 # would cause problems or look ugly.
1667 # WARNING: Use '\'' to represent an apostrophe within the trap.
1668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669 trap 'exit_status=$?
1670 # Save into config.log some information that might help in debugging.
1675 ## ---------------- ##
1676 ## Cache variables. ##
1677 ## ---------------- ##
1680 # The following way of writing the cache mishandles newlines in values,
1682 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1683 eval ac_val=\$$ac_var
1687 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1691 _ | IFS | as_nl) ;; #(
1692 *) $as_unset $ac_var ;;
1697 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
1700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1717 for ac_var in $ac_subst_vars
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 echo "$ac_var='\''$ac_val'\''"
1727 if test -n "$ac_subst_files"; then
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1745 if test -s confdefs.h; then
1755 test "$ac_signal" != 0 &&
1756 echo "$as_me: caught signal $ac_signal"
1757 echo "$as_me: exit $exit_status"
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1771 # Predefined preprocessor variables.
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer explicitly selected file to automatically selected ones.
1800 if test -n "$CONFIG_SITE"; then
1801 set x "$CONFIG_SITE"
1802 elif test "x$prefix" != xNONE; then
1803 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805 set x "$ac_default_prefix/share/config.site" \
1806 "$ac_default_prefix/etc/config.site"
1811 if test -r "$ac_site_file"; then
1812 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813 echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824 echo "$as_me: loading cache $cache_file" >&6;}
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1831 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832 echo "$as_me: creating cache $cache_file" >&6;}
1836 # Check that the precious variables saved in the cache have kept the same
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1847 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1851 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1858 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1859 echo "$as_me: former value
: $ac_old_val" >&2;}
1860 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1861 echo "$as_me: current value
: $ac_new_val" >&2;}
1862 ac_cache_corrupted=:
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1868 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1869 *) ac_arg=$ac_var=$ac_new_val ;;
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1877 if $ac_cache_corrupted; then
1878 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1879 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1880 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1881 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1882 { (exit 1); exit 1; }; }
1902 ac_cpp='$CPP $CPPFLAGS'
1903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941 # Check what host we are running on.
1942 # If a target is not suggested, we use this one.
1943 # Note that what we call a target, Autoconf calls a host.
1944 # Make sure we can run config.sub.
1945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1946 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1947 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1948 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: checking build system type" >&5
1951 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1952 if test "${ac_cv_build+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 ac_build_alias=$build_alias
1956 test "x$ac_build_alias" = x &&
1957 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1958 test "x$ac_build_alias" = x &&
1959 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1960 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1961 { (exit 1); exit 1; }; }
1962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1963 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1964 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1969 echo "${ECHO_T}$ac_cv_build" >&6; }
1970 case $ac_cv_build in
1972 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1973 echo "$as_me: error: invalid value of canonical build" >&2;}
1974 { (exit 1); exit 1; }; };;
1977 ac_save_IFS=$IFS; IFS='-'
1983 # Remember, the first character of IFS is used to create $*,
1984 # except with old shells:
1987 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1990 { echo "$as_me:$LINENO: checking host system type" >&5
1991 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1992 if test "${ac_cv_host+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test "x$host_alias" = x; then
1996 ac_cv_host=$ac_cv_build
1998 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
2005 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2006 echo "${ECHO_T}$ac_cv_host" >&6; }
2009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2010 echo "$as_me: error: invalid value of canonical host" >&2;}
2011 { (exit 1); exit 1; }; };;
2014 ac_save_IFS=$IFS; IFS='-'
2020 # Remember, the first character of IFS is used to create $*,
2021 # except with old shells:
2024 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2028 # The AROS target is slightly different to the normal GNU style
2029 # format. We don't have the middle part, and we reverse the order
2030 # of the $(CPU) and $(OS) bits.
2032 # Don't strip the version of the target yet, it might be
2033 # useful on some systems.
2035 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2036 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2038 if test "$target" = "NONE" ; then
2039 target=$host_os-$host_cpu
2042 if test "$target" = "" ; then
2043 target=$host_os-$host_cpu
2049 { echo "$as_me:$LINENO: result: $target" >&5
2050 echo "${ECHO_T}$target" >&6; }
2052 if test "$host_os" = "mingw32" ; then
2056 #don't know where else to put this...
2057 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2058 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2059 AROS_BUILDDIR=`${PWDCMD-pwd}`
2060 AROS_BUILDDIR_UNIX=${PWD}
2061 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2062 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2064 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2065 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2066 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2068 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2069 echo "${ECHO_T}$SRCDIR" >&6; }
2071 # Parse the target field into something useful.
2073 target_os=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2074 target_cpu=`echo $target |
sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2077 aros_default_wbwidth=800
2078 aros_default_wbheight=600
2079 aros_default_wbdepth=4
2082 # The first step is to find the host binaries.
2083 # Check for a compiler.
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 if test -n "$CC"; then
2119 { echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6; }
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2128 if test -z "$ac_cv_prog_CC"; then
2130 # Extract the first word of "gcc", so it can be a program name with args.
2131 set dummy gcc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_ac_ct_CC="gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2166 if test "x$ac_ct_CC" = x; then
2169 case $cross_compiling:$ac_tool_warned in
2171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2172 whose name does not start with the host triplet. If you think this
2173 configuration is useful to you, please write to autoconf@gnu.org." >&5
2174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2177 ac_tool_warned=yes ;;
2185 if test -z "$CC"; then
2186 if test -n "$ac_tool_prefix"; then
2187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}cc; ac_word=$2
2189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test -n "$CC"; then
2195 ac_cv_prog_CC="$CC" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_CC="${ac_tool_prefix}cc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 if test -n "$CC"; then
2216 { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2226 if test -z "$CC"; then
2227 # Extract the first word of "cc", so it can be a program name with args.
2228 set dummy cc; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2246 ac_prog_rejected=yes
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test $ac_prog_rejected = yes; then
2258 # We found a bogon in the path, so make sure we never use it.
2259 set dummy $ac_cv_prog_CC
2261 if test $# != 0; then
2262 # We chose a different compiler from the bogus one.
2263 # However, it has the same basename, so the bogon will be chosen
2264 # first if we set CC to just the basename; use the full file name.
2266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2272 if test -n "$CC"; then
2273 { echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6; }
2276 { echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6; }
2282 if test -z "$CC"; then
2283 if test -n "$ac_tool_prefix"; then
2284 for ac_prog in cl.exe
2286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2323 test -n "$CC" && break
2326 if test -z "$CC"; then
2328 for ac_prog in cl.exe
2330 # Extract the first word of "$ac_prog", so it can be a program name with args.
2331 set dummy $ac_prog; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_CC="$ac_prog"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2367 test -n "$ac_ct_CC" && break
2370 if test "x$ac_ct_CC" = x; then
2373 case $cross_compiling:$ac_tool_warned in
2375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376 whose name does not start with the host triplet. If you think this
2377 configuration is useful to you, please write to autoconf@gnu.org." >&5
2378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381 ac_tool_warned=yes ;;
2390 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2391 See \`config.log
' for more details." >&5
2392 echo "$as_me: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details.
" >&2;}
2394 { (exit 1); exit 1; }; }
2396 # Provide some information about the compiler.
2397 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2398 ac_compiler=`set X $ac_compile; echo $2`
2399 { (ac_try="$ac_compiler --version >&5"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compiler --version >&5") 2>&5
2407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2408 (exit $ac_status); }
2409 { (ac_try="$ac_compiler -v >&5"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_compiler -v >&5") 2>&5
2417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2418 (exit $ac_status); }
2419 { (ac_try="$ac_compiler -V >&5"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compiler -V >&5") 2>&5
2427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2428 (exit $ac_status); }
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 ac_clean_files_save=$ac_clean_files
2446 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2447 # Try to create an executable without -o first, disregard a.out.
2448 # It will help us diagnose broken compilers, and finding out an intuition
2450 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2451 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2452 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 # List of possible output files, starting from the most likely.
2455 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2456 # only as a last resort. b.out is created by i960 compilers.
2457 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2459 # The IRIX 6 linker writes into existing files which may not be
2460 # executable, retaining their permissions. Remove them first so a
2461 # subsequent execution test works.
2463 for ac_file in $ac_files
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2472 if { (ac_try="$ac_link_default"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_link_default") 2>&5
2480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2485 # so that the user can short-circuit this test for compilers unknown to
2487 for ac_file in $ac_files ''
2489 test -f "$ac_file" || continue
2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2494 # We found the default executable, but exeext='' is most
2498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 # We set ac_cv_exeext here because the later test for it is not
2503 # safe: cross compilers may not add the suffix if given an `-o'
2504 # argument, so we may need to know it at that point already.
2505 # Even if this section looks crufty: it has the advantage of
2512 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2519 echo "${ECHO_T}$ac_file" >&6; }
2520 if test -z "$ac_file"; then
2521 echo "$as_me: failed program was
:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2525 See \
`config.log' for more details." >&5
2526 echo "$as_me: error: C compiler cannot create executables
2527 See \`config.log
' for more details." >&2;}
2528 { (exit 77); exit 77; }; }
2531 ac_exeext=$ac_cv_exeext
2533 # Check that the compiler produces executables we can run. If not, either
2534 # the compiler is broken, or we cross compile.
2535 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2536 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2537 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2538 # If not cross compiling, check that we can run a simple program.
2539 if test "$cross_compiling" != yes; then
2540 if { ac_try='.
/$ac_file'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 if test "$cross_compiling" = maybe; then
2555 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \
`config.log' for more details." >&5
2558 echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details.
" >&2;}
2561 { (exit 1); exit 1; }; }
2565 { echo "$as_me:$LINENO: result
: yes" >&5
2566 echo "${ECHO_T}yes" >&6; }
2568 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check that the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2573 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2574 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2575 echo "${ECHO_T}$cross_compiling" >&6; }
2577 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2578 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2579 if { (ac_try="$ac_link"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_link") 2>&5
2587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2588 (exit $ac_status); }; then
2589 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2590 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2591 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 for ac_file in conftest.exe conftest conftest.*; do
2594 test -f "$ac_file" || continue
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2604 See \
`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2606 See \`config.log
' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest$ac_cv_exeext
2611 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2612 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2614 rm -f conftest.$ac_ext
2615 EXEEXT=$ac_cv_exeext
2617 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2618 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2619 if test "${ac_cv_objext+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.o conftest.obj
2638 if { (ac_try="$ac_compile"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compile") 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 for ac_file in conftest.o conftest.obj conftest.*; do
2649 test -f "$ac_file" || continue;
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2652 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2657 echo "$as_me: failed program was:" >&5
2658 sed 's
/^
/|
/' conftest.$ac_ext >&5
2660 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details.
" >&5
2662 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2663 See \
`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2670 echo "${ECHO_T}$ac_cv_objext" >&6; }
2671 OBJEXT=$ac_cv_objext
2673 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2700 *) ac_try_echo
=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1
>conftest.err
2707 cat conftest.err
>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.
$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2722 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2725 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2726 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2727 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2728 ac_test_CFLAGS
=${CFLAGS+set}
2729 ac_save_CFLAGS
=$CFLAGS
2730 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2731 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_cc_g+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 ac_save_c_werror_flag
=$ac_c_werror_flag
2736 ac_c_werror_flag
=yes
2739 cat >conftest.
$ac_ext <<_ACEOF
2742 cat confdefs.h
>>conftest.
$ac_ext
2743 cat >>conftest.
$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2754 rm -f conftest.
$ac_objext
2755 if { (ac_try
="$ac_compile"
2757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compile") 2>conftest.er1
2763 grep -v '^ *+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && {
2768 test -z "$ac_c_werror_flag" ||
2769 test ! -s conftest.err
2770 } && test -s conftest.$ac_objext; then
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (ac_try="$ac_compile"
2795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2796 *) ac_try_echo
=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compile") 2>conftest.er1
2801 grep -v '^ *+' conftest.er1
>conftest.err
2803 cat conftest.err
>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } && {
2806 test -z "$ac_c_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest.
$ac_objext; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.
$ac_ext >&5
2814 ac_c_werror_flag
=$ac_save_c_werror_flag
2816 cat >conftest.
$ac_ext <<_ACEOF
2819 cat confdefs.h
>>conftest.
$ac_ext
2820 cat >>conftest.
$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 rm -f conftest.
$ac_objext
2832 if { (ac_try
="$ac_compile"
2834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 ac_c_werror_flag=$ac_save_c_werror_flag
2865 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2866 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2867 if test "$ac_test_CFLAGS" = set; then
2868 CFLAGS=$ac_save_CFLAGS
2869 elif test $ac_cv_prog_cc_g = yes; then
2870 if test "$GCC" = yes; then
2876 if test "$GCC" = yes; then
2882 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2883 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_cc_c89+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 ac_cv_prog_cc_c89=no
2889 cat >conftest.$ac_ext <<_ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2897 #include <sys/types.h>
2898 #include <sys/stat.h>
2899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2900 struct buf { int x; };
2901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2902 static char *e (p, i)
2908 static char *f (char * (*g) (char **, int), char **p, ...)
2913 s = g (p, va_arg (v,int));
2918 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2919 function prototypes and stuff, but not '\xHH' hex character constants.
2920 These don't provoke an error unfortunately, instead are silently treated
2921 as 'x'. The following induces an error, until -std is added to get
2922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2923 array size at least. It's necessary to write '\x00'==0 to get something
2924 that's true only with -std. */
2925 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2928 inside strings and character constants. */
2930 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2949 CC="$ac_save_CC $ac_arg"
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2954 *) ac_try_echo
=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1
>conftest.err
2961 cat conftest.err
>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.
$ac_objext; then
2967 ac_cv_prog_cc_c89
=$ac_arg
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.
$ac_ext >&5
2975 rm -f core conftest.err conftest.
$ac_objext
2976 test "x$ac_cv_prog_cc_c89" != "xno" && break
2978 rm -f conftest.
$ac_ext
2983 case "x$ac_cv_prog_cc_c89" in
2985 { echo "$as_me:$LINENO: result: none needed" >&5
2986 echo "${ECHO_T}none needed" >&6; } ;;
2988 { echo "$as_me:$LINENO: result: unsupported" >&5
2989 echo "${ECHO_T}unsupported" >&6; } ;;
2991 CC
="$CC $ac_cv_prog_cc_c89"
2992 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2993 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2998 ac_cpp
='$CPP $CPPFLAGS'
2999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3003 case $ac_cv_prog_cc_stdc in
3004 no
) ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;;
3005 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3006 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_cc_c99+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_prog_cc_c99
=no
3012 cat >conftest.
$ac_ext <<_ACEOF
3015 cat confdefs.h
>>conftest.
$ac_ext
3016 cat >>conftest.
$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3019 #include <stdbool.h>
3024 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3025 #define debug(...) fprintf (stderr, __VA_ARGS__)
3026 #define showlist(...) puts (#__VA_ARGS__)
3027 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3029 test_varargs_macros (void)
3034 debug ("X = %d\n", x);
3035 showlist (The first, second, and third items.);
3036 report (x>y, "x is %d but y is %d", x, y);
3039 // Check long long types.
3040 #define BIG64 18446744073709551615ull
3041 #define BIG32 4294967295ul
3042 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3044 your preprocessor is broken;
3048 your preprocessor is broken;
3050 static long long int bignum = -9223372036854775807LL;
3051 static unsigned long long int ubignum = BIG64;
3053 struct incomplete_array
3061 const wchar_t *name;
3065 typedef const char *ccp;
3068 test_restrict (ccp restrict text)
3070 // See if C++-style comments work.
3071 // Iterate through items via the restricted pointer.
3072 // Also check for declarations in for loops.
3073 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3078 // Check varargs and va_copy.
3080 test_varargs (const char *format, ...)
3083 va_start (args, format);
3085 va_copy (args_copy, args);
3096 str = va_arg (args_copy, const char *);
3099 number = va_arg (args_copy, int);
3102 fnumber = va_arg (args_copy, double);
3117 _Bool success = false;
3120 if (test_restrict ("String literal") == 0)
3122 char *restrict newvar = "Another string";
3125 test_varargs ("s, d' f .", "string", 65, 34.234);
3126 test_varargs_macros ();
3128 // Check flexible array members.
3129 struct incomplete_array *ia =
3130 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3132 for (int i = 0; i < ia->datasize; ++i)
3133 ia->data[i] = i * 1.234;
3135 // Check named initializers.
3136 struct named_init ni = {
3138 .name = L"Test wide string",
3139 .average = 543.34343,
3144 int dynamic_array[ni.number];
3145 dynamic_array[ni.number - 1] = 543;
3147 // work around unused variable warnings
3148 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3149 || dynamic_array[ni.number - 1] != 543);
3155 for ac_arg
in '' -std=gnu99
-c99 -qlanglvl=extc99
3157 CC
="$ac_save_CC $ac_arg"
3158 rm -f conftest.
$ac_objext
3159 if { (ac_try
="$ac_compile"
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cc_c99=$ac_arg
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c99" != "xno" && break
3186 rm -f conftest.$ac_ext
3191 case "x$ac_cv_prog_cc_c99" in
3193 { echo "$as_me:$LINENO: result: none needed" >&5
3194 echo "${ECHO_T}none needed" >&6; } ;;
3196 { echo "$as_me:$LINENO: result: unsupported" >&5
3197 echo "${ECHO_T}unsupported" >&6; } ;;
3199 CC="$CC $ac_cv_prog_cc_c99"
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3203 if test "x$ac_cv_prog_cc_c99" != xno; then
3204 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_prog_cc_c89=no
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3278 *) ac_try_echo
=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1
>conftest.err
3285 cat conftest.err
>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.
$ac_objext; then
3291 ac_cv_prog_cc_c89
=$ac_arg
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.
$ac_ext >&5
3299 rm -f core conftest.err conftest.
$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3302 rm -f conftest.
$ac_ext
3307 case "x$ac_cv_prog_cc_c89" in
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3315 CC
="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3319 if test "x$ac_cv_prog_cc_c89" != xno
; then
3320 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3322 ac_cv_prog_cc_stdc
=no
3330 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3331 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 case $ac_cv_prog_cc_stdc in
3337 no
) { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3339 '') { echo "$as_me:$LINENO: result: none needed" >&5
3340 echo "${ECHO_T}none needed" >&6; } ;;
3341 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3347 ac_cpp
='$CPP $CPPFLAGS'
3348 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3351 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3357 if test -z "$CPP"; then
3358 if test "${ac_cv_prog_CPP+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # Double quotes because CPP needs to be expanded
3362 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365 for ac_c_preproc_warn_flag
in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370 # <limits.h> exists even on freestanding compilers.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.
$ac_ext <<_ACEOF
3376 cat confdefs.h
>>conftest.
$ac_ext
3377 cat >>conftest.
$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 # include <limits.h>
3382 # include <assert.h>
3386 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null && {
3399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 # Broken: fails on valid input.
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether nonexistent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3423 if { (ac_try="$ac_cpp conftest.$ac_ext"
3425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3426 *) ac_try_echo
=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1
>conftest.err
3433 cat conftest.err
>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev
/null
&& {
3436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3439 # Broken: success on invalid input.
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3445 # Passes both tests.
3450 rm -f conftest.err conftest.
$ac_ext
3453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454 rm -f conftest.err conftest.
$ac_ext
3455 if $ac_preproc_ok; then
3467 { echo "$as_me:$LINENO: result: $CPP" >&5
3468 echo "${ECHO_T}$CPP" >&6; }
3470 for ac_c_preproc_warn_flag
in '' yes
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.
$ac_ext <<_ACEOF
3481 cat confdefs.h
>>conftest.
$ac_ext
3482 cat >>conftest.
$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3485 # include <limits.h>
3487 # include <assert.h>
3491 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499 grep -v '^ *+' conftest.er1 >conftest.err
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev/null && {
3504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Broken: fails on valid input.
3516 rm -f conftest.err conftest.$ac_ext
3518 # OK, works on sane cases. Now check whether nonexistent headers
3519 # can be detected and how.
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3528 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3531 *) ac_try_echo
=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536 grep -v '^ *+' conftest.er1
>conftest.err
3538 cat conftest.err
>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } >/dev
/null
&& {
3541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3544 # Broken: success on invalid input.
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.
$ac_ext >&5
3550 # Passes both tests.
3555 rm -f conftest.err conftest.
$ac_ext
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.
$ac_ext
3560 if $ac_preproc_ok; then
3563 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }
3571 ac_cpp
='$CPP $CPPFLAGS'
3572 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3577 # Check for a compatible awk
3578 for ac_prog
in gawk nawk
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy
$ac_prog; ac_word
=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_AWK+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$AWK"; then
3588 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_AWK
="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test -n "$AWK"; then
3609 { echo "$as_me:$LINENO: result: $AWK" >&5
3610 echo "${ECHO_T}$AWK" >&6; }
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3617 test -n "$AWK" && break
3620 if test "$AWK" = ""; then
3621 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3622 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3623 { (exit 1); exit 1; }; }
3625 # Extract the first word of "mmake", so it can be a program name with args.
3626 set dummy mmake
; ac_word
=$2
3627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_MMAKE+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 if test -n "$MMAKE"; then
3633 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir
=.
3640 for ac_exec_ext
in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_MMAKE
="mmake "
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 MMAKE
=$ac_cv_prog_MMAKE
3653 if test -n "$MMAKE"; then
3654 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3655 echo "${ECHO_T}$MMAKE" >&6; }
3657 { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3663 # Perform some default variable assignments. Note all of these will be
3664 # Regenerated from the script, so there is no need to cache them.
3667 if test "$GCC" = "yes"; then
3668 aros_gcc_ld
=`$CC -print-prog-name=ld`
3669 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3670 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 case $aros_host_ld in
3678 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 for as_dir
in `dirname $aros_gcc_ld`
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_exec_ext
in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 aros_host_ld
=$ac_cv_path_aros_host_ld
3700 if test -n "$aros_host_ld"; then
3701 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3702 echo "${ECHO_T}$aros_host_ld" >&6; }
3704 { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3710 if test "$aros_host_ld" = ""; then
3711 # Extract the first word of "ld", so it can be a program name with args.
3712 set dummy ld
; ac_word
=$2
3713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 case $aros_host_ld in
3720 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir
=.
3728 for ac_exec_ext
in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 aros_host_ld
=$ac_cv_path_aros_host_ld
3742 if test -n "$aros_host_ld"; then
3743 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3744 echo "${ECHO_T}$aros_host_ld" >&6; }
3746 { echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6; }
3752 if test "$aros_host_ld" = ""; then
3753 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3754 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3755 { (exit 1); exit 1; }; }
3757 aros_host_make
="make"
3758 aros_host_cflags
=$CFLAGS
3759 aros_host_ldflags
=$LDFLAGS
3760 aros_host_debug
="-g -O0"
3761 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
3762 aros_host_mkargs
="--no-print-directory"
3763 aros_host_incl
="/usr/include"
3764 aros_host_exe_suffix
="$EXEEXT"
3765 aros_host_lib_suffix
=""
3767 for ac_prog
in aclocal aclocal19 aclocal-1.9
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy
$ac_prog; ac_word
=$2
3771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3773 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$aros_host_aclocal"; then
3777 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
3779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir
=.
3784 for ac_exec_ext
in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_aros_host_aclocal
="$ac_prog"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
3797 if test -n "$aros_host_aclocal"; then
3798 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3799 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3801 { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3806 test -n "$aros_host_aclocal" && break
3809 for ac_prog
in autoconf autoconf259 autoconf253
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy
$ac_prog; ac_word
=$2
3813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$aros_host_autoconf"; then
3819 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 for ac_exec_ext
in '' $ac_executable_extensions; do
3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_aros_host_autoconf
="$ac_prog"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
3839 if test -n "$aros_host_autoconf"; then
3840 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3841 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3848 test -n "$aros_host_autoconf" && break
3851 for ac_prog
in autoheader autoheader259 autoheader253
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy
$ac_prog; ac_word
=$2
3855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3857 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$aros_host_autoheader"; then
3861 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
3863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir
=.
3868 for ac_exec_ext
in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_aros_host_autoheader
="$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
3881 if test -n "$aros_host_autoheader"; then
3882 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3883 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3885 { echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; }
3890 test -n "$aros_host_autoheader" && break
3893 for ac_prog
in automake automake19 automake-1.9
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy
$ac_prog; ac_word
=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$aros_host_automake"; then
3903 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
3905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir
=.
3910 for ac_exec_ext
in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_aros_host_automake
="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 aros_host_automake
=$ac_cv_prog_aros_host_automake
3923 if test -n "$aros_host_automake"; then
3924 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3925 echo "${ECHO_T}$aros_host_automake" >&6; }
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 test -n "$aros_host_automake" && break
3936 if test "$aros_host_aclocal" = ""; then
3937 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3938 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3939 { (exit 1); exit 1; }; }
3941 if test "$aros_host_automake" = ""; then
3942 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3943 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3944 { (exit 1); exit 1; }; }
3947 case "$aros_host_cc" in
3949 aros_host_cc_pipe
="-pipe"
3952 aros_host_cc_pipe
=""
3955 aros_host_cc_pipe
=""
3959 aros_target_cc_includes
=""
3961 # This is the main host configuration section. It is where the host
3962 # can change the values of any variables it needs to change. We do
3963 # not look at anything that compiles to the target yet, we'll get
3968 aros_host_arch
="aros"
3969 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3972 aros_host_cpu
="i386"
3975 aros_host_cpu
="x86_64"
3981 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3982 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3983 aros_host_cpu
="$host_cpu"
3989 aros_host_arch
="linux"
3990 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
3993 aros_host_cpu
="i386"
3996 aros_host_cpu
="x86_64"
3999 aros_host_cpu
="m68k"
4008 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4009 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4010 aros_host_cpu
="$host_cpu"
4016 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4017 aros_host_make
="gmake"
4018 aros_host_arch
="freebsd"
4019 aros_host_cpu
="i386"
4021 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4026 aros_object_format
="elf_i386"
4030 aros_object_format
="elf_i386_fbsd"
4037 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4038 aros_host_arch
="darwin"
4041 aros_host_cpu
="i386"
4044 aros_host_cpu
="x86_64"
4050 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4051 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4052 aros_host_cpu
="$host_cpu"
4056 aros_host_ldflags
="$aros_host_ldflags -liconv"
4061 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4062 aros_host_make
="gmake"
4063 aros_host_arch
="dragonfly"
4066 aros_host_cpu
="i386"
4069 aros_host_cpu
="x86_64"
4072 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4073 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4074 aros_host_cpu
="$host_cpu"
4080 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4081 aros_host_make
="gmake"
4082 aros_host_arch
="netbsd"
4085 aros_host_cpu
="i386"
4088 aros_host_cpu
="m68k"
4091 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4092 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4093 aros_host_cpu
="$host_cpu"
4096 aros_host_lib_suffix
=".0.0"
4100 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4101 aros_host_make
="gmake"
4102 aros_host_arch
="openbsd"
4105 aros_host_cpu
="i386"
4108 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4109 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4110 aros_host_cpu
="$host_cpu"
4116 aros_host_arch
="solaris"
4117 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4120 aros_host_cpu
="i386"
4123 aros_host_cpu
="sparc"
4126 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4127 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4128 aros_host_cpu
="$host_cpu"
4134 aros_host_arch
="morphos"
4139 aros_host_arch
="amiga"
4144 TOUCH
="/gg/bin/touch"
4147 aros_host_cpu
="m68k"
4153 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4154 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4155 aros_host_cpu
="$host_cpu"
4161 aros_host_arch
="cygwin"
4162 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4165 aros_host_cpu
="i386"
4168 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4169 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4170 aros_host_cpu
="$host_cpu"
4176 aros_host_arch
="mingw32"
4177 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4180 aros_host_cpu
="i386"
4183 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4184 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4185 aros_host_cpu
="$host_cpu"
4190 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4191 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4192 { (exit 1); exit 1; }; }
4196 # Extract the first word of "ar", so it can be a program name with args.
4197 set dummy
ar; ac_word
=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test -n "$aros_host_ar"; then
4204 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_aros_host_ar
="ar cr"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 aros_host_ar
=$ac_cv_prog_aros_host_ar
4224 if test -n "$aros_host_ar"; then
4225 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4226 echo "${ECHO_T}$aros_host_ar" >&6; }
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4233 if test "$aros_host_ar" = ""; then
4234 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4235 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4236 { (exit 1); exit 1; }; }
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib
; ac_word
=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$aros_host_ranlib"; then
4246 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_aros_host_ranlib
="ranlib "
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4266 if test -n "$aros_host_ranlib"; then
4267 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4268 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4275 if test "$aros_host_ranlib" = ""; then
4276 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4277 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4278 { (exit 1); exit 1; }; }
4280 # Extract the first word of "strip", so it can be a program name with args.
4281 set dummy strip
; ac_word
=$2
4282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4284 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 if test -n "$aros_host_strip"; then
4288 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir
=.
4295 for ac_exec_ext
in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_aros_host_strip
="strip "
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 aros_host_strip
=$ac_cv_prog_aros_host_strip
4308 if test -n "$aros_host_strip"; then
4309 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4310 echo "${ECHO_T}$aros_host_strip" >&6; }
4312 { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4317 if test "$aros_host_strip" = ""; then
4318 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4319 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4320 { (exit 1); exit 1; }; }
4323 # Extract the first word of "rm", so it can be a program name with args.
4324 set dummy
rm; ac_word
=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_RM+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 if test -n "$RM"; then
4331 ac_cv_prog_RM
="$RM" # Let the user override the test.
4333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir
=.
4338 for ac_exec_ext
in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_RM
="rm -rf"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 if test -n "$RM"; then
4352 { echo "$as_me:$LINENO: result: $RM" >&5
4353 echo "${ECHO_T}$RM" >&6; }
4355 { echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6; }
4360 if test "$RM" = ""; then
4361 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4362 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4363 { (exit 1); exit 1; }; }
4365 # Extract the first word of "cp", so it can be a program name with args.
4366 set dummy
cp; ac_word
=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_prog_CP+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$CP"; then
4373 ac_cv_prog_CP
="$CP" # Let the user override the test.
4375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir
=.
4380 for ac_exec_ext
in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 if test -n "$CP"; then
4394 { echo "$as_me:$LINENO: result: $CP" >&5
4395 echo "${ECHO_T}$CP" >&6; }
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4402 if test "$CP" = ""; then
4403 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4404 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4405 { (exit 1); exit 1; }; }
4407 # Extract the first word of "mv", so it can be a program name with args.
4408 set dummy
mv; ac_word
=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_MV+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$MV"; then
4415 ac_cv_prog_MV
="$MV" # Let the user override the test.
4417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir
=.
4422 for ac_exec_ext
in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 if test -n "$MV"; then
4436 { echo "$as_me:$LINENO: result: $MV" >&5
4437 echo "${ECHO_T}$MV" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test "$MV" = ""; then
4445 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4446 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4447 { (exit 1); exit 1; }; }
4449 # Extract the first word of "echo", so it can be a program name with args.
4450 set dummy
echo; ac_word
=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_ECHO+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test -n "$ECHO"; then
4457 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_exec_ext
in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ECHO
="echo "
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 ECHO
=$ac_cv_prog_ECHO
4477 if test -n "$ECHO"; then
4478 { echo "$as_me:$LINENO: result: $ECHO" >&5
4479 echo "${ECHO_T}$ECHO" >&6; }
4481 { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4486 if test "$ECHO" = ""; then
4487 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4488 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4489 { (exit 1); exit 1; }; }
4491 # Extract the first word of "mkdir", so it can be a program name with args.
4492 set dummy mkdir
; ac_word
=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_MKDIR+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$MKDIR"; then
4499 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir
=.
4506 for ac_exec_ext
in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_MKDIR
="mkdir -p"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 MKDIR
=$ac_cv_prog_MKDIR
4519 if test -n "$MKDIR"; then
4520 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4521 echo "${ECHO_T}$MKDIR" >&6; }
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4528 if test "$MKDIR" = ""; then
4529 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4530 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4531 { (exit 1); exit 1; }; }
4533 # Extract the first word of "touch", so it can be a program name with args.
4534 set dummy
touch; ac_word
=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_prog_TOUCH+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 if test -n "$TOUCH"; then
4541 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 for ac_exec_ext
in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_TOUCH
="touch "
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 TOUCH
=$ac_cv_prog_TOUCH
4561 if test -n "$TOUCH"; then
4562 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4563 echo "${ECHO_T}$TOUCH" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 if test "$TOUCH" = ""; then
4571 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4572 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4573 { (exit 1); exit 1; }; }
4575 # Extract the first word of "sort", so it can be a program name with args.
4576 set dummy
sort; ac_word
=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_SORT+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$SORT"; then
4583 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir
=.
4590 for ac_exec_ext
in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_SORT
="sort "
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 SORT
=$ac_cv_prog_SORT
4603 if test -n "$SORT"; then
4604 { echo "$as_me:$LINENO: result: $SORT" >&5
4605 echo "${ECHO_T}$SORT" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4612 if test "$SORT" = ""; then
4613 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4614 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4615 { (exit 1); exit 1; }; }
4617 # Extract the first word of "uniq", so it can be a program name with args.
4618 set dummy
uniq; ac_word
=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_UNIQ+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$UNIQ"; then
4625 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir
=.
4632 for ac_exec_ext
in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_UNIQ
="uniq "
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 UNIQ
=$ac_cv_prog_UNIQ
4645 if test -n "$UNIQ"; then
4646 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4647 echo "${ECHO_T}$UNIQ" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 if test "$UNIQ" = ""; then
4655 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4656 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4657 { (exit 1); exit 1; }; }
4659 # Extract the first word of "true", so it can be a program name with args.
4660 set dummy true
; ac_word
=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_NOP+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$NOP"; then
4667 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir
=.
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_NOP
="true "
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$NOP"; then
4688 { echo "$as_me:$LINENO: result: $NOP" >&5
4689 echo "${ECHO_T}$NOP" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test "$NOP" = ""; then
4697 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4698 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4699 { (exit 1); exit 1; }; }
4701 # Extract the first word of "cat", so it can be a program name with args.
4702 set dummy
cat; ac_word
=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_CAT+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test -n "$CAT"; then
4709 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
4711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir
=.
4716 for ac_exec_ext
in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_prog_CAT
="cat "
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 if test -n "$CAT"; then
4730 { echo "$as_me:$LINENO: result: $CAT" >&5
4731 echo "${ECHO_T}$CAT" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4738 if test "$CAT" = ""; then
4739 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4740 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4741 { (exit 1); exit 1; }; }
4743 # Extract the first word of "bison", so it can be a program name with args.
4744 set dummy bison
; ac_word
=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_BISON+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 if test -n "$BISON"; then
4751 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_BISON
="bison "
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 BISON
=$ac_cv_prog_BISON
4771 if test -n "$BISON"; then
4772 { echo "$as_me:$LINENO: result: $BISON" >&5
4773 echo "${ECHO_T}$BISON" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4780 if test "$BISON" = ""; then
4781 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4782 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4783 { (exit 1); exit 1; }; }
4785 # Extract the first word of "flex", so it can be a program name with args.
4786 set dummy flex
; ac_word
=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_prog_FLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 if test -n "$FLEX"; then
4793 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
4795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir
=.
4800 for ac_exec_ext
in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_FLEX
="flex "
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 FLEX
=$ac_cv_prog_FLEX
4813 if test -n "$FLEX"; then
4814 { echo "$as_me:$LINENO: result: $FLEX" >&5
4815 echo "${ECHO_T}$FLEX" >&6; }
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4822 if test "$FLEX" = ""; then
4823 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4824 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4825 { (exit 1); exit 1; }; }
4827 # Extract the first word of "pngtopnm", so it can be a program name with args.
4828 set dummy pngtopnm
; ac_word
=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test -n "$PNGTOPNM"; then
4835 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
4837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir
=.
4842 for ac_exec_ext
in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_PNGTOPNM
="pngtopnm "
4845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
4855 if test -n "$PNGTOPNM"; then
4856 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4857 echo "${ECHO_T}$PNGTOPNM" >&6; }
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4864 if test "$PNGTOPNM" = ""; then
4865 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4866 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4867 { (exit 1); exit 1; }; }
4869 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4870 set dummy ppmtoilbm
; ac_word
=$2
4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4873 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 if test -n "$PPMTOILBM"; then
4877 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
4897 if test -n "$PPMTOILBM"; then
4898 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4899 echo "${ECHO_T}$PPMTOILBM" >&6; }
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4906 if test "$PPMTOILBM" = ""; then
4907 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4908 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4909 { (exit 1); exit 1; }; }
4911 # Extract the first word of "sed", so it can be a program name with args.
4912 set dummy
sed; ac_word
=$2
4913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4915 if test "${ac_cv_prog_SED+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 if test -n "$SED"; then
4919 ac_cv_prog_SED
="$SED" # Let the user override the test.
4921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir
=.
4926 for ac_exec_ext
in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_SED
="sed "
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 if test -n "$SED"; then
4940 { echo "$as_me:$LINENO: result: $SED" >&5
4941 echo "${ECHO_T}$SED" >&6; }
4943 { echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6; }
4948 if test "$SED" = ""; then
4949 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4950 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4951 { (exit 1); exit 1; }; }
4953 # Extract the first word of "chmod", so it can be a program name with args.
4954 set dummy
chmod; ac_word
=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CHMOD+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 if test -n "$CHMOD"; then
4961 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
4963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir
=.
4968 for ac_exec_ext
in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_CHMOD
="chmod "
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 CHMOD
=$ac_cv_prog_CHMOD
4981 if test -n "$CHMOD"; then
4982 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4983 echo "${ECHO_T}$CHMOD" >&6; }
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 if test "$CHMOD" = ""; then
4991 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4992 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4993 { (exit 1); exit 1; }; }
5000 if test -n "$PYTHON"; then
5001 # If the user set $PYTHON, use it and don't search something else.
5002 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5003 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5004 prog
="import sys, string
5005 # split strings by '.' and convert to numeric. Append some zeros
5006 # because we need at least 4 digits for the hex conversion.
5007 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5009 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5010 sys.exit(sys.hexversion < minverhex)"
5011 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5012 ($PYTHON -c "$prog") >&5 2>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; then
5016 { echo "$as_me:$LINENO: result: yes" >&5
5017 echo "${ECHO_T}yes" >&6; }
5019 { { echo "$as_me:$LINENO: error: too old" >&5
5020 echo "$as_me: error: too old" >&2;}
5021 { (exit 1); exit 1; }; }
5024 am_display_PYTHON
=$PYTHON
5026 # Otherwise, try each interpreter until we find one that satisfies
5028 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5029 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5030 if test "${am_cv_pathless_PYTHON+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 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
5035 test "$am_cv_pathless_PYTHON" = none
&& break
5036 prog
="import sys, string
5037 # split strings by '.' and convert to numeric. Append some zeros
5038 # because we need at least 4 digits for the hex conversion.
5039 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5041 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5042 sys.exit(sys.hexversion < minverhex)"
5043 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5044 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; then
5053 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5054 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5055 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5056 if test "$am_cv_pathless_PYTHON" = none
; then
5059 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5060 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_PYTHON+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 PYTHON
=$ac_cv_path_PYTHON
5090 if test -n "$PYTHON"; then
5091 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5092 echo "${ECHO_T}$PYTHON" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5100 am_display_PYTHON
=$am_cv_pathless_PYTHON
5104 if test "$PYTHON" = :; then
5105 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5106 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5107 { (exit 1); exit 1; }; }
5111 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5112 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5113 if test "${am_cv_python_version+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5118 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5119 echo "${ECHO_T}$am_cv_python_version" >&6; }
5120 PYTHON_VERSION
=$am_cv_python_version
5124 PYTHON_PREFIX
='${prefix}'
5126 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5130 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5131 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5132 if test "${am_cv_python_platform+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5137 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5138 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5139 PYTHON_PLATFORM
=$am_cv_python_platform
5144 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5145 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5146 if test "${am_cv_python_pythondir+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5150 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5152 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5153 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5154 pythondir
=$am_cv_python_pythondir
5158 pkgpythondir
=\
${pythondir}/$PACKAGE
5161 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5162 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5163 if test "${am_cv_python_pyexecdir+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5167 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5169 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5170 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5171 pyexecdir
=$am_cv_python_pyexecdir
5175 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5193 # Check for some includes for the X11 HIDD and the kernel
5196 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5197 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_GREP+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 # Extract the first word of "grep ggrep" to use in msg output
5202 if test -z "$GREP"; then
5203 set dummy
grep ggrep
; ac_prog_name
=$2
5204 if test "${ac_cv_path_GREP+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 ac_path_GREP_found
=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5210 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5213 test -z "$as_dir" && as_dir
=.
5214 for ac_prog
in grep ggrep
; do
5215 for ac_exec_ext
in '' $ac_executable_extensions; do
5216 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5222 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5225 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5233 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5234 ac_count
=`expr $ac_count + 1`
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP
="$ac_path_GREP"
5238 ac_path_GREP_max
=$ac_count
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5243 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5247 $ac_path_GREP_found && break 3
5257 GREP
="$ac_cv_path_GREP"
5258 if test -z "$GREP"; then
5259 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5260 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5261 { (exit 1); exit 1; }; }
5265 ac_cv_path_GREP
=$GREP
5270 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5271 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5272 GREP
="$ac_cv_path_GREP"
5275 { echo "$as_me:$LINENO: checking for egrep" >&5
5276 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_EGREP+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5281 then ac_cv_path_EGREP
="$GREP -E"
5283 # Extract the first word of "egrep" to use in msg output
5284 if test -z "$EGREP"; then
5285 set dummy
egrep; ac_prog_name
=$2
5286 if test "${ac_cv_path_EGREP+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_path_EGREP_found
=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5292 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_prog
in egrep; do
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5304 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5307 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5315 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5316 ac_count
=`expr $ac_count + 1`
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP
="$ac_path_EGREP"
5320 ac_path_EGREP_max
=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5325 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5329 $ac_path_EGREP_found && break 3
5339 EGREP
="$ac_cv_path_EGREP"
5340 if test -z "$EGREP"; then
5341 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5342 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5343 { (exit 1); exit 1; }; }
5347 ac_cv_path_EGREP
=$EGREP
5353 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5354 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5355 EGREP
="$ac_cv_path_EGREP"
5358 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5360 if test "${ac_cv_header_stdc+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5366 cat confdefs.h
>>conftest.
$ac_ext
5367 cat >>conftest.
$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5382 rm -f conftest.
$ac_objext
5383 if { (ac_try
="$ac_compile"
5385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_cv_header_stdc=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_header_stdc=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 if test $ac_cv_header_stdc = yes; then
5410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5421 $EGREP "memchr" >/dev/null 2>&1; then
5424 ac_cv_header_stdc=no
5430 if test $ac_cv_header_stdc = yes; then
5431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442 $EGREP "free" >/dev/null 2>&1; then
5445 ac_cv_header_stdc=no
5451 if test $ac_cv_header_stdc = yes; then
5452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5453 if test "$cross_compiling" = yes; then
5456 cat >conftest.$ac_ext <<_ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5464 #if ((' ' & 0x0FF) == 0x020)
5465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5468 # define ISLOWER(c) \
5469 (('a' <= (c) && (c) <= 'i') \
5470 || ('j' <= (c) && (c) <= 'r') \
5471 || ('s' <= (c) && (c) <= 'z'))
5472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5480 for (i = 0; i < 256; i++)
5481 if (XOR (islower (i), ISLOWER (i))
5482 || toupper (i) != TOUPPER (i))
5487 rm -f conftest$ac_exeext
5488 if { (ac_try="$ac_link"
5490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5491 *) ac_try_echo
=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_link") 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5498 { (case "(($ac_try" in
5499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_try") 2>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5509 echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_cv_header_stdc=no
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define STDC_HEADERS 1
5532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5543 inttypes.h stdint.h unistd.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5559 #include <$ac_header>
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5565 *) ac_try_echo
=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1
>conftest.err
5572 cat conftest.err
>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_c_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.
$ac_objext; then
5578 eval "$as_ac_Header=yes"
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.
$ac_ext >&5
5583 eval "$as_ac_Header=no"
5586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5588 ac_res
=`eval echo '${'$as_ac_Header'}'`
5589 { echo "$as_me:$LINENO: result: $ac_res" >&5
5590 echo "${ECHO_T}$ac_res" >&6; }
5591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5592 cat >>confdefs.h
<<_ACEOF
5593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610 for ac_header
in sys
/ipc.h sys
/shm.h \
5611 sys
/mmap.h sys
/mman.h sysexits.h \
5612 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5615 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 ac_res
=`eval echo '${'$as_ac_Header'}'`
5623 { echo "$as_me:$LINENO: result: $ac_res" >&5
5624 echo "${ECHO_T}$ac_res" >&6; }
5626 # Is the header compilable?
5627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5629 cat >conftest.
$ac_ext <<_ACEOF
5632 cat confdefs.h
>>conftest.
$ac_ext
5633 cat >>conftest.
$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 $ac_includes_default
5636 #include <$ac_header>
5638 rm -f conftest.
$ac_objext
5639 if { (ac_try
="$ac_compile"
5641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 ac_header_compiler=yes
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_header_compiler=no
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5665 echo "${ECHO_T}$ac_header_compiler" >&6; }
5667 # Is the header present?
5668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5670 cat >conftest.$ac_ext <<_ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <$ac_header>
5678 if { (ac_try="$ac_cpp conftest.$ac_ext"
5680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5681 *) ac_try_echo
=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1
>conftest.err
5688 cat conftest.err
>&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } >/dev
/null
&& {
5691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5694 ac_header_preproc
=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.
$ac_ext >&5
5699 ac_header_preproc
=no
5702 rm -f conftest.err conftest.
$ac_ext
5703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5704 echo "${ECHO_T}$ac_header_preproc" >&6; }
5706 # So? What about this header?
5707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5713 ac_header_preproc
=yes
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 eval "$as_ac_Header=\$ac_header_preproc"
5738 ac_res
=`eval echo '${'$as_ac_Header'}'`
5739 { echo "$as_me:$LINENO: result: $ac_res" >&5
5740 echo "${ECHO_T}$ac_res" >&6; }
5743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5744 cat >>confdefs.h
<<_ACEOF
5745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5754 for ac_header
in sys
/mount.h
5756 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5759 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 cat >conftest.
$ac_ext <<_ACEOF
5765 cat confdefs.h
>>conftest.
$ac_ext
5766 cat >>conftest.
$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <sys/param.h>
5770 #include <$ac_header>
5772 rm -f conftest.
$ac_objext
5773 if { (ac_try
="$ac_compile"
5775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 eval "$as_ac_Header=yes"
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 eval "$as_ac_Header=no"
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 ac_res=`eval echo '${'$as_ac_Header'}'`
5800 { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5818 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5819 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5820 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5821 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #include <sys/types.h>
5843 rm -f conftest.$ac_objext
5844 if { (ac_try="$ac_compile"
5846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5847 *) ac_try_echo
=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5852 grep -v '^ *+' conftest.er1
>conftest.err
5854 cat conftest.err
>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.
$ac_objext; then
5860 eval "$as_ac_Header=yes"
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.
$ac_ext >&5
5865 eval "$as_ac_Header=no"
5868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5870 ac_res
=`eval echo '${'$as_ac_Header'}'`
5871 { echo "$as_me:$LINENO: result: $ac_res" >&5
5872 echo "${ECHO_T}$ac_res" >&6; }
5873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5874 cat >>confdefs.h
<<_ACEOF
5875 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5878 ac_header_dirent
=$ac_hdr; break
5882 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5883 if test $ac_header_dirent = dirent.h
; then
5884 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5886 if test "${ac_cv_search_opendir+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_func_search_save_LIBS
=$LIBS
5890 cat >conftest.
$ac_ext <<_ACEOF
5893 cat confdefs.h
>>conftest.
$ac_ext
5894 cat >>conftest.
$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5912 for ac_lib
in '' dir
; do
5913 if test -z "$ac_lib"; then
5914 ac_res
="none required"
5917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5919 rm -f conftest.
$ac_objext conftest
$ac_exeext
5920 if { (ac_try
="$ac_link"
5922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_link") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest$ac_exeext &&
5936 $as_test_x conftest$ac_exeext; then
5937 ac_cv_search_opendir=$ac_res
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5947 if test "${ac_cv_search_opendir+set}" = set; then
5951 if test "${ac_cv_search_opendir+set}" = set; then
5954 ac_cv_search_opendir=no
5957 LIBS=$ac_func_search_save_LIBS
5959 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5960 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5961 ac_res=$ac_cv_search_opendir
5962 if test "$ac_res" != no; then
5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5968 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5969 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5970 if test "${ac_cv_search_opendir+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_func_search_save_LIBS=$LIBS
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5981 /* Override any GCC internal prototype to avoid an error.
5982 Use char because int might match the return type of a GCC
5983 builtin and then its argument prototype would still apply. */
5996 for ac_lib in '' x; do
5997 if test -z "$ac_lib"; then
5998 ac_res="none required"
6001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6007 *) ac_try_echo
=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1
>conftest.err
6014 cat conftest.err
>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest
$ac_exeext &&
6020 $as_test_x conftest
$ac_exeext; then
6021 ac_cv_search_opendir
=$ac_res
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6029 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6031 if test "${ac_cv_search_opendir+set}" = set; then
6035 if test "${ac_cv_search_opendir+set}" = set; then
6038 ac_cv_search_opendir
=no
6041 LIBS
=$ac_func_search_save_LIBS
6043 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6044 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6045 ac_res
=$ac_cv_search_opendir
6046 if test "$ac_res" != no
; then
6047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6053 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6054 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6055 if test "${ac_cv_header_stat_broken+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.
$ac_ext <<_ACEOF
6061 cat confdefs.h
>>conftest.
$ac_ext
6062 cat >>conftest.
$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6065 #include <sys/stat.h>
6067 #if defined S_ISBLK && defined S_IFDIR
6068 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6071 #if defined S_ISBLK && defined S_IFCHR
6072 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6075 #if defined S_ISLNK && defined S_IFREG
6076 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6079 #if defined S_ISSOCK && defined S_IFREG
6080 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6084 rm -f conftest.
$ac_objext
6085 if { (ac_try
="$ac_compile"
6087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compile") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest.$ac_objext; then
6101 ac_cv_header_stat_broken=no
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_cv_header_stat_broken=yes
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6112 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6113 if test $ac_cv_header_stat_broken = yes; then
6115 cat >>confdefs.h <<\_ACEOF
6116 #define STAT_MACROS_BROKEN 1
6121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6123 if test "${ac_cv_header_stdc+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6149 *) ac_try_echo
=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1
>conftest.err
6156 cat conftest.err
>&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest.
$ac_objext; then
6162 ac_cv_header_stdc
=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6167 ac_cv_header_stdc
=no
6170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 if test $ac_cv_header_stdc = yes; then
6173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6184 $EGREP "memchr" >/dev
/null
2>&1; then
6187 ac_cv_header_stdc
=no
6193 if test $ac_cv_header_stdc = yes; then
6194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6195 cat >conftest.
$ac_ext <<_ACEOF
6198 cat confdefs.h
>>conftest.
$ac_ext
6199 cat >>conftest.
$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6205 $EGREP "free" >/dev
/null
2>&1; then
6208 ac_cv_header_stdc
=no
6214 if test $ac_cv_header_stdc = yes; then
6215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6216 if test "$cross_compiling" = yes; then
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6227 #if ((' ' & 0x0FF) == 0x020)
6228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6231 # define ISLOWER(c) \
6232 (('a' <= (c) && (c) <= 'i') \
6233 || ('j' <= (c) && (c) <= 'r') \
6234 || ('s' <= (c) && (c) <= 'z'))
6235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6243 for (i = 0; i < 256; i++)
6244 if (XOR (islower (i), ISLOWER (i))
6245 || toupper (i) != TOUPPER (i))
6250 rm -f conftest
$ac_exeext
6251 if { (ac_try
="$ac_link"
6253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6261 { (case "(($ac_try" in
6262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6263 *) ac_try_echo
=$ac_try;;
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_try") 2>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6272 echo "$as_me: program exited with status $ac_status" >&5
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6277 ac_cv_header_stdc
=no
6279 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6285 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6286 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6287 if test $ac_cv_header_stdc = yes; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define STDC_HEADERS 1
6295 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6296 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6297 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6307 #include <sys/wait.h>
6309 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6312 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6325 rm -f conftest.
$ac_objext
6326 if { (ac_try
="$ac_compile"
6328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest.$ac_objext; then
6342 ac_cv_header_sys_wait_h=yes
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 ac_cv_header_sys_wait_h=no
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6353 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6354 if test $ac_cv_header_sys_wait_h = yes; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_SYS_WAIT_H 1
6362 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6363 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6364 if test "${ac_cv_header_time+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <sys/time.h>
6380 if ((struct tm *) 0)
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6390 *) ac_try_echo
=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.
$ac_objext; then
6403 ac_cv_header_time
=yes
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.
$ac_ext >&5
6408 ac_cv_header_time
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6414 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6415 if test $ac_cv_header_time = yes; then
6417 cat >>confdefs.h
<<\_ACEOF
6418 #define TIME_WITH_SYS_TIME 1
6423 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6424 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6425 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 cat >conftest.
$ac_ext <<_ACEOF
6431 cat confdefs.h
>>conftest.
$ac_ext
6432 cat >>conftest.
$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6438 static struct stat ac_aggr;
6439 if (ac_aggr.st_blksize)
6445 rm -f conftest.
$ac_objext
6446 if { (ac_try
="$ac_compile"
6448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1 >conftest.err
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 ac_cv_member_struct_stat_st_blksize=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6477 static struct stat ac_aggr;
6478 if (sizeof ac_aggr.st_blksize)
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6488 *) ac_try_echo
=$ac_try;;
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1
>conftest.err
6495 cat conftest.err
>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.
$ac_objext; then
6501 ac_cv_member_struct_stat_st_blksize
=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.
$ac_ext >&5
6506 ac_cv_member_struct_stat_st_blksize
=no
6509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6515 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6516 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6518 cat >>confdefs.h
<<_ACEOF
6519 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6523 cat >>confdefs.h
<<\_ACEOF
6524 #define HAVE_ST_BLKSIZE 1
6530 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6531 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6532 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6545 static struct stat ac_aggr;
6546 if (ac_aggr.st_blocks)
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_member_struct_stat_st_blocks=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6584 static struct stat ac_aggr;
6585 if (sizeof ac_aggr.st_blocks)
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6595 *) ac_try_echo
=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6600 grep -v '^ *+' conftest.er1
>conftest.err
6602 cat conftest.err
>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.
$ac_objext; then
6608 ac_cv_member_struct_stat_st_blocks
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_cv_member_struct_stat_st_blocks
=no
6616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6622 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6623 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6625 cat >>confdefs.h
<<_ACEOF
6626 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6630 cat >>confdefs.h
<<\_ACEOF
6631 #define HAVE_ST_BLOCKS 1
6635 case " $LIBOBJS " in
6636 *" fileblocks.$ac_objext "* ) ;;
6637 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6644 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6645 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6646 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 cat >conftest.
$ac_ext <<_ACEOF
6652 cat confdefs.h
>>conftest.
$ac_ext
6653 cat >>conftest.
$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6659 static struct stat ac_aggr;
6660 if (ac_aggr.st_rdev)
6666 rm -f conftest.
$ac_objext
6667 if { (ac_try
="$ac_compile"
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 ac_cv_member_struct_stat_st_rdev=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 $ac_includes_default
6698 static struct stat ac_aggr;
6699 if (sizeof ac_aggr.st_rdev)
6705 rm -f conftest.$ac_objext
6706 if { (ac_try="$ac_compile"
6708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6709 *) ac_try_echo
=$ac_try;;
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1
>conftest.err
6716 cat conftest.err
>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.
$ac_objext; then
6722 ac_cv_member_struct_stat_st_rdev
=yes
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.
$ac_ext >&5
6727 ac_cv_member_struct_stat_st_rdev
=no
6730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6736 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6737 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6739 cat >>confdefs.h
<<_ACEOF
6740 #define HAVE_STRUCT_STAT_ST_RDEV 1
6744 cat >>confdefs.h
<<\_ACEOF
6745 #define HAVE_ST_RDEV 1
6751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6753 if test "${ac_cv_struct_tm+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cat >conftest.
$ac_ext <<_ACEOF
6759 cat confdefs.h
>>conftest.
$ac_ext
6760 cat >>conftest.
$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <sys/types.h>
6769 int *p = &tm.tm_sec;
6775 rm -f conftest.
$ac_objext
6776 if { (ac_try
="$ac_compile"
6778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_compile") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest.$ac_objext; then
6792 ac_cv_struct_tm=time.h
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 ac_cv_struct_tm=sys/time.h
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6803 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6804 if test $ac_cv_struct_tm = sys/time.h; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define TM_IN_SYS_TIME 1
6812 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6813 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6814 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 cat >conftest.$ac_ext <<_ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <sys/types.h>
6824 #include <$ac_cv_struct_tm>
6830 static struct tm ac_aggr;
6831 if (ac_aggr.tm_zone)
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6841 *) ac_try_echo
=$ac_try;;
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6846 grep -v '^ *+' conftest.er1
>conftest.err
6848 cat conftest.err
>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.
$ac_objext; then
6854 ac_cv_member_struct_tm_tm_zone
=yes
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.
$ac_ext >&5
6859 cat >conftest.
$ac_ext <<_ACEOF
6862 cat confdefs.h
>>conftest.
$ac_ext
6863 cat >>conftest.
$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <sys/types.h>
6866 #include <$ac_cv_struct_tm>
6872 static struct tm ac_aggr;
6873 if (sizeof ac_aggr.tm_zone)
6879 rm -f conftest.
$ac_objext
6880 if { (ac_try
="$ac_compile"
6882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_compile") 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 } && test -s conftest.$ac_objext; then
6896 ac_cv_member_struct_tm_tm_zone=yes
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_member_struct_tm_tm_zone=no
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6911 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6913 cat >>confdefs.h <<_ACEOF
6914 #define HAVE_STRUCT_TM_TM_ZONE 1
6920 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_TM_ZONE 1
6927 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6928 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6929 if test "${ac_cv_have_decl_tzname+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6955 *) ac_try_echo
=$ac_try;;
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1
>conftest.err
6962 cat conftest.err
>&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.
$ac_objext; then
6968 ac_cv_have_decl_tzname
=yes
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.
$ac_ext >&5
6973 ac_cv_have_decl_tzname
=no
6976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6979 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6980 if test $ac_cv_have_decl_tzname = yes; then
6982 cat >>confdefs.h
<<_ACEOF
6983 #define HAVE_DECL_TZNAME 1
6988 cat >>confdefs.h
<<_ACEOF
6989 #define HAVE_DECL_TZNAME 0
6996 { echo "$as_me:$LINENO: checking for tzname" >&5
6997 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6998 if test "${ac_cv_var_tzname+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.
$ac_ext <<_ACEOF
7004 cat confdefs.h
>>conftest.
$ac_ext
7005 cat >>conftest.
$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7008 #if !HAVE_DECL_TZNAME
7009 extern char *tzname[];
7015 return tzname[0][0];
7020 rm -f conftest.
$ac_objext conftest
$ac_exeext
7021 if { (ac_try
="$ac_link"
7023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_link") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext &&
7037 $as_test_x conftest$ac_exeext; then
7038 ac_cv_var_tzname=yes
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7047 conftest$ac_exeext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7050 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7051 if test $ac_cv_var_tzname = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_TZNAME 1
7060 { echo "$as_me:$LINENO: checking for off_t" >&5
7061 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7062 if test "${ac_cv_type_off_t+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 typedef off_t ac__type_new_;
7076 if ((ac__type_new_ *) 0)
7078 if (sizeof (ac__type_new_))
7084 rm -f conftest.$ac_objext
7085 if { (ac_try="$ac_compile"
7087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7088 *) ac_try_echo
=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_compile") 2>conftest.er1
7093 grep -v '^ *+' conftest.er1
>conftest.err
7095 cat conftest.err
>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && {
7098 test -z "$ac_c_werror_flag" ||
7099 test ! -s conftest.err
7100 } && test -s conftest.
$ac_objext; then
7101 ac_cv_type_off_t
=yes
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.
$ac_ext >&5
7109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7112 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7113 if test $ac_cv_type_off_t = yes; then
7117 cat >>confdefs.h
<<_ACEOF
7118 #define off_t long int
7123 { echo "$as_me:$LINENO: checking for pid_t" >&5
7124 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7125 if test "${ac_cv_type_pid_t+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.
$ac_ext <<_ACEOF
7131 cat confdefs.h
>>conftest.
$ac_ext
7132 cat >>conftest.
$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7135 typedef pid_t ac__type_new_;
7139 if ((ac__type_new_ *) 0)
7141 if (sizeof (ac__type_new_))
7147 rm -f conftest.
$ac_objext
7148 if { (ac_try
="$ac_compile"
7150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7154 (eval "$ac_compile") 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } && {
7161 test -z "$ac_c_werror_flag" ||
7162 test ! -s conftest.err
7163 } && test -s conftest.$ac_objext; then
7164 ac_cv_type_pid_t=yes
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7175 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7176 if test $ac_cv_type_pid_t = yes; then
7180 cat >>confdefs.h <<_ACEOF
7186 { echo "$as_me:$LINENO: checking for size_t" >&5
7187 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7188 if test "${ac_cv_type_size_t+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7198 typedef size_t ac__type_new_;
7202 if ((ac__type_new_ *) 0)
7204 if (sizeof (ac__type_new_))
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7214 *) ac_try_echo
=$ac_try;;
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.
$ac_objext; then
7227 ac_cv_type_size_t
=yes
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.
$ac_ext >&5
7232 ac_cv_type_size_t
=no
7235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7237 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7238 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7239 if test $ac_cv_type_size_t = yes; then
7243 cat >>confdefs.h
<<_ACEOF
7244 #define size_t unsigned int
7249 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7250 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7251 if test "${ac_cv_type_uid_t+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 cat >conftest.
$ac_ext <<_ACEOF
7257 cat confdefs.h
>>conftest.
$ac_ext
7258 cat >>conftest.
$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #include <sys/types.h>
7263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264 $EGREP "uid_t" >/dev
/null
2>&1; then
7265 ac_cv_type_uid_t
=yes
7272 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7273 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7274 if test $ac_cv_type_uid_t = no
; then
7276 cat >>confdefs.h
<<\_ACEOF
7281 cat >>confdefs.h
<<\_ACEOF
7288 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7289 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7290 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.
$ac_ext <<_ACEOF
7296 cat confdefs.h
>>conftest.
$ac_ext
7297 cat >>conftest.
$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7303 static struct tm ac_aggr;
7304 if (ac_aggr.tm_gmtoff)
7310 rm -f conftest.
$ac_objext
7311 if { (ac_try
="$ac_compile"
7313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_cv_member_struct_tm_tm_gmtoff=yes
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7342 static struct tm ac_aggr;
7343 if (sizeof ac_aggr.tm_gmtoff)
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7353 *) ac_try_echo
=$ac_try;;
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1
>conftest.err
7360 cat conftest.err
>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.
$ac_objext; then
7366 ac_cv_member_struct_tm_tm_gmtoff
=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 ac_cv_member_struct_tm_tm_gmtoff
=no
7374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7380 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7381 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7383 cat >>confdefs.h
<<_ACEOF
7384 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7391 # Look for some functions
7406 for ac_func
in getpagesize kqueue statfs statvfs \
7407 clone kse_create rfork_thread thr_create sa_register \
7408 getcontext makecontext setcontext sigaltstack swapcontext
7410 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7413 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.
$ac_ext <<_ACEOF
7419 cat confdefs.h
>>conftest.
$ac_ext
7420 cat >>conftest.
$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7424 #define $ac_func innocuous_$ac_func
7426 /* System header to define __stub macros and hopefully few prototypes,
7427 which can conflict with char $ac_func (); below.
7428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7429 <limits.h> exists even on freestanding compilers. */
7432 # include <limits.h>
7434 # include <assert.h>
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7446 /* The GNU C library defines this for functions which it implements
7447 to always fail with ENOSYS. Some functions are actually named
7448 something starting with __ and the normal name is an alias. */
7449 #if defined __stub_$ac_func || defined __stub___$ac_func
7461 rm -f conftest.
$ac_objext conftest
$ac_exeext
7462 if { (ac_try
="$ac_link"
7464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_link") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest$ac_exeext &&
7478 $as_test_x conftest$ac_exeext; then
7479 eval "$as_ac_var=yes"
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 eval "$as_ac_var=no"
7487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7488 conftest$ac_exeext conftest.$ac_ext
7490 ac_res=`eval echo '${'$as_ac_var'}'`
7491 { echo "$as_me:$LINENO: result: $ac_res" >&5
7492 echo "${ECHO_T}$ac_res" >&6; }
7493 if test `eval echo '${'$as_ac_var'}'` = yes; then
7494 cat >>confdefs.h <<_ACEOF
7495 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
7504 for ac_header in stdlib.h unistd.h
7506 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_res=`eval echo '${'$as_ac_Header'}'`
7514 { echo "$as_me:$LINENO: result: $ac_res" >&5
7515 echo "${ECHO_T}$ac_res" >&6; }
7517 # Is the header compilable?
7518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7520 cat >conftest.$ac_ext <<_ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 #include <$ac_header>
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7533 *) ac_try_echo
=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1
>conftest.err
7540 cat conftest.err
>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.
$ac_objext; then
7546 ac_header_compiler
=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.
$ac_ext >&5
7551 ac_header_compiler
=no
7554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7556 echo "${ECHO_T}$ac_header_compiler" >&6; }
7558 # Is the header present?
7559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7561 cat >conftest.
$ac_ext <<_ACEOF
7564 cat confdefs.h
>>conftest.
$ac_ext
7565 cat >>conftest.
$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 #include <$ac_header>
7569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7577 grep -v '^ *+' conftest.er1 >conftest.err
7579 cat conftest.err >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } >/dev/null && {
7582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7585 ac_header_preproc=yes
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_header_preproc=no
7593 rm -f conftest.err conftest.$ac_ext
7594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7595 echo "${ECHO_T}$ac_header_preproc" >&6; }
7597 # So? What about this header?
7598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7604 ac_header_preproc=yes
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 eval "$as_ac_Header=\$ac_header_preproc"
7629 ac_res=`eval echo '${'$as_ac_Header'}'`
7630 { echo "$as_me:$LINENO: result: $ac_res" >&5
7631 echo "${ECHO_T}$ac_res" >&6; }
7634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7635 cat >>confdefs.h <<_ACEOF
7636 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7644 for ac_func in getpagesize
7646 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define $ac_func innocuous_$ac_func
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7668 # include <limits.h>
7670 # include <assert.h>
7675 /* Override any GCC internal prototype to avoid an error.
7676 Use char because int might match the return type of a GCC
7677 builtin and then its argument prototype would still apply. */
7682 /* The GNU C library defines this for functions which it implements
7683 to always fail with ENOSYS. Some functions are actually named
7684 something starting with __ and the normal name is an alias. */
7685 #if defined __stub_$ac_func || defined __stub___$ac_func
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (ac_try="$ac_link"
7700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7701 *) ac_try_echo
=$ac_try;;
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_link") 2>conftest.er1
7706 grep -v '^ *+' conftest.er1
>conftest.err
7708 cat conftest.err
>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest
$ac_exeext &&
7714 $as_test_x conftest
$ac_exeext; then
7715 eval "$as_ac_var=yes"
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 eval "$as_ac_var=no"
7723 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7724 conftest
$ac_exeext conftest.
$ac_ext
7726 ac_res
=`eval echo '${'$as_ac_var'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728 echo "${ECHO_T}$ac_res" >&6; }
7729 if test `eval echo '${'$as_ac_var'}'` = yes; then
7730 cat >>confdefs.h
<<_ACEOF
7731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7737 { echo "$as_me:$LINENO: checking for working mmap" >&5
7738 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7739 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test "$cross_compiling" = yes; then
7743 ac_cv_func_mmap_fixed_mapped
=no
7745 cat >conftest.
$ac_ext <<_ACEOF
7748 cat confdefs.h
>>conftest.
$ac_ext
7749 cat >>conftest.
$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 /* malloc might have been renamed as rpl_malloc. */
7755 /* Thanks to Mike Haertel and Jim Avera for this test.
7756 Here is a matrix of mmap possibilities:
7757 mmap private not fixed
7758 mmap private fixed at somewhere currently unmapped
7759 mmap private fixed at somewhere already mapped
7760 mmap shared not fixed
7761 mmap shared fixed at somewhere currently unmapped
7762 mmap shared fixed at somewhere already mapped
7763 For private mappings, we should verify that changes cannot be read()
7764 back from the file, nor mmap's back from the file at a different
7765 address. (There have been systems where private was not correctly
7766 implemented like the infamous i386 svr4.0, and systems where the
7767 VM page cache was not coherent with the file system buffer cache
7768 like early versions of FreeBSD and possibly contemporary NetBSD.)
7769 For shared mappings, we should conversely verify that changes get
7770 propagated back to all the places they're supposed to be.
7772 Grep wants private fixed already mapped.
7773 The main things grep needs to know about mmap are:
7774 * does it exist and is it safe to write into the mmap'd area
7775 * how to use it (BSD variants) */
7778 #include <sys/mman.h>
7780 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7784 /* This mess was copied from the GNU getpagesize.h. */
7785 #ifndef HAVE_GETPAGESIZE
7786 /* Assume that all systems that can run configure have sys/param.h. */
7787 # ifndef HAVE_SYS_PARAM_H
7788 # define HAVE_SYS_PARAM_H 1
7791 # ifdef _SC_PAGESIZE
7792 # define getpagesize() sysconf(_SC_PAGESIZE)
7793 # else /* no _SC_PAGESIZE */
7794 # ifdef HAVE_SYS_PARAM_H
7795 # include <sys/param.h>
7796 # ifdef EXEC_PAGESIZE
7797 # define getpagesize() EXEC_PAGESIZE
7798 # else /* no EXEC_PAGESIZE */
7800 # define getpagesize() NBPG * CLSIZE
7803 # endif /* no CLSIZE */
7804 # else /* no NBPG */
7806 # define getpagesize() NBPC
7807 # else /* no NBPC */
7809 # define getpagesize() PAGESIZE
7810 # endif /* PAGESIZE */
7811 # endif /* no NBPC */
7812 # endif /* no NBPG */
7813 # endif /* no EXEC_PAGESIZE */
7814 # else /* no HAVE_SYS_PARAM_H */
7815 # define getpagesize() 8192 /* punt totally */
7816 # endif /* no HAVE_SYS_PARAM_H */
7817 # endif /* no _SC_PAGESIZE */
7819 #endif /* no HAVE_GETPAGESIZE */
7824 char *data, *data2, *data3;
7828 pagesize = getpagesize ();
7830 /* First, make a file with some known garbage in it. */
7831 data = (char *) malloc (pagesize);
7834 for (i = 0; i < pagesize; ++i)
7835 *(data + i) = rand ();
7837 fd = creat ("conftest.mmap", 0600);
7840 if (write (fd, data, pagesize) != pagesize)
7844 /* Next, try to mmap the file at a fixed address which already has
7845 something else allocated at it. If we can, also make sure that
7846 we see the same garbage. */
7847 fd = open ("conftest.mmap", O_RDWR);
7850 data2 = (char *) malloc (2 * pagesize);
7853 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7854 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7855 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7857 for (i = 0; i < pagesize; ++i)
7858 if (*(data + i) != *(data2 + i))
7861 /* Finally, make sure that changes to the mapped area do not
7862 percolate back to the file as seen by read(). (This is a bug on
7863 some variants of i386 svr4.0.) */
7864 for (i = 0; i < pagesize; ++i)
7865 *(data2 + i) = *(data2 + i) + 1;
7866 data3 = (char *) malloc (pagesize);
7869 if (read (fd, data3, pagesize) != pagesize)
7871 for (i = 0; i < pagesize; ++i)
7872 if (*(data + i) != *(data3 + i))
7878 rm -f conftest
$ac_exeext
7879 if { (ac_try
="$ac_link"
7881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (case "(($ac_try" in
7890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7891 *) ac_try_echo
=$ac_try;;
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_try") 2>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_func_mmap_fixed_mapped
=yes
7900 echo "$as_me: program exited with status $ac_status" >&5
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.
$ac_ext >&5
7905 ac_cv_func_mmap_fixed_mapped
=no
7907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7912 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7913 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7914 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7926 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7927 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7928 aros_config_ldflags
=""
7930 aros_shared_default
=yes
7932 aros_shared_cflags
="-fPIC"
7933 aros_shared_aflags
=""
7934 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7935 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7937 aros_target_ar_flags
="cr"
7938 aros_target_nm_flags
="-C -ul"
7939 aros_target_strip_flags
="--strip-unneeded -R.comment"
7944 aros_target_genmap
="-Wl,-Map -Xlinker"
7946 # Native flavour stuff
7947 aros_serial_debug
="0"
7949 # Palm native flavour stuff
7950 aros_palm_debug_hack
="0"
7952 # Unix flavour stuff
7953 aros_nesting_supervisor
="0"
7955 # Collect-aros stuff: "-ius" to ignore undefined symbols
7956 ignore_undefined_symbols
=""
7958 #-----------------------------------------------------------------------------
7961 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7962 # it switched on by default, and we use the host compiler, so it compiles AROS
7963 # code with this enabled resulting in link failures as we don't have support
7966 # We use two methods to disable it. For the host compiler (used to compile
7967 # some hosted modules), we test to see if the compiler supports stack
7968 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7969 # work on all platforms.
7971 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7972 # (this is done unconditionally, as it should have no effect on compilers
7973 # without the stack protection feature). This may be specific to the way that
7974 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7975 # strong enough to disable it in a generic way though, so we'll live with it
7976 # until another vendor ships GCC with it enabled in a different way, and deal
7980 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7981 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7982 save_cflags
="$CFLAGS"
7983 CFLAGS
="$CFLAGS -fno-stack-protector"
7984 cat >conftest.
$ac_ext <<_ACEOF
7987 cat confdefs.h
>>conftest.
$ac_ext
7988 cat >>conftest.
$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7999 rm -f conftest.
$ac_objext
8000 if { (ac_try
="$ac_compile"
8002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 use_no_stack_protector="yes"
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 use_no_stack_protector="no"
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8026 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8027 if test "x-$use_no_stack_protector" = "x-yes" ; then
8028 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8030 CFLAGS="$save_cflags"
8032 #-----------------------------------------------------------------------------
8034 # Disable pointer-signedness warnings if the compiler recognises the option
8035 # (this only works for the host compiler at the moment)
8037 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8038 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8039 save_cflags="$CFLAGS"
8040 CFLAGS="$CFLAGS -Wno-pointer-sign"
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8056 rm -f conftest.$ac_objext
8057 if { (ac_try="$ac_compile"
8059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8060 *) ac_try_echo
=$ac_try;;
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_compile") 2>conftest.er1
8065 grep -v '^ *+' conftest.er1
>conftest.err
8067 cat conftest.err
>&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest.
$ac_objext; then
8073 use_no_sign_warning
="yes"
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 use_no_sign_warning
="no"
8081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8082 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8083 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8084 if test "x-$use_no_sign_warning" = "x-yes" ; then
8085 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
8087 CFLAGS
="$save_cflags"
8089 #-----------------------------------------------------------------------------
8091 { echo "$as_me:$LINENO: checking for type of build" >&5
8092 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8093 # Check whether --enable-build_type was given.
8094 if test "${enable_build_type+set}" = set; then
8095 enableval
=$enable_build_type; build_type
=$enableval
8097 build_type
="personal"
8101 if test "$build_type" = "nightly"; then
8102 build_type_string
="NIGHTLY"
8103 elif test "$build_type" = "snapshot"; then
8104 build_type_string
="SNAPSHOT"
8105 elif test "$build_type" = "milestone"; then
8106 build_type_string
="MILESTONE"
8107 elif test "$build_type" = "release"; then
8108 build_type_string
="RELEASE"
8110 build_type_string
="PERSONAL"
8111 build_type
="personal"
8114 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8116 { echo "$as_me:$LINENO: result: $build_type" >&5
8117 echo "${ECHO_T}$build_type" >&6; }
8119 #-----------------------------------------------------------------------------
8120 all_debug_types
="messages stack modules mungwall symbols"
8122 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8123 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8124 # Check whether --enable-debug was given.
8125 if test "${enable_debug+set}" = set; then
8126 enableval
=$enable_debug; debug
="$enableval"
8132 if test "$debug" = "" -o "$debug" = "no"; then
8134 elif test "$debug" = "yes"; then
8138 if test "$debug" = "all" ; then
8139 debug
="messages stack modules symbols"
8140 for d
in $all_debug_types; do
8141 export aros_
${d}_debug
="1"
8144 for d
in $all_debug_types; do
8145 export aros_
${d}_debug
="0"
8149 if test "$debug" != "none"; then
8150 debug
=`echo $debug | sed s/,/\ /g`
8153 for d2
in $all_debug_types; do
8154 if test "$d2" = "$d"; then
8159 if test "$found" = "0"; then
8160 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8161 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8162 { (exit 1); exit 1; }; }
8164 export aros_
${d}_debug
="1"
8168 { echo "$as_me:$LINENO: result: $debug" >&5
8169 echo "${ECHO_T}$debug" >&6; }
8171 if test "$aros_messages_debug" = "1"; then
8172 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
8174 aros_messages_debug
=""
8176 if test "$aros_symbols_debug" = "1"; then
8177 aros_symbols_debug
="-g"
8179 aros_symbols_debug
=""
8182 # These are the flags to pass when compiling debugged programs
8183 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
8184 aros_debug_aflags
=""
8185 aros_debug_ldflags
="$aros_symbols_debug"
8187 aros_crosstools
="no"
8189 #-----------------------------------------------------------------------------
8190 # Checking if we should build crosstools..
8191 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8192 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8193 # Check whether --enable-crosstools was given.
8194 if test "${enable_crosstools+set}" = set; then
8195 enableval
=$enable_crosstools; crosstools
="$enableval"
8200 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8201 { echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6; }
8203 aros_crosstools
="yes"
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8209 #-----------------------------------------------------------------------------
8210 # Checking for distcc and ccache.
8212 # Always apply the transforms in this particular order. Basically you should
8213 # always run 'ccache distcc compiler' in that order for the best performance.
8215 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8216 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8217 # Check whether --enable-distcc was given.
8218 if test "${enable_distcc+set}" = set; then
8219 enableval
=$enable_distcc; distcc
="$enableval"
8224 if test "$distcc" != "" -a "$distcc" != "no"; then
8225 # AC_CHECK_PROG will print out the result in this case
8226 # Extract the first word of "distcc", so it can be a program name with args.
8227 set dummy distcc
; ac_word
=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_DISTCC+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
8238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8242 test -z "$as_dir" && as_dir
=.
8243 for ac_exec_ext
in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
8257 DISTCC
=$ac_cv_path_DISTCC
8258 if test -n "$DISTCC"; then
8259 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8260 echo "${ECHO_T}$DISTCC" >&6; }
8262 { echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6; }
8268 { echo "$as_me:$LINENO: result: no" >&5
8269 echo "${ECHO_T}no" >&6; }
8272 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8273 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8274 # Check whether --enable-ccache was given.
8275 if test "${enable_ccache+set}" = set; then
8276 enableval
=$enable_ccache; ccache
="$enableval"
8281 if test "$ccache" != "" -a "$ccache" != "no"; then
8282 # AC_CHECK_PROG will print out the result in this case
8283 # Extract the first word of "ccache", so it can be a program name with args.
8284 set dummy ccache
; ac_word
=$2
8285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8287 if test "${ac_cv_prog_CCACHE+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 if test -n "$CCACHE"; then
8291 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
8293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8297 test -z "$as_dir" && as_dir
=.
8298 for ac_exec_ext
in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_prog_CCACHE
="ccache"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 CCACHE
=$ac_cv_prog_CCACHE
8311 if test -n "$CCACHE"; then
8312 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8313 echo "${ECHO_T}$CCACHE" >&6; }
8315 { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8321 { echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6; }
8325 #-----------------------------------------------------------------------------
8326 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8327 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8329 # Check whether --with-gcc-version was given.
8330 if test "${with_gcc_version+set}" = set; then
8331 withval
=$with_gcc_version; target_tool_version
="$withval"
8333 target_tool_version
="default"
8336 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8337 echo "${ECHO_T}$target_tool_version" >&6; }
8339 #-----------------------------------------------------------------------------
8340 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8341 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8343 # Check whether --with-optimization was given.
8344 if test "${with_optimization+set}" = set; then
8345 withval
=$with_optimization; optimization
="$withval"
8347 optimization
="unknown"
8350 if test "$optimization" = "unknown"; then
8351 if test "$debug" != "none"; then
8357 aros_config_cflags
="$aros_config_cflags $optimization"
8358 { echo "$as_me:$LINENO: result: $optimization" >&5
8359 echo "${ECHO_T}$optimization" >&6; }
8361 #-----------------------------------------------------------------------------
8362 if test "$target_os" = "ios"; then
8364 { echo "$as_me:$LINENO: checking XCode path" >&5
8365 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8367 # Check whether --with-xcode-path was given.
8368 if test "${with_xcode_path+set}" = set; then
8369 withval
=$with_xcode_path; aros_xcode_path
="$withval"
8371 aros_xcode_path
="/Developer"
8374 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8375 echo "${ECHO_T}$aros_xcode_path" >&6; }
8377 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8378 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8380 # Check whether --with-ios-version was given.
8381 if test "${with_ios_version+set}" = set; then
8382 withval
=$with_ios_version; aros_ios_version
="$withval"
8384 aros_ios_version
="2.0"
8387 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8388 echo "${ECHO_T}$aros_ios_version" >&6; }
8390 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8391 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8393 # Check whether --with-ios-sdk was given.
8394 if test "${with_ios_sdk+set}" = set; then
8395 withval
=$with_ios_sdk; aros_ios_sdk
="$withval"
8400 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8401 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8405 #-----------------------------------------------------------------------------
8406 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8407 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8408 # Check whether --enable-target_variant was given.
8409 if test "${enable_target_variant+set}" = set; then
8410 enableval
=$enable_target_variant; target_variant
=$enableval
8412 target_variant
="none"
8415 if test "$target_variant" = "none"; then
8416 aros_target_variant
=""
8417 aros_target_suffix
=""
8419 aros_target_variant
="$target_variant"
8420 aros_target_suffix
="-$target_variant"
8422 { echo "$as_me:$LINENO: result: $enableval" >&5
8423 echo "${ECHO_T}$enableval" >&6; }
8425 target_bootloader
="none"
8427 #-----------------------------------------------------------------------------
8428 # This is the target configuration switch.
8429 case "$target_os" in
8431 aros_target_arch
="linux"
8432 case "$target_cpu" in
8434 aros_target_cpu
="m68k"
8435 aros_object_format
="m68kelf"
8436 aros_flavour
="emulcompat"
8437 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8438 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8439 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8440 gcc_target_cpu
="mc68000"
8443 aros_target_cpu
="i386"
8444 aros_object_format
="elf_i386"
8445 aros_flavour
="emulation"
8446 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8447 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
8448 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
8449 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
8450 aros_config_ldflags
="-m32 -march=i486"
8451 aros_kernel_ldflags
="-melf_i386"
8452 aros_default_wbdepth
=8
8453 gcc_target_cpu
="i386"
8456 aros_target_cpu
="x86_64"
8457 aros_object_format
="elf_x86_64"
8458 aros_flavour
="emulation"
8459 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8460 aros_config_cflags
="$aros_config_cflags -mno-red-zone"
8461 aros_default_wbdepth
=8
8462 gcc_target_cpu
="x86_64"
8465 aros_target_cpu
="ppc"
8466 aros_object_format
="elf32ppc"
8467 aros_flavour
="emulation"
8468 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8469 aros_default_wbdepth
=8
8470 gcc_target_cpu
="ppc"
8473 # Same as powerpc, but I need this for the nightly build to work again.
8474 # Actually, the nightly should be made working with powerpc target.
8475 # That just was too much work for the moment, another week or two.
8477 aros_target_cpu
="ppc"
8478 aros_object_format
="elf32ppc"
8479 aros_flavour
="emulation"
8480 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8481 aros_default_wbdepth
=8
8482 gcc_target_cpu
="ppc"
8485 aros_target_cpu
="arm"
8486 aros_object_format
="armelf_linux_eabi"
8487 aros_flavour
="emulation"
8488 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8489 gcc_target_cpu
="arm"
8490 aros_config_cflags
="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8491 aros_config_aflags
="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8494 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8495 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8496 { (exit 1); exit 1; }; }
8502 aros_target_arch
="pc"
8503 aros_shared_default
="no"
8504 target_bootloader
="grub2"
8505 case "$target_cpu" in
8507 aros_target_cpu
="i386"
8510 if test "$aros_object_format" = "" ; then
8511 aros_object_format
="elf_i386"
8513 aros_flavour
="standalone"
8514 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8515 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
8516 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
8517 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
8518 aros_config_ldflags
="-m32 -march=i486"
8519 aros_kernel_ldflags
="-melf_i386"
8520 aros_default_wbwidth
=640
8521 aros_default_wbheight
=480
8522 gcc_target_cpu
="i386"
8525 aros_target_cpu
="x86_64"
8527 if test "$aros_object_format" = "" ; then
8528 aros_object_format
="elf_x86_64"
8530 aros_flavour
="standalone"
8531 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8532 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8533 aros_kernel_ldflags
=""
8534 aros_default_wbwidth
=640
8535 aros_default_wbheight
=480
8536 gcc_target_cpu
="x86_64"
8539 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8540 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8541 { (exit 1); exit 1; }; }
8547 aros_target_arch
="prep"
8548 aros_shared_default
="no"
8549 aros_target_cpu
="ppc"
8550 aros_object_format
="elf32ppc"
8551 aros_flavour
="ppcnative"
8552 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8553 aros_kernel_ldflags
=""
8554 aros_default_wbwidth
=640
8555 aros_default_wbheight
=480
8556 gcc_target_cpu
="ppc"
8560 aros_target_arch
="freebsd"
8561 aros_target_cpu
="i386"
8562 aros_flavour
="emulation"
8563 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8564 gcc_target_cpu
="i386"
8566 aros_target_strip_flags
="-x"
8570 aros_target_arch
="darwin"
8571 aros_flavour
="emulation"
8572 case "$target_cpu" in
8574 aros_target_cpu
="i386"
8575 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8576 aros_kernel_cflags
="$aros_kernel_cflags -m32"
8577 aros_kernel_ldflags
="$aros_kernel_ldflags -m32"
8578 aros_default_wbdepth
=8
8579 gcc_target_cpu
="i386"
8580 aros_object_format
="elf_i386"
8581 aros_target_strip_flags
="-x"
8582 aros_target_cc
="i386-aros-gcc"
8583 aros_target_cxx
="i386-aros-g++"
8584 aros_target_ld
="i386-aros-ld"
8585 aros_target_as
="i386-aros-as"
8586 aros_target_ar
="i386-aros-ar"
8587 aros_target_ranlib
="i386-aros-ranlib"
8588 aros_target_nm
="i386-aros-nm"
8589 aros_target_strip
="i386-aros-strip"
8590 aros_target_objcopy
="i386-aros-objcopy"
8591 aros_target_objdump
="i386-aros-objdump"
8592 target_tool_prefix
="i686-apple-darwin10-"
8595 aros_target_cpu
="x86_64"
8596 aros_object_format
="elf_x86_64"
8597 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8598 aros_kernel_cflags
="$aros_kernel_cflags -m64"
8599 aros_kernel_ldflags
="$aros_kernel_ldflags -m64"
8600 aros_default_wbdepth
=8
8601 gcc_target_cpu
="x86_64"
8602 aros_target_cc
="x86_64-aros-gcc"
8603 aros_target_cxx
="x86_64-aros-g++"
8604 aros_target_ld
="x86_64-aros-ld"
8605 aros_target_as
="x86_64-aros-as"
8606 aros_target_ar
="x86_64-aros-ar"
8607 aros_target_ranlib
="x86_64-aros-ranlib"
8608 aros_target_nm
="x86_64-aros-nm"
8609 aros_target_strip
="x86_64-aros-strip"
8610 aros_target_objcopy
="x86_64-aros-objcopy"
8611 aros_target_objdump
="x86_64-aros-objdump"
8612 target_tool_prefix
="i686-apple-darwin10-"
8615 aros_target_cpu
="ppc"
8616 aros_object_format
="elf32_ppc"
8617 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8618 aros_default_wbdepth
=8
8619 gcc_target_cpu
="ppc"
8620 aros_target_cc
="ppc-aros-gcc"
8621 aros_target_cxx
="ppc-aros-g++"
8622 aros_target_ld
="ppc-aros-ld"
8623 aros_target_as
="ppc-aros-as"
8624 aros_target_ar
="ppc-aros-ar"
8625 aros_target_ranlib
="ppc-aros-ranlib"
8626 aros_target_nm
="ppc-aros-nm"
8627 aros_target_strip
="ppc-aros-strip"
8628 aros_target_objcopy
="ppc-aros-objcopy"
8629 aros_target_objdump
="ppc-aros-objdump"
8630 target_tool_prefix
="powerpc-apple-darwin10-"
8633 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8634 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8635 { (exit 1); exit 1; }; }
8641 aros_target_arch
="ios"
8642 aros_flavour
="emulation"
8643 # This is here because it may depend on iOS or SDK version
8644 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8645 case "$target_cpu" in
8647 aros_ios_platform
="iPhoneSimulator"
8648 aros_target_cpu
="i386"
8649 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8650 aros_default_wbdepth
=8
8651 gcc_target_cpu
="i386"
8652 aros_object_format
="elf_i386"
8653 aros_target_strip_flags
="-x"
8654 aros_target_cc
="i386-aros-gcc"
8655 aros_target_cxx
="i386-aros-g++"
8656 aros_target_ld
="i386-aros-ld"
8657 aros_target_as
="i386-aros-as"
8658 aros_target_ar
="i386-aros-ar"
8659 aros_target_ranlib
="i386-aros-ranlib"
8660 aros_target_nm
="i386-aros-nm"
8661 aros_target_strip
="i386-aros-strip"
8662 aros_target_objcopy
="i386-aros-objcopy"
8663 aros_target_objdump
="i386-aros-objdump"
8664 target_tool_prefix
="i686-apple-darwin10-"
8665 target_tool_flags
="-m32"
8668 aros_ios_platform
="iPhoneOS"
8669 aros_target_cpu
="arm"
8670 aros_object_format
="armelf_linux_eabi"
8671 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8672 aros_config_cflags
="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8673 aros_config_aflags
="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8674 aros_arch_libs
="-laeabi"
8675 aros_default_wbdepth
=8
8676 gcc_target_cpu
="arm"
8677 aros_kernel_ld
="ld -arch armv6"
8678 aros_target_cc
="arm-linux-gnueabi-gcc"
8679 aros_target_ld
="arm-linux-gnueabi-ld"
8680 aros_target_as
="arm-linux-gnueabi-as"
8681 aros_target_ar
="arm-linux-gnueabi-ar"
8682 aros_target_ranlib
="arm-linux-gnueabi-ranlib"
8683 aros_target_nm
="arm-linux-gnueabi-nm"
8684 aros_target_strip
="arm-linux-gnueabi-strip"
8685 aros_target_objcopy
="arm-linux-gnueabi-objcopy"
8686 aros_target_objdump
="arm-linux-gnueabi-objdump"
8687 target_tool_prefix
="arm-apple-darwin10-"
8688 aros_default_wbwidth
=320
8689 aros_default_wbheight
=480
8690 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8693 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8694 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8695 { (exit 1); exit 1; }; }
8698 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8699 target_tool_flags
="$target_tool_flags --sysroot $aros_ios_sdk"
8703 aros_target_arch
="dragonfly"
8704 aros_flavour
="emulation"
8705 case "$target_cpu" in
8707 aros_target_cpu
="i386"
8708 aros_object_format
="elf_i386"
8709 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8712 aros_target_cpu
="x86_64"
8713 aros_object_format
="elf_x86_64"
8714 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8717 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8718 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8719 { (exit 1); exit 1; }; }
8725 aros_target_arch
="netbsd"
8726 case "$target_cpu" in
8728 aros_target_cpu
="m68k"
8729 aros_object_format
="m68kelf"
8730 aros_flavour
="emulcompat"
8731 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8732 gcc_target_cpu
="mc68000"
8735 aros_target_cpu
="i386"
8736 aros_object_format
="elf_i386"
8737 aros_flavour
="emulation"
8738 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8739 aros_default_wbdepth
=8
8740 gcc_target_cpu
="i386"
8743 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8744 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8745 { (exit 1); exit 1; }; }
8748 aros_target_genmap
="-Wl,-M -Xlinker >"
8749 aros_flavour
="emulation"
8750 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8754 aros_target_arch
="openbsd"
8755 case "$target_cpu" in
8757 aros_target_cpu
="i386"
8758 aros_object_format
="elf_i386"
8759 aros_flavour
="emulation"
8760 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8761 gcc_target_cpu
="i386"
8764 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8765 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8766 { (exit 1); exit 1; }; }
8769 aros_target_genmap
="-Wl,-M -Xlinker >"
8770 aros_target_nm_flags
="-u"
8771 aros_flavour
="emulation"
8775 aros_target_arch
="solaris"
8776 case "$target_cpu" in
8778 aros_target_cpu
="i386"
8779 aros_object_format
="elf_i386"
8780 aros_flavour
="emulation"
8781 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8782 aros_default_wbdepth
=8
8783 gcc_target_cpu
="i386"
8786 aros_target_cpu
="sparc"
8787 aros_object_format
="elf_sparc"
8788 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8789 gcc_target_cpu
="sparc"
8792 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8793 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8794 { (exit 1); exit 1; }; }
8797 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8798 aros_flavour
="emulation"
8802 aros_target_arch
="morphos"
8803 aros_shared_default
="no"
8804 aros_target_cpu
="ppc"
8805 aros_object_format
="elf_ppc"
8806 aros_flavour
="nativecompat"
8807 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8808 gcc_target_cpu
="ppc"
8812 aros_target_arch
="sam440"
8813 aros_shared_default
="no"
8814 aros_target_cpu
="ppc"
8815 aros_object_format
="elf32ppc"
8816 aros_flavour
="ppcnative"
8817 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8818 aros_kernel_ldflags
=""
8819 aros_default_wbwidth
=1024
8820 aros_default_wbheight
=768
8821 aros_default_wbdepth
=24
8822 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8823 gcc_target_cpu
="powerpc"
8827 aros_target_arch
="efika"
8828 aros_shared_default
="no"
8829 aros_target_cpu
="arm"
8830 aros_object_format
="armelf_linux_eabi"
8831 aros_flavour
="standalone"
8832 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8833 aros_kernel_ldflags
=""
8834 aros_default_wbwidth
=1024
8835 aros_default_wbheight
=600
8836 aros_arch_libs
="-laeabi"
8837 aros_config_cflags
="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8838 aros_config_aflags
="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8842 aros_target_arch
="chrp"
8843 aros_shared_default
="no"
8844 aros_target_cpu
="ppc"
8845 aros_object_format
="elf32ppc"
8846 aros_flavour
="ppcnative"
8847 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8848 aros_kernel_ldflags
=""
8849 aros_default_wbwidth
=640
8850 aros_default_wbheight
=480
8851 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8852 gcc_target_cpu
="powerpc"
8853 case "$aros_target_variant" in
8855 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8861 aros_target_arch
="amiga"
8862 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8863 aros_shared_default
="no"
8865 case "$target_cpu" in
8867 aros_target_cpu
="m68k"
8868 aros_object_format
="m68kelf"
8869 aros_flavour
="standalone"
8870 gcc_target_cpu
="mc68000"
8871 aros_config_cflags
="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8872 aros_config_aflags
="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8873 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8874 target_tool_prefix
="m68k-elf-"
8875 aros_target_nostdlib_ldflags
="" # We always need -lgcc
8876 aros_target_strip_flags
="-R.comment"
8879 aros_target_cpu
="m68k"
8880 aros_object_format
="m68kelf"
8881 aros_flavour
="standcompat"
8882 gcc_target_cpu
="mc68000"
8883 aros_config_cflags
="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8884 aros_config_aflags
="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8885 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8886 target_tool_prefix
="m68k-elf-"
8887 aros_target_nostdlib_ldflags
="" # We always need -lgcc
8888 aros_target_strip_flags
="-R.comment"
8892 aros_flavour
="native"
8893 gcc_target_cpu
="ppc"
8896 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8897 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8898 { (exit 1); exit 1; }; }
8904 aros_target_arch
="mingw32"
8905 aros_shared_default
="no"
8906 aros_flavour
="emulation"
8907 aros_shared_cflags
=""
8910 case "$target_cpu" in
8912 aros_target_cpu
="i386"
8913 aros_object_format
="elf_i386"
8914 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8915 aros_default_wbdepth
=8
8916 gcc_target_cpu
="i386"
8917 aros_target_cc
="i386-aros-gcc"
8918 aros_target_cxx
="i386-aros-g++"
8919 aros_target_ld
="i386-aros-ld"
8920 aros_target_as
="i386-aros-as"
8921 aros_target_ar
="i386-aros-ar"
8922 aros_target_ranlib
="i386-aros-ranlib"
8923 aros_target_nm
="i386-aros-nm"
8924 aros_target_strip
="i386-aros-strip"
8925 aros_target_objcopy
="i386-aros-objcopy"
8926 aros_target_objdump
="i386-aros-objdump"
8927 target_tool_prefix
="i386-mingw32-"
8930 aros_target_cpu
="x86_64"
8931 aros_object_format
="elf_x86_64"
8932 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8933 aros_default_wbdepth
=8
8934 gcc_target_cpu
="x86_64"
8935 aros_target_cc
="x86_64-aros-gcc"
8936 aros_target_cxx
="x86_64-aros-g++"
8937 aros_target_ld
="x86_64-aros-ld"
8938 aros_target_as
="x86_64-aros-as"
8939 aros_target_ar
="x86_64-aros-ar"
8940 aros_target_ranlib
="x86_64-aros-ranlib"
8941 aros_target_nm
="x86_64-aros-nm"
8942 aros_target_strip
="x86_64-aros-strip"
8943 aros_target_objcopy
="x86_64-aros-objcopy"
8944 aros_target_objdump
="x86_64-aros-objdump"
8945 target_tool_prefix
="x86_64-w64-mingw32-"
8948 aros_target_cpu
="arm"
8949 aros_object_format
="armelf_linux_eabi"
8950 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8951 aros_default_wbdepth
=8
8952 gcc_target_cpu
="arm"
8953 aros_target_cc
="arm-linux-gnueabi-gcc"
8954 aros_target_ld
="arm-linux-gnueabi-ld"
8955 aros_target_as
="arm-linux-gnueabi-as"
8956 aros_target_ar
="arm-linux-gnueabi-ar"
8957 aros_target_ranlib
="arm-linux-gnueabi-ranlib"
8958 aros_target_nm
="arm-linux-gnueabi-nm"
8959 aros_target_strip
="arm-linux-gnueabi-strip"
8960 aros_target_objcopy
="arm-linux-gnueabi-objcopy"
8961 aros_target_objdump
="arm-linux-gnueabi-objdump"
8962 target_tool_prefix
="arm-mingw32ce-"
8963 aros_default_wbwidth
=160
8964 aros_default_wbheight
=160
8967 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8968 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8969 { (exit 1); exit 1; }; }
8972 if test $host_os = "cygwin"; then
8973 aros_kernel_cflags
="-mno-cygwin"
8977 aros_target_arch
="pp"
8978 aros_shared_default
="no"
8979 case "$target_cpu" in
8981 aros_target_cpu
="m68k"
8982 aros_object_format
="m68kelf"
8983 aros_flavour
="palmnative"
8984 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8985 aros_default_wbwidth
=160
8986 aros_default_wbheight
=160
8987 aros_default_wbdepth
=1
8988 aros_target_ar_flags
="cru"
8989 aros_compiler_libs
="-lgcc1"
8990 aros_shared_default
=no
8991 aros_shared_cflags
="-fpic"
8992 aros_shared_aflags
=""
8993 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8994 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8995 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8996 aros_debug_aflags
=""
8997 aros_debug_ldflags
="$aros_symbols_debug"
8998 aros_mungwall_debug
="0"
8999 aros_modules_debug
="0"
9000 gcc_target_cpu
="mc68000"
9001 ignore_undefined_symbols
="-ius"
9004 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9005 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9006 { (exit 1); exit 1; }; }
9012 aros_target_arch
="mac"
9013 aros_shared_default
="no"
9014 case "$target_cpu" in
9016 aros_target_cpu
="m68k"
9017 aros_object_format
="m68kelf"
9018 aros_flavour
="mac68knative"
9019 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
9020 aros_default_wbwidth
=512
9021 aros_default_wbheight
=384
9022 aros_default_wbdepth
=8
9023 aros_target_ar_flags
="cru"
9024 aros_compiler_libs
="-lgcc1"
9025 aros_shared_default
=no
9026 aros_shared_cflags
="-fpic"
9027 aros_shared_aflags
=""
9028 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
9029 aros_kernel_ldflags
="-Wl,-rpath,./lib"
9030 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9031 aros_debug_aflags
=""
9032 aros_debug_ldflags
="$aros_symbols_debug"
9033 aros_mungwall_debug
="0"
9034 aros_modules_debug
="0"
9035 gcc_target_cpu
="mc68000"
9036 ignore_undefined_symbols
="-ius"
9039 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9040 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9041 { (exit 1); exit 1; }; }
9047 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9048 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9049 { (exit 1); exit 1; }; }
9053 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9054 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9056 # Check whether --with-portssources was given.
9057 if test "${with_portssources+set}" = set; then
9058 withval
=$with_portssources; with_portssrcdir
=$withval
9060 with_portssrcdir
="default"
9063 if test "$with_portssrcdir" = "default"; then
9064 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
9066 AROS_PORTSSRCDIR
="$with_portssrcdir"
9068 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9069 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9071 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9072 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9074 # Check whether --with-bootloader was given.
9075 if test "${with_bootloader+set}" = set; then
9076 withval
=$with_bootloader; target_bootloader
=$withval
9078 target_bootloader
=$target_bootloader
9081 if test "$target_bootloader" = "none"; then
9082 aros_target_bootloader
=""
9084 aros_target_bootloader
="$target_bootloader"
9086 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9087 echo "${ECHO_T}$target_bootloader" >&6; }
9089 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9090 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9092 # Check whether --with-iconset was given.
9093 if test "${with_iconset+set}" = set; then
9094 withval
=$with_iconset; target_iconset
=$withval
9096 target_iconset
="default"
9099 if test "$target_iconset" = "default"; then
9100 aros_target_iconset
="Gorilla"
9101 target_iconset
="default (Gorilla)"
9103 aros_target_iconset
="$target_iconset"
9105 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9106 echo "${ECHO_T}$target_iconset" >&6; }
9108 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9109 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9111 # Check whether --with-theme was given.
9112 if test "${with_theme+set}" = set; then
9113 withval
=$with_theme; target_guitheme
=$withval
9115 target_guitheme
="default"
9118 if test "$target_guitheme" = "default"; then
9119 aros_target_guitheme
="Ice"
9121 aros_target_guitheme
="$target_guitheme"
9123 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9124 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9126 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9129 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9132 if test "$aros_host_cpu" == "x86_64" ; then
9133 if test "$aros_target_cpu" == "i386" ; then
9134 if test "$aros_target_arch" != "mingw32"; then
9140 # Set prefix for target compiler etc. if we're cross-compiling
9141 # (should possibly be earlier but needs to be after AC_PROG_CC)
9142 if test "$cross_compiling" = "yes" ; then
9143 if test "$target_tool_prefix" = ""; then
9144 target_tool_prefix
=${target_cpu}-elf-
9146 CC
=${target_tool_prefix}gcc
9147 if test "$target_tool_version" != "default"; then
9148 CC
="$CC-$target_tool_version"
9150 # Extract the first word of "$CC", so it can be a program name with args.
9151 set dummy
$CC; ac_word
=$2
9152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9154 if test "${ac_cv_path_CC+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
9162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9166 test -z "$as_dir" && as_dir
=.
9167 for ac_exec_ext
in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
9170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 if test -n "$CC"; then
9182 { echo "$as_me:$LINENO: result: $CC" >&5
9183 echo "${ECHO_T}$CC" >&6; }
9185 { echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6; }
9190 if test "$CC" = ""; then
9191 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9192 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9193 { (exit 1); exit 1; }; }
9196 CC
="$CC $target_tool_flags"
9198 #-----------------------------------------------------------------------------
9200 # Disable pointer-signedness warnings if the compiler recognises the option
9202 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9203 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9204 save_cflags
="$CFLAGS"
9205 CFLAGS
="$CFLAGS -Wno-pointer-sign"
9206 cat >conftest.
$ac_ext <<_ACEOF
9209 cat confdefs.h
>>conftest.
$ac_ext
9210 cat >>conftest.
$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9221 rm -f conftest.
$ac_objext
9222 if { (ac_try
="$ac_compile"
9224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_compile") 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest.$ac_objext; then
9238 use_no_sign_warning="yes"
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 use_no_sign_warning="no"
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9248 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9249 if test "x-$use_no_sign_warning" = "x-yes" ; then
9250 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9252 CFLAGS="$save_cflags"
9254 #-----------------------------------------------------------------------------
9256 # Find all the tools we need to compile. This could be cross-compiling
9257 # though! If that is the case we use the GNU form of the target and
9258 # simply add this to the front of the binary name. This is rather simple,
9259 # but it should work under most circumstances.
9261 # The default tools are to use the same as the host, but only if the
9262 # host and target CPU are the same. With GCC this is normally enough.
9266 aros_shared_ld="$aros_host_ld"
9268 aros_target_mkdep="$aros_host_mkdep"
9269 aros_target_incl_def="$aros_host_incl"
9271 aros_kernel_cc="$CC"
9273 # The default tools executables to be linked to.
9274 if test "$aros_target_cc" != ""; then
9275 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9276 set dummy $aros_target_cc; ac_word=$2
9277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9279 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 case $aros_target_cc in
9284 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 aros_target_cc=$ac_cv_path_aros_target_cc
9306 if test -n "$aros_target_cc"; then
9307 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9308 echo "${ECHO_T}$aros_target_cc" >&6; }
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9315 if test "$aros_target_cc" = ""; then
9316 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9317 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9318 { (exit 1); exit 1; }; }
9321 if test "$aros_target_ld" != ""; then
9322 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9323 set dummy $aros_target_ld; ac_word=$2
9324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9326 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 case $aros_target_ld in
9331 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_ld="$as_dir/$ac_word$ac_exec_ext"
9342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 aros_target_ld=$ac_cv_path_aros_target_ld
9353 if test -n "$aros_target_ld"; then
9354 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9355 echo "${ECHO_T}$aros_target_ld" >&6; }
9357 { echo "$as_me:$LINENO: result: no" >&5
9358 echo "${ECHO_T}no" >&6; }
9362 if test "$aros_target_ld" = ""; then
9363 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9364 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9365 { (exit 1); exit 1; }; }
9369 if test "$crosstools" != "yes"; then
9371 if test "$aros_target_as" = ""; then
9372 if test "$cross_compiling" = "yes" ; then
9373 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9374 set dummy ${target_tool_prefix}as; ac_word=$2
9375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9377 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 case $aros_target_as_ln in
9382 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9403 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9404 if test -n "$aros_target_as_ln"; then
9405 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9406 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9408 { echo "$as_me:$LINENO: result: no" >&5
9409 echo "${ECHO_T}no" >&6; }
9414 if test "$GCC" = "yes"; then
9415 aros_gcc_as=`$CC -print-prog-name=as
`
9416 # Extract the first word of "`basename $aros_gcc_[as
]`", so it can be a program name with args.
9417 set dummy `basename $aros_gcc_as`; ac_word=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 case $aros_target_as_ln in
9425 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in `dirname $aros_gcc_as`
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9447 if test -n "$aros_target_as_ln"; then
9448 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9449 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9451 { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9457 if test "$aros_target_as_ln" = ""; then
9458 # Extract the first word of "as", so it can be a program name with args.
9459 set dummy as; ac_word=$2
9460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9462 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 case $aros_target_as_ln in
9467 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9489 if test -n "$aros_target_as_ln"; then
9490 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9491 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9493 { echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6; }
9501 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9502 set dummy $aros_target_as; ac_word=$2
9503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9505 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 case $aros_target_as_ln in
9510 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9520 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9532 if test -n "$aros_target_as_ln"; then
9533 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9534 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9536 { echo "$as_me:$LINENO: result: no" >&5
9537 echo "${ECHO_T}no" >&6; }
9543 if test "$aros_target_as_ln" = ""; then
9544 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9545 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9546 { (exit 1); exit 1; }; }
9549 if test "$aros_kernel_ld" = ""; then
9550 if test "$cross_compiling" = "yes" ; then
9551 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9552 set dummy ${target_tool_prefix}ld; ac_word=$2
9553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9555 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 case $aros_kernel_ld in
9560 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9582 if test -n "$aros_kernel_ld"; then
9583 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9584 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9586 { echo "$as_me:$LINENO: result: no" >&5
9587 echo "${ECHO_T}no" >&6; }
9592 if test "$GCC" = "yes"; then
9593 aros_gcc_ld=`$CC -print-prog-name=ld
`
9594 # Extract the first word of "`basename $aros_gcc_[ld
]`", so it can be a program name with args.
9595 set dummy `basename $aros_gcc_ld`; ac_word=$2
9596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9598 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 case $aros_kernel_ld in
9603 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in `dirname $aros_gcc_ld`
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9625 if test -n "$aros_kernel_ld"; then
9626 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9627 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9629 { echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6; }
9635 if test "$aros_kernel_ld" = ""; then
9636 # Extract the first word of "ld", so it can be a program name with args.
9637 set dummy ld; ac_word=$2
9638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9640 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 case $aros_kernel_ld in
9645 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9655 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9667 if test -n "$aros_kernel_ld"; then
9668 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9669 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9671 { echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6; }
9679 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9680 set dummy $aros_kernel_ld; ac_word=$2
9681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9683 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 case $aros_kernel_ld in
9688 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9710 if test -n "$aros_kernel_ld"; then
9711 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9712 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9714 { echo "$as_me:$LINENO: result: no" >&5
9715 echo "${ECHO_T}no" >&6; }
9721 if test "$aros_kernel_ld" = ""; then
9722 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9723 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9724 { (exit 1); exit 1; }; }
9727 if test "$aros_target_ar" = ""; then
9728 if test "$cross_compiling" = "yes" ; then
9729 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9730 set dummy ${target_tool_prefix}ar; ac_word=$2
9731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9733 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 case $aros_target_ar_ln in
9738 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9760 if test -n "$aros_target_ar_ln"; then
9761 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9762 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9764 { echo "$as_me:$LINENO: result: no" >&5
9765 echo "${ECHO_T}no" >&6; }
9770 if test "$GCC" = "yes"; then
9771 aros_gcc_ar=`$CC -print-prog-name=ar`
9772 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9773 set dummy `basename $aros_gcc_ar`; ac_word=$2
9774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9776 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 case $aros_target_ar_ln in
9781 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in `dirname $aros_gcc_ar`
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9803 if test -n "$aros_target_ar_ln"; then
9804 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9805 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9807 { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9813 if test "$aros_target_ar_ln" = ""; then
9814 # Extract the first word of "ar", so it can be a program name with args.
9815 set dummy ar; ac_word=$2
9816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9818 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 case $aros_target_ar_ln in
9823 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9845 if test -n "$aros_target_ar_ln"; then
9846 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9847 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9849 { echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6; }
9857 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9858 set dummy $aros_target_ar; ac_word=$2
9859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9861 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 case $aros_target_ar_ln in
9866 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9888 if test -n "$aros_target_ar_ln"; then
9889 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9890 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9892 { echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6; }
9899 if test "$aros_target_ar_ln" = ""; then
9900 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9901 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9902 { (exit 1); exit 1; }; }
9905 if test "$aros_target_nm" = ""; then
9906 if test "$cross_compiling" = "yes" ; then
9907 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9908 set dummy ${target_tool_prefix}nm; ac_word=$2
9909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9911 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 case $aros_target_nm_ln in
9916 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9938 if test -n "$aros_target_nm_ln"; then
9939 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9940 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9942 { echo "$as_me:$LINENO: result: no" >&5
9943 echo "${ECHO_T}no" >&6; }
9948 if test "$GCC" = "yes"; then
9949 aros_gcc_nm=`$CC -print-prog-name=nm
`
9950 # Extract the first word of "`basename $aros_gcc_[nm
]`", so it can be a program name with args.
9951 set dummy `basename $aros_gcc_nm`; ac_word=$2
9952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9954 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 case $aros_target_nm_ln in
9959 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in `dirname $aros_gcc_nm`
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9981 if test -n "$aros_target_nm_ln"; then
9982 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9983 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9985 { echo "$as_me:$LINENO: result: no" >&5
9986 echo "${ECHO_T}no" >&6; }
9991 if test "$aros_target_nm_ln" = ""; then
9992 # Extract the first word of "nm", so it can be a program name with args.
9993 set dummy nm; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 case $aros_target_nm_ln in
10001 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10023 if test -n "$aros_target_nm_ln"; then
10024 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10025 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10027 { echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6; }
10035 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10036 set dummy $aros_target_nm; ac_word=$2
10037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10039 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 case $aros_target_nm_ln in
10044 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10066 if test -n "$aros_target_nm_ln"; then
10067 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10068 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10070 { echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6; }
10077 if test "$aros_target_nm_ln" = ""; then
10078 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10079 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10080 { (exit 1); exit 1; }; }
10083 if test "$aros_target_objcopy" = ""; then
10084 if test "$cross_compiling" = "yes" ; then
10085 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10086 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10089 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 case $aros_target_objcopy_ln in
10094 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10116 if test -n "$aros_target_objcopy_ln"; then
10117 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10118 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10120 { echo "$as_me:$LINENO: result: no" >&5
10121 echo "${ECHO_T}no" >&6; }
10126 if test "$GCC" = "yes"; then
10127 aros_gcc_objcopy=`$CC -print-prog-name=objcopy
`
10128 # Extract the first word of "`basename $aros_gcc_[objcopy
]`", so it can be a program name with args.
10129 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 case $aros_target_objcopy_ln in
10137 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in `dirname $aros_gcc_objcopy`
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10159 if test -n "$aros_target_objcopy_ln"; then
10160 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10161 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10163 { echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6; }
10169 if test "$aros_target_objcopy_ln" = ""; then
10170 # Extract the first word of "objcopy", so it can be a program name with args.
10171 set dummy objcopy; ac_word=$2
10172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10174 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 case $aros_target_objcopy_ln in
10179 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10189 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10201 if test -n "$aros_target_objcopy_ln"; then
10202 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10203 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10205 { echo "$as_me:$LINENO: result: no" >&5
10206 echo "${ECHO_T}no" >&6; }
10213 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10214 set dummy $aros_target_objcopy; ac_word=$2
10215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10217 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 case $aros_target_objcopy_ln in
10222 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10244 if test -n "$aros_target_objcopy_ln"; then
10245 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10246 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10248 { echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6; }
10255 if test "$aros_target_objcopy_ln" = ""; then
10256 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10257 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10258 { (exit 1); exit 1; }; }
10261 if test "$aros_target_objdump" = ""; then
10262 if test "$cross_compiling" = "yes" ; then
10263 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10264 set dummy ${target_tool_prefix}objdump; ac_word=$2
10265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10267 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 case $aros_target_objdump_ln in
10272 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276 for as_dir in $PATH
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10294 if test -n "$aros_target_objdump_ln"; then
10295 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10296 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10298 { echo "$as_me:$LINENO: result: no" >&5
10299 echo "${ECHO_T}no" >&6; }
10304 if test "$GCC" = "yes"; then
10305 aros_gcc_objdump=`$CC -print-prog-name=objdump
`
10306 # Extract the first word of "`basename $aros_gcc_[objdump
]`", so it can be a program name with args.
10307 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10310 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 case $aros_target_objdump_ln in
10315 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in `dirname $aros_gcc_objdump`
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10325 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10337 if test -n "$aros_target_objdump_ln"; then
10338 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10339 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10341 { echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6; }
10347 if test "$aros_target_objdump_ln" = ""; then
10348 # Extract the first word of "objdump", so it can be a program name with args.
10349 set dummy objdump; ac_word=$2
10350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10352 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 case $aros_target_objdump_ln in
10357 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10379 if test -n "$aros_target_objdump_ln"; then
10380 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10381 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10383 { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10391 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10392 set dummy $aros_target_objdump; ac_word=$2
10393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10395 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 case $aros_target_objdump_ln in
10400 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10422 if test -n "$aros_target_objdump_ln"; then
10423 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10424 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10433 if test "$aros_target_objdump_ln" = ""; then
10434 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10435 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10436 { (exit 1); exit 1; }; }
10439 if test "$aros_target_ranlib" = ""; then
10440 if test "$cross_compiling" = "yes" ; then
10441 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10442 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10445 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 case $aros_target_ranlib_ln in
10450 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10460 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10472 if test -n "$aros_target_ranlib_ln"; then
10473 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10474 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10476 { echo "$as_me:$LINENO: result: no" >&5
10477 echo "${ECHO_T}no" >&6; }
10482 if test "$GCC" = "yes"; then
10483 aros_gcc_ranlib=`$CC -print-prog-name=ranlib
`
10484 # Extract the first word of "`basename $aros_gcc_[ranlib
]`", so it can be a program name with args.
10485 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10488 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 case $aros_target_ranlib_ln in
10493 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in `dirname $aros_gcc_ranlib`
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10515 if test -n "$aros_target_ranlib_ln"; then
10516 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10517 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10519 { echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6; }
10525 if test "$aros_target_ranlib_ln" = ""; then
10526 # Extract the first word of "ranlib", so it can be a program name with args.
10527 set dummy ranlib; ac_word=$2
10528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10530 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 case $aros_target_ranlib_ln in
10535 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10557 if test -n "$aros_target_ranlib_ln"; then
10558 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10559 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10561 { echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6; }
10569 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10570 set dummy $aros_target_ranlib; ac_word=$2
10571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10573 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 case $aros_target_ranlib_ln in
10578 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10600 if test -n "$aros_target_ranlib_ln"; then
10601 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10602 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10604 { echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6; }
10611 if test "$aros_target_ranlib_ln" = ""; then
10612 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10613 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10614 { (exit 1); exit 1; }; }
10617 if test "$aros_target_strip" = ""; then
10618 if test "$cross_compiling" = "yes" ; then
10619 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10620 set dummy ${target_tool_prefix}strip; ac_word=$2
10621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10623 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 case $aros_target_strip_ln in
10628 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10650 if test -n "$aros_target_strip_ln"; then
10651 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10652 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10660 if test "$GCC" = "yes"; then
10661 aros_gcc_strip=`$CC -print-prog-name=strip
`
10662 # Extract the first word of "`basename $aros_gcc_[strip
]`", so it can be a program name with args.
10663 set dummy `basename $aros_gcc_strip`; ac_word=$2
10664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10666 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 case $aros_target_strip_ln in
10671 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in `dirname $aros_gcc_strip`
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10693 if test -n "$aros_target_strip_ln"; then
10694 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10695 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10697 { echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6; }
10703 if test "$aros_target_strip_ln" = ""; then
10704 # Extract the first word of "strip", so it can be a program name with args.
10705 set dummy strip; ac_word=$2
10706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10708 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 case $aros_target_strip_ln in
10713 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10735 if test -n "$aros_target_strip_ln"; then
10736 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10737 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10739 { echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6; }
10747 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10748 set dummy $aros_target_strip; ac_word=$2
10749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10751 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 case $aros_target_strip_ln in
10756 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10778 if test -n "$aros_target_strip_ln"; then
10779 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10780 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10782 { echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6; }
10789 if test "$aros_target_strip_ln" = ""; then
10790 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10791 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10792 { (exit 1); exit 1; }; }
10794 if test "$aros_target_cxx" != ""; then
10795 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10796 set dummy $aros_target_cxx; ac_word=$2
10797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10799 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 case $aros_target_cxx in
10804 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10814 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 aros_target_cxx=$ac_cv_path_aros_target_cxx
10826 if test -n "$aros_target_cxx"; then
10827 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10828 echo "${ECHO_T}$aros_target_cxx" >&6; }
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10835 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10836 # AROS_REQUIRED(c++,$aros_target_cxx)
10839 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10843 # Build crosstools if we have no C++ - temporary thing
10844 if test "$aros_target_cxx" = ""; then
10845 crosstools_target=tools-crosstools
10848 if test "$rescomp" != ""; then
10849 if test "$cross_compiling" = "yes" ; then
10850 rescomp=${target_tool_prefix}${rescomp}
10852 # Extract the first word of "$rescomp", so it can be a program name with args.
10853 set dummy $rescomp; ac_word=$2
10854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10856 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 case $aros_kernel_rescomp in
10861 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10871 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10883 if test -n "$aros_kernel_rescomp"; then
10884 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10885 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10892 if test "$aros_kernel_rescomp" = ""; then
10893 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10894 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10895 { (exit 1); exit 1; }; }
10899 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10900 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10901 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10902 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10903 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10904 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10905 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10907 # aros_cc_pre is a variable that is added to the front of the compiler name
10908 # in the generated aros-gcc shell script. We need this to enable the cache
10909 # to work across cleaned builds. Also, support DISTCC using the correct
10910 # environment variable.
10913 if test "x${DISTCC}" != "x" ; then
10914 if test "x${CCACHE}" != "x" ; then
10915 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10917 aros_cc_pre="${DISTCC} "
10920 if test "x${CCACHE}" != "x" ; then
10921 aros_cc_pre="${CCACHE} "
10925 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10927 aros_target_nostdinc_cflags=-nostdinc
10929 aros_target_nostartup_ldflags=-nostartfiles
10931 aros_target_nix_ldflags=-nix
10933 aros_target_detach_ldflags=-detach
10935 aros_target_nostdlib_ldflags=-nostdlib
10939 if test "$aros_target_cc" = ""; then
10940 orig_target_cc=$aros_kernel_cc
10942 orig_target_cc=$aros_target_cc
10944 if test "$aros_target_ld" = ""; then
10945 orig_target_ld=$aros_kernel_ld
10947 orig_target_ld=$aros_target_ld
10949 if test "$GCC" = "yes"; then
10950 aros_target_cc_path=`$orig_target_cc -print-search-dirs |
grep "programs: =" | cut
-c 12-`
10952 aros_target_cc="${prefix}-gcc"
10953 aros_target_as="${prefix}-as"
10954 aros_target_ld="${prefix}-ld"
10955 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10956 aros_target_objcopy=${prefix}-objcopy
10957 aros_target_objdump=${prefix}-objdump
10958 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10959 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10960 aros_kernel_nm="${prefix}-nm"
10961 aros_target_strip=${prefix}-strip
10963 # Find the system include path. We can suggest that an alternative is
10964 # used if we don't get it correct. The default is to use /usr/include.
10965 # Which is set in the aros_target_incl_def variable.
10967 # Check whether --enable-includes was given.
10968 if test "${enable_includes+set}" = set; then
10969 enableval=$enable_includes; aros_target_incl=$enable_includes
10971 aros_target_incl=$aros_target_incl_def
10975 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10976 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10977 if test "$aros_target_cc_includes" = "" ; then
10978 #try to guess where the directory is
10979 aros_target_cc_includes=`dirname \
`${orig_target_cc} -print-libgcc-file-name\``/include
10980 if ! test -d $aros_target_cc_includes; then
10981 #the directory doesn't exist, we need to do some more work
10982 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10984 #these are the headers we're looling for
10985 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10986 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10990 for h in $headers; do
10991 #which other headers each of the above headers needs?
10992 deps=$(echo "#include <$h>" | \
10993 $aros_host_cc -E -M - 2>/dev/null | \
10994 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10996 #copy all the needed headers to a directory beneath gendir
10999 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11000 sed -n "s,^.*/include\(/.*\),\1,p")
11001 ! test -d $dir && mkdir -p $dir
11002 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11007 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11008 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11011 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11012 # On GCC >= 4.0 -iquote should be used
11016 save_cflags="$CFLAGS"
11018 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11019 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11035 rm -f conftest.$ac_objext
11036 if { (ac_try="$ac_compile"
11037 case "(($ac_try" in
11038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11039 *) ac_try_echo
=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_compile") 2>conftest.er1
11044 grep -v '^ *+' conftest.er1
>conftest.err
11046 cat conftest.err
>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } && {
11049 test -z "$ac_c_werror_flag" ||
11050 test ! -s conftest.err
11051 } && test -s conftest.
$ac_objext; then
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.
$ac_ext >&5
11060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11061 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11062 echo "${ECHO_T}$has_iquote" >&6; }
11063 if test "x-$has_iquote" = "x-yes" ; then
11064 host_cflags_iquote
=-iquote
11065 host_cflags_iquote_end
=
11067 host_cflags_iquote
=-I
11068 host_cflags_iquote_end
=-I-
11070 kernel_cflags_iquote
=$host_cflags_iquote
11071 kernel_cflags_iquote_end
=$host_cflags_iquote_end
11072 if test "x-$cross_compiling" = "x-yes"; then
11073 CC
="$aros_kernel_cc"
11074 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11075 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11091 rm -f conftest.
$ac_objext
11092 if { (ac_try
="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 use_no_stack_protector="yes"
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 use_no_stack_protector="no"
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11118 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11119 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11120 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11136 rm -f conftest.$ac_objext
11137 if { (ac_try="$ac_compile"
11138 case "(($ac_try" in
11139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11140 *) ac_try_echo
=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_compile") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1
>conftest.err
11147 cat conftest.err
>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest.
$ac_objext; then
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.
$ac_ext >&5
11161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11162 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11163 echo "${ECHO_T}$has_iquote" >&6; }
11164 if test "x-$has_iquote" = "x-yes" ; then
11165 kernel_cflags_iquote
=-iquote
11166 kernel_cflags_iquote_end
=
11168 kernel_cflags_iquote
=-I
11169 kernel_cflags_iquote_end
=-I-
11172 aros_cflags_iquote
=$kernel_cflags_iquote
11173 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
11174 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11175 CC
="$orig_target_cc"
11176 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11177 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11178 cat >conftest.
$ac_ext <<_ACEOF
11181 cat confdefs.h
>>conftest.
$ac_ext
11182 cat >>conftest.
$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11193 rm -f conftest.
$ac_objext
11194 if { (ac_try
="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11202 grep -v '^ *+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11220 echo "${ECHO_T}$has_iquote" >&6; }
11221 if test "x-$has_iquote" = "x-yes" ; then
11222 aros_cflags_iquote=-iquote
11223 aros_cflags_iquote_end=
11225 aros_cflags_iquote=-I
11226 aros_cflags_iquote_end=-I-
11229 if test "x-$use_no_stack_protector" = "x-yes" ; then
11230 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11233 #-----------------------------------------------------------------------------
11235 # Check if we can explicitly choose older version of symbol hashing
11237 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11238 CC="$aros_kernel_cc"
11239 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11240 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (ac_try="$ac_link"
11258 case "(($ac_try" in
11259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11260 *) ac_try_echo
=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_link") 2>conftest.er1
11265 grep -v '^ *+' conftest.er1
>conftest.err
11267 cat conftest.err
>&5
11268 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 $as_test_x conftest
$ac_exeext; then
11274 use_hash_style
="yes"
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11279 use_hash_style
="no"
11282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11283 conftest
$ac_exeext conftest.
$ac_ext
11284 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11285 echo "${ECHO_T}$use_hash_style" >&6; }
11286 if test "x-$use_hash_style" = "x-yes" ; then
11287 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
11290 CFLAGS
="$save_cflags"
11300 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11301 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11303 # Check whether --with-resolution was given.
11304 if test "${with_resolution+set}" = set; then
11305 withval
=$with_resolution; resolution
=$withval
11310 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11311 if test "$resolution" = "yes" ; then
11314 if test "$resolution" = "no" ; then
11317 if test "$resolution" != "none" ; then
11318 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
11319 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
11320 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
11322 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11323 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11324 aros_cv_default_wbwidth
=$aros_default_wbwidth
11325 aros_cv_default_wbheight
=$aros_default_wbheight
11326 aros_cv_default_wbdepth
=$aros_default_wbdepth
11328 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11329 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11331 # Check whether --with-serial-debug was given.
11332 if test "${with_serial_debug+set}" = set; then
11333 withval
=$with_serial_debug; serial_debug
=$withval
11338 if test "$aros_serial_debug" = 0 ; then
11339 serial_debug_forced
=""
11340 if test "$serial_debug" = "yes" ; then
11343 if test "$serial_debug" = "no" ; then
11344 serial_debug
="none"
11347 serial_debug_forced
="(forced)"
11348 serial_debug
=$aros_serial_debug
11350 if test "$serial_debug" != "none" ; then
11351 aros_serial_debug
=$serial_debug
11352 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11353 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11355 { echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6; }
11359 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11360 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11361 # Check whether --enable-palm_debug_hack was given.
11362 if test "${enable_palm_debug_hack+set}" = set; then
11363 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
11365 palm_debug_hack
="no"
11368 if test "$palm_debug_hack" = "yes" ; then
11369 aros_palm_debug_hack
="1"
11371 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11372 echo "${ECHO_T}$palm_debug_hack" >&6; }
11375 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11376 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11377 # Check whether --enable-nesting_supervisor was given.
11378 if test "${enable_nesting_supervisor+set}" = set; then
11379 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
11381 nesting_supervisor
="no"
11384 if test "$nesting_supervisor" = "yes" ; then
11385 aros_nesting_supervisor
="1"
11387 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11388 echo "${ECHO_T}$nesting_supervisor" >&6; }
11391 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11393 if test "x-$need_dlopen" != "x-no" ; then
11394 { echo "$as_me:$LINENO: checking for dlopen" >&5
11395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11396 if test "${ac_cv_func_dlopen+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 cat >conftest.
$ac_ext <<_ACEOF
11402 cat confdefs.h
>>conftest.
$ac_ext
11403 cat >>conftest.
$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11407 #define dlopen innocuous_dlopen
11409 /* System header to define __stub macros and hopefully few prototypes,
11410 which can conflict with char dlopen (); below.
11411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11412 <limits.h> exists even on freestanding compilers. */
11415 # include <limits.h>
11417 # include <assert.h>
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11429 /* The GNU C library defines this for functions which it implements
11430 to always fail with ENOSYS. Some functions are actually named
11431 something starting with __ and the normal name is an alias. */
11432 #if defined __stub_dlopen || defined __stub___dlopen
11444 rm -f conftest.
$ac_objext conftest
$ac_exeext
11445 if { (ac_try
="$ac_link"
11446 case "(($ac_try" in
11447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_link") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest$ac_exeext &&
11461 $as_test_x conftest$ac_exeext; then
11462 ac_cv_func_dlopen=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_cv_func_dlopen=no
11470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11471 conftest$ac_exeext conftest.$ac_ext
11473 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11475 if test $ac_cv_func_dlopen = yes; then
11481 if test "x-$have_dl" = "x-no" ; then
11482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 ac_check_lib_save_LIBS=$LIBS
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (ac_try="$ac_link"
11513 case "(($ac_try" in
11514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11515 *) ac_try_echo
=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_link") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1
>conftest.err
11522 cat conftest.err
>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest
$ac_exeext &&
11528 $as_test_x conftest
$ac_exeext; then
11529 ac_cv_lib_dl_dlopen
=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.
$ac_ext >&5
11534 ac_cv_lib_dl_dlopen
=no
11537 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11538 conftest
$ac_exeext conftest.
$ac_ext
11539 LIBS
=$ac_check_lib_save_LIBS
11541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11543 if test $ac_cv_lib_dl_dlopen = yes; then
11545 aros_host_ldflags
="$aros_host_ldflags -ldl"
11551 if test "x-$have_dl" = "x-no" ; then
11552 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11553 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11554 { (exit 1); exit 1; }; }
11559 # Check whether --enable-x11_hidd was given.
11560 if test "${enable_x11_hidd+set}" = set; then
11561 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
11566 case "x-$x11_hidd" in
11567 x-yes|x-no|x-auto
) ;;
11568 *) x11_hidd
="auto" ;;
11573 if test "x-$x11_hidd" != "x-no" ; then
11575 { echo "$as_me:$LINENO: checking for X" >&5
11576 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11579 # Check whether --with-x was given.
11580 if test "${with_x+set}" = set; then
11584 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11585 if test "x$with_x" = xno
; then
11586 # The user explicitly disabled X.
11589 case $x_includes,$x_libraries in #(
11590 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11591 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11592 { (exit 1); exit 1; }; };; #(
11593 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 # One or both of the vars are not set, and there is no cached value.
11597 ac_x_includes
=no ac_x_libraries
=no
11598 rm -f -r conftest.dir
11599 if mkdir conftest.dir
; then
11601 cat >Imakefile
<<'_ACEOF'
11603 @echo incroot='${INCROOT}'
11605 @echo usrlibdir='${USRLIBDIR}'
11607 @echo libdir='${LIBDIR}'
11609 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
11610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11611 for ac_var
in incroot usrlibdir libdir
; do
11612 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11614 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11615 for ac_extension
in a so sl dylib la dll
; do
11616 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11617 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11618 ac_im_usrlibdir
=$ac_im_libdir; break
11621 # Screen out bogus values from the imake configuration. They are
11622 # bogus both because they are the default anyway, and because
11623 # using them would break gcc on systems where it needs fixed includes.
11624 case $ac_im_incroot in
11625 /usr
/include
) ac_x_includes
= ;;
11626 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
11628 case $ac_im_usrlibdir in
11629 /usr
/lib |
/lib
) ;;
11630 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
11634 rm -f -r conftest.dir
11637 # Standard set of common directories for X headers.
11638 # Check X11 before X11Rn because it is often a symlink to the current release.
11650 /usr/local/X11/include
11651 /usr/local/X11R6/include
11652 /usr/local/X11R5/include
11653 /usr/local/X11R4/include
11655 /usr/local/include/X11
11656 /usr/local/include/X11R6
11657 /usr/local/include/X11R5
11658 /usr/local/include/X11R4
11662 /usr/XFree86/include/X11
11666 /usr/unsupported/include
11667 /usr/athena/include
11668 /usr/local/x11r5/include
11669 /usr/lpp/Xamples/include
11671 /usr/openwin/include
11672 /usr/openwin/share/include'
11674 if test "$ac_x_includes" = no
; then
11675 # Guess where to find include files, by looking for Xlib.h.
11676 # First, try using that file with no special directory specified.
11677 cat >conftest.
$ac_ext <<_ACEOF
11680 cat confdefs.h
>>conftest.
$ac_ext
11681 cat >>conftest.
$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <X11/Xlib.h>
11685 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null && {
11698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11701 # We can compile using X headers with no special include directory.
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 for ac_dir in $ac_x_header_dirs; do
11708 if test -r "$ac_dir/X11/Xlib.h"; then
11709 ac_x_includes=$ac_dir
11715 rm -f conftest.err conftest.$ac_ext
11716 fi # $ac_x_includes = no
11718 if test "$ac_x_libraries" = no; then
11719 # Check for the libraries.
11720 # See if we find them without any special options.
11721 # Don't add to $LIBS permanently.
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <X11/Xlib.h>
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11743 *) ac_try_echo
=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1
>conftest.err
11750 cat conftest.err
>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && {
11753 test -z "$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11755 } && test -s conftest
$ac_exeext &&
11756 $as_test_x conftest
$ac_exeext; then
11758 # We can link X programs with no special library path.
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.
$ac_ext >&5
11765 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11767 # Don't even attempt the hair of trying to link an X program!
11768 for ac_extension
in a so sl dylib la dll
; do
11769 if test -r "$ac_dir/libX11.$ac_extension"; then
11770 ac_x_libraries
=$ac_dir
11777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11778 conftest
$ac_exeext conftest.
$ac_ext
11779 fi # $ac_x_libraries = no
11781 case $ac_x_includes,$ac_x_libraries in #(
11782 no
,* |
*,no |
*\'*)
11783 # Didn't find X, or a directory has "'" in its name.
11784 ac_cv_have_x
="have_x=no";; #(
11786 # Record where we found X for the cache.
11787 ac_cv_have_x
="have_x=yes\
11788 ac_x_includes='$ac_x_includes'\
11789 ac_x_libraries='$ac_x_libraries'"
11795 eval "$ac_cv_have_x"
11798 if test "$have_x" != yes; then
11799 { echo "$as_me:$LINENO: result: $have_x" >&5
11800 echo "${ECHO_T}$have_x" >&6; }
11803 # If each of the values was on the command line, it overrides each guess.
11804 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
11805 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
11806 # Update the cache value to reflect the command line values.
11807 ac_cv_have_x
="have_x=yes\
11808 ac_x_includes='$x_includes'\
11809 ac_x_libraries='$x_libraries'"
11810 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11811 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11816 for path
in $x_libraries
11818 x_cflags
="$x_cflags -L$path"
11821 for path
in $x_includes
11823 x_cflags
="$x_cflags -I$path"
11826 if test "x-$no_x" = "x-yes" ; then
11828 if test "x-$x11_hidd" != "x-auto" ; then
11829 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11830 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11831 { (exit 1); exit 1; }; }
11835 x11_hidd_target
=kernel-x11gfx-kobj
11838 # Check whether --enable-x11_shm was given.
11839 if test "${enable_x11_shm+set}" = set; then
11840 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
11842 x11_hidd_shm
="auto"
11845 case "x-$x11_hidd_shm" in
11846 x-yes|x-no|x-auto
) ;;
11847 *) x11_hidd_shm
="auto" ;;
11852 if test "x-$x11_hidd_shm" != "x-no" ; then
11855 for ac_header
in sys
/ipc.h
11857 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11858 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_res
=`eval echo '${'$as_ac_Header'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11868 # Is the header compilable?
11869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11871 cat >conftest.
$ac_ext <<_ACEOF
11874 cat confdefs.h
>>conftest.
$ac_ext
11875 cat >>conftest.
$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 $ac_includes_default
11878 #include <$ac_header>
11880 rm -f conftest.
$ac_objext
11881 if { (ac_try
="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_header_compiler=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_compiler=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6; }
11909 # Is the header present?
11910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 #include <$ac_header>
11920 if { (ac_try="$ac_cpp conftest.$ac_ext"
11921 case "(($ac_try" in
11922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11923 *) ac_try_echo
=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1
>conftest.err
11930 cat conftest.err
>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } >/dev
/null
&& {
11933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11936 ac_header_preproc
=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.
$ac_ext >&5
11941 ac_header_preproc
=no
11944 rm -f conftest.err conftest.
$ac_ext
11945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11946 echo "${ECHO_T}$ac_header_preproc" >&6; }
11948 # So? What about this header?
11949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11955 ac_header_preproc
=yes
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 eval "$as_ac_Header=\$ac_header_preproc"
11980 ac_res
=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h
<<_ACEOF
11987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11995 for ac_header
in sys
/shm.h
11997 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_res
=`eval echo '${'$as_ac_Header'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12008 # Is the header compilable?
12009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12011 cat >conftest.
$ac_ext <<_ACEOF
12014 cat confdefs.h
>>conftest.
$ac_ext
12015 cat >>conftest.
$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12018 #include <$ac_header>
12020 rm -f conftest.
$ac_objext
12021 if { (ac_try
="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && {
12034 test -z "$ac_c_werror_flag" ||
12035 test ! -s conftest.err
12036 } && test -s conftest.$ac_objext; then
12037 ac_header_compiler=yes
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_header_compiler=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12047 echo "${ECHO_T}$ac_header_compiler" >&6; }
12049 # Is the header present?
12050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 #include <$ac_header>
12060 if { (ac_try="$ac_cpp conftest.$ac_ext"
12061 case "(($ac_try" in
12062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12063 *) ac_try_echo
=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1
>conftest.err
12070 cat conftest.err
>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } >/dev
/null
&& {
12073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12076 ac_header_preproc
=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.
$ac_ext >&5
12081 ac_header_preproc
=no
12084 rm -f conftest.err conftest.
$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086 echo "${ECHO_T}$ac_header_preproc" >&6; }
12088 # So? What about this header?
12089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc
=yes
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 eval "$as_ac_Header=\$ac_header_preproc"
12120 ac_res
=`eval echo '${'$as_ac_Header'}'`
12121 { echo "$as_me:$LINENO: result: $ac_res" >&5
12122 echo "${ECHO_T}$ac_res" >&6; }
12125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12126 cat >>confdefs.h
<<_ACEOF
12127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12135 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12137 save_cflags
="$CFLAGS"
12138 CFLAGS
="$CFLAGS $x_cflags"
12139 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12140 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12141 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 ac_check_lib_save_LIBS
=$LIBS
12145 LIBS
="-lXext $LIBS"
12146 cat >conftest.
$ac_ext <<_ACEOF
12149 cat confdefs.h
>>conftest.
$ac_ext
12150 cat >>conftest.
$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12159 char XShmQueryExtension ();
12163 return XShmQueryExtension ();
12168 rm -f conftest.
$ac_objext conftest
$ac_exeext
12169 if { (ac_try
="$ac_link"
12170 case "(($ac_try" in
12171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_link") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest$ac_exeext &&
12185 $as_test_x conftest$ac_exeext; then
12186 ac_cv_lib_Xext_XShmQueryExtension=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_lib_Xext_XShmQueryExtension=no
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12199 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12200 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12204 CFLAGS="$save_cflags"
12208 if test "x-$have_xshm" = "x-yes" ; then
12209 DO_XSHM_SUPPORT="1"
12210 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12211 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12212 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12213 { (exit 1); exit 1; }; }
12215 DO_XSHM_SUPPORT="0"
12219 # Check whether --enable-x11_vidmode was given.
12220 if test "${enable_x11_vidmode+set}" = set; then
12221 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12223 x11_hidd_vidmode="auto"
12226 case "x-$x11_hidd_vidmode" in
12227 x-yes|x-no|x-auto) ;;
12228 *) x11_hidd_vidmode="auto" ;;
12233 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12235 save_cflags="$CFLAGS"
12236 CFLAGS="$CFLAGS $x_cflags"
12237 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12238 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12239 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lXxf86vm $LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12257 char XF86VidModeQueryExtension ();
12261 return XF86VidModeQueryExtension ();
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12270 *) ac_try_echo
=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest
$ac_exeext &&
12283 $as_test_x conftest
$ac_exeext; then
12284 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
12292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12293 conftest
$ac_exeext conftest.
$ac_ext
12294 LIBS
=$ac_check_lib_save_LIBS
12296 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12297 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12298 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12302 CFLAGS
="$save_cflags"
12305 if test "x-$have_vidmode" = "x-yes" ; then
12306 DO_VIDMODE_SUPPORT
="1"
12307 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12308 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12309 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12310 { (exit 1); exit 1; }; }
12312 DO_VIDMODE_SUPPORT
="0"
12316 aros_host_x11_includes
=$x_includes
12317 aros_host_x11_libdirs
=$x_libraries
12321 # Check whether --enable-sdl_hidd was given.
12322 if test "${enable_sdl_hidd+set}" = set; then
12323 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
12328 case "x-$sdl_hidd" in
12329 x-yes|x-no|x-auto
) ;;
12330 *) sdl_hidd
="auto" ;;
12333 if test "x-$sdl_hidd" != "x-no" ; then
12336 # Check whether --with-sdl-prefix was given.
12337 if test "${with_sdl_prefix+set}" = set; then
12338 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
12344 # Check whether --with-sdl-exec-prefix was given.
12345 if test "${with_sdl_exec_prefix+set}" = set; then
12346 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
12351 # Check whether --enable-sdltest was given.
12352 if test "${enable_sdltest+set}" = set; then
12353 enableval
=$enable_sdltest;
12359 if test x
$sdl_exec_prefix != x
; then
12360 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
12361 if test x
${SDL_CONFIG+set} != xset
; then
12362 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
12365 if test x
$sdl_prefix != x
; then
12366 sdl_args
="$sdl_args --prefix=$sdl_prefix"
12367 if test x
${SDL_CONFIG+set} != xset
; then
12368 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
12372 if test "x$prefix" != xNONE
; then
12373 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
12375 # Extract the first word of "sdl-config", so it can be a program name with args.
12376 set dummy sdl-config
; ac_word
=$2
12377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12379 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 case $SDL_CONFIG in
12384 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
12387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12388 for as_dir
in $PATH
12391 test -z "$as_dir" && as_dir
=.
12392 for ac_exec_ext
in '' $ac_executable_extensions; do
12393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
12406 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
12407 if test -n "$SDL_CONFIG"; then
12408 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12409 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12411 { echo "$as_me:$LINENO: result: no" >&5
12412 echo "${ECHO_T}no" >&6; }
12416 min_sdl_version
=1.2.10
12417 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12418 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12420 if test "$SDL_CONFIG" = "no" ; then
12423 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
12424 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
12426 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
12427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12428 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
12429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12430 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
12431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12432 if test "x$enable_sdltest" = "xyes" ; then
12433 ac_save_CFLAGS
="$CFLAGS"
12434 ac_save_CXXFLAGS
="$CXXFLAGS"
12435 ac_save_LIBS
="$LIBS"
12436 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12437 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12438 LIBS
="$LIBS $SDL_LIBS"
12440 if test "$cross_compiling" = yes; then
12441 echo $ac_n "cross compiling; assumed OK... $ac_c"
12443 cat >conftest.
$ac_ext <<_ACEOF
12446 cat confdefs.h
>>conftest.
$ac_ext
12447 cat >>conftest.
$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12451 #include <stdlib.h>
12452 #include <string.h>
12456 my_strdup (char *str)
12462 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12463 strcpy (new_str, str);
12471 int main (int argc, char *argv[])
12473 int major, minor, micro;
12476 /* This hangs on some systems (?)
12477 system ("touch conf.sdltest");
12479 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12481 /* HP/UX 9 (%@#!) writes to sscanf strings */
12482 tmp_version = my_strdup("$min_sdl_version");
12483 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12484 printf("%s, bad version string\n", "$min_sdl_version");
12488 if (($sdl_major_version > major) ||
12489 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12490 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12496 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12497 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12498 printf("*** best to upgrade to the required version.\n");
12499 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12500 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12501 printf("*** config.cache before re-running configure\n");
12508 rm -f conftest
$ac_exeext
12509 if { (ac_try
="$ac_link"
12510 case "(($ac_try" in
12511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12519 { (case "(($ac_try" in
12520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12521 *) ac_try_echo
=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12530 echo "$as_me: program exited with status $ac_status" >&5
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.
$ac_ext >&5
12534 ( exit $ac_status )
12537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12541 CFLAGS
="$ac_save_CFLAGS"
12542 CXXFLAGS
="$ac_save_CXXFLAGS"
12543 LIBS
="$ac_save_LIBS"
12546 if test "x$no_sdl" = x
; then
12547 { echo "$as_me:$LINENO: result: yes" >&5
12548 echo "${ECHO_T}yes" >&6; }
12551 { echo "$as_me:$LINENO: result: no" >&5
12552 echo "${ECHO_T}no" >&6; }
12553 if test "$SDL_CONFIG" = "no" ; then
12554 echo "*** The sdl-config script installed by SDL could not be found"
12555 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12556 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12557 echo "*** full path to sdl-config."
12559 if test -f conf.sdltest
; then
12562 echo "*** Could not run SDL test program, checking why..."
12563 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12564 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12565 LIBS
="$LIBS $SDL_LIBS"
12566 cat >conftest.
$ac_ext <<_ACEOF
12569 cat confdefs.h
>>conftest.
$ac_ext
12570 cat >>conftest.
$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12576 int main(int argc, char *argv[])
12579 #define main K_and_R_C_main
12589 rm -f conftest.
$ac_objext conftest
$ac_exeext
12590 if { (ac_try
="$ac_link"
12591 case "(($ac_try" in
12592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest$ac_exeext &&
12606 $as_test_x conftest$ac_exeext; then
12607 echo "*** The test program compiled, but did not run. This usually means"
12608 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12609 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12610 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12611 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12612 echo "*** is required on your system"
12614 echo "*** If you have an old version installed, it is best to remove it, although"
12615 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 echo "*** The test program failed to compile or link. See the file config.log for the"
12621 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12622 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12623 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12627 conftest$ac_exeext conftest.$ac_ext
12628 CFLAGS="$ac_save_CFLAGS"
12629 CXXFLAGS="$ac_save_CXXFLAGS"
12630 LIBS="$ac_save_LIBS"
12642 if test "x-$have_sdl" != "x-yes" ; then
12644 if test "x-$sdl_hidd" != "x-auto" ; then
12645 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12646 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12647 { (exit 1); exit 1; }; }
12651 sdl_hidd_target=kernel-hidd-sdl
12652 aros_host_sdl_cflags=SDL_CFLAGS
12653 aros_host_sdl_libs=SDL_LIBS
12660 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12661 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12662 # Check whether --enable-dbus was given.
12663 if test "${enable_dbus+set}" = set; then
12664 enableval=$enable_dbus; dbus="yes"
12669 if test "$dbus" = "yes" ; then
12671 DBUS_CFLAGS=`pkg-config
--cflags dbus-1
`
12672 DBUS_LIBFLAGS=`pkg-config
--libs dbus-1
`
12673 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12674 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12678 { echo "$as_me:$LINENO: result: $dbus" >&5
12679 echo "${ECHO_T}$dbus" >&6; }
12782 # Native version related
12785 # Palm native version related
12788 # Unix/Hosted version related
12791 # Apple iOS related
12812 # Collect-aros stuff: "-ius" to ignore undefined symbols
12815 # C compiler related
12818 case "$aros_flavour" in
12819 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12820 aros_flavour="emulation" ;;
12821 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12822 aros_flavour="emulation" ;;
12823 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12824 aros_flavour="standalone";;
12825 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12826 aros_flavour="standalone";;
12827 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12828 aros_flavour="native" ;;
12829 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12830 aros_flavour="native" ;;
12831 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12832 aros_flavour="linklib" ;;
12833 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12834 aros_flavour="palmnative" ;;
12835 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12836 aros_flavour="mac68knative" ;;
12837 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12838 aros_flavour="ppcnative" ;;
12841 if test ! -d ${aros_inc_dir} ; then
12842 ${MKDIR} ${aros_inc_dir}
12844 if test ! -d ${aros_geninc_dir} ; then
12845 ${MKDIR} ${aros_geninc_dir}
12847 if test ! -d ${aros_hostcfg_dir} ; then
12848 ${MKDIR} ${aros_hostcfg_dir}
12850 if test ! -d ${aros_targetcfg_dir} ; then
12851 ${MKDIR} ${aros_targetcfg_dir}
12853 if test ! -d ${aros_tools_dir} ; then
12854 ${MKDIR} ${aros_tools_dir}
12856 if test ! -d ${aros_scripts_dir} ; then
12857 ${MKDIR} ${aros_scripts_dir}
12860 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12863 ac_config_commands="$ac_config_commands compiler_executable"
12865 ac_config_commands="$ac_config_commands genshared_executable"
12867 ac_config_commands="$ac_config_commands genmf_executable"
12870 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"
12873 cat >confcache <<\_ACEOF
12874 # This file is a shell script that caches the results of configure
12875 # tests run on this system so they can be shared between configure
12876 # scripts and configure runs, see configure's option --config-cache.
12877 # It is not useful on other systems. If it contains results you don't
12878 # want to keep, you may remove or edit it.
12880 # config.status only pays attention to the cache file if you give it
12881 # the --recheck option to rerun configure.
12883 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
12884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12885 # following values.
12889 # The following way of writing the cache mishandles newlines in values,
12890 # but we know of no workaround that is simple, portable, and efficient.
12891 # So, we kill variables containing newlines.
12892 # Ultrix sh set writes to stderr and can't be redirected directly,
12893 # and sets the high bit in the cache file unless we assign to the vars.
12895 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12896 eval ac_val
=\$
$ac_var
12900 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12901 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12904 _ | IFS | as_nl
) ;; #(
12905 *) $as_unset $ac_var ;;
12911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12912 *${as_nl}ac_space
=\
*)
12913 # `set' does not quote correctly, so add quotes (double-quote
12914 # substitution turns \\\\ into \\, and sed turns \\ into \).
12917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12920 # `set' quotes correctly as required by POSIX, so do not add quotes.
12921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12934 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12935 if test -w "$cache_file"; then
12936 test "x$cache_file" != "x/dev/null" &&
12937 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12938 echo "$as_me: updating cache $cache_file" >&6;}
12939 cat confcache
>$cache_file
12941 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12942 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12947 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12948 # Let make expand exec_prefix.
12949 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12951 DEFS
=-DHAVE_CONFIG_H
12955 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12956 # 1. Remove the extension, and $U if already installed.
12957 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12958 ac_i
=`echo "$ac_i" | sed "$ac_script"`
12959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12960 # will be set to the directory where LIBOBJS objects are built.
12961 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12962 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12964 LIBOBJS
=$ac_libobjs
12966 LTLIBOBJS
=$ac_ltlibobjs
12970 : ${CONFIG_STATUS=./config.status}
12971 ac_clean_files_save
=$ac_clean_files
12972 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12973 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12974 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12975 cat >$CONFIG_STATUS <<_ACEOF
12977 # Generated by $as_me.
12978 # Run this file to recreate the current configuration.
12979 # Compiler output produced by configure, useful for debugging
12980 # configure, is in config.log if it exists.
12983 ac_cs_recheck=false
12985 SHELL=\${CONFIG_SHELL-$SHELL}
12988 cat >>$CONFIG_STATUS <<\_ACEOF
12989 ## --------------------- ##
12990 ## M4sh Initialization. ##
12991 ## --------------------- ##
12993 # Be more Bourne compatible
12994 DUALCASE
=1; export DUALCASE
# for MKS sh
12995 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12998 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12999 # is contrary to our usage. Disable this feature.
13000 alias -g '${1+"$@"}'='"$@"'
13001 setopt NO_GLOB_SUBST
13003 case `(set -o) 2>/dev/null` in
13004 *posix
*) set -o posix
;;
13013 # Avoid depending upon Character Ranges.
13014 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13015 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13016 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13017 as_cr_digits
='0123456789'
13018 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13020 # The user is always right.
13021 if test "${PATH_SEPARATOR+set}" != set; then
13022 echo "#! /bin/sh" >conf$$.sh
13023 echo "exit 0" >>conf$$.sh
13025 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13033 # Support unset when possible.
13034 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13042 # We need space, tab and new line, in precisely that order. Quoting is
13043 # there to prevent editors from complaining about space-tab.
13044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13045 # splitting by setting IFS to empty value.)
13050 # Find who we are. Look in the path if we contain no directory separator.
13052 *[\\/]* ) as_myself
=$0 ;;
13053 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13054 for as_dir
in $PATH
13057 test -z "$as_dir" && as_dir
=.
13058 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13064 # We did not find ourselves, most probably we were run as `sh COMMAND'
13065 # in which case we are not to be found in the path.
13066 if test "x$as_myself" = x
; then
13069 if test ! -f "$as_myself"; then
13070 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13071 { (exit 1); exit 1; }
13074 # Work around bugs in pre-3.0 UWIN ksh.
13075 for as_var
in ENV MAIL MAILPATH
13076 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13084 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13085 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13086 LC_TELEPHONE LC_TIME
13088 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13089 eval $as_var=C
; export $as_var
13091 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
13095 # Required to use basename.
13096 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13097 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13103 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13104 as_basename
=basename
13110 # Name of the executable.
13111 as_me
=`$as_basename -- "$0" ||
13112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13113 X"$0" : 'X\(//\)$' \| \
13114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13116 sed '/^.*\/\([^/][^/]*\)\/*$/{
13135 as_lineno_1
=$LINENO
13136 as_lineno_2
=$LINENO
13137 test "x$as_lineno_1" != "x$as_lineno_2" &&
13138 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
13140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13141 # uniformly replaced by the line number. The first 'sed' inserts a
13142 # line-number line after each line using $LINENO; the second 'sed'
13143 # does the real work. The second script uses 'N' to pair each
13144 # line-number line with the line containing $LINENO, and appends
13145 # trailing '-' during substitution so that $LINENO is not a special
13146 # case at line end.
13147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13148 # scripts with optimization help from Paolo Bonzini. Blame Lee
13149 # E. McMahon (1931-1989) for sed's syntax. :-)
13161 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13164 ' >$as_me.lineno
&&
13165 chmod +x
"$as_me.lineno" ||
13166 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13167 { (exit 1); exit 1; }; }
13169 # Don't try to exec as it changes $[0], causing all sort of problems
13170 # (the dirname of $[0] is not the place where we might find the
13171 # original and so on. Autoconf is especially sensitive to this).
13172 .
"./$as_me.lineno"
13173 # Exit status is that of the last command.
13178 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13184 ECHO_C
= ECHO_N
= ECHO_T
=
13185 case `echo -n x` in
13187 case `echo 'x\c'` in
13188 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13195 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13196 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13202 rm -f conf$$ conf$$.exe conf$$.
file
13203 if test -d conf$$.dir
; then
13204 rm -f conf$$.dir
/conf$$.
file
13210 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13212 # ... but there are two gotchas:
13213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13215 # In both cases, we have to default to `cp -p'.
13216 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13218 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13223 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13224 rmdir conf$$.dir
2>/dev
/null
13226 if mkdir
-p .
2>/dev
/null
; then
13229 test -d .
/-p && rmdir .
/-p
13233 if test -x / >/dev
/null
2>&1; then
13234 as_test_x
='test -x'
13236 if ls -dL / >/dev
/null
2>&1; then
13243 if test -d "$1"; then
13249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13250 ???[sx]*):;;*)false;;esac;fi
13254 as_executable_p
=$as_test_x
13256 # Sed expression to map a string onto a valid CPP name.
13257 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13259 # Sed expression to map a string onto a valid variable name.
13260 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13265 # Save the log message, to keep $[0] and so on meaningful, and to
13266 # report actual input values of CONFIG_FILES etc. instead of their
13267 # values after options handling.
13269 This file was extended by $as_me, which was
13270 generated by GNU Autoconf 2.61. Invocation command line was
13272 CONFIG_FILES = $CONFIG_FILES
13273 CONFIG_HEADERS = $CONFIG_HEADERS
13274 CONFIG_LINKS = $CONFIG_LINKS
13275 CONFIG_COMMANDS = $CONFIG_COMMANDS
13278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13283 cat >>$CONFIG_STATUS <<_ACEOF
13284 # Files that config.status was made for.
13285 config_files="$ac_config_files"
13286 config_headers="$ac_config_headers"
13287 config_commands="$ac_config_commands"
13291 cat >>$CONFIG_STATUS <<\_ACEOF
13293 \`$as_me' instantiates files from templates according to the
13294 current configuration.
13296 Usage: $0 [OPTIONS] [FILE]...
13298 -h, --help print this help, then exit
13299 -V, --version print version number and configuration settings, then exit
13300 -q, --quiet do not print progress messages
13301 -d, --debug don't remove temporary files
13302 --recheck update $as_me by reconfiguring in the same conditions
13303 --file=FILE[:TEMPLATE]
13304 instantiate the configuration file FILE
13305 --header=FILE[:TEMPLATE]
13306 instantiate the configuration header FILE
13308 Configuration files:
13311 Configuration headers:
13314 Configuration commands:
13317 Report bugs to <bug-autoconf@gnu.org>."
13320 cat >>$CONFIG_STATUS <<_ACEOF
13323 configured by $0, generated by GNU Autoconf 2.61,
13324 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13326 Copyright (C) 2006 Free Software Foundation, Inc.
13327 This config.status script is free software; the Free Software Foundation
13328 gives unlimited permission to copy, distribute and modify it."
13334 cat >>$CONFIG_STATUS <<\_ACEOF
13335 # If no file are specified by the user, then we need to provide default
13336 # value. By we need to know if files were specified by the user.
13342 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13343 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13354 # Handling of the options.
13355 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13357 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13358 echo "$ac_cs_version"; exit ;;
13359 --debug |
--debu |
--deb |
--de |
--d |
-d )
13361 --file |
--fil |
--fi |
--f )
13363 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13364 ac_need_defaults
=false
;;
13365 --header |
--heade |
--head |
--hea )
13367 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13368 ac_need_defaults
=false
;;
13370 # Conflict between --help and --header
13371 { echo "$as_me: error: ambiguous option: $1
13372 Try \`$0 --help' for more information." >&2
13373 { (exit 1); exit 1; }; };;
13374 --help |
--hel |
-h )
13375 echo "$ac_cs_usage"; exit ;;
13376 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13377 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13380 # This is an error.
13381 -*) { echo "$as_me: error: unrecognized option: $1
13382 Try \`$0 --help' for more information." >&2
13383 { (exit 1); exit 1; }; } ;;
13385 *) ac_config_targets
="$ac_config_targets $1"
13386 ac_need_defaults
=false
;;
13392 ac_configure_extra_args
=
13394 if $ac_cs_silent; then
13396 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13400 cat >>$CONFIG_STATUS <<_ACEOF
13401 if \$ac_cs_recheck; then
13402 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13403 CONFIG_SHELL=$SHELL
13404 export CONFIG_SHELL
13405 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13409 cat >>$CONFIG_STATUS <<\_ACEOF
13413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13414 ## Running $as_me. ##
13420 cat >>$CONFIG_STATUS <<_ACEOF
13425 aros_host_exe_suffix=${aros_host_exe_suffix}
13426 aros_tools_dir=${aros_tools_dir}
13427 aros_target_cpu=${aros_target_cpu}
13428 aros_target_arch=${aros_target_arch}
13429 aros_target_suffix=${aros_target_suffix}
13430 aros_target_nm_ln=${aros_target_nm_ln}
13431 aros_target_as_ln=${aros_target_as_ln}
13432 aros_target_ar_ln=${aros_target_ar_ln}
13433 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13434 aros_target_objdump_ln=${aros_target_objdump_ln}
13435 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13436 aros_target_strip_ln=${aros_target_strip_ln}
13439 aros_scripts_dir=${aros_scripts_dir}
13441 aros_tools_dir=${aros_tools_dir}
13446 cat >>$CONFIG_STATUS <<\_ACEOF
13448 # Handling of arguments.
13449 for ac_config_target
in $ac_config_targets
13451 case $ac_config_target in
13452 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13453 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
13454 "genshared_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genshared_executable" ;;
13455 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
13456 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13457 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
13458 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13459 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13460 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13461 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13462 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
13463 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13464 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13465 "${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" ;;
13466 "${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" ;;
13467 "${aros_scripts_dir}/genshared") CONFIG_FILES
="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13468 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13469 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
13471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13473 { (exit 1); exit 1; }; };;
13478 # If the user did not use the arguments to specify the items to instantiate,
13479 # then the envvar interface is used. Set only those that are not.
13480 # We use the long form for the default assignment because of an extremely
13481 # bizarre bug on SunOS 4.1.3.
13482 if $ac_need_defaults; then
13483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13488 # Have a temporary directory for convenience. Make it in the build tree
13489 # simply because there is no reason against having it here, and in addition,
13490 # creating and moving files from /tmp can sometimes cause problems.
13491 # Hook for its removal unless debugging.
13492 # Note that there is a small window in which the directory will not be cleaned:
13493 # after its creation but before its name has been assigned to `$tmp'.
13497 trap 'exit_status=$?
13498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13500 trap '{ (exit 1); exit 1; }' 1 2 13 15
13502 # Create a (secure) tmp directory for tmp files.
13505 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13506 test -n "$tmp" && test -d "$tmp"
13509 tmp
=.
/conf$$
-$RANDOM
13510 (umask 077 && mkdir
"$tmp")
13513 echo "$me: cannot create a temporary directory in ." >&2
13514 { (exit 1); exit 1; }
13518 # Set up the sed scripts for CONFIG_FILES section.
13521 # No need to generate the scripts if there are no CONFIG_FILES.
13522 # This happens for instance when ./config.status config.h
13523 if test -n "$CONFIG_FILES"; then
13530 for ac_last_try
in false false false false false
:; do
13531 cat >conf$
$subs.
sed <<_ACEOF
13532 SHELL!$SHELL$ac_delim
13533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13539 exec_prefix!$exec_prefix$ac_delim
13540 prefix!$prefix$ac_delim
13541 program_transform_name!$program_transform_name$ac_delim
13542 bindir!$bindir$ac_delim
13543 sbindir!$sbindir$ac_delim
13544 libexecdir!$libexecdir$ac_delim
13545 datarootdir!$datarootdir$ac_delim
13546 datadir!$datadir$ac_delim
13547 sysconfdir!$sysconfdir$ac_delim
13548 sharedstatedir!$sharedstatedir$ac_delim
13549 localstatedir!$localstatedir$ac_delim
13550 includedir!$includedir$ac_delim
13551 oldincludedir!$oldincludedir$ac_delim
13552 docdir!$docdir$ac_delim
13553 infodir!$infodir$ac_delim
13554 htmldir!$htmldir$ac_delim
13555 dvidir!$dvidir$ac_delim
13556 pdfdir!$pdfdir$ac_delim
13557 psdir!$psdir$ac_delim
13558 libdir!$libdir$ac_delim
13559 localedir!$localedir$ac_delim
13560 mandir!$mandir$ac_delim
13561 DEFS!$DEFS$ac_delim
13562 ECHO_C!$ECHO_C$ac_delim
13563 ECHO_N!$ECHO_N$ac_delim
13564 ECHO_T!$ECHO_T$ac_delim
13565 LIBS!$LIBS$ac_delim
13566 build_alias!$build_alias$ac_delim
13567 host_alias!$host_alias$ac_delim
13568 target_alias!$target_alias$ac_delim
13569 build!$build$ac_delim
13570 build_cpu!$build_cpu$ac_delim
13571 build_vendor!$build_vendor$ac_delim
13572 build_os!$build_os$ac_delim
13573 host!$host$ac_delim
13574 host_cpu!$host_cpu$ac_delim
13575 host_vendor!$host_vendor$ac_delim
13576 host_os!$host_os$ac_delim
13578 CFLAGS!$CFLAGS$ac_delim
13579 LDFLAGS!$LDFLAGS$ac_delim
13580 CPPFLAGS!$CPPFLAGS$ac_delim
13581 ac_ct_CC!$ac_ct_CC$ac_delim
13582 EXEEXT!$EXEEXT$ac_delim
13583 OBJEXT!$OBJEXT$ac_delim
13586 MMAKE!$MMAKE$ac_delim
13587 aros_host_ld!$aros_host_ld$ac_delim
13588 aros_host_aclocal!$aros_host_aclocal$ac_delim
13589 aros_host_autoconf!$aros_host_autoconf$ac_delim
13590 aros_host_autoheader!$aros_host_autoheader$ac_delim
13591 aros_host_automake!$aros_host_automake$ac_delim
13592 aros_host_ar!$aros_host_ar$ac_delim
13593 aros_host_ranlib!$aros_host_ranlib$ac_delim
13594 aros_host_strip!$aros_host_strip$ac_delim
13598 ECHO!$ECHO$ac_delim
13599 MKDIR!$MKDIR$ac_delim
13600 TOUCH!$TOUCH$ac_delim
13601 SORT!$SORT$ac_delim
13602 UNIQ!$UNIQ$ac_delim
13605 BISON!$BISON$ac_delim
13606 FLEX!$FLEX$ac_delim
13607 PNGTOPNM!$PNGTOPNM$ac_delim
13608 PPMTOILBM!$PPMTOILBM$ac_delim
13610 CHMOD!$CHMOD$ac_delim
13611 PYTHON!$PYTHON$ac_delim
13612 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13613 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13614 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13615 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13616 pythondir!$pythondir$ac_delim
13617 pkgpythondir!$pkgpythondir$ac_delim
13618 pyexecdir!$pyexecdir$ac_delim
13619 pkgpyexecdir!$pkgpyexecdir$ac_delim
13622 TEST!$TEST$ac_delim
13624 GREP!$GREP$ac_delim
13625 EGREP!$EGREP$ac_delim
13626 LIBOBJS!$LIBOBJS$ac_delim
13627 DISTCC!$DISTCC$ac_delim
13628 CCACHE!$CCACHE$ac_delim
13631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13633 elif $ac_last_try; then
13634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13636 { (exit 1); exit 1; }; }
13638 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13642 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13643 if test -n "$ac_eof"; then
13644 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13645 ac_eof
=`expr $ac_eof + 1`
13648 cat >>$CONFIG_STATUS <<_ACEOF
13649 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13654 s/^/s,@/; s/!/@,|#_!!_#|/
13657 s/'"$ac_delim"'$/,g/; t
13659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13660 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13661 rm -f conf$
$subs.
sed
13662 cat >>$CONFIG_STATUS <<_ACEOF
13668 for ac_last_try
in false false false false false
:; do
13669 cat >conf$
$subs.
sed <<_ACEOF
13670 aros_target_cc!$aros_target_cc$ac_delim
13671 aros_target_ld!$aros_target_ld$ac_delim
13672 aros_target_as_ln!$aros_target_as_ln$ac_delim
13673 aros_kernel_ld!$aros_kernel_ld$ac_delim
13674 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13675 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13676 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13677 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13678 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13679 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13680 aros_target_cxx!$aros_target_cxx$ac_delim
13681 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13682 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13683 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13684 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13685 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13686 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13687 host_cflags_iquote!$host_cflags_iquote$ac_delim
13688 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13689 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13690 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13691 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13692 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13693 XMKMF!$XMKMF$ac_delim
13694 SDL_CONFIG!$SDL_CONFIG$ac_delim
13695 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13696 SDL_LIBS!$SDL_LIBS$ac_delim
13697 aros_arch!$aros_arch$ac_delim
13698 aros_cpu!$aros_cpu$ac_delim
13699 aros_flavour!$aros_flavour$ac_delim
13700 aros_flavour_uc!$aros_flavour_uc$ac_delim
13701 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13702 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13703 SRCDIR!$SRCDIR$ac_delim
13704 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13705 aros_cc_pre!$aros_cc_pre$ac_delim
13706 aros_host_arch!$aros_host_arch$ac_delim
13707 aros_host_cpu!$aros_host_cpu$ac_delim
13708 aros_host_cc!$aros_host_cc$ac_delim
13709 aros_host_make!$aros_host_make$ac_delim
13710 aros_host_cflags!$aros_host_cflags$ac_delim
13711 aros_host_ldflags!$aros_host_ldflags$ac_delim
13712 aros_host_debug!$aros_host_debug$ac_delim
13713 aros_host_mkdep!$aros_host_mkdep$ac_delim
13714 aros_host_mkargs!$aros_host_mkargs$ac_delim
13715 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13716 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13717 aros_tools_dir!$aros_tools_dir$ac_delim
13718 aros_target_guitheme!$aros_target_guitheme$ac_delim
13719 aros_target_iconset!$aros_target_iconset$ac_delim
13720 aros_target_bootloader!$aros_target_bootloader$ac_delim
13721 aros_target_arch!$aros_target_arch$ac_delim
13722 aros_target_cpu!$aros_target_cpu$ac_delim
13723 aros_target_variant!$aros_target_variant$ac_delim
13724 aros_target_suffix!$aros_target_suffix$ac_delim
13725 aros_target_incl!$aros_target_incl$ac_delim
13726 aros_target_ar!$aros_target_ar$ac_delim
13727 aros_target_ranlib!$aros_target_ranlib$ac_delim
13728 aros_kernel_nm!$aros_kernel_nm$ac_delim
13729 orig_target_cc!$orig_target_cc$ac_delim
13730 aros_kernel_cc!$aros_kernel_cc$ac_delim
13731 aros_target_as!$aros_target_as$ac_delim
13732 orig_target_ld!$orig_target_ld$ac_delim
13733 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13734 aros_target_cc_path!$aros_target_cc_path$ac_delim
13735 aros_target_objdump!$aros_target_objdump$ac_delim
13736 aros_target_objcopy!$aros_target_objcopy$ac_delim
13737 aros_target_strip!$aros_target_strip$ac_delim
13738 aros_target_nm!$aros_target_nm$ac_delim
13739 aros_shared_default!$aros_shared_default$ac_delim
13740 aros_shared_ld!$aros_shared_ld$ac_delim
13741 aros_object_format!$aros_object_format$ac_delim
13742 aros_compiler_libs!$aros_compiler_libs$ac_delim
13743 aros_arch_libs!$aros_arch_libs$ac_delim
13744 aros_config_cflags!$aros_config_cflags$ac_delim
13745 aros_config_aflags!$aros_config_aflags$ac_delim
13746 aros_config_ldflags!$aros_config_ldflags$ac_delim
13747 aros_shared_cflags!$aros_shared_cflags$ac_delim
13748 aros_shared_aflags!$aros_shared_aflags$ac_delim
13749 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13750 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13751 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13752 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13753 aros_debug_cflags!$aros_debug_cflags$ac_delim
13754 aros_debug_aflags!$aros_debug_aflags$ac_delim
13755 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13756 aros_target_genmap!$aros_target_genmap$ac_delim
13757 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13758 crosstools_target!$crosstools_target$ac_delim
13759 x11_hidd_target!$x11_hidd_target$ac_delim
13760 sdl_hidd_target!$sdl_hidd_target$ac_delim
13761 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13762 aros_default_wbheight!$aros_default_wbheight$ac_delim
13763 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13764 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13765 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13766 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13771 elif $ac_last_try; then
13772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13774 { (exit 1); exit 1; }; }
13776 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13780 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13781 if test -n "$ac_eof"; then
13782 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13783 ac_eof
=`expr $ac_eof + 1`
13786 cat >>$CONFIG_STATUS <<_ACEOF
13787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13792 s/^/s,@/; s/!/@,|#_!!_#|/
13795 s/'"$ac_delim"'$/,g/; t
13797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13798 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13799 rm -f conf$
$subs.
sed
13800 cat >>$CONFIG_STATUS <<_ACEOF
13806 for ac_last_try
in false false false false false
:; do
13807 cat >conf$
$subs.
sed <<_ACEOF
13808 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13809 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13810 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13811 aros_serial_debug!$aros_serial_debug$ac_delim
13812 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13813 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13814 aros_ios_platform!$aros_ios_platform$ac_delim
13815 aros_ios_version!$aros_ios_version$ac_delim
13816 aros_ios_sdk!$aros_ios_sdk$ac_delim
13817 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13818 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13819 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13820 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13821 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13822 ENABLE_X11!$ENABLE_X11$ac_delim
13823 aros_debug!$aros_debug$ac_delim
13824 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13825 aros_stack_debug!$aros_stack_debug$ac_delim
13826 aros_modules_debug!$aros_modules_debug$ac_delim
13827 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13828 gcc_target_cpu!$gcc_target_cpu$ac_delim
13829 LTLIBOBJS!$LTLIBOBJS$ac_delim
13832 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
13834 elif $ac_last_try; then
13835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13836 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13837 { (exit 1); exit 1; }; }
13839 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
13843 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13844 if test -n "$ac_eof"; then
13845 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
13846 ac_eof
=`expr $ac_eof + 1`
13849 cat >>$CONFIG_STATUS <<_ACEOF
13850 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13854 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13855 s/^/s,@/; s/!/@,|#_!!_#|/
13858 s/'"$ac_delim"'$/,g/; t
13860 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13861 ' >>$CONFIG_STATUS <conf$
$subs.
sed
13862 rm -f conf$
$subs.
sed
13863 cat >>$CONFIG_STATUS <<_ACEOF
13870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13872 # trailing colons and then remove the whole line if VPATH becomes empty
13873 # (actually we leave an empty line to preserve line numbers).
13874 if test "x$srcdir" = x.
; then
13875 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13876 s/:*\$(srcdir):*/:/
13877 s/:*\${srcdir}:*/:/
13879 s/^\([^=]*=[ ]*\):*/\1/
13885 cat >>$CONFIG_STATUS <<\_ACEOF
13886 fi # test -n "$CONFIG_FILES"
13889 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
13892 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13894 case $ac_mode$ac_tag in
13896 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13897 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13898 { (exit 1); exit 1; }; };;
13899 :[FH
]-) ac_tag
=-:-;;
13900 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13917 -) ac_f
="$tmp/stdin";;
13918 *) # Look for the file first in the build tree, then in the source tree
13919 # (if the path is not absolute). The absolute path cannot be DOS-style,
13920 # because $ac_f cannot contain `:'.
13924 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13926 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13927 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13928 { (exit 1); exit 1; }; };;
13930 ac_file_inputs
="$ac_file_inputs $ac_f"
13933 # Let's still pretend it is `configure' which instantiates (i.e., don't
13934 # use $as_me), people would be surprised to read:
13935 # /* config.h. Generated by config.status. */
13936 configure_input
="Generated from "`IFS=:
13937 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13938 if test x
"$ac_file" != x-
; then
13939 configure_input
="$ac_file. $configure_input"
13940 { echo "$as_me:$LINENO: creating $ac_file" >&5
13941 echo "$as_me: creating $ac_file" >&6;}
13945 *:-:* |
*:-) cat >"$tmp/stdin";;
13950 ac_dir
=`$as_dirname -- "$ac_file" ||
13951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952 X"$ac_file" : 'X\(//\)[^/]' \| \
13953 X"$ac_file" : 'X\(//\)$' \| \
13954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13960 /^X\(\/\/\)[^/].*/{
13975 -*) as_dir
=.
/$as_dir;;
13977 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13981 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13982 *) as_qdir
=$as_dir;;
13984 as_dirs
="'$as_qdir' $as_dirs"
13985 as_dir
=`$as_dirname -- "$as_dir" ||
13986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13987 X"$as_dir" : 'X\(//\)[^/]' \| \
13988 X"$as_dir" : 'X\(//\)$' \| \
13989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13995 /^X\(\/\/\)[^/].*/{
14008 test -d "$as_dir" && break
14010 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14011 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14012 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14013 { (exit 1); exit 1; }; }; }
14017 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14019 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14020 # A ".." for each directory in $ac_dir_suffix.
14021 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14022 case $ac_top_builddir_sub in
14023 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14024 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14027 ac_abs_top_builddir
=$ac_pwd
14028 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14029 # for backward compatibility:
14030 ac_top_builddir
=$ac_top_build_prefix
14033 .
) # We are building in place.
14035 ac_top_srcdir
=$ac_top_builddir_sub
14036 ac_abs_top_srcdir
=$ac_pwd ;;
14037 [\\/]* | ?
:[\\/]* ) # Absolute name.
14038 ac_srcdir
=$srcdir$ac_dir_suffix;
14039 ac_top_srcdir
=$srcdir
14040 ac_abs_top_srcdir
=$srcdir ;;
14041 *) # Relative name.
14042 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14043 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14044 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14046 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14057 cat >>$CONFIG_STATUS <<\_ACEOF
14058 # If the template does not know about datarootdir, expand it.
14059 # FIXME: This hack should be removed a few years after 2.60.
14060 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14062 case `sed -n '/datarootdir/ {
14071 ' $ac_file_inputs` in
14072 *datarootdir
*) ac_datarootdir_seen
=yes;;
14073 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14074 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14075 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14077 cat >>$CONFIG_STATUS <<_ACEOF
14078 ac_datarootdir_hack='
14079 s&@datadir@&$datadir&g
14080 s&@docdir@&$docdir&g
14081 s&@infodir@&$infodir&g
14082 s&@localedir@&$localedir&g
14083 s&@mandir@&$mandir&g
14084 s&\\\${datarootdir}&$datarootdir&g' ;;
14088 # Neutralize VPATH when `$srcdir' = `.'.
14089 # Shell code in configure.ac might set extrasub.
14090 # FIXME: do we really want to maintain this feature?
14091 cat >>$CONFIG_STATUS <<_ACEOF
14095 cat >>$CONFIG_STATUS <<\_ACEOF
14097 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14098 s
&@configure_input@
&$configure_input&;t t
14099 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14100 s
&@srcdir@
&$ac_srcdir&;t t
14101 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14102 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14103 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14104 s
&@builddir@
&$ac_builddir&;t t
14105 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14106 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14107 $ac_datarootdir_hack
14108 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
14110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14111 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14113 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14114 which seems to be undefined. Please make sure it is defined." >&5
14115 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14116 which seems to be undefined. Please make sure it is defined." >&2;}
14120 -) cat "$tmp/out"; rm -f "$tmp/out";;
14121 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14130 # Transform confdefs.h into a sed script `conftest.defines', that
14131 # substitutes the proper values into config.h.in to produce config.h.
14132 rm -f conftest.defines conftest.
tail
14133 # First, append a space to every undef/define line, to ease matching.
14134 echo 's/$/ /' >conftest.defines
14135 # Then, protect against being on the right side of a sed subst, or in
14136 # an unquoted here document, in config.status. If some macros were
14137 # called several times there might be several #defines for the same
14138 # symbol, which is useless. But do not sort them, since the last
14139 # AC_DEFINE must be honored.
14140 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
14141 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14142 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14143 # PARAMS is the parameter list in the macro definition--in most cases, it's
14144 # just an empty string.
14145 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14146 ac_dB
='\\)[ (].*,\\1define\\2'
14154 s/^[ ]*#[ ]*define[ ][ ]*//
14159 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14160 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14161 ' >>conftest.defines
14163 # Remove the space that was appended to ease matching.
14164 # Then replace #undef with comments. This is necessary, for
14165 # example, in the case of _POSIX_SOURCE, which is predefined and required
14166 # on some systems where configure will not decide to define it.
14167 # (The regexp can be short, since the line contains either #define or #undef.)
14169 s,^[ #]*u.*,/* & */,' >>conftest.defines
14171 # Break up conftest.defines:
14172 ac_max_sed_lines
=50
14174 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14175 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14176 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14178 ac_in
='$ac_file_inputs'
14179 ac_out
='"$tmp/out1"'
14180 ac_nxt
='"$tmp/out2"'
14184 # Write a here document:
14185 cat >>$CONFIG_STATUS <<_ACEOF
14186 # First, check the format of the line:
14187 cat >"\$tmp/defines.sed" <<\\CEOF
14188 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14189 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14193 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
14195 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14196 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
14197 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
14198 grep . conftest.
tail >/dev
/null ||
break
14199 rm -f conftest.defines
14200 mv conftest.
tail conftest.defines
14202 rm -f conftest.defines conftest.
tail
14204 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14205 cat >>$CONFIG_STATUS <<\_ACEOF
14206 if test x
"$ac_file" != x-
; then
14207 echo "/* $configure_input */" >"$tmp/config.h"
14208 cat "$ac_result" >>"$tmp/config.h"
14209 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
14210 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14211 echo "$as_me: $ac_file is unchanged" >&6;}
14214 mv "$tmp/config.h" $ac_file
14217 echo "/* $configure_input */"
14223 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14224 echo "$as_me: executing $ac_file commands" >&6;}
14229 case $ac_file$ac_mode in
14230 "compiler_executable":C
)
14231 prefix
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14233 prefix
="${prefix}/${aros_target_cpu}-aros"
14234 prefix2
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14238 chmod a
+x
${prefix2}-gcc ${prefix2}-ld
14240 ln -sf ${prefix2}-gcc ${prefix}-gcc
14241 ln -sf ${prefix2}-ld ${prefix}-ld
14243 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14244 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14245 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14246 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14247 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14248 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14249 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14251 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14252 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14253 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14254 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14255 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14256 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14257 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14259 "genshared_executable":C
) chmod a
+x
${aros_scripts_dir}/genshared
;;
14260 "genmf_executable":C
) chmod a
+x
${aros_tools_dir}/genmf.py
;;
14266 { (exit 0); exit 0; }
14268 chmod +x
$CONFIG_STATUS
14269 ac_clean_files
=$ac_clean_files_save
14272 # configure is writing to config.log, and then calls config.status.
14273 # config.status does its own redirection, appending to config.log.
14274 # Unfortunately, on DOS this fails, as config.log is still kept open
14275 # by configure, so config.status won't be able to write to it; its
14276 # output is simply discarded. So we exec the FD to /dev/null,
14277 # effectively closing config.log, so it can be properly (re)opened and
14278 # appended to by config.status. When coming back to configure, we
14279 # need to make the FD available again.
14280 if test "$no_create" != yes; then
14282 ac_config_status_args
=
14283 test "$silent" = yes &&
14284 ac_config_status_args
="$ac_config_status_args --quiet"
14286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14289 # would make configure fail if this is the last instruction.
14290 $ac_cs_success ||
{ (exit 1); exit 1; }
14295 #XXX compatability...
14296 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
14298 if test -n "$aros_shared_cflags" ; then
14299 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14300 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg