2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars
='LTLIBOBJS
597 ignore_undefined_symbols
613 aros_nesting_supervisor
618 aros_host_x11_libdirs
619 aros_host_x11_includes
623 aros_default_wbheight
629 crosstools_cxx_target
631 aros_target_strip_flags
638 aros_kernel_objcflags
657 aros_target_cc_includes
672 aros_target_bootloader
702 aros_cflags_iquote_end
704 kernel_cflags_iquote_end
706 host_cflags_iquote_end
708 aros_target_nostdlib_ldflags
709 aros_target_detach_ldflags
710 aros_target_nix_ldflags
711 aros_target_nostartup_ldflags
712 aros_target_nostdinc_cflags
717 aros_target_ranlib_ln
718 aros_target_objdump_ln
719 aros_target_objcopy_ln
814 program_transform_name
827 enable_option_checking
836 enable_target_variant
852 enable_palm_debug_hack
853 enable_nesting_supervisor
865 ac_precious_vars
='build_alias
877 # Initialize some variables set by options.
879 ac_init_version
=false
880 ac_unrecognized_opts
=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name
=s
,x
,x
,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir
='${exec_prefix}/bin'
906 sbindir
='${exec_prefix}/sbin'
907 libexecdir
='${exec_prefix}/libexec'
908 datarootdir
='${prefix}/share'
909 datadir
='${datarootdir}'
910 sysconfdir
='${prefix}/etc'
911 sharedstatedir
='${prefix}/com'
912 localstatedir
='${prefix}/var'
913 includedir
='${prefix}/include'
914 oldincludedir
='/usr/include'
915 docdir
='${datarootdir}/doc/${PACKAGE}'
916 infodir
='${datarootdir}/info'
921 libdir
='${exec_prefix}/lib'
922 localedir
='${datarootdir}/locale'
923 mandir
='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\
$ac_option
937 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
948 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
950 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
953 -build |
--build |
--buil |
--bui |
--bu)
954 ac_prev
=build_alias
;;
955 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
956 build_alias
=$ac_optarg ;;
958 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
959 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
960 ac_prev
=cache_file
;;
961 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
962 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
963 cache_file
=$ac_optarg ;;
966 cache_file
=config.cache
;;
968 -datadir |
--datadir |
--datadi |
--datad)
970 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
971 datadir
=$ac_optarg ;;
973 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
974 |
--dataroo |
--dataro |
--datar)
975 ac_prev
=datarootdir
;;
976 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
977 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
978 datarootdir
=$ac_optarg ;;
980 -disable-* |
--disable-*)
981 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
984 as_fn_error $?
"invalid feature name: $ac_useropt"
985 ac_useropt_orig
=$ac_useropt
986 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep
=', ';;
994 eval enable_
$ac_useropt=no
;;
996 -docdir |
--docdir |
--docdi |
--doc |
--do)
998 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1003 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1004 dvidir
=$ac_optarg ;;
1006 -enable-* |
--enable-*)
1007 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1010 as_fn_error $?
"invalid feature name: $ac_useropt"
1011 ac_useropt_orig
=$ac_useropt
1012 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_
$ac_useropt"
1017 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep
=', ';;
1020 eval enable_
$ac_useropt=\
$ac_optarg ;;
1022 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1023 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1024 |
--exec |
--exe |
--ex)
1025 ac_prev
=exec_prefix
;;
1026 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1027 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1028 |
--exec=* |
--exe=* |
--ex=*)
1029 exec_prefix
=$ac_optarg ;;
1031 -gas |
--gas |
--ga |
--g)
1032 # Obsolete; use --with-gas.
1035 -help |
--help |
--hel |
--he |
-h)
1036 ac_init_help
=long
;;
1037 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1038 ac_init_help
=recursive
;;
1039 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1040 ac_init_help
=short
;;
1042 -host |
--host |
--hos |
--ho)
1043 ac_prev
=host_alias
;;
1044 -host=* |
--host=* |
--hos=* |
--ho=*)
1045 host_alias
=$ac_optarg ;;
1047 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1049 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1051 htmldir
=$ac_optarg ;;
1053 -includedir |
--includedir |
--includedi |
--included |
--include \
1054 |
--includ |
--inclu |
--incl |
--inc)
1055 ac_prev
=includedir
;;
1056 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1057 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1058 includedir
=$ac_optarg ;;
1060 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1062 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1063 infodir
=$ac_optarg ;;
1065 -libdir |
--libdir |
--libdi |
--libd)
1067 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1068 libdir
=$ac_optarg ;;
1070 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1071 |
--libexe |
--libex |
--libe)
1072 ac_prev
=libexecdir
;;
1073 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1074 |
--libexe=* |
--libex=* |
--libe=*)
1075 libexecdir
=$ac_optarg ;;
1077 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1078 ac_prev
=localedir
;;
1079 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1080 localedir
=$ac_optarg ;;
1082 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1083 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1084 ac_prev
=localstatedir
;;
1085 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1086 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1087 localstatedir
=$ac_optarg ;;
1089 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1091 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1092 mandir
=$ac_optarg ;;
1094 -nfp |
--nfp |
--nf)
1095 # Obsolete; use --without-fp.
1098 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1099 |
--no-cr |
--no-c |
-n)
1102 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1103 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1106 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1107 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1108 |
--oldin |
--oldi |
--old |
--ol |
--o)
1109 ac_prev
=oldincludedir
;;
1110 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1111 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1112 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1113 oldincludedir
=$ac_optarg ;;
1115 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1117 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1118 prefix
=$ac_optarg ;;
1120 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1121 |
--program-pre |
--program-pr |
--program-p)
1122 ac_prev
=program_prefix
;;
1123 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1124 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1125 program_prefix
=$ac_optarg ;;
1127 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1128 |
--program-suf |
--program-su |
--program-s)
1129 ac_prev
=program_suffix
;;
1130 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1131 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1132 program_suffix
=$ac_optarg ;;
1134 -program-transform-name |
--program-transform-name \
1135 |
--program-transform-nam |
--program-transform-na \
1136 |
--program-transform-n |
--program-transform- \
1137 |
--program-transform |
--program-transfor \
1138 |
--program-transfo |
--program-transf \
1139 |
--program-trans |
--program-tran \
1140 |
--progr-tra |
--program-tr |
--program-t)
1141 ac_prev
=program_transform_name
;;
1142 -program-transform-name=* |
--program-transform-name=* \
1143 |
--program-transform-nam=* |
--program-transform-na=* \
1144 |
--program-transform-n=* |
--program-transform-=* \
1145 |
--program-transform=* |
--program-transfor=* \
1146 |
--program-transfo=* |
--program-transf=* \
1147 |
--program-trans=* |
--program-tran=* \
1148 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1149 program_transform_name
=$ac_optarg ;;
1151 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1153 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1154 pdfdir
=$ac_optarg ;;
1156 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1158 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1161 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1162 |
-silent |
--silent |
--silen |
--sile |
--sil)
1165 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1167 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1169 sbindir
=$ac_optarg ;;
1171 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1172 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1173 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1175 ac_prev
=sharedstatedir
;;
1176 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1177 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1178 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1180 sharedstatedir
=$ac_optarg ;;
1182 -site |
--site |
--sit)
1184 -site=* |
--site=* |
--sit=*)
1187 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1189 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1190 srcdir
=$ac_optarg ;;
1192 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1193 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1194 ac_prev
=sysconfdir
;;
1195 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1196 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1197 sysconfdir
=$ac_optarg ;;
1199 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1200 ac_prev
=target_alias
;;
1201 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1202 target_alias
=$ac_optarg ;;
1204 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1207 -version |
--version |
--versio |
--versi |
--vers |
-V)
1208 ac_init_version
=: ;;
1211 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error $?
"invalid package name: $ac_useropt"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=\
$ac_optarg ;;
1226 -without-* |
--without-*)
1227 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1230 as_fn_error $?
"invalid package name: $ac_useropt"
1231 ac_useropt_orig
=$ac_useropt
1232 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep
=', ';;
1240 eval with_
$ac_useropt=no
;;
1243 # Obsolete; use --with-x.
1246 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1247 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1248 ac_prev
=x_includes
;;
1249 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1250 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1251 x_includes
=$ac_optarg ;;
1253 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1254 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1255 ac_prev
=x_libraries
;;
1256 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1257 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1258 x_libraries
=$ac_optarg ;;
1260 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1265 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1269 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1271 eval $ac_envvar=\
$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $?
"missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1293 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 # Check all directory arguments for consistency.
1299 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val
=\$
$ac_var
1305 # Remove trailing slashes.
1308 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\
$ac_val;;
1311 # Be sure to have absolute directory names.
1313 [\\/$
]* | ?
:[\\/]* ) continue;;
1314 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1316 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1324 target
=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x
; then
1328 if test "x$build_alias" = x
; then
1329 cross_compiling
=maybe
1330 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used" >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1340 test "$silent" = yes && exec 6>/dev
/null
1343 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di
=`ls -di .` &&
1345 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $?
"working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $?
"pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted
=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir
=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted
=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1387 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var
in $ac_precious_vars; do
1404 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1406 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --x-includes=DIR X include files are
in DIR
1476 --x-libraries=DIR X library files are
in DIR
1479 --build=BUILD configure
for building on BUILD
[guessed
]
1480 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1484 if test -n "$ac_init_help"; then
1489 --disable-option-checking ignore unrecognized
--enable/--with options
1490 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1491 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1492 --enable-build-type=TYPE
1493 Select the build
type. Available types are
:
1494 personal
, nightly
, snapshot
, milestone
, release. Do
1495 NOT use this option unless you know what you are
1496 doing
! (default
=personal
)
1497 --enable-debug=list Enable different types of debug. Commas or
1498 whitespaces can be used to separate the items
in the
1499 list. Available types of debug are
: all
, none
,
1500 messages
, stack
, mungwall
, modules
, symbols. If no
1501 list is provided
then "all" is assumed.
1503 --enable-crosstools Build cross-compiler toolchains
if necessary
1505 --enable-distcc Use distcc as a front end to the compiler
1507 --enable-ccache Use ccache as a front end to the compiler
1509 --enable-target-variant=NAME
1510 Enable a specific target variant
(default
=none
)
1511 --enable-includes=dir Alternative system include directory
1512 --enable-palm-debug-hack
1513 Enable palm debug output hack
in palm native
1515 --enable-nesting-supervisor
1516 Enable nesting supervisor support
in unix
1518 --disable-mmu Disable MMU support
(default
=enabled
)
1519 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1520 --enable-x11-shm use X11 shared memory
(default
=auto
)
1521 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1522 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1523 --disable-sdltest Do not try to compile and run a
test SDL program
1524 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1527 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1528 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1529 --with-gcc-version=VERSION
1530 Use
host gcc-VERSION
for building AROS
1531 --with-optimization=FLAGS
1532 Use optimization flags FLAGS
(default
=-O2).
1533 --with-paranoia=FLAGS CC flags to
enable paranoia
1534 --with-xcode=PATH Specify XCode path
for iOS targets
1535 (default
=/Developer
).
1536 --with-ios-version=VERSION
1537 Specify minimum supported iOS version
(default
=3.0).
1538 --with-ios-sdk=VERSION Use iOS SDK version VERSION
(default
=4.1).
1539 --with-sdk=PATH Specify Android SDK path
1540 (default
=$default_android_sdk).
1541 --with-ndk=PATH Specify Android NDK path
1542 (default
=$default_android_ndk).
1543 --with-android-version=VERSION
1544 Use Android platform VERSION
(default
=2.2).
1545 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1546 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1547 --with-portssources=DIR Where to download sourcecode
for external ports
1548 --with-bootloader=NAME Use a specific bootloader
1549 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1550 --with-theme=NAME Use a specific GUI Theme
1551 --with-resolution=XRESxYRESxDEPTH
1552 Default resolution of the initial WorkbenchScreen
1553 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1554 --with-x use the X Window System
1555 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1556 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1558 Some influential environment variables
:
1559 CC C compiler
command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1562 nonstandard directory
<lib dir
>
1563 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1564 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1565 you have headers
in a nonstandard directory
<include dir
>
1567 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1569 Use these variables to override the choices made by
`configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to the package provider.
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1602 .) # We are building in place.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1636 generated by GNU Autoconf 2.67
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1659 *) ac_try_echo
=$ac_try;;
1661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1665 if test -s conftest.err
; then
1666 grep -v '^ *+' conftest.err
>conftest.er1
1667 cat conftest.er1
>&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.
$ac_objext; then :
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.
$ac_ext >&5
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1683 as_fn_set_status
$ac_retval
1685 } # ac_fn_c_try_compile
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1729 ac_fn_c_check_header_mongrel ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if eval "test \"\${$3+set}\"" = set; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval "test \"\${$3+set}\"" = set; then :
1736 $as_echo_n "(cached) " >&6
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1753 ac_header_compiler=no
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1769 ac_header_preproc=no
1771 rm -f conftest.err conftest.i conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval "test \"\${$3+set}\"" = set; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1821 *) ac_try_echo
=$ac_try;;
1823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 as_fn_set_status $ac_retval
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval "test \"\${$3+set}\"" = set; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1894 *) ac_try_echo
=$ac_try;;
1896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err
; then
1901 grep -v '^ *+' conftest.err
>conftest.er1
1902 cat conftest.er1
>&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest
$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 $as_test_x conftest
$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.
$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1926 as_fn_set_status
$ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member
()
1936 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if eval "test \"\${$4+set}\"" = set; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1955 if ac_fn_c_try_compile
"$LINENO"; then :
1958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1965 if (sizeof ac_aggr.$3)
1971 if ac_fn_c_try_compile
"$LINENO"; then :
1976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 } # ac_fn_c_check_member
1987 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1988 # ---------------------------------------------
1989 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1991 ac_fn_c_check_decl
()
1993 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1994 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1995 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1997 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1998 if eval "test \"\${$3+set}\"" = set; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 #ifndef $as_decl_name
2009 (void) $as_decl_use;
2011 (void) $as_decl_name;
2019 if ac_fn_c_try_compile
"$LINENO"; then :
2024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 } # ac_fn_c_check_decl
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type
()
2039 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval "test \"\${$3+set}\"" = set; then :
2043 $as_echo_n "(cached) " >&6
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2058 if ac_fn_c_try_compile
"$LINENO"; then :
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2085 } # ac_fn_c_check_type
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func
()
2092 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval "test \"\${$3+set}\"" = set; then :
2096 $as_echo_n "(cached) " >&6
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2110 # include <limits.h>
2112 # include <assert.h>
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2139 if ac_fn_c_try_link
"$LINENO"; then :
2144 rm -f core conftest.err conftest.
$ac_objext \
2145 conftest
$ac_exeext conftest.
$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2152 } # ac_fn_c_check_func
2153 cat >config.log
<<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by $as_me, which was
2158 generated by GNU Autoconf 2.67. Invocation command line was
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir
=.
2194 $as_echo "PATH: $as_dir"
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_must_keep_next
=false
2224 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2226 |
-silent |
--silent |
--silen |
--sile |
--sil)
2229 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1
" '$ac_arg'"
2235 if test $ac_must_keep_next = true
; then
2236 ac_must_keep_next
=false
# Got value, back to normal.
2239 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2240 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2241 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2242 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 -* ) ac_must_keep_next
=true
;;
2250 as_fn_append ac_configure_args
" '$ac_arg'"
2255 { ac_configure_args0
=; unset ac_configure_args0
;}
2256 { ac_configure_args1
=; unset ac_configure_args1
;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2268 $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2272 # The following way of writing the cache mishandles newlines in values,
2274 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275 eval ac_val=\$$ac_var
2279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 _ | IFS | as_nl) ;; #(
2284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285 *) { eval $ac_var=; unset $ac_var;} ;;
2290 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291 *${as_nl}ac_space=\ *)
2293 "s/'\''/'\''\\\\'\'''\''/g;
2294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2308 for ac_var in $ac_subst_vars
2310 eval ac_val=\$$ac_var
2312 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 $as_echo "$ac_var='\''$ac_val'\''"
2318 if test -n "$ac_subst_files"; then
2319 $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2323 for ac_var
in $ac_subst_files
2325 eval ac_val
=\$
$ac_var
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 $as_echo "$ac_var='\''$ac_val'\''"
2334 if test -s confdefs.h; then
2335 $as_echo "## ----------- ##
2342 test "$ac_signal" != 0 &&
2343 $as_echo "$as_me: caught signal $ac_signal"
2344 $as_echo "$as_me: exit $exit_status"
2346 rm -f core *.core core.conftest.* &&
2347 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2350 for ac_signal
in 1 2 13 15; do
2351 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest
* confdefs.h
2358 $as_echo "/* confdefs.h */" > confdefs.h
2360 # Predefined preprocessor variables.
2362 cat >>confdefs.h
<<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2366 cat >>confdefs.h
<<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2370 cat >>confdefs.h
<<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2374 cat >>confdefs.h
<<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2378 cat >>confdefs.h
<<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2382 cat >>confdefs.h
<<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2391 if test -n "$CONFIG_SITE"; then
2392 # We do not want a PATH search for config.site.
2393 case $CONFIG_SITE in #((
2394 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2395 */*) ac_site_file1
=$CONFIG_SITE;;
2396 *) ac_site_file1
=.
/$CONFIG_SITE;;
2398 elif test "x$prefix" != xNONE
; then
2399 ac_site_file1
=$prefix/share
/config.site
2400 ac_site_file2
=$prefix/etc
/config.site
2402 ac_site_file1
=$ac_default_prefix/share
/config.site
2403 ac_site_file2
=$ac_default_prefix/etc
/config.site
2405 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2407 test "x$ac_site_file" = xNONE
&& continue
2408 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411 sed 's/^/| /' "$ac_site_file" >&5
2413 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $?
"failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5 ; }
2420 if test -r "$cache_file"; then
2421 # Some versions of bash will fail to source /dev/null (special files
2422 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2423 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2428 *) .
"./$cache_file";;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 as_fn_append ac_header_list
" stdlib.h"
2438 as_fn_append ac_header_list
" unistd.h"
2439 as_fn_append ac_header_list
" sys/param.h"
2440 # Check that the precious variables saved in the cache have kept the same
2442 ac_cache_corrupted
=false
2443 for ac_var
in $ac_precious_vars; do
2444 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2445 eval ac_new_set
=\
$ac_env_${ac_var}_set
2446 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2447 eval ac_new_val
=\
$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted
=: ;;
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted
=: ;;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w
=`echo x $ac_old_val`
2462 ac_new_val_w
=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted
=:
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\
$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2481 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg
=$ac_var=$ac_new_val ;;
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2502 ac_cpp
='$CPP $CPPFLAGS'
2503 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2510 for ac_dir
in scripts
/autoconf
"$srcdir"/scripts
/autoconf
; do
2511 if test -f "$ac_dir/install-sh"; then
2513 ac_install_sh
="$ac_aux_dir/install-sh -c"
2515 elif test -f "$ac_dir/install.sh"; then
2517 ac_install_sh
="$ac_aux_dir/install.sh -c"
2519 elif test -f "$ac_dir/shtool"; then
2521 ac_install_sh
="$ac_aux_dir/shtool install -c"
2525 if test -z "$ac_aux_dir"; then
2526 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2534 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2535 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Check what host we are running on.
2540 # If a target is not suggested, we use this one.
2541 # Note that what we call a target, Autoconf calls a host.
2542 # Make sure we can run config.sub.
2543 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2544 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2547 $as_echo_n "checking build system type... " >&6; }
2548 if test "${ac_cv_build+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2551 ac_build_alias
=$build_alias
2552 test "x$ac_build_alias" = x
&&
2553 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2554 test "x$ac_build_alias" = x
&&
2555 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2556 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2561 $as_echo "$ac_cv_build" >&6; }
2562 case $ac_cv_build in
2564 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
2567 ac_save_IFS
=$IFS; IFS
='-'
2573 # Remember, the first character of IFS is used to create $*,
2574 # except with old shells:
2577 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2581 $as_echo_n "checking host system type... " >&6; }
2582 if test "${ac_cv_host+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2585 if test "x$host_alias" = x
; then
2586 ac_cv_host
=$ac_cv_build
2588 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2589 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2594 $as_echo "$ac_cv_host" >&6; }
2597 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
2600 ac_save_IFS
=$IFS; IFS
='-'
2606 # Remember, the first character of IFS is used to create $*,
2607 # except with old shells:
2610 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2614 # The AROS target is slightly different to the normal GNU style
2615 # format. We don't have the middle part, and we reverse the order
2616 # of the $(CPU) and $(OS) bits.
2618 # Don't strip the version of the target yet, it might be
2619 # useful on some systems.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2622 $as_echo_n "checking for AROS style target... " >&6; }
2624 if test "$target" = "NONE" ; then
2625 target
=$host_os-$host_cpu
2627 if test "$target" = "" ; then
2628 target
=$host_os-$host_cpu
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2632 $as_echo "$target" >&6; }
2634 if test "$host_os" = "mingw32" ; then
2638 #don't know where else to put this...
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2640 $as_echo_n "checking building AROS in... " >&6; }
2641 AROS_BUILDDIR
=`${PWDCMD-pwd}`
2642 AROS_BUILDDIR_UNIX
=${PWD}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2644 $as_echo "$AROS_BUILDDIR" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2647 $as_echo_n "checking AROS source in... " >&6; }
2648 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2651 $as_echo "$SRCDIR" >&6; }
2653 # Parse the target field into something useful.
2655 target_os
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2656 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2659 aros_default_wbwidth
=800
2660 aros_default_wbheight
=600
2661 aros_default_wbdepth
=4
2664 # The first step is to find the host binaries.
2665 # Check for a compiler.
2667 ac_cpp
='$CPP $CPPFLAGS'
2668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC
="$CC" # Let the user override the test.
2682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir
=.
2687 for ac_exec_ext
in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2710 if test -z "$ac_cv_prog_CC"; then
2712 # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc
; ac_word
=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC
="gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2748 if test "x$ac_ct_CC" = x
; then
2751 case $cross_compiling:$ac_tool_warned in
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned
=yes ;;
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC
="$CC" # Let the user override the test.
2775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir
=.
2780 for ac_exec_ext
in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 # Extract the first word of "cc", so it can be a program name with args.
2806 set dummy cc
; ac_word
=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC
="$CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824 ac_prog_rejected
=yes
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test $ac_prog_rejected = yes; then
2836 # We found a bogon in the path, so make sure we never use it.
2837 set dummy
$ac_cv_prog_CC
2839 if test $# != 0; then
2840 # We chose a different compiler from the bogus one.
2841 # However, it has the same basename, so the bogon will be chosen
2842 # first if we set CC to just the basename; use the full file name.
2844 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 for ac_prog
in cl.exe
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC
="$CC" # Let the user override the test.
2874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir
=.
2879 for ac_exec_ext
in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$CC" && break
2904 if test -z "$CC"; then
2906 for ac_prog
in cl.exe
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_prog; ac_word
=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC
="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$ac_ct_CC" && break
2948 if test "x$ac_ct_CC" = x
; then
2951 case $cross_compiling:$ac_tool_warned in
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned
=yes ;;
2964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $?
"no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details" "$LINENO" 5 ; }
2969 # Provide some information about the compiler.
2970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973 for ac_option
in --version -v -V -qversion; do
2974 { { ac_try
="$ac_compiler $ac_option >&5"
2976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983 if test -s conftest.err; then
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2989 rm -f conftest.er1 conftest.err
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3005 ac_clean_files_save=$ac_clean_files
3006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3007 # Try to create an executable without -o first, disregard a.out.
3008 # It will help us diagnose broken compilers, and finding out an intuition
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3014 # The possible output files:
3015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018 for ac_file in $ac_files
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027 if { { ac_try="$ac_link_default"
3029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3030 *) ac_try_echo
=$ac_try;;
3032 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link_default") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3041 # so that the user can short-circuit this test for compilers unknown to
3043 for ac_file
in $ac_files ''
3045 test -f "$ac_file" ||
continue
3047 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3050 # We found the default executable, but exeext='' is most
3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3056 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3068 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3073 if test -z "$ac_file"; then :
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.
$ac_ext >&5
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error
77 "C compiler cannot create executables
3082 See \`config.log' for more details" "$LINENO" 5 ; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088 $as_echo_n "checking for C compiler default output file name... " >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 ac_exeext
=$ac_cv_exeext
3093 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3094 ac_clean_files
=$ac_clean_files_save
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try
="$ac_link"
3099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3109 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 for ac_file
in conftest.exe conftest conftest.
*; do
3113 test -f "$ac_file" ||
continue
3115 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3116 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details" "$LINENO" 5 ; }
3127 rm -f conftest conftest
$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.
$ac_ext
3132 EXEEXT
=$ac_cv_exeext
3134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3140 FILE *f = fopen ("conftest.out", "w");
3141 return ferror (f) || fclose (f) != 0;
3147 ac_clean_files
="$ac_clean_files conftest.out"
3148 # Check that the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3151 $as_echo_n "checking whether we are cross compiling... " >&6; }
3152 if test "$cross_compiling" != yes; then
3153 { { ac_try
="$ac_link"
3155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_link") 2>&5
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3164 if { ac_try='./conftest$ac_cv_exeext'
3165 { { case "(($ac_try" in
3166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3167 *) ac_try_echo
=$ac_try;;
3169 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_try") 2>&5
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; }; then
3177 if test "$cross_compiling" = maybe
; then
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $?
"cannot run C compiled programs.
3183 If you meant to cross compile, use \`--host'.
3184 See \`config.log' for more details" "$LINENO" 5 ; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3189 $as_echo "$cross_compiling" >&6; }
3191 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3192 ac_clean_files
=$ac_clean_files_save
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3194 $as_echo_n "checking for suffix of object files... " >&6; }
3195 if test "${ac_cv_objext+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3209 rm -f conftest.o conftest.obj
3210 if { { ac_try
="$ac_compile"
3212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compile") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3236 See \
`config.log' for more details" "$LINENO" 5 ; }
3238 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3241 $as_echo "$ac_cv_objext" >&6; }
3242 OBJEXT=$ac_cv_objext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3245 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3246 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3273 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3274 if test $ac_compiler_gnu = yes; then
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3282 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3283 if test "${ac_cv_prog_cc_g+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3286 ac_save_c_werror_flag=$ac_c_werror_flag
3287 ac_c_werror_flag=yes
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 if ac_fn_c_try_compile "$LINENO"; then :
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3332 if ac_fn_c_try_compile "$LINENO"; then :
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3343 $as_echo "$ac_cv_prog_cc_g" >&6; }
3344 if test "$ac_test_CFLAGS" = set; then
3345 CFLAGS=$ac_save_CFLAGS
3346 elif test $ac_cv_prog_cc_g = yes; then
3347 if test "$GCC" = yes; then
3353 if test "$GCC" = yes; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3360 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3361 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3364 ac_cv_prog_cc_c89=no
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_c89=$ac_arg
3426 rm -f core conftest.err conftest.$ac_objext
3427 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 rm -f conftest.$ac_ext
3434 case "x$ac_cv_prog_cc_c89" in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3442 CC="$CC $ac_cv_prog_cc_c89"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 case $ac_cv_prog_cc_stdc in #(
3458 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3461 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3462 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 ac_cv_prog_cc_c99=no
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3470 #include <stdbool.h>
3475 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3476 #define debug(...) fprintf (stderr, __VA_ARGS__)
3477 #define showlist(...) puts (#__VA_ARGS__)
3478 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3480 test_varargs_macros (void)
3485 debug ("X = %d\n", x);
3486 showlist (The first, second, and third items.);
3487 report (x>y, "x is %d but y is %d", x, y);
3490 // Check long long types.
3491 #define BIG64 18446744073709551615ull
3492 #define BIG32 4294967295ul
3493 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3495 your preprocessor is broken;
3499 your preprocessor is broken;
3501 static long long int bignum = -9223372036854775807LL;
3502 static unsigned long long int ubignum = BIG64;
3504 struct incomplete_array
3512 const wchar_t *name;
3516 typedef const char *ccp;
3519 test_restrict (ccp restrict text)
3521 // See if C++-style comments work.
3522 // Iterate through items via the restricted pointer.
3523 // Also check for declarations in for loops.
3524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3529 // Check varargs and va_copy.
3531 test_varargs (const char *format, ...)
3534 va_start (args, format);
3536 va_copy (args_copy, args);
3547 str = va_arg (args_copy, const char *);
3550 number = va_arg (args_copy, int);
3553 fnumber = va_arg (args_copy, double);
3568 _Bool success = false;
3571 if (test_restrict ("String literal") == 0)
3573 char *restrict newvar = "Another string";
3576 test_varargs ("s, d' f .", "string", 65, 34.234);
3577 test_varargs_macros ();
3579 // Check flexible array members.
3580 struct incomplete_array *ia =
3581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3583 for (int i = 0; i < ia->datasize; ++i)
3584 ia->data[i] = i * 1.234;
3586 // Check named initializers.
3587 struct named_init ni = {
3589 .name = L"Test wide string",
3590 .average = 543.34343,
3595 int dynamic_array[ni.number];
3596 dynamic_array[ni.number - 1] = 543;
3598 // work around unused variable warnings
3599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3600 || dynamic_array[ni.number - 1] != 543);
3606 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3608 CC="$ac_save_CC $ac_arg"
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_c99=$ac_arg
3612 rm -f core conftest.err conftest.$ac_objext
3613 test "x$ac_cv_prog_cc_c99" != "xno" && break
3615 rm -f conftest.$ac_ext
3620 case "x$ac_cv_prog_cc_c99" in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623 $as_echo "none needed" >&6; } ;;
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 $as_echo "unsupported" >&6; } ;;
3628 CC="$CC $ac_cv_prog_cc_c99"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3630 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3632 if test "x$ac_cv_prog_cc_c99" != xno; then :
3633 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3637 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_cv_prog_cc_c89=no
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 #include <sys/types.h>
3647 #include <sys/stat.h>
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3662 s = g (p, va_arg (v,int));
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698 CC="$ac_save_CC $ac_arg"
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_c89=$ac_arg
3702 rm -f core conftest.err conftest.$ac_objext
3703 test "x$ac_cv_prog_cc_c89" != "xno" && break
3705 rm -f conftest.$ac_ext
3710 case "x$ac_cv_prog_cc_c89" in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 $as_echo "none needed" >&6; } ;;
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716 $as_echo "unsupported" >&6; } ;;
3718 CC="$CC $ac_cv_prog_cc_c89"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3720 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3722 if test "x$ac_cv_prog_cc_c89" != xno; then :
3723 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3725 ac_cv_prog_cc_stdc=no
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3732 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3733 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3737 case $ac_cv_prog_cc_stdc in #(
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;; #(
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;; #(
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3746 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3755 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3756 # On Suns, sometimes $CPP names a directory.
3757 if test -n "$CPP" && test -d "$CPP"; then
3760 if test -z "$CPP"; then
3761 if test "${ac_cv_prog_CPP+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 # Double quotes because CPP needs to be expanded
3765 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 for ac_c_preproc_warn_flag in '' yes
3770 # Use a header file that comes with gcc, so configuring glibc
3771 # with a fresh cross-compiler works.
3772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 # <limits.h> exists even on freestanding compilers.
3774 # On the NeXT, cc -E runs the code through the compiler's parser,
3775 # not just through cpp. "Syntax error" is here to catch this case.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3788 # Broken: fails on valid input.
3791 rm -f conftest.err conftest.i conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <ac_nonexistent.h>
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3800 # Broken: success on invalid input.
3803 # Passes both tests.
3807 rm -f conftest.err conftest.i conftest.$ac_ext
3810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3811 rm -f conftest.i conftest.err conftest.
$ac_ext
3812 if $ac_preproc_ok; then :
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3825 $as_echo "$CPP" >&6; }
3827 for ac_c_preproc_warn_flag
in '' yes
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3838 # include <limits.h>
3840 # include <assert.h>
3844 if ac_fn_c_try_cpp
"$LINENO"; then :
3847 # Broken: fails on valid input.
3850 rm -f conftest.err conftest.i conftest.
$ac_ext
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3858 if ac_fn_c_try_cpp
"$LINENO"; then :
3859 # Broken: success on invalid input.
3862 # Passes both tests.
3866 rm -f conftest.err conftest.i conftest.
$ac_ext
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.i conftest.err conftest.
$ac_ext
3871 if $ac_preproc_ok; then :
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details" "$LINENO" 5 ; }
3881 ac_cpp
='$CPP $CPPFLAGS'
3882 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3887 # Check for a compatible awk
3888 for ac_prog
in gawk nawk
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy
$ac_prog; ac_word
=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_prog_AWK+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$AWK"; then
3898 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir
=.
3905 for ac_exec_ext
in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 ac_cv_prog_AWK
="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 if test -n "$AWK"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3920 $as_echo "$AWK" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$AWK" && break
3930 if test "$AWK" = ""; then
3931 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3933 # Extract the first word of "mmake", so it can be a program name with args.
3934 set dummy mmake
; ac_word
=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$MMAKE"; then
3941 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir
=.
3948 for ac_exec_ext
in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_MMAKE
="mmake "
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 MMAKE
=$ac_cv_prog_MMAKE
3961 if test -n "$MMAKE"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3963 $as_echo "$MMAKE" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 # Perform some default variable assignments. Note all of these will be
3972 # Regenerated from the script, so there is no need to cache them.
3975 if test "$GCC" = "yes"; then
3976 aros_gcc_ld
=`$CC -print-prog-name=ld`
3977 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3978 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 case $aros_host_ld in
3986 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 for as_dir
in `dirname $aros_gcc_ld`
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 aros_host_ld
=$ac_cv_path_aros_host_ld
4008 if test -n "$aros_host_ld"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4010 $as_echo "$aros_host_ld" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4018 if test "$aros_host_ld" = ""; then
4019 # Extract the first word of "ld", so it can be a program name with args.
4020 set dummy ld
; ac_word
=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4026 case $aros_host_ld in
4028 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir
=.
4036 for ac_exec_ext
in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 aros_host_ld
=$ac_cv_path_aros_host_ld
4050 if test -n "$aros_host_ld"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4052 $as_echo "$aros_host_ld" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4060 if test "$aros_host_ld" = ""; then
4061 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4063 aros_host_make
="make"
4064 aros_host_cflags
=$CFLAGS
4065 aros_host_ldflags
=$LDFLAGS
4066 aros_host_debug
="-g -O0"
4067 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4068 aros_host_mkargs
="--no-print-directory"
4069 aros_host_incl
="/usr/include"
4070 aros_host_exe_suffix
="$EXEEXT"
4071 aros_host_lib_suffix
=""
4073 for ac_prog
in aclocal aclocal19 aclocal-1.9
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy
$ac_prog; ac_word
=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -n "$aros_host_aclocal"; then
4083 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_exec_ext
in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4103 if test -n "$aros_host_aclocal"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4105 $as_echo "$aros_host_aclocal" >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4112 test -n "$aros_host_aclocal" && break
4115 for ac_prog
in autoconf autoconf259 autoconf253
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy
$ac_prog; ac_word
=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$aros_host_autoconf"; then
4125 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir
=.
4132 for ac_exec_ext
in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4145 if test -n "$aros_host_autoconf"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4147 $as_echo "$aros_host_autoconf" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 test -n "$aros_host_autoconf" && break
4157 for ac_prog
in autoheader autoheader259 autoheader253
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy
$ac_prog; ac_word
=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -n "$aros_host_autoheader"; then
4167 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir
=.
4174 for ac_exec_ext
in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4187 if test -n "$aros_host_autoheader"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4189 $as_echo "$aros_host_autoheader" >&6; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4196 test -n "$aros_host_autoheader" && break
4199 for ac_prog
in automake automake19 automake-1.9
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy
$ac_prog; ac_word
=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$aros_host_automake"; then
4209 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir
=.
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_aros_host_automake
="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 aros_host_automake
=$ac_cv_prog_aros_host_automake
4229 if test -n "$aros_host_automake"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4231 $as_echo "$aros_host_automake" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4238 test -n "$aros_host_automake" && break
4242 if test "$aros_host_aclocal" = ""; then
4243 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4245 if test "$aros_host_automake" = ""; then
4246 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4249 case "$aros_host_cc" in
4251 aros_host_cc_pipe
="-pipe"
4254 aros_host_cc_pipe
=""
4257 aros_host_cc_pipe
=""
4261 aros_kernel_cc_includes
=""
4262 aros_target_cc_includes
=""
4264 # ----------------------------------------------------------------------------------------
4265 # Host-specific defaults
4267 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4268 # instead of a wrapper script.
4269 # Useful for non-ELF hosts (like Windows and Darwin).
4270 # Can also be overriden in target section below
4273 # This is the main host configuration section. It is where the host
4274 # can change the values of any variables it needs to change. We do
4275 # not look at anything that compiles to the target yet, we'll get
4280 aros_host_arch
="aros"
4281 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4284 aros_host_cpu
="i386"
4287 aros_host_cpu
="x86_64"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4294 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4295 aros_host_cpu
="$host_cpu"
4301 aros_host_arch
="linux"
4302 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4305 aros_host_cpu
="i386"
4308 aros_host_cpu
="x86_64"
4311 aros_host_cpu
="m68k"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4321 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4322 aros_host_cpu
="$host_cpu"
4328 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4329 aros_host_make
="gmake"
4330 aros_host_arch
="freebsd"
4331 aros_host_cpu
="i386"
4333 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4337 aros_object_format
="elf_i386"
4341 aros_object_format
="elf_i386_fbsd"
4348 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4349 aros_host_arch
="darwin"
4351 android_build_os
="darwin-x86"
4352 android_tool
="android"
4353 default_android_sdk
="/android-sdk-mac_x86"
4354 default_android_ndk
="/android-ndk-r5b"
4357 aros_host_cpu
="i386"
4360 aros_host_cpu
="x86_64"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4367 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4368 aros_host_cpu
="$host_cpu"
4372 aros_host_ldflags
="$aros_host_ldflags -liconv"
4377 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4378 aros_host_make
="gmake"
4379 aros_host_arch
="dragonfly"
4382 aros_host_cpu
="i386"
4385 aros_host_cpu
="x86_64"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4389 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4390 aros_host_cpu
="$host_cpu"
4396 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4397 aros_host_make
="gmake"
4398 aros_host_arch
="netbsd"
4401 aros_host_cpu
="i386"
4404 aros_host_cpu
="m68k"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4408 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4409 aros_host_cpu
="$host_cpu"
4412 aros_host_lib_suffix
=".0.0"
4416 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4417 aros_host_make
="gmake"
4418 aros_host_arch
="openbsd"
4421 aros_host_cpu
="i386"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4425 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4426 aros_host_cpu
="$host_cpu"
4432 aros_host_arch
="solaris"
4433 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4436 aros_host_cpu
="i386"
4439 aros_host_cpu
="sparc"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4443 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4444 aros_host_cpu
="$host_cpu"
4450 aros_host_arch
="morphos"
4455 aros_host_arch
="amiga"
4460 TOUCH
="/gg/bin/touch"
4463 aros_host_cpu
="m68k"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4470 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4471 aros_host_cpu
="$host_cpu"
4477 aros_host_arch
="cygwin"
4479 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4480 android_build_os
="windows"
4481 android_tool
="android.bat"
4482 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4486 aros_host_cpu
="i386"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4490 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4491 aros_host_cpu
="$host_cpu"
4497 aros_host_arch
="mingw32"
4499 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4500 android_build_os
="windows"
4501 android_tool
="android.bat"
4502 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4506 aros_host_cpu
="i386"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4510 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4511 aros_host_cpu
="$host_cpu"
4516 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4520 # Extract the first word of "ar", so it can be a program name with args.
4521 set dummy
ar; ac_word
=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -n "$aros_host_ar"; then
4528 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_aros_host_ar
="ar cr"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 aros_host_ar
=$ac_cv_prog_aros_host_ar
4548 if test -n "$aros_host_ar"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4550 $as_echo "$aros_host_ar" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4557 if test "$aros_host_ar" = ""; then
4558 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 # Extract the first word of "ranlib", so it can be a program name with args.
4561 set dummy ranlib
; ac_word
=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -n "$aros_host_ranlib"; then
4568 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_aros_host_ranlib
="ranlib "
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4588 if test -n "$aros_host_ranlib"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4590 $as_echo "$aros_host_ranlib" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4597 if test "$aros_host_ranlib" = ""; then
4598 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4600 # Extract the first word of "strip", so it can be a program name with args.
4601 set dummy strip
; ac_word
=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$aros_host_strip"; then
4608 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir
=.
4615 for ac_exec_ext
in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_aros_host_strip
="strip "
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 aros_host_strip
=$ac_cv_prog_aros_host_strip
4628 if test -n "$aros_host_strip"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4630 $as_echo "$aros_host_strip" >&6; }
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 if test "$aros_host_strip" = ""; then
4638 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4641 # Extract the first word of "rm", so it can be a program name with args.
4642 set dummy
rm; ac_word
=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_RM+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$RM"; then
4649 ac_cv_prog_RM
="$RM" # Let the user override the test.
4651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir
=.
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_RM
="rm -rf"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 if test -n "$RM"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4671 $as_echo "$RM" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 if test "$RM" = ""; then
4679 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4681 # Extract the first word of "cp", so it can be a program name with args.
4682 set dummy
cp; ac_word
=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_CP+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -n "$CP"; then
4689 ac_cv_prog_CP
="$CP" # Let the user override the test.
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir
=.
4696 for ac_exec_ext
in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 if test -n "$CP"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4711 $as_echo "$CP" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4718 if test "$CP" = ""; then
4719 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4721 # Extract the first word of "mv", so it can be a program name with args.
4722 set dummy
mv; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_MV+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$MV"; then
4729 ac_cv_prog_MV
="$MV" # Let the user override the test.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 if test -n "$MV"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4751 $as_echo "$MV" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 if test "$MV" = ""; then
4759 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4761 # Extract the first word of "echo", so it can be a program name with args.
4762 set dummy
echo; ac_word
=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_ECHO+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -n "$ECHO"; then
4769 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir
=.
4776 for ac_exec_ext
in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ECHO
="echo "
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 ECHO
=$ac_cv_prog_ECHO
4789 if test -n "$ECHO"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4791 $as_echo "$ECHO" >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 if test "$ECHO" = ""; then
4799 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4801 # Extract the first word of "mkdir", so it can be a program name with args.
4802 set dummy mkdir
; ac_word
=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$MKDIR"; then
4809 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir
=.
4816 for ac_exec_ext
in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_MKDIR
="mkdir -p"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 MKDIR
=$ac_cv_prog_MKDIR
4829 if test -n "$MKDIR"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4831 $as_echo "$MKDIR" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 if test "$MKDIR" = ""; then
4839 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4841 # Extract the first word of "touch", so it can be a program name with args.
4842 set dummy
touch; ac_word
=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$TOUCH"; then
4849 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir
=.
4856 for ac_exec_ext
in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_TOUCH
="touch "
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 TOUCH
=$ac_cv_prog_TOUCH
4869 if test -n "$TOUCH"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4871 $as_echo "$TOUCH" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 if test "$TOUCH" = ""; then
4879 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4881 # Extract the first word of "sort", so it can be a program name with args.
4882 set dummy
sort; ac_word
=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_SORT+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$SORT"; then
4889 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir
=.
4896 for ac_exec_ext
in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_SORT
="sort "
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 SORT
=$ac_cv_prog_SORT
4909 if test -n "$SORT"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4911 $as_echo "$SORT" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 if test "$SORT" = ""; then
4919 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4921 # Extract the first word of "uniq", so it can be a program name with args.
4922 set dummy
uniq; ac_word
=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$UNIQ"; then
4929 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir
=.
4936 for ac_exec_ext
in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_UNIQ
="uniq "
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 UNIQ
=$ac_cv_prog_UNIQ
4949 if test -n "$UNIQ"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4951 $as_echo "$UNIQ" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 if test "$UNIQ" = ""; then
4959 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4961 # Extract the first word of "true", so it can be a program name with args.
4962 set dummy true
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_NOP+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$NOP"; then
4969 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_NOP
="true "
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 if test -n "$NOP"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4991 $as_echo "$NOP" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 if test "$NOP" = ""; then
4999 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5001 # Extract the first word of "cat", so it can be a program name with args.
5002 set dummy
cat; ac_word
=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_CAT+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$CAT"; then
5009 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_CAT
="cat "
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 if test -n "$CAT"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5031 $as_echo "$CAT" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 if test "$CAT" = ""; then
5039 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "bison", so it can be a program name with args.
5042 set dummy bison
; ac_word
=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_BISON+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$BISON"; then
5049 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_BISON
="bison "
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 BISON
=$ac_cv_prog_BISON
5069 if test -n "$BISON"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5071 $as_echo "$BISON" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 if test "$BISON" = ""; then
5079 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5081 # Extract the first word of "flex", so it can be a program name with args.
5082 set dummy flex
; ac_word
=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_FLEX+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$FLEX"; then
5089 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir
=.
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_FLEX
="flex "
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 FLEX
=$ac_cv_prog_FLEX
5109 if test -n "$FLEX"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5111 $as_echo "$FLEX" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 if test "$FLEX" = ""; then
5119 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5121 # Extract the first word of "pngtopnm", so it can be a program name with args.
5122 set dummy pngtopnm
; ac_word
=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5128 if test -n "$PNGTOPNM"; then
5129 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir
=.
5136 for ac_exec_ext
in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_PNGTOPNM
="pngtopnm "
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5149 if test -n "$PNGTOPNM"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5151 $as_echo "$PNGTOPNM" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 if test "$PNGTOPNM" = ""; then
5159 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5161 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5162 set dummy ppmtoilbm
; ac_word
=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 if test -n "$PPMTOILBM"; then
5169 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir
=.
5176 for ac_exec_ext
in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5189 if test -n "$PPMTOILBM"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5191 $as_echo "$PPMTOILBM" >&6; }
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 if test "$PPMTOILBM" = ""; then
5199 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5201 # Extract the first word of "sed", so it can be a program name with args.
5202 set dummy
sed; ac_word
=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_prog_SED+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -n "$SED"; then
5209 ac_cv_prog_SED
="$SED" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_SED
="sed "
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 if test -n "$SED"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5231 $as_echo "$SED" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 if test "$SED" = ""; then
5239 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5241 # Extract the first word of "chmod", so it can be a program name with args.
5242 set dummy
chmod; ac_word
=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 if test -n "$CHMOD"; then
5249 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_CHMOD
="chmod "
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 CHMOD
=$ac_cv_prog_CHMOD
5269 if test -n "$CHMOD"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5271 $as_echo "$CHMOD" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 if test "$CHMOD" = ""; then
5279 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5281 # Extract the first word of "patch", so it can be a program name with args.
5282 set dummy
patch; ac_word
=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_PATCH+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$PATCH"; then
5289 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_PATCH
="patch "
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 PATCH
=$ac_cv_prog_PATCH
5309 if test -n "$PATCH"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5311 $as_echo "$PATCH" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 if test "$PATCH" = ""; then
5319 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5326 if test -n "$PYTHON"; then
5327 # If the user set $PYTHON, use it and don't search something else.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5329 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5330 prog
="import sys, string
5331 # split strings by '.' and convert to numeric. Append some zeros
5332 # because we need at least 4 digits for the hex conversion.
5333 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5335 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5336 sys.exit(sys.hexversion < minverhex)"
5337 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5338 ($PYTHON -c "$prog") >&5 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; then :
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343 $as_echo "yes" >&6; }
5345 as_fn_error $?
"too old" "$LINENO" 5
5347 am_display_PYTHON
=$PYTHON
5349 # Otherwise, try each interpreter until we find one that satisfies
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5352 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5353 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5357 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
5358 test "$am_cv_pathless_PYTHON" = none
&& break
5359 prog
="import sys, string
5360 # split strings by '.' and convert to numeric. Append some zeros
5361 # because we need at least 4 digits for the hex conversion.
5362 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5364 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5365 sys.exit(sys.hexversion < minverhex)"
5366 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5367 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then :
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5376 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5377 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5378 if test "$am_cv_pathless_PYTHON" = none
; then
5381 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5382 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_path_PYTHON+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5390 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 PYTHON
=$ac_cv_path_PYTHON
5412 if test -n "$PYTHON"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5414 $as_echo "$PYTHON" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5422 am_display_PYTHON
=$am_cv_pathless_PYTHON
5426 if test "$PYTHON" = :; then
5427 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5432 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5433 if test "${am_cv_python_version+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5439 $as_echo "$am_cv_python_version" >&6; }
5440 PYTHON_VERSION
=$am_cv_python_version
5444 PYTHON_PREFIX
='${prefix}'
5446 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5451 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5452 if test "${am_cv_python_platform+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5458 $as_echo "$am_cv_python_platform" >&6; }
5459 PYTHON_PLATFORM
=$am_cv_python_platform
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5465 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5466 if test "${am_cv_python_pythondir+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5470 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5473 $as_echo "$am_cv_python_pythondir" >&6; }
5474 pythondir
=$am_cv_python_pythondir
5478 pkgpythondir
=\
${pythondir}/$PACKAGE
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5482 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5483 if test "${am_cv_python_pyexecdir+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5487 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5490 $as_echo "$am_cv_python_pyexecdir" >&6; }
5491 pyexecdir
=$am_cv_python_pyexecdir
5495 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5513 # Check for some includes for the X11 HIDD and the kernel
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5518 if test "${ac_cv_path_GREP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 if test -z "$GREP"; then
5522 ac_path_GREP_found
=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5528 test -z "$as_dir" && as_dir
=.
5529 for ac_prog
in grep ggrep
; do
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5533 # Check for GNU ac_path_GREP and select it if it is found.
5534 # Check for GNU $ac_path_GREP
5535 case `"$ac_path_GREP" --version 2>&1` in
5537 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5540 $as_echo_n 0123456789 >"conftest.in"
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'GREP' >> "conftest.nl"
5547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5548 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5549 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_GREP
="$ac_path_GREP"
5553 ac_path_GREP_max
=$ac_count
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5558 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5561 $ac_path_GREP_found && break 3
5566 if test -z "$ac_cv_path_GREP"; then
5567 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5570 ac_cv_path_GREP
=$GREP
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5575 $as_echo "$ac_cv_path_GREP" >&6; }
5576 GREP
="$ac_cv_path_GREP"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5580 $as_echo_n "checking for egrep... " >&6; }
5581 if test "${ac_cv_path_EGREP+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5584 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5585 then ac_cv_path_EGREP
="$GREP -E"
5587 if test -z "$EGREP"; then
5588 ac_path_EGREP_found
=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5591 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_prog
in egrep; do
5596 for ac_exec_ext
in '' $ac_executable_extensions; do
5597 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5599 # Check for GNU ac_path_EGREP and select it if it is found.
5600 # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5603 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5606 $as_echo_n 0123456789 >"conftest.in"
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'EGREP' >> "conftest.nl"
5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5614 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5615 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_EGREP
="$ac_path_EGREP"
5619 ac_path_EGREP_max
=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5624 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5627 $ac_path_EGREP_found && break 3
5632 if test -z "$ac_cv_path_EGREP"; then
5633 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 ac_cv_path_EGREP
=$EGREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5642 $as_echo "$ac_cv_path_EGREP" >&6; }
5643 EGREP
="$ac_cv_path_EGREP"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5647 $as_echo_n "checking for ANSI C header files... " >&6; }
5648 if test "${ac_cv_header_stdc+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5667 ac_cv_header_stdc
=yes
5669 ac_cv_header_stdc
=no
5671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 if test $ac_cv_header_stdc = yes; then
5674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 $EGREP "memchr" >/dev
/null
2>&1; then :
5684 ac_cv_header_stdc
=no
5690 if test $ac_cv_header_stdc = yes; then
5691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 $EGREP "free" >/dev
/null
2>&1; then :
5701 ac_cv_header_stdc
=no
5707 if test $ac_cv_header_stdc = yes; then
5708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5709 if test "$cross_compiling" = yes; then :
5712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5716 #if ((' ' & 0x0FF) == 0x020)
5717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5720 # define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5739 if ac_fn_c_try_run
"$LINENO"; then :
5742 ac_cv_header_stdc
=no
5744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5751 $as_echo "$ac_cv_header_stdc" >&6; }
5752 if test $ac_cv_header_stdc = yes; then
5754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5759 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5760 inttypes.h stdint.h unistd.h
5762 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5765 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5766 cat >>confdefs.h
<<_ACEOF
5767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775 for ac_header
in sys
/ipc.h sys
/shm.h \
5776 sys
/mmap.h sys
/mman.h sysexits.h \
5777 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5780 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5782 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5783 cat >>confdefs.h
<<_ACEOF
5784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5792 for ac_header
in sys
/mount.h
5794 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5796 if test "x$ac_cv_header_sys_mount_h" = x
""yes; then :
5797 cat >>confdefs.h
<<_ACEOF
5798 #define HAVE_SYS_MOUNT_H 1
5807 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5808 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5810 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5811 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5828 if ac_fn_c_try_compile
"$LINENO"; then :
5829 eval "$as_ac_Header=yes"
5831 eval "$as_ac_Header=no"
5833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5835 eval ac_res
=\$
$as_ac_Header
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5839 cat >>confdefs.h
<<_ACEOF
5840 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5843 ac_header_dirent
=$ac_hdr; break
5847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5848 if test $ac_header_dirent = dirent.h
; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5850 $as_echo_n "checking for library containing opendir... " >&6; }
5851 if test "${ac_cv_search_opendir+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 ac_func_search_save_LIBS
=$LIBS
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5873 for ac_lib
in '' dir
; do
5874 if test -z "$ac_lib"; then
5875 ac_res
="none required"
5878 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5880 if ac_fn_c_try_link
"$LINENO"; then :
5881 ac_cv_search_opendir
=$ac_res
5883 rm -f core conftest.err conftest.
$ac_objext \
5885 if test "${ac_cv_search_opendir+set}" = set; then :
5889 if test "${ac_cv_search_opendir+set}" = set; then :
5892 ac_cv_search_opendir
=no
5895 LIBS
=$ac_func_search_save_LIBS
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5898 $as_echo "$ac_cv_search_opendir" >&6; }
5899 ac_res
=$ac_cv_search_opendir
5900 if test "$ac_res" != no
; then :
5901 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5907 $as_echo_n "checking for library containing opendir... " >&6; }
5908 if test "${ac_cv_search_opendir+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 ac_func_search_save_LIBS
=$LIBS
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5930 for ac_lib
in '' x
; do
5931 if test -z "$ac_lib"; then
5932 ac_res
="none required"
5935 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5937 if ac_fn_c_try_link
"$LINENO"; then :
5938 ac_cv_search_opendir
=$ac_res
5940 rm -f core conftest.err conftest.
$ac_objext \
5942 if test "${ac_cv_search_opendir+set}" = set; then :
5946 if test "${ac_cv_search_opendir+set}" = set; then :
5949 ac_cv_search_opendir
=no
5952 LIBS
=$ac_func_search_save_LIBS
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5955 $as_echo "$ac_cv_search_opendir" >&6; }
5956 ac_res
=$ac_cv_search_opendir
5957 if test "$ac_res" != no
; then :
5958 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5965 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5966 if test "${ac_cv_header_stat_broken+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <sys/types.h>
5972 #include <sys/stat.h>
5974 #if defined S_ISBLK && defined S_IFDIR
5975 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5978 #if defined S_ISBLK && defined S_IFCHR
5979 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5982 #if defined S_ISLNK && defined S_IFREG
5983 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5986 #if defined S_ISSOCK && defined S_IFREG
5987 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5991 if ac_fn_c_try_compile
"$LINENO"; then :
5992 ac_cv_header_stat_broken
=no
5994 ac_cv_header_stat_broken
=yes
5996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5999 $as_echo "$ac_cv_header_stat_broken" >&6; }
6000 if test $ac_cv_header_stat_broken = yes; then
6002 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6007 $as_echo_n "checking for ANSI C header files... " >&6; }
6008 if test "${ac_cv_header_stdc+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6026 if ac_fn_c_try_compile
"$LINENO"; then :
6027 ac_cv_header_stdc
=yes
6029 ac_cv_header_stdc
=no
6031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6033 if test $ac_cv_header_stdc = yes; then
6034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041 $EGREP "memchr" >/dev
/null
2>&1; then :
6044 ac_cv_header_stdc
=no
6050 if test $ac_cv_header_stdc = yes; then
6051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058 $EGREP "free" >/dev
/null
2>&1; then :
6061 ac_cv_header_stdc
=no
6067 if test $ac_cv_header_stdc = yes; then
6068 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6069 if test "$cross_compiling" = yes; then :
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6080 # define ISLOWER(c) \
6081 (('a' <= (c) && (c) <= 'i') \
6082 || ('j' <= (c) && (c) <= 'r') \
6083 || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6092 for (i = 0; i < 256; i++)
6093 if (XOR (islower (i), ISLOWER (i))
6094 || toupper (i) != TOUPPER (i))
6099 if ac_fn_c_try_run
"$LINENO"; then :
6102 ac_cv_header_stdc
=no
6104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6111 $as_echo "$ac_cv_header_stdc" >&6; }
6112 if test $ac_cv_header_stdc = yes; then
6114 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6120 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <sys/wait.h>
6128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6144 if ac_fn_c_try_compile
"$LINENO"; then :
6145 ac_cv_header_sys_wait_h
=yes
6147 ac_cv_header_sys_wait_h
=no
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6153 if test $ac_cv_header_sys_wait_h = yes; then
6155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6161 if test "${ac_cv_header_time+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <sys/types.h>
6167 #include <sys/time.h>
6173 if ((struct tm *) 0)
6179 if ac_fn_c_try_compile
"$LINENO"; then :
6180 ac_cv_header_time
=yes
6182 ac_cv_header_time
=no
6184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6187 $as_echo "$ac_cv_header_time" >&6; }
6188 if test $ac_cv_header_time = yes; then
6190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6194 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6195 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
6197 cat >>confdefs.h
<<_ACEOF
6198 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6202 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6207 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6208 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
6210 cat >>confdefs.h
<<_ACEOF
6211 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6215 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6218 case " $LIBOBJS " in
6219 *" fileblocks.$ac_objext "* ) ;;
6220 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6227 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6228 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
6230 cat >>confdefs.h
<<_ACEOF
6231 #define HAVE_STRUCT_STAT_ST_RDEV 1
6235 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6241 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6242 if test "${ac_cv_struct_tm+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 #include <sys/types.h>
6254 int *p = &tm.tm_sec;
6260 if ac_fn_c_try_compile
"$LINENO"; then :
6261 ac_cv_struct_tm
=time.h
6263 ac_cv_struct_tm
=sys
/time.h
6265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6268 $as_echo "$ac_cv_struct_tm" >&6; }
6269 if test $ac_cv_struct_tm = sys
/time.h
; then
6271 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6275 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6276 #include <$ac_cv_struct_tm>
6279 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6281 cat >>confdefs.h
<<_ACEOF
6282 #define HAVE_STRUCT_TM_TM_ZONE 1
6288 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6290 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6293 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6295 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6301 cat >>confdefs.h
<<_ACEOF
6302 #define HAVE_DECL_TZNAME $ac_have_decl
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6306 $as_echo_n "checking for tzname... " >&6; }
6307 if test "${ac_cv_var_tzname+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6313 #if !HAVE_DECL_TZNAME
6314 extern char *tzname[];
6320 return tzname[0][0];
6325 if ac_fn_c_try_link
"$LINENO"; then :
6326 ac_cv_var_tzname
=yes
6330 rm -f core conftest.err conftest.
$ac_objext \
6331 conftest
$ac_exeext conftest.
$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6334 $as_echo "$ac_cv_var_tzname" >&6; }
6335 if test $ac_cv_var_tzname = yes; then
6337 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6342 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_off_t" = x
""yes; then :
6347 cat >>confdefs.h
<<_ACEOF
6348 #define off_t long int
6353 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6354 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6358 cat >>confdefs.h
<<_ACEOF
6364 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6365 if test "x$ac_cv_type_size_t" = x
""yes; then :
6369 cat >>confdefs.h
<<_ACEOF
6370 #define size_t unsigned int
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6376 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6377 if test "${ac_cv_type_uid_t+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <sys/types.h>
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386 $EGREP "uid_t" >/dev
/null
2>&1; then :
6387 ac_cv_type_uid_t
=yes
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6395 $as_echo "$ac_cv_type_uid_t" >&6; }
6396 if test $ac_cv_type_uid_t = no
; then
6398 $as_echo "#define uid_t int" >>confdefs.h
6401 $as_echo "#define gid_t int" >>confdefs.h
6406 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6407 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6409 cat >>confdefs.h
<<_ACEOF
6410 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6417 # Look for some functions
6418 for ac_func
in getpagesize kqueue statfs statvfs \
6419 clone kse_create rfork_thread thr_create sa_register \
6420 getcontext makecontext setcontext sigaltstack swapcontext
6422 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6423 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6424 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6425 cat >>confdefs.h
<<_ACEOF
6426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6436 for ac_header
in $ac_header_list
6438 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6441 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6442 cat >>confdefs.h
<<_ACEOF
6443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6457 for ac_func
in getpagesize
6459 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6460 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6461 cat >>confdefs.h
<<_ACEOF
6462 #define HAVE_GETPAGESIZE 1
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6469 $as_echo_n "checking for working mmap... " >&6; }
6470 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6473 if test "$cross_compiling" = yes; then :
6474 ac_cv_func_mmap_fixed_mapped
=no
6476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 $ac_includes_default
6479 /* malloc might have been renamed as rpl_malloc. */
6482 /* Thanks to Mike Haertel and Jim Avera for this test.
6483 Here is a matrix of mmap possibilities:
6484 mmap private not fixed
6485 mmap private fixed at somewhere currently unmapped
6486 mmap private fixed at somewhere already mapped
6487 mmap shared not fixed
6488 mmap shared fixed at somewhere currently unmapped
6489 mmap shared fixed at somewhere already mapped
6490 For private mappings, we should verify that changes cannot be read()
6491 back from the file, nor mmap's back from the file at a different
6492 address. (There have been systems where private was not correctly
6493 implemented like the infamous i386 svr4.0, and systems where the
6494 VM page cache was not coherent with the file system buffer cache
6495 like early versions of FreeBSD and possibly contemporary NetBSD.)
6496 For shared mappings, we should conversely verify that changes get
6497 propagated back to all the places they're supposed to be.
6499 Grep wants private fixed already mapped.
6500 The main things grep needs to know about mmap are:
6501 * does it exist and is it safe to write into the mmap'd area
6502 * how to use it (BSD variants) */
6505 #include <sys/mman.h>
6507 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6511 /* This mess was copied from the GNU getpagesize.h. */
6512 #ifndef HAVE_GETPAGESIZE
6513 # ifdef _SC_PAGESIZE
6514 # define getpagesize() sysconf(_SC_PAGESIZE)
6515 # else /* no _SC_PAGESIZE */
6516 # ifdef HAVE_SYS_PARAM_H
6517 # include <sys/param.h>
6518 # ifdef EXEC_PAGESIZE
6519 # define getpagesize() EXEC_PAGESIZE
6520 # else /* no EXEC_PAGESIZE */
6522 # define getpagesize() NBPG * CLSIZE
6525 # endif /* no CLSIZE */
6526 # else /* no NBPG */
6528 # define getpagesize() NBPC
6529 # else /* no NBPC */
6531 # define getpagesize() PAGESIZE
6532 # endif /* PAGESIZE */
6533 # endif /* no NBPC */
6534 # endif /* no NBPG */
6535 # endif /* no EXEC_PAGESIZE */
6536 # else /* no HAVE_SYS_PARAM_H */
6537 # define getpagesize() 8192 /* punt totally */
6538 # endif /* no HAVE_SYS_PARAM_H */
6539 # endif /* no _SC_PAGESIZE */
6541 #endif /* no HAVE_GETPAGESIZE */
6546 char *data, *data2, *data3;
6551 pagesize = getpagesize ();
6553 /* First, make a file with some known garbage in it. */
6554 data = (char *) malloc (pagesize);
6557 for (i = 0; i < pagesize; ++i)
6558 *(data + i) = rand ();
6560 fd = creat ("conftest.mmap", 0600);
6563 if (write (fd, data, pagesize) != pagesize)
6567 /* Next, check that the tail of a page is zero-filled. File must have
6568 non-zero length, otherwise we risk SIGBUS for entire page. */
6569 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6573 if (write (fd2, cdata2, 1) != 1)
6575 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6576 if (data2 == MAP_FAILED)
6578 for (i = 0; i < pagesize; ++i)
6582 if (munmap (data2, pagesize))
6585 /* Next, try to mmap the file at a fixed address which already has
6586 something else allocated at it. If we can, also make sure that
6587 we see the same garbage. */
6588 fd = open ("conftest.mmap", O_RDWR);
6591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6594 for (i = 0; i < pagesize; ++i)
6595 if (*(data + i) != *(data2 + i))
6598 /* Finally, make sure that changes to the mapped area do not
6599 percolate back to the file as seen by read(). (This is a bug on
6600 some variants of i386 svr4.0.) */
6601 for (i = 0; i < pagesize; ++i)
6602 *(data2 + i) = *(data2 + i) + 1;
6603 data3 = (char *) malloc (pagesize);
6606 if (read (fd, data3, pagesize) != pagesize)
6608 for (i = 0; i < pagesize; ++i)
6609 if (*(data + i) != *(data3 + i))
6615 if ac_fn_c_try_run
"$LINENO"; then :
6616 ac_cv_func_mmap_fixed_mapped
=yes
6618 ac_cv_func_mmap_fixed_mapped
=no
6620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6626 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6627 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6629 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6632 rm -f conftest.mmap conftest.txt
6637 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
6638 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
6639 aros_config_ldflags
=""
6641 aros_shared_default
=yes
6643 aros_shared_cflags
="-fPIC"
6644 aros_shared_aflags
=""
6645 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
6646 aros_kernel_ldflags
="-Wl,-rpath,./lib"
6648 aros_target_ar_flags
="cr"
6649 aros_target_nm_flags
="-C -ul"
6650 aros_target_strip_flags
="--strip-unneeded -R.comment"
6655 aros_target_genmap
="-Wl,-Map -Xlinker"
6657 # Native flavour stuff
6658 aros_serial_debug
="0"
6660 # Palm native flavour stuff
6661 aros_palm_debug_hack
="0"
6663 # Unix flavour stuff
6664 aros_nesting_supervisor
="0"
6666 # Collect-aros stuff: "-ius" to ignore undefined symbols
6667 ignore_undefined_symbols
=""
6669 # Check for X11 by default
6672 #-----------------------------------------------------------------------------
6675 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6676 # it switched on by default, and we use the host compiler, so it compiles AROS
6677 # code with this enabled resulting in link failures as we don't have support
6680 # We use two methods to disable it. For the host compiler (used to compile
6681 # some hosted modules), we test to see if the compiler supports stack
6682 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6683 # work on all platforms.
6685 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6686 # (this is done unconditionally, as it should have no effect on compilers
6687 # without the stack protection feature). This may be specific to the way that
6688 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6689 # strong enough to disable it in a generic way though, so we'll live with it
6690 # until another vendor ships GCC with it enabled in a different way, and deal
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6695 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6696 save_cflags
="$CFLAGS"
6697 CFLAGS
="$CFLAGS -fno-stack-protector"
6698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6709 if ac_fn_c_try_compile
"$LINENO"; then :
6710 use_no_stack_protector
="yes"
6712 use_no_stack_protector
="no"
6714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6716 $as_echo "$use_no_stack_protector" >&6; }
6717 if test "x-$use_no_stack_protector" = "x-yes" ; then
6718 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
6720 CFLAGS
="$save_cflags"
6722 #-----------------------------------------------------------------------------
6724 # Disable pointer-signedness warnings if the compiler recognises the option
6725 # (this only works for the host compiler at the moment)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6728 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6729 save_cflags
="$CFLAGS"
6730 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6742 if ac_fn_c_try_compile
"$LINENO"; then :
6743 use_no_sign_warning
="yes"
6745 use_no_sign_warning
="no"
6747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6749 $as_echo "$use_no_sign_warning" >&6; }
6750 if test "x-$use_no_sign_warning" = "x-yes" ; then
6751 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
6753 CFLAGS
="$save_cflags"
6755 #-----------------------------------------------------------------------------
6757 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6760 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6761 save_cflags
="$CFLAGS"
6762 CFLAGS
="$CFLAGS -fgnu89-inline"
6763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 if ac_fn_c_try_compile
"$LINENO"; then :
6775 use_gnu89_inline
="yes"
6777 use_gnu89_inline
="no"
6779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6781 $as_echo "$use_gnu89_inline" >&6; }
6782 if test "x-$use_gnu89_inline" = "x-yes" ; then
6783 gnu89_inline
="-fgnu89-inline"
6785 CFLAGS
="$save_cflags"
6787 #-----------------------------------------------------------------------------
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6790 $as_echo_n "checking for type of build... " >&6; }
6791 # Check whether --enable-build_type was given.
6792 if test "${enable_build_type+set}" = set; then :
6793 enableval
=$enable_build_type; build_type
=$enableval
6795 build_type
="personal"
6799 if test "$build_type" = "nightly"; then
6800 build_type_string
="NIGHTLY"
6801 elif test "$build_type" = "snapshot"; then
6802 build_type_string
="SNAPSHOT"
6803 elif test "$build_type" = "milestone"; then
6804 build_type_string
="MILESTONE"
6805 elif test "$build_type" = "release"; then
6806 build_type_string
="RELEASE"
6808 build_type_string
="PERSONAL"
6809 build_type
="personal"
6812 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6815 $as_echo "$build_type" >&6; }
6817 #-----------------------------------------------------------------------------
6818 all_debug_types
="messages stack modules mungwall symbols"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6821 $as_echo_n "checking which debug types to enable... " >&6; }
6822 # Check whether --enable-debug was given.
6823 if test "${enable_debug+set}" = set; then :
6824 enableval
=$enable_debug; debug
="$enableval"
6830 if test "$debug" = "" -o "$debug" = "no"; then
6832 elif test "$debug" = "yes"; then
6836 if test "$debug" = "all" ; then
6837 debug
="messages stack modules symbols"
6838 for d
in $all_debug_types; do
6839 export aros_
${d}_debug
="1"
6842 for d
in $all_debug_types; do
6843 export aros_
${d}_debug
="0"
6847 if test "$debug" != "none"; then
6848 debug
=`echo $debug | sed s/,/\ /g`
6851 for d2
in $all_debug_types; do
6852 if test "$d2" = "$d"; then
6857 if test "$found" = "0"; then
6858 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6860 export aros_
${d}_debug
="1"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6865 $as_echo "$debug" >&6; }
6867 if test "$aros_messages_debug" = "1"; then
6868 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
6870 aros_messages_debug
=""
6872 if test "$aros_symbols_debug" = "1"; then
6873 aros_symbols_debug
="-g"
6875 aros_symbols_debug
=""
6878 # These are the flags to pass when compiling debugged programs
6879 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
6880 aros_debug_aflags
=""
6881 aros_debug_ldflags
="$aros_symbols_debug"
6883 #-----------------------------------------------------------------------------
6884 # Checking if we should build crosstools..
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6886 $as_echo_n "checking whether to build crosstools... " >&6; }
6887 # Check whether --enable-crosstools was given.
6888 if test "${enable_crosstools+set}" = set; then :
6889 enableval
=$enable_crosstools; crosstools
="$enableval"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6895 $as_echo "$crosstools" >&6; }
6897 #-----------------------------------------------------------------------------
6898 # Checking for distcc and ccache.
6900 # Always apply the transforms in this particular order. Basically you should
6901 # always run 'ccache distcc compiler' in that order for the best performance.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6904 $as_echo_n "checking whether to enable distcc... " >&6; }
6905 # Check whether --enable-distcc was given.
6906 if test "${enable_distcc+set}" = set; then :
6907 enableval
=$enable_distcc; distcc
="$enableval"
6912 if test "$distcc" != "" -a "$distcc" != "no"; then
6913 # AC_CHECK_PROG will print out the result in this case
6914 # Extract the first word of "distcc", so it can be a program name with args.
6915 set dummy distcc
; ac_word
=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_DISTCC+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6923 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
6926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir
=.
6931 for ac_exec_ext
in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
6945 DISTCC
=$ac_cv_path_DISTCC
6946 if test -n "$DISTCC"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6948 $as_echo "$DISTCC" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6961 $as_echo_n "checking whether to enable ccache... " >&6; }
6962 # Check whether --enable-ccache was given.
6963 if test "${enable_ccache+set}" = set; then :
6964 enableval
=$enable_ccache; ccache
="$enableval"
6969 if test "$ccache" != "" -a "$ccache" != "no"; then
6970 # AC_CHECK_PROG will print out the result in this case
6971 # Extract the first word of "ccache", so it can be a program name with args.
6972 set dummy ccache
; ac_word
=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 if test -n "$CCACHE"; then
6979 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
6981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir
=.
6986 for ac_exec_ext
in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_CCACHE
="ccache"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 CCACHE
=$ac_cv_prog_CCACHE
6999 if test -n "$CCACHE"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7001 $as_echo "$CCACHE" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7013 #-----------------------------------------------------------------------------
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7015 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7017 # Check whether --with-gcc-version was given.
7018 if test "${with_gcc_version+set}" = set; then :
7019 withval
=$with_gcc_version; target_tool_version
="$withval"
7021 target_tool_version
="default"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7025 $as_echo "$target_tool_version" >&6; }
7027 #-----------------------------------------------------------------------------
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7029 $as_echo_n "checking what optimization flags to use... " >&6; }
7031 # Check whether --with-optimization was given.
7032 if test "${with_optimization+set}" = set; then :
7033 withval
=$with_optimization; optimization
="$withval"
7035 optimization
="unknown"
7038 if test "$optimization" = "unknown"; then
7039 if test "$debug" != "none"; then
7045 aros_config_cflags
="$aros_config_cflags $optimization"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7047 $as_echo "$optimization" >&6; }
7049 #-----------------------------------------------------------------------------
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7051 $as_echo_n "checking what paranoia flags to use... " >&6; }
7053 # Check whether --with-paranoia was given.
7054 if test "${with_paranoia+set}" = set; then :
7055 withval
=$with_paranoia; paranoia_flags
="$withval"
7057 paranoia_flags
="default"
7060 if test "$paranoia_flags" = "default"; then
7062 else if test "$paranoia_flags" = "yes"; then
7063 paranoia_flags
="-Wall -Werror"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7066 $as_echo "$paranoia_flags" >&6; }
7067 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7069 #-----------------------------------------------------------------------------
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7071 $as_echo_n "checking what target variant to enable... " >&6; }
7072 # Check whether --enable-target_variant was given.
7073 if test "${enable_target_variant+set}" = set; then :
7074 enableval
=$enable_target_variant; target_variant
=$enableval
7079 if test "$target_variant" = ""; then
7080 aros_target_variant
=""
7081 aros_target_suffix
=""
7084 aros_target_variant
="$target_variant"
7085 aros_target_suffix
="-$target_variant"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7088 $as_echo "$enableval" >&6; }
7090 #-----------------------------------------------------------------------------
7091 # Target-specific defaults. You can override then on a per-target basis.
7093 # Bootloader name. Currently used by PC target.
7094 target_bootloader
="none"
7096 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7097 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7098 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7099 if test "$crosstools" != "yes"; then
7100 target_tool_prefix
=${target_cpu}-elf-
7102 target_tool_prefix
=${target_cpu}-aros-
7105 #-----------------------------------------------------------------------------
7106 # Additional options for some specific targets
7108 case "$aros_target_variant" in
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7111 $as_echo_n "checking XCode path... " >&6; }
7113 # Check whether --with-xcode was given.
7114 if test "${with_xcode+set}" = set; then :
7115 withval
=$with_xcode; aros_xcode_path
="$withval"
7117 aros_xcode_path
="/Developer"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7121 $as_echo "$aros_xcode_path" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7124 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7126 # Check whether --with-ios-version was given.
7127 if test "${with_ios_version+set}" = set; then :
7128 withval
=$with_ios_version; aros_ios_version
="$withval"
7130 aros_ios_version
="3.0"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7134 $as_echo "$aros_ios_version" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7137 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7139 # Check whether --with-ios-sdk was given.
7140 if test "${with_ios_sdk+set}" = set; then :
7141 withval
=$with_ios_sdk; aros_ios_sdk
="$withval"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7147 $as_echo "$aros_ios_sdk" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7153 $as_echo_n "checking Android SDK path... " >&6; }
7155 # Check whether --with-sdk was given.
7156 if test "${with_sdk+set}" = set; then :
7157 withval
=$with_sdk; aros_android_sdk
="$withval"
7159 aros_android_sdk
=$default_android_sdk
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7163 $as_echo "$aros_android_sdk" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7166 $as_echo_n "checking Android NDK path... " >&6; }
7168 # Check whether --with-ndk was given.
7169 if test "${with_ndk+set}" = set; then :
7170 withval
=$with_ndk; aros_android_ndk
="$withval"
7172 aros_android_ndk
="$default_android_ndk"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7176 $as_echo "$aros_android_ndk" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7179 $as_echo_n "checking what Android version to use... " >&6; }
7181 # Check whether --with-android-version was given.
7182 if test "${with_android_version+set}" = set; then :
7183 withval
=$with_android_version; aros_android_version
="$withval"
7185 aros_android_version
="2.2"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7189 $as_echo "$aros_android_version" >&6; }
7191 export PATH
="$aros_android_sdk/tools:$PATH"
7192 # Extract the first word of "$android_tool", so it can be a program name with args.
7193 set dummy
$android_tool; ac_word
=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_path_android_tool+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7199 case $android_tool in
7201 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir
=.
7209 for ac_exec_ext
in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 android_tool
=$ac_cv_path_android_tool
7223 if test -n "$android_tool"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7225 $as_echo "$android_tool" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7232 if test "$android_tool" = ""; then
7233 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7236 if test $host_os = "mingw32"; then
7237 android_tool
="cmd //c $android_tool"
7243 #-----------------------------------------------------------------------------
7244 # This is the target configuration switch.
7245 case "$target_os" in
7247 aros_target_arch
="linux"
7248 aros_target_family
="unix"
7249 case "$target_cpu" in
7251 aros_target_cpu
="m68k"
7252 aros_object_format
="m68kelf"
7253 aros_flavour
="emulcompat"
7254 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7255 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7256 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7257 gcc_target_cpu
="mc68000"
7260 aros_target_cpu
="i386"
7261 aros_object_format
="elf_i386"
7262 aros_flavour
="emulation"
7263 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7264 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7265 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7266 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7267 aros_config_ldflags
="-m32 -march=i486"
7268 aros_kernel_ldflags
="-melf_i386"
7269 aros_default_wbdepth
=8
7270 gcc_target_cpu
="i386"
7271 pci_hidd_target
="hidd-pci-linux"
7274 aros_target_cpu
="x86_64"
7275 aros_object_format
="elf_x86_64"
7276 aros_flavour
="emulation"
7277 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7278 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7279 aros_default_wbdepth
=8
7280 pci_hidd_target
="hidd-pci-linux"
7283 aros_target_cpu
="ppc"
7284 aros_object_format
="elf32ppc"
7285 aros_flavour
="emulation"
7286 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7287 aros_default_wbdepth
=8
7288 gcc_target_cpu
="ppc"
7291 # Same as powerpc, but I need this for the nightly build to work again.
7292 # Actually, the nightly should be made working with powerpc target.
7293 # That just was too much work for the moment, another week or two.
7295 aros_target_cpu
="ppc"
7296 aros_object_format
="elf32ppc"
7297 aros_flavour
="emulation"
7298 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7299 aros_default_wbdepth
=8
7300 gcc_target_cpu
="ppc"
7303 aros_target_cpu
="arm"
7304 aros_object_format
="armelf_linux_eabi"
7305 aros_flavour
="emulation"
7306 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7307 gcc_target_cpu
="arm"
7308 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7309 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7310 aros_arch_libs
="-laeabi"
7313 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7316 case "$aros_target_variant" in
7318 case "$aros_android_version" in
7320 aros_android_level
=android-8
7323 aros_android_level
=android-9
7326 aros_default_wbwidth
=320
7327 aros_default_wbheight
=480
7329 if test "$aros_android_ndk" = ""; then
7330 aros_kernel_cflags
="-mandroid"
7331 aros_kernel_ldflags
="-mandroid"
7334 export PATH
="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7335 aros_android_ndk
="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7336 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7337 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7338 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7339 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7342 target_tool_prefix
="arm-linux-androideabi-"
7348 aros_target_arch
="pc"
7349 aros_shared_default
="no"
7350 target_bootloader
="grub2"
7351 case "$target_cpu" in
7353 aros_target_cpu
="i386"
7356 if test "$aros_object_format" = "" ; then
7357 aros_object_format
="elf_i386"
7359 aros_flavour
="standalone"
7360 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7361 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7362 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7363 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7364 aros_config_ldflags
="-m32 -march=i486"
7365 aros_kernel_ldflags
="-melf_i386"
7366 aros_default_wbwidth
=640
7367 aros_default_wbheight
=480
7368 gcc_target_cpu
="i386"
7371 aros_target_cpu
="x86_64"
7373 if test "$aros_object_format" = "" ; then
7374 aros_object_format
="elf_x86_64"
7376 aros_flavour
="standalone"
7377 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7378 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7379 aros_kernel_ldflags
=""
7380 aros_default_wbwidth
=640
7381 aros_default_wbheight
=480
7384 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7390 aros_target_arch
="prep"
7391 aros_shared_default
="no"
7392 aros_target_cpu
="ppc"
7393 aros_object_format
="elf32ppc"
7394 aros_flavour
="ppcnative"
7395 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7396 aros_kernel_ldflags
=""
7397 aros_default_wbwidth
=640
7398 aros_default_wbheight
=480
7399 gcc_target_cpu
="ppc"
7403 aros_target_arch
="freebsd"
7404 aros_target_family
="unix"
7405 aros_target_cpu
="i386"
7406 aros_flavour
="emulation"
7407 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7408 gcc_target_cpu
="i386"
7410 aros_target_strip_flags
="-x"
7414 aros_target_arch
="darwin"
7415 aros_target_family
="unix"
7416 aros_flavour
="emulation"
7417 case "$target_cpu" in
7419 aros_ios_platform
="iPhoneSimulator"
7420 aros_target_cpu
="i386"
7421 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7422 aros_kernel_ldflags
=""
7423 aros_macosx_version
="10.4"
7424 aros_default_wbdepth
=8
7425 gcc_target_cpu
="i386"
7426 aros_object_format
="elf_i386"
7427 aros_target_strip_flags
="-x"
7428 target_tool_prefix
="i686-apple-darwin10-"
7429 target_tool_flags
="-m32"
7432 aros_target_cpu
="x86_64"
7433 aros_object_format
="elf_x86_64"
7434 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7435 aros_macosx_version
="10.6"
7436 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7437 aros_kernel_cflags
="-m64"
7438 aros_kernel_ldflags
="-m64"
7439 aros_target_cflags
="-mcmodel=large"
7440 aros_default_wbdepth
=8
7442 target_tool_prefix
="i686-apple-darwin10-"
7445 aros_target_cpu
="ppc"
7446 aros_object_format
="elf32ppc"
7447 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7448 aros_kernel_ldflags
=""
7449 aros_macosx_version
="10.0"
7450 aros_default_wbdepth
=8
7451 gcc_target_cpu
="ppc"
7452 aros_kernel_ld
="ld -arch ppc"
7453 target_tool_prefix
="powerpc-apple-darwin10-"
7456 aros_ios_platform
="iPhoneOS"
7457 aros_target_cpu
="arm"
7458 aros_object_format
="armelf_linux_eabi"
7459 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7460 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7461 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7462 aros_arch_libs
="-laeabi"
7463 aros_default_wbdepth
=8
7464 gcc_target_cpu
="arm"
7465 aros_kernel_ld
="ld -arch arm"
7466 target_tool_prefix
="arm-apple-darwin10-"
7467 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7470 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7473 case "$aros_target_variant" in
7475 aros_default_wbwidth
=320
7476 aros_default_wbheight
=480
7477 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7478 target_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7479 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7481 # This is here because it may depend on iOS or SDK version
7482 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7483 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7484 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7487 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7488 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7494 aros_target_arch
="dragonfly"
7495 aros_target_family
="unix"
7496 aros_flavour
="emulation"
7497 case "$target_cpu" in
7499 aros_target_cpu
="i386"
7500 aros_object_format
="elf_i386"
7501 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7504 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7505 aros_target_cpu
="x86_64"
7506 aros_object_format
="elf_x86_64"
7507 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7510 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7516 aros_target_arch
="netbsd"
7517 aros_target_family
="unix"
7518 case "$target_cpu" in
7520 aros_target_cpu
="m68k"
7521 aros_object_format
="m68kelf"
7522 aros_flavour
="emulcompat"
7523 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7524 gcc_target_cpu
="mc68000"
7527 aros_target_cpu
="i386"
7528 aros_object_format
="elf_i386"
7529 aros_flavour
="emulation"
7530 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7531 aros_default_wbdepth
=8
7532 gcc_target_cpu
="i386"
7535 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7538 aros_target_genmap
="-Wl,-M -Xlinker >"
7539 aros_flavour
="emulation"
7540 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7544 aros_target_arch
="openbsd"
7545 aros_target_family
="unix"
7546 case "$target_cpu" in
7548 aros_target_cpu
="i386"
7549 aros_object_format
="elf_i386"
7550 aros_flavour
="emulation"
7551 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7552 gcc_target_cpu
="i386"
7555 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7558 aros_target_genmap
="-Wl,-M -Xlinker >"
7559 aros_target_nm_flags
="-u"
7560 aros_flavour
="emulation"
7564 aros_target_arch
="solaris"
7565 aros_target_family
="unix"
7566 case "$target_cpu" in
7568 aros_target_cpu
="i386"
7569 aros_object_format
="elf_i386"
7570 aros_flavour
="emulation"
7571 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7572 aros_default_wbdepth
=8
7573 gcc_target_cpu
="i386"
7576 aros_target_cpu
="sparc"
7577 aros_object_format
="elf_sparc"
7578 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7579 gcc_target_cpu
="sparc"
7582 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7585 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
7586 aros_flavour
="emulation"
7590 aros_target_arch
="morphos"
7591 aros_shared_default
="no"
7592 aros_target_cpu
="ppc"
7593 aros_object_format
="elf_ppc"
7594 aros_flavour
="nativecompat"
7595 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7596 gcc_target_cpu
="ppc"
7600 aros_target_arch
="sam440"
7601 aros_shared_default
="no"
7602 aros_target_cpu
="ppc"
7603 aros_object_format
="elf32ppc"
7604 aros_flavour
="ppcnative"
7605 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7606 aros_kernel_ldflags
=""
7607 aros_default_wbwidth
=1024
7608 aros_default_wbheight
=768
7609 aros_default_wbdepth
=24
7610 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7611 gcc_target_cpu
="powerpc"
7615 aros_target_arch
="efika"
7616 aros_shared_default
="no"
7617 aros_target_cpu
="arm"
7618 aros_object_format
="armelf_linux_eabi"
7619 aros_flavour
="standalone"
7620 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7621 aros_kernel_ldflags
=""
7622 aros_default_wbwidth
=1024
7623 aros_default_wbheight
=600
7624 aros_arch_libs
="-laeabi"
7625 aros_config_cflags
="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7626 aros_config_aflags
="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7630 aros_target_arch
="chrp"
7631 aros_shared_default
="no"
7632 aros_target_cpu
="ppc"
7633 aros_object_format
="elf32ppc"
7634 aros_flavour
="ppcnative"
7635 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7636 aros_kernel_ldflags
=""
7637 aros_default_wbwidth
=640
7638 aros_default_wbheight
=480
7639 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7640 gcc_target_cpu
="powerpc"
7641 case "$aros_target_variant" in
7643 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7649 aros_target_arch
="amiga"
7650 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7651 aros_shared_default
="no"
7653 case "$target_cpu" in
7656 aros_target_cpu
="m68k"
7657 aros_object_format
="m68kelf"
7658 aros_flavour
="standcompat"
7659 gcc_target_cpu
="m68000"
7660 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS -Os"
7661 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
7662 target_tool_prefix
="m68k-elf-"
7663 # Needed to get the correct multilib
7664 aros_config_ldflags
="-${gcc_target_cpu}"
7665 aros_shared_ldflags
="-${gcc_target_cpu}"
7666 aros_kernel_ldflags
="-${gcc_target_cpu}"
7667 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
7668 aros_target_strip_flags
="-R.comment --strip-debug"
7669 aros_default_wbwidth
=640
7670 aros_default_wbheight
=256
7671 aros_default_wbdepth
=2
7675 aros_flavour
="native"
7676 gcc_target_cpu
="ppc"
7679 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7685 aros_target_arch
="mingw32"
7686 aros_shared_default
="no"
7687 aros_flavour
="emulation"
7688 aros_shared_cflags
=""
7691 case "$target_cpu" in
7693 aros_target_cpu
="i386"
7694 aros_object_format
="elf_i386"
7695 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7696 aros_default_wbdepth
=8
7697 gcc_target_cpu
="i386"
7699 aros_target_as
="i386-aros-as"
7700 aros_target_ar
="i386-aros-ar"
7701 aros_target_ranlib
="i386-aros-ranlib"
7702 aros_target_nm
="i386-aros-nm"
7703 aros_target_strip
="i386-aros-strip"
7704 aros_target_objcopy
="i386-aros-objcopy"
7705 aros_target_objdump
="i386-aros-objdump"
7707 target_tool_prefix
="i386-mingw32-"
7710 aros_target_cpu
="x86_64"
7711 aros_object_format
="elf_x86_64"
7712 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7713 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7714 aros_default_wbdepth
=8
7715 target_tool_prefix
="x86_64-w64-mingw32-"
7718 aros_target_cpu
="arm"
7719 aros_object_format
="armelf_linux_eabi"
7720 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7721 aros_arch_libs
="-laeabi"
7722 aros_default_wbdepth
=8
7723 gcc_target_cpu
="arm"
7724 target_tool_prefix
="arm-mingw32ce-"
7725 aros_default_wbwidth
=160
7726 aros_default_wbheight
=160
7729 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7732 if test $host_os = "cygwin"; then
7733 aros_kernel_cflags
="-mno-cygwin"
7737 aros_target_arch
="pp"
7738 aros_shared_default
="no"
7739 case "$target_cpu" in
7741 aros_target_cpu
="m68k"
7742 aros_object_format
="m68kelf"
7743 aros_flavour
="palmnative"
7744 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7745 aros_default_wbwidth
=160
7746 aros_default_wbheight
=160
7747 aros_default_wbdepth
=1
7748 aros_target_ar_flags
="cru"
7749 aros_compiler_libs
="-lgcc1"
7750 aros_shared_default
=no
7751 aros_shared_cflags
="-fpic"
7752 aros_shared_aflags
=""
7753 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7754 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7755 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7756 aros_debug_aflags
=""
7757 aros_debug_ldflags
="$aros_symbols_debug"
7758 aros_mungwall_debug
="0"
7759 aros_modules_debug
="0"
7760 gcc_target_cpu
="mc68000"
7761 ignore_undefined_symbols
="-ius"
7764 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7770 aros_target_arch
="mac"
7771 aros_shared_default
="no"
7772 case "$target_cpu" in
7774 aros_target_cpu
="m68k"
7775 aros_object_format
="m68kelf"
7776 aros_flavour
="mac68knative"
7777 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7778 aros_default_wbwidth
=512
7779 aros_default_wbheight
=384
7780 aros_default_wbdepth
=8
7781 aros_target_ar_flags
="cru"
7782 aros_compiler_libs
="-lgcc1"
7783 aros_shared_default
=no
7784 aros_shared_cflags
="-fpic"
7785 aros_shared_aflags
=""
7786 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7787 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7788 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000"
7789 aros_debug_aflags
=""
7790 aros_debug_ldflags
="$aros_symbols_debug"
7791 aros_mungwall_debug
="0"
7792 aros_modules_debug
="0"
7793 gcc_target_cpu
="mc68000"
7794 ignore_undefined_symbols
="-ius"
7797 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7803 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
7807 #-----------------------------------------------------------------------------
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7809 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7811 # Check whether --with-crosstools was given.
7812 if test "${with_crosstools+set}" = set; then :
7813 withval
=$with_crosstools; with_crosstools
=$withval
7815 with_crosstools
="default"
7818 if test "$with_crosstools" = "default"; then
7819 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7821 AROS_CROSSTOOLSDIR
="$with_crosstools"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7824 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7826 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7828 PATH
=$AROS_CROSSTOOLSDIR:$PATH
7829 target_tool_prefix
=${target_cpu}-aros-
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7833 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7835 # Check whether --with-aros-gcc was given.
7836 if test "${with_aros_gcc+set}" = set; then :
7837 withval
=$with_aros_gcc; aros_gcc_version
="$withval"
7839 aros_gcc_version
="$use_aros_gcc"
7842 case "$aros_gcc_version" in
7844 aros_gcc_version
="default"
7847 aros_gcc_version
="none"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7851 $as_echo "$aros_gcc_version" >&6; }
7853 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7854 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7855 aros_target_cc
="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7856 aros_target_cxx
="$aros_target_cpu-aros-g++-$aros_gcc_version"
7858 aros_target_cc
="$aros_target_cpu-aros-gcc"
7859 aros_target_cxx
="$aros_target_cpu-aros-g++"
7862 aros_target_ld
="$aros_target_cpu-aros-ld"
7863 aros_target_as
="$aros_target_cpu-aros-as"
7864 aros_target_ar
="$aros_target_cpu-aros-ar"
7865 aros_target_ranlib
="$aros_target_cpu-aros-ranlib"
7866 aros_target_nm
="$aros_target_cpu-aros-nm"
7867 aros_target_strip
="$aros_target_cpu-aros-strip"
7868 aros_target_objcopy
="$aros_target_cpu-aros-objcopy"
7869 aros_target_objdump
="$aros_target_cpu-aros-objdump"
7872 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7873 # Since we override specs, we may need to put these defines there
7874 if test "$gcc_target_cpu" != ""; then
7875 gcc_target_cpu
="-D__${gcc_target_cpu}__"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7879 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7881 # Check whether --with-portssources was given.
7882 if test "${with_portssources+set}" = set; then :
7883 withval
=$with_portssources; with_portssrcdir
=$withval
7885 with_portssrcdir
="default"
7888 if test "$with_portssrcdir" = "default"; then
7889 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
7891 AROS_PORTSSRCDIR
="$with_portssrcdir"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7894 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7897 $as_echo_n "checking which bootloader to use... " >&6; }
7899 # Check whether --with-bootloader was given.
7900 if test "${with_bootloader+set}" = set; then :
7901 withval
=$with_bootloader; target_bootloader
=$withval
7903 target_bootloader
=$target_bootloader
7906 if test "$target_bootloader" = "none"; then
7907 aros_target_bootloader
=""
7909 aros_target_bootloader
="$target_bootloader"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7912 $as_echo "$target_bootloader" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7915 $as_echo_n "checking which icon-set to use... " >&6; }
7917 # Check whether --with-iconset was given.
7918 if test "${with_iconset+set}" = set; then :
7919 withval
=$with_iconset; target_iconset
=$withval
7921 target_iconset
="default"
7924 if test "$target_iconset" = "default"; then
7925 aros_target_iconset
="Gorilla"
7926 target_iconset
="default (Gorilla)"
7928 aros_target_iconset
="$target_iconset"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7931 $as_echo "$target_iconset" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7934 $as_echo_n "checking which GUI Theme to use... " >&6; }
7936 # Check whether --with-theme was given.
7937 if test "${with_theme+set}" = set; then :
7938 withval
=$with_theme; target_guitheme
=$withval
7940 target_guitheme
="default"
7943 if test "$target_guitheme" = "default"; then
7944 aros_target_guitheme
="Ice"
7946 aros_target_guitheme
="$target_guitheme"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7949 $as_echo "$aros_target_guitheme" >&6; }
7951 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7954 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7958 if test "$aros_host_cpu" == "x86_64" ; then
7959 if test "$aros_target_cpu" == "i386" ; then
7960 if test "$aros_target_arch" != "mingw32"; then
7966 if test "$aros_host_arch" == "darwin" ; then
7967 if test "$aros_target_arch" != "darwin" ; then
7972 # I want to have this information in configure output, although it might be
7973 # misleading, e.g. for darwin hosted you cannot compile target code without a
7974 # cross compiler, but here it says no.
7975 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7977 # Set prefix for target compiler etc. if we're cross-compiling
7978 # (should possibly be earlier but needs to be after AC_PROG_CC)
7979 if test "$cross_compiling" = "yes" ; then
7980 CC
=${target_tool_prefix}gcc
7981 CPP
=${target_tool_prefix}cpp
7982 if test "$target_tool_version" != "default"; then
7983 CC
="$CC-$target_tool_version"
7984 CPP
="$CC-$target_tool_version"
7986 if test "$crosstools" != "yes" ; then
7987 # Extract the first word of "$CC", so it can be a program name with args.
7988 set dummy
$CC; ac_word
=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_path_CC+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7996 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
7999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir
=.
8004 for ac_exec_ext
in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 if test -n "$CC"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8020 $as_echo "$CC" >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 if test "$CC" = ""; then
8028 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8031 CC
=$AROS_CROSSTOOLSDIR/$CC
8034 CC
="$CC $target_tool_flags"
8036 #-----------------------------------------------------------------------------
8038 # Disable pointer-signedness warnings if the compiler recognises the option
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8041 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8042 save_cflags
="$CFLAGS"
8043 if test "$crosstools" != "yes" ; then
8044 CFLAGS
="$CFLAGS -Wno-pointer-sign"
8045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8056 if ac_fn_c_try_compile
"$LINENO"; then :
8057 use_no_sign_warning
="yes"
8059 use_no_sign_warning
="no"
8061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8063 # we do know it is supported for the smallest version of gcc we are going to build
8064 # we assume it's also supported by later versions
8065 use_no_sign_warning
=yes
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8068 $as_echo "$use_no_sign_warning" >&6; }
8069 if test "x-$use_no_sign_warning" = "x-yes" ; then
8070 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
8072 CFLAGS
="$save_cflags"
8074 #-----------------------------------------------------------------------------
8076 # Find all the tools we need to compile. This could be cross-compiling
8077 # though! If that is the case we use the GNU form of the target and
8078 # simply add this to the front of the binary name. This is rather simple,
8079 # but it should work under most circumstances.
8081 # The default tools are to use the same as the host, but only if the
8082 # host and target CPU are the same. With GCC this is normally enough.
8086 aros_shared_ld
="$aros_host_ld"
8088 aros_target_mkdep
="$aros_host_mkdep"
8089 aros_target_incl_def
="$aros_host_incl"
8091 aros_kernel_cc
="$CC"
8093 # The default tools executables to be linked to.
8094 if test "$rescomp" != ""; then
8095 if test "$cross_compiling" = "yes" ; then
8096 rescomp
=${target_tool_prefix}${rescomp}
8098 # Extract the first word of "$rescomp", so it can be a program name with args.
8099 set dummy
$rescomp; ac_word
=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8105 case $aros_kernel_rescomp in
8107 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir
=.
8115 for ac_exec_ext
in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8129 if test -n "$aros_kernel_rescomp"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8131 $as_echo "$aros_kernel_rescomp" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8138 if test "$aros_kernel_rescomp" = ""; then
8139 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8143 if test "$crosstools" != "yes"; then
8145 if test "$aros_kernel_ld" = ""; then
8146 if test "$cross_compiling" = "yes" ; then
8147 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8148 set dummy
${target_tool_prefix}ld
; ac_word
=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 case $aros_kernel_ld in
8156 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir
=.
8164 for ac_exec_ext
in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8178 if test -n "$aros_kernel_ld"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8180 $as_echo "$aros_kernel_ld" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8188 if test "$GCC" = "yes"; then
8189 aros_gcc_ld
=`$CC -print-prog-name=ld`
8190 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8191 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8197 case $aros_kernel_ld in
8199 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8203 for as_dir
in `dirname $aros_gcc_ld`
8206 test -z "$as_dir" && as_dir
=.
8207 for ac_exec_ext
in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8221 if test -n "$aros_kernel_ld"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8223 $as_echo "$aros_kernel_ld" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8231 if test "$aros_kernel_ld" = ""; then
8232 # Extract the first word of "ld", so it can be a program name with args.
8233 set dummy ld
; ac_word
=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8239 case $aros_kernel_ld in
8241 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8248 test -z "$as_dir" && as_dir
=.
8249 for ac_exec_ext
in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8263 if test -n "$aros_kernel_ld"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8265 $as_echo "$aros_kernel_ld" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8275 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8276 set dummy
$aros_kernel_ld; ac_word
=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8282 case $aros_kernel_ld in
8284 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir
=.
8292 for ac_exec_ext
in '' $ac_executable_extensions; do
8293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8294 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8306 if test -n "$aros_kernel_ld"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8308 $as_echo "$aros_kernel_ld" >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8317 if test "$aros_kernel_ld" = ""; then
8318 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8321 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8322 target_tool_prefix
=${target_cpu}-elf-
8323 if test "$aros_target_cc" == ""; then
8324 aros_target_cc
="${target_tool_prefix}gcc"
8326 if test "$aros_target_ld" == ""; then
8327 aros_target_ld
="${target_tool_prefix}ld"
8331 if test "$aros_target_as" = ""; then
8332 if test "$cross_compiling" = "yes" ; then
8333 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8334 set dummy
${target_tool_prefix}as
; ac_word
=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8340 case $aros_target_as_ln in
8342 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8349 test -z "$as_dir" && as_dir
=.
8350 for ac_exec_ext
in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8364 if test -n "$aros_target_as_ln"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8366 $as_echo "$aros_target_as_ln" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8374 if test "$GCC" = "yes"; then
8375 aros_gcc_as
=`$CC -print-prog-name=as`
8376 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8377 set dummy
`basename $aros_gcc_as`; ac_word
=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8383 case $aros_target_as_ln in
8385 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8389 for as_dir
in `dirname $aros_gcc_as`
8392 test -z "$as_dir" && as_dir
=.
8393 for ac_exec_ext
in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8407 if test -n "$aros_target_as_ln"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8409 $as_echo "$aros_target_as_ln" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8417 if test "$aros_target_as_ln" = ""; then
8418 # Extract the first word of "as", so it can be a program name with args.
8419 set dummy as
; ac_word
=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 case $aros_target_as_ln in
8427 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir
=.
8435 for ac_exec_ext
in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8449 if test -n "$aros_target_as_ln"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8451 $as_echo "$aros_target_as_ln" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8461 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8462 set dummy
$aros_target_as; ac_word
=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8468 case $aros_target_as_ln in
8470 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8477 test -z "$as_dir" && as_dir
=.
8478 for ac_exec_ext
in '' $ac_executable_extensions; do
8479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8480 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8492 if test -n "$aros_target_as_ln"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8494 $as_echo "$aros_target_as_ln" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8503 if test "$aros_target_as_ln" = ""; then
8504 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
8507 if test "$aros_target_ar" = ""; then
8508 if test "$cross_compiling" = "yes" ; then
8509 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8510 set dummy
${target_tool_prefix}ar; ac_word
=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8516 case $aros_target_ar_ln in
8518 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8525 test -z "$as_dir" && as_dir
=.
8526 for ac_exec_ext
in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8540 if test -n "$aros_target_ar_ln"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8542 $as_echo "$aros_target_ar_ln" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8550 if test "$GCC" = "yes"; then
8551 aros_gcc_ar
=`$CC -print-prog-name=ar`
8552 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8553 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8559 case $aros_target_ar_ln in
8561 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8565 for as_dir
in `dirname $aros_gcc_ar`
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8583 if test -n "$aros_target_ar_ln"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8585 $as_echo "$aros_target_ar_ln" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8593 if test "$aros_target_ar_ln" = ""; then
8594 # Extract the first word of "ar", so it can be a program name with args.
8595 set dummy
ar; ac_word
=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 case $aros_target_ar_ln in
8603 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir
=.
8611 for ac_exec_ext
in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8625 if test -n "$aros_target_ar_ln"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8627 $as_echo "$aros_target_ar_ln" >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8637 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8638 set dummy
$aros_target_ar; ac_word
=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8644 case $aros_target_ar_ln in
8646 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8653 test -z "$as_dir" && as_dir
=.
8654 for ac_exec_ext
in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8668 if test -n "$aros_target_ar_ln"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8670 $as_echo "$aros_target_ar_ln" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8679 if test "$aros_target_ar_ln" = ""; then
8680 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8683 if test "$aros_target_nm" = ""; then
8684 if test "$cross_compiling" = "yes" ; then
8685 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8686 set dummy
${target_tool_prefix}nm
; ac_word
=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 case $aros_target_nm_ln in
8694 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir
=.
8702 for ac_exec_ext
in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8716 if test -n "$aros_target_nm_ln"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8718 $as_echo "$aros_target_nm_ln" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8726 if test "$GCC" = "yes"; then
8727 aros_gcc_nm
=`$CC -print-prog-name=nm`
8728 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8729 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8735 case $aros_target_nm_ln in
8737 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8741 for as_dir
in `dirname $aros_gcc_nm`
8744 test -z "$as_dir" && as_dir
=.
8745 for ac_exec_ext
in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8759 if test -n "$aros_target_nm_ln"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8761 $as_echo "$aros_target_nm_ln" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 if test "$aros_target_nm_ln" = ""; then
8770 # Extract the first word of "nm", so it can be a program name with args.
8771 set dummy nm
; ac_word
=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8777 case $aros_target_nm_ln in
8779 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir
=.
8787 for ac_exec_ext
in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8801 if test -n "$aros_target_nm_ln"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8803 $as_echo "$aros_target_nm_ln" >&6; }
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8813 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8814 set dummy
$aros_target_nm; ac_word
=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8820 case $aros_target_nm_ln in
8822 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8829 test -z "$as_dir" && as_dir
=.
8830 for ac_exec_ext
in '' $ac_executable_extensions; do
8831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8832 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8844 if test -n "$aros_target_nm_ln"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8846 $as_echo "$aros_target_nm_ln" >&6; }
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8855 if test "$aros_target_nm_ln" = ""; then
8856 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8859 if test "$aros_target_objcopy" = ""; then
8860 if test "$cross_compiling" = "yes" ; then
8861 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8862 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8868 case $aros_target_objcopy_ln in
8870 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir
=.
8878 for ac_exec_ext
in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8892 if test -n "$aros_target_objcopy_ln"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8894 $as_echo "$aros_target_objcopy_ln" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 if test "$GCC" = "yes"; then
8903 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
8904 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8905 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8911 case $aros_target_objcopy_ln in
8913 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8917 for as_dir
in `dirname $aros_gcc_objcopy`
8920 test -z "$as_dir" && as_dir
=.
8921 for ac_exec_ext
in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8935 if test -n "$aros_target_objcopy_ln"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8937 $as_echo "$aros_target_objcopy_ln" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8945 if test "$aros_target_objcopy_ln" = ""; then
8946 # Extract the first word of "objcopy", so it can be a program name with args.
8947 set dummy objcopy
; ac_word
=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8953 case $aros_target_objcopy_ln in
8955 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8962 test -z "$as_dir" && as_dir
=.
8963 for ac_exec_ext
in '' $ac_executable_extensions; do
8964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8965 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8976 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8977 if test -n "$aros_target_objcopy_ln"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8979 $as_echo "$aros_target_objcopy_ln" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8989 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8990 set dummy
$aros_target_objcopy; ac_word
=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8996 case $aros_target_objcopy_ln in
8998 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9005 test -z "$as_dir" && as_dir
=.
9006 for ac_exec_ext
in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9020 if test -n "$aros_target_objcopy_ln"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9022 $as_echo "$aros_target_objcopy_ln" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9031 if test "$aros_target_objcopy_ln" = ""; then
9032 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9035 if test "$aros_target_objdump" = ""; then
9036 if test "$cross_compiling" = "yes" ; then
9037 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9038 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9044 case $aros_target_objdump_ln in
9046 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9053 test -z "$as_dir" && as_dir
=.
9054 for ac_exec_ext
in '' $ac_executable_extensions; do
9055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9056 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9068 if test -n "$aros_target_objdump_ln"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9070 $as_echo "$aros_target_objdump_ln" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9078 if test "$GCC" = "yes"; then
9079 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
9080 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9081 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9087 case $aros_target_objdump_ln in
9089 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9093 for as_dir
in `dirname $aros_gcc_objdump`
9096 test -z "$as_dir" && as_dir
=.
9097 for ac_exec_ext
in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9111 if test -n "$aros_target_objdump_ln"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9113 $as_echo "$aros_target_objdump_ln" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9121 if test "$aros_target_objdump_ln" = ""; then
9122 # Extract the first word of "objdump", so it can be a program name with args.
9123 set dummy objdump
; ac_word
=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9129 case $aros_target_objdump_ln in
9131 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9138 test -z "$as_dir" && as_dir
=.
9139 for ac_exec_ext
in '' $ac_executable_extensions; do
9140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9153 if test -n "$aros_target_objdump_ln"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9155 $as_echo "$aros_target_objdump_ln" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9165 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9166 set dummy
$aros_target_objdump; ac_word
=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9172 case $aros_target_objdump_ln in
9174 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9181 test -z "$as_dir" && as_dir
=.
9182 for ac_exec_ext
in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9196 if test -n "$aros_target_objdump_ln"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9198 $as_echo "$aros_target_objdump_ln" >&6; }
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 if test "$aros_target_objdump_ln" = ""; then
9208 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9211 if test "$aros_target_ranlib" = ""; then
9212 if test "$cross_compiling" = "yes" ; then
9213 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9214 set dummy
${target_tool_prefix}ranlib
; ac_word
=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9220 case $aros_target_ranlib_ln in
9222 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9229 test -z "$as_dir" && as_dir
=.
9230 for ac_exec_ext
in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9244 if test -n "$aros_target_ranlib_ln"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9246 $as_echo "$aros_target_ranlib_ln" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9254 if test "$GCC" = "yes"; then
9255 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9256 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9257 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 case $aros_target_ranlib_ln in
9265 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9269 for as_dir
in `dirname $aros_gcc_ranlib`
9272 test -z "$as_dir" && as_dir
=.
9273 for ac_exec_ext
in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9287 if test -n "$aros_target_ranlib_ln"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9289 $as_echo "$aros_target_ranlib_ln" >&6; }
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9297 if test "$aros_target_ranlib_ln" = ""; then
9298 # Extract the first word of "ranlib", so it can be a program name with args.
9299 set dummy ranlib
; ac_word
=$2
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9305 case $aros_target_ranlib_ln in
9307 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9314 test -z "$as_dir" && as_dir
=.
9315 for ac_exec_ext
in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9329 if test -n "$aros_target_ranlib_ln"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9331 $as_echo "$aros_target_ranlib_ln" >&6; }
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9341 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9342 set dummy
$aros_target_ranlib; ac_word
=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9348 case $aros_target_ranlib_ln in
9350 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir
=.
9358 for ac_exec_ext
in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9372 if test -n "$aros_target_ranlib_ln"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9374 $as_echo "$aros_target_ranlib_ln" >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9383 if test "$aros_target_ranlib_ln" = ""; then
9384 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9387 if test "$aros_target_strip" = ""; then
9388 if test "$cross_compiling" = "yes" ; then
9389 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9390 set dummy
${target_tool_prefix}strip
; ac_word
=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 case $aros_target_strip_ln in
9398 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9405 test -z "$as_dir" && as_dir
=.
9406 for ac_exec_ext
in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9420 if test -n "$aros_target_strip_ln"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9422 $as_echo "$aros_target_strip_ln" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9430 if test "$GCC" = "yes"; then
9431 aros_gcc_strip
=`$CC -print-prog-name=strip`
9432 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9433 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9439 case $aros_target_strip_ln in
9441 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9445 for as_dir
in `dirname $aros_gcc_strip`
9448 test -z "$as_dir" && as_dir
=.
9449 for ac_exec_ext
in '' $ac_executable_extensions; do
9450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9451 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9463 if test -n "$aros_target_strip_ln"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9465 $as_echo "$aros_target_strip_ln" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test "$aros_target_strip_ln" = ""; then
9474 # Extract the first word of "strip", so it can be a program name with args.
9475 set dummy strip
; ac_word
=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 case $aros_target_strip_ln in
9483 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9490 test -z "$as_dir" && as_dir
=.
9491 for ac_exec_ext
in '' $ac_executable_extensions; do
9492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9493 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9505 if test -n "$aros_target_strip_ln"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9507 $as_echo "$aros_target_strip_ln" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9517 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9518 set dummy
$aros_target_strip; ac_word
=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9524 case $aros_target_strip_ln in
9526 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir
=.
9534 for ac_exec_ext
in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9548 if test -n "$aros_target_strip_ln"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9550 $as_echo "$aros_target_strip_ln" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9559 if test "$aros_target_strip_ln" = ""; then
9560 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9562 if test "$aros_target_cxx" != ""; then
9563 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9564 set dummy
$aros_target_cxx; ac_word
=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9570 case $aros_target_cxx in
9572 ac_cv_path_aros_target_cxx
="$aros_target_cxx" # Let the user override the test with a path.
9575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9579 test -z "$as_dir" && as_dir
=.
9580 for ac_exec_ext
in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_path_aros_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 aros_target_cxx
=$ac_cv_path_aros_target_cxx
9594 if test -n "$aros_target_cxx"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9596 $as_echo "$aros_target_cxx" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 if test "$aros_target_cxx" = ""; then
9604 as_fn_error $?
"c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9608 aros_target_cc
=$AROS_CROSSTOOLSDIR/$aros_target_cc
9609 aros_target_cxx
=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9610 aros_target_as_ln
=$AROS_CROSSTOOLSDIR/$aros_target_as
9611 aros_target_ar_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ar
9612 aros_target_nm_ln
=$AROS_CROSSTOOLSDIR/$aros_target_nm
9613 aros_target_objcopy_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9614 aros_target_objdump_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9615 aros_target_ranlib_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9616 aros_target_strip_ln
=$AROS_CROSSTOOLSDIR/$aros_target_strip
9618 aros_kernel_ld
=$AROS_CROSSTOOLSDIR/$aros_target_ld
9620 crosstools_target
=tools-crosstools
9623 orig_target_cc
=$aros_kernel_cc
9624 orig_target_ld
=$aros_kernel_ld
9626 if test "$crosstools" != "yes"; then
9627 if test "$aros_target_cc" != ""; then
9628 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9629 set dummy
$aros_target_cc; ac_word
=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9635 case $aros_target_cc in
9637 ac_cv_path_aros_target_cc
="$aros_target_cc" # Let the user override the test with a path.
9640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9644 test -z "$as_dir" && as_dir
=.
9645 for ac_exec_ext
in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_path_aros_target_cc
="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 aros_target_cc
=$ac_cv_path_aros_target_cc
9659 if test -n "$aros_target_cc"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9661 $as_echo "$aros_target_cc" >&6; }
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 if test "$aros_target_cc" = ""; then
9669 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9671 orig_target_cc
=$aros_target_cc
9673 if test "$aros_target_ld" != ""; then
9674 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9675 set dummy
$aros_target_ld; ac_word
=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
9681 case $aros_target_ld in
9683 ac_cv_path_aros_target_ld
="$aros_target_ld" # Let the user override the test with a path.
9686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir
=.
9691 for ac_exec_ext
in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_aros_target_ld
="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 aros_target_ld
=$ac_cv_path_aros_target_ld
9705 if test -n "$aros_target_ld"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9707 $as_echo "$aros_target_ld" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 if test "$aros_target_ld" = ""; then
9715 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9717 orig_target_ld
=$aros_target_ld
9720 orig_target_cc
=$aros_target_cc
9721 orig_target_ld
=$aros_target_ld
9724 # Build crosstools if we have no C++ - temporary thing
9725 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9726 crosstools_cxx_target
=tools-crosstools
9729 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9730 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9731 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9732 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9733 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9734 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9735 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9737 # aros_cc_pre is a variable that is added to the front of the compiler name
9738 # in the generated aros-gcc shell script. We need this to enable the cache
9739 # to work across cleaned builds. Also, support DISTCC using the correct
9740 # environment variable.
9743 if test "x${DISTCC}" != "x" ; then
9744 if test "x${CCACHE}" != "x" ; then
9745 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9747 aros_cc_pre
="${DISTCC} "
9750 if test "x${CCACHE}" != "x" ; then
9751 aros_cc_pre
="${CCACHE} "
9755 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9757 aros_target_nostdinc_cflags
=-nostdinc
9759 aros_target_nostartup_ldflags
=-nostartfiles
9761 aros_target_nix_ldflags
=-nix
9763 aros_target_detach_ldflags
=-detach
9765 aros_target_nostdlib_ldflags
=-nostdlib
9769 if test "$crosstools" != "yes"; then
9770 if test "$GCC" = "yes"; then
9771 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9774 # We do not know which gcc version we are going to build and what we need to know
9775 # here is different for different versions so this will be set later during the
9776 # build of crosstools.
9777 aros_target_cc_path
=@aros_target_cc_path@
9779 aros_target_cc
="${prefix}-gcc"
9780 aros_target_as
="${prefix}-as"
9781 aros_target_ld
="${prefix}-ld"
9782 aros_target_ar
="${prefix}-ar $aros_target_ar_flags"
9783 aros_target_objcopy
=${prefix}-objcopy
9784 aros_target_objdump
=${prefix}-objdump
9785 aros_target_ranlib
="${prefix}-ranlib $aros_target_ranlib_flags"
9786 aros_target_nm
="${prefix}-nm $aros_target_nm_flags"
9787 aros_kernel_nm
="${prefix}-nm"
9788 aros_target_strip
=${prefix}-strip
9789 aros_kernel_ar
="${prefix}-ar"
9791 # Find the system include path. We can suggest that an alternative is
9792 # used if we don't get it correct. The default is to use /usr/include.
9793 # Which is set in the aros_target_incl_def variable.
9795 # Check whether --enable-includes was given.
9796 if test "${enable_includes+set}" = set; then :
9797 enableval
=$enable_includes; aros_target_incl
=$enable_includes
9799 aros_target_incl
=$aros_target_incl_def
9803 if test "$aros_kernel_includes" = ""; then
9804 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9805 # FIXME: for cross-compiling this should point to another location
9806 aros_kernel_includes
="-isystem $aros_target_incl"
9810 if test "$aros_kernel_includes" != "" ; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9812 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9813 if test "$aros_kernel_cc_includes" = "" ; then
9814 # Try to guess where the directory is.
9815 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
9816 if test -d $aros_kernel_cc_includes; then
9817 # Check if there is also an include-fixed directory and add it
9818 # to kernel compiler's include path as it may contain some of
9819 # the headers we need.
9820 if test -d "$aros_kernel_cc_includes"-fixed; then
9821 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
9824 # The directory doesn't exist, we need to do some more work.
9825 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
9827 # These are the headers we're looking for.
9828 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9829 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9833 for h
in $headers; do
9834 # Which other headers are needed by each of the above?
9835 deps
=$
(echo "#include <$h>" | \
9836 $aros_kernel_cc -E -M - 2>/dev
/null | \
9837 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9839 # Copy all the needed headers to a directory beneath gendir.
9842 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
9843 sed -n "s,^.*/include\(/.*\),\1,p")
9844 ! test -d $dir && mkdir
-p $dir
9845 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9851 $as_echo "$aros_kernel_cc_includes" >&6; }
9852 # Adding -nostdinc to kernel includes as they are always used together.
9853 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9856 if test "$crosstools" != "yes"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9858 $as_echo_n "checking for the target compiler's include path... " >&6; }
9859 if test "$aros_target_cc_includes" = "" ; then
9860 #try to guess where the directory is
9861 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
9862 if ! test -d $aros_target_cc_includes; then
9863 #the directory doesn't exist, we need to do some more work
9864 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
9866 #these are the headers we're looking for
9867 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9868 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9872 for h
in $headers; do
9873 #which other headers each of the above headers needs?
9874 deps
=$
(echo "#include <$h>" | \
9875 $orig_target_cc -E -M - 2>/dev
/null | \
9876 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9878 #copy all the needed headers to a directory beneath gendir
9881 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
9882 sed -n "s,^.*/include\(/.*\),\1,p")
9883 ! test -d $dir && mkdir
-p $dir
9884 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9890 $as_echo "$aros_target_cc_includes" >&6; }
9892 # We do not know which gcc version we are going to build and what we need to know
9893 # here is different for different versions so this will be set later during the
9894 # build of crosstools.
9895 aros_target_cc_includes
=@aros_target_cc_includes@
9899 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9900 # On GCC >= 4.0 -iquote should be used
9904 save_cflags
="$CFLAGS"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9907 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9908 if test "x-$crosstools" != "x-yes"; then
9909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9920 if ac_fn_c_try_compile
"$LINENO"; then :
9925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9927 # we do know it is supported for the smallest version of gcc we are going to build
9928 # we assume it's also supported by later versions
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9932 $as_echo "$has_iquote" >&6; }
9933 if test "x-$has_iquote" = "x-yes" ; then
9934 host_cflags_iquote
=-iquote
9935 host_cflags_iquote_end
=
9937 host_cflags_iquote
=-I
9938 host_cflags_iquote_end
=-I-
9940 kernel_cflags_iquote
=$host_cflags_iquote
9941 kernel_cflags_iquote_end
=$host_cflags_iquote_end
9942 if test "x-$cross_compiling" = "x-yes"; then
9943 CC
="$aros_kernel_cc"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9945 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9946 if test "x-$crosstools" != "x-yes"; then
9947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9958 if ac_fn_c_try_compile
"$LINENO"; then :
9959 use_no_stack_protector
="yes"
9961 use_no_stack_protector
="no"
9963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9965 # we do know it is supported for the smallest version of gcc we are going to build
9966 # we assume it's also supported by later versions
9967 use_no_stack_protector
=yes
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9970 $as_echo "$use_no_stack_protector" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9972 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9973 if test "x-$crosstools" != "x-yes"; then
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9985 if ac_fn_c_try_compile
"$LINENO"; then :
9990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9992 # we do know it is supported for the smallest version of gcc we are going to build
9993 # we assume it's also supported by later versions
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9997 $as_echo "$has_iquote" >&6; }
9998 if test "x-$has_iquote" = "x-yes" ; then
9999 kernel_cflags_iquote
=-iquote
10000 kernel_cflags_iquote_end
=
10002 kernel_cflags_iquote
=-I
10003 kernel_cflags_iquote_end
=-I-
10006 aros_cflags_iquote
=$kernel_cflags_iquote
10007 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
10008 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10009 CC
="$orig_target_cc"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10011 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10012 if test "x-$crosstools" != "x-yes"; then
10013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10024 if ac_fn_c_try_compile
"$LINENO"; then :
10029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10031 # we do know it is supported for the smallest version of gcc we are going to build
10032 # we assume it's also supported by later versions
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10036 $as_echo "$has_iquote" >&6; }
10037 if test "x-$has_iquote" = "x-yes" ; then
10038 aros_cflags_iquote
=-iquote
10039 aros_cflags_iquote_end
=
10041 aros_cflags_iquote
=-I
10042 aros_cflags_iquote_end
=-I-
10045 if test "x-$use_no_stack_protector" = "x-yes" ; then
10046 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
10049 #-----------------------------------------------------------------------------
10051 # Check if we can explicitly choose older version of symbol hashing
10053 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
10054 CC
="$aros_kernel_cc"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10056 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10068 if ac_fn_c_try_link
"$LINENO"; then :
10069 use_hash_style
="yes"
10071 use_hash_style
="no"
10073 rm -f core conftest.err conftest.
$ac_objext \
10074 conftest
$ac_exeext conftest.
$ac_ext
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10076 $as_echo "$use_hash_style" >&6; }
10077 if test "x-$use_hash_style" = "x-yes" ; then
10078 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
10081 CFLAGS
="$save_cflags"
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10092 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10094 # Check whether --with-resolution was given.
10095 if test "${with_resolution+set}" = set; then :
10096 withval
=$with_resolution; resolution
=$withval
10101 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10102 if test "$resolution" = "yes" ; then
10105 if test "$resolution" = "no" ; then
10108 if test "$resolution" != "none" ; then
10109 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
10110 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
10111 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10114 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10115 aros_cv_default_wbwidth
=$aros_default_wbwidth
10116 aros_cv_default_wbheight
=$aros_default_wbheight
10117 aros_cv_default_wbdepth
=$aros_default_wbdepth
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10120 $as_echo_n "checking if serial debug is enabled... " >&6; }
10122 # Check whether --with-serial-debug was given.
10123 if test "${with_serial_debug+set}" = set; then :
10124 withval
=$with_serial_debug; serial_debug
=$withval
10129 if test "$aros_serial_debug" = 0 ; then
10130 serial_debug_forced
=""
10131 if test "$serial_debug" = "yes" ; then
10134 if test "$serial_debug" = "no" ; then
10135 serial_debug
="none"
10138 serial_debug_forced
="(forced)"
10139 serial_debug
=$aros_serial_debug
10141 if test "$serial_debug" != "none" ; then
10142 aros_serial_debug
=$serial_debug
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10144 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10151 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10152 # Check whether --enable-palm_debug_hack was given.
10153 if test "${enable_palm_debug_hack+set}" = set; then :
10154 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
10156 palm_debug_hack
="no"
10159 if test "$palm_debug_hack" = "yes" ; then
10160 aros_palm_debug_hack
="1"
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10163 $as_echo "$palm_debug_hack" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10167 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10168 # Check whether --enable-nesting_supervisor was given.
10169 if test "${enable_nesting_supervisor+set}" = set; then :
10170 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
10172 nesting_supervisor
="no"
10175 if test "$nesting_supervisor" = "yes" ; then
10176 aros_nesting_supervisor
="1"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10179 $as_echo "$nesting_supervisor" >&6; }
10181 if test "$aros_enable_mmu" = "" ; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10183 $as_echo_n "checking if MMU support is enabled... " >&6; }
10184 # Check whether --enable-mmu was given.
10185 if test "${enable_mmu+set}" = set; then :
10186 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
10188 aros_enable_mmu
="yes"
10191 if test "$aros_enable_mmu" = "" ; then
10192 aros_enable_mmu
="yes"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10195 $as_echo "$aros_enable_mmu" >&6; }
10197 if test "$aros_enable_mmu" = "no" ; then
10198 aros_enable_mmu
="0"
10200 aros_enable_mmu
="1"
10204 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10206 if test "x-$need_dlopen" != "x-no" ; then
10207 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10208 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10214 if test "x-$have_dl" = "x-no" ; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10220 ac_check_lib_save_LIBS
=$LIBS
10222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10240 if ac_fn_c_try_link
"$LINENO"; then :
10241 ac_cv_lib_dl_dlopen
=yes
10243 ac_cv_lib_dl_dlopen
=no
10245 rm -f core conftest.err conftest.
$ac_objext \
10246 conftest
$ac_exeext conftest.
$ac_ext
10247 LIBS
=$ac_check_lib_save_LIBS
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10251 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10253 aros_host_ldflags
="$aros_host_ldflags -ldl"
10259 if test "x-$have_dl" = "x-no" ; then
10260 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
10265 # Check whether --enable-x11_hidd was given.
10266 if test "${enable_x11_hidd+set}" = set; then :
10267 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
10269 x11_hidd
="$need_x11"
10272 case "x-$x11_hidd" in
10273 x-yes|x-no|x-auto
) ;;
10274 *) x11_hidd
="$need_x11" ;;
10279 if test "x-$x11_hidd" != "x-no" ; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10282 $as_echo_n "checking for X... " >&6; }
10285 # Check whether --with-x was given.
10286 if test "${with_x+set}" = set; then :
10290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10291 if test "x$with_x" = xno
; then
10292 # The user explicitly disabled X.
10295 case $x_includes,$x_libraries in #(
10296 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
10297 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10300 # One or both of the vars are not set, and there is no cached value.
10301 ac_x_includes
=no ac_x_libraries
=no
10302 rm -f -r conftest.dir
10303 if mkdir conftest.dir
; then
10305 cat >Imakefile
<<'_ACEOF'
10307 @echo incroot='${INCROOT}'
10309 @echo usrlibdir='${USRLIBDIR}'
10311 @echo libdir='${LIBDIR}'
10313 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10315 for ac_var
in incroot usrlibdir libdir
; do
10316 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10319 for ac_extension
in a so sl dylib la dll
; do
10320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10322 ac_im_usrlibdir
=$ac_im_libdir; break
10325 # Screen out bogus values from the imake configuration. They are
10326 # bogus both because they are the default anyway, and because
10327 # using them would break gcc on systems where it needs fixed includes.
10328 case $ac_im_incroot in
10329 /usr
/include
) ac_x_includes
= ;;
10330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
10332 case $ac_im_usrlibdir in
10333 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
10334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
10338 rm -f -r conftest.dir
10341 # Standard set of common directories for X headers.
10342 # Check X11 before X11Rn because it is often a symlink to the current release.
10356 /usr/local/X11/include
10357 /usr/local/X11R7/include
10358 /usr/local/X11R6/include
10359 /usr/local/X11R5/include
10360 /usr/local/X11R4/include
10362 /usr/local/include/X11
10363 /usr/local/include/X11R7
10364 /usr/local/include/X11R6
10365 /usr/local/include/X11R5
10366 /usr/local/include/X11R4
10370 /usr/XFree86/include/X11
10374 /usr/unsupported/include
10375 /usr/athena/include
10376 /usr/local/x11r5/include
10377 /usr/lpp/Xamples/include
10379 /usr/openwin/include
10380 /usr/openwin/share/include'
10382 if test "$ac_x_includes" = no
; then
10383 # Guess where to find include files, by looking for Xlib.h.
10384 # First, try using that file with no special directory specified.
10385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 #include <X11/Xlib.h>
10389 if ac_fn_c_try_cpp
"$LINENO"; then :
10390 # We can compile using X headers with no special include directory.
10393 for ac_dir
in $ac_x_header_dirs; do
10394 if test -r "$ac_dir/X11/Xlib.h"; then
10395 ac_x_includes
=$ac_dir
10400 rm -f conftest.err conftest.i conftest.
$ac_ext
10401 fi # $ac_x_includes = no
10403 if test "$ac_x_libraries" = no
; then
10404 # Check for the libraries.
10405 # See if we find them without any special options.
10406 # Don't add to $LIBS permanently.
10409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 #include <X11/Xlib.h>
10420 if ac_fn_c_try_link
"$LINENO"; then :
10422 # We can link X programs with no special library path.
10426 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10428 # Don't even attempt the hair of trying to link an X program!
10429 for ac_extension
in a so sl dylib la dll
; do
10430 if test -r "$ac_dir/libX11.$ac_extension"; then
10431 ac_x_libraries
=$ac_dir
10437 rm -f core conftest.err conftest.
$ac_objext \
10438 conftest
$ac_exeext conftest.
$ac_ext
10439 fi # $ac_x_libraries = no
10441 case $ac_x_includes,$ac_x_libraries in #(
10442 no
,* |
*,no |
*\'*)
10443 # Didn't find X, or a directory has "'" in its name.
10444 ac_cv_have_x
="have_x=no";; #(
10446 # Record where we found X for the cache.
10447 ac_cv_have_x
="have_x=yes\
10448 ac_x_includes='$ac_x_includes'\
10449 ac_x_libraries='$ac_x_libraries'"
10455 eval "$ac_cv_have_x"
10458 if test "$have_x" != yes; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10460 $as_echo "$have_x" >&6; }
10463 # If each of the values was on the command line, it overrides each guess.
10464 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10465 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10466 # Update the cache value to reflect the command line values.
10467 ac_cv_have_x
="have_x=yes\
10468 ac_x_includes='$x_includes'\
10469 ac_x_libraries='$x_libraries'"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10471 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10476 for path
in $x_libraries
10478 x_cflags
="$x_cflags -L$path"
10481 for path
in $x_includes
10483 x_cflags
="$x_cflags -I$path"
10486 if test "x-$no_x" = "x-yes" ; then
10488 if test "x-$x11_hidd" != "x-auto" ; then
10489 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10493 x11_hidd_target
=kernel-x11gfx-kobj
10496 # Check whether --enable-x11_shm was given.
10497 if test "${enable_x11_shm+set}" = set; then :
10498 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
10500 x11_hidd_shm
="auto"
10503 case "x-$x11_hidd_shm" in
10504 x-yes|x-no|x-auto
) ;;
10505 *) x11_hidd_shm
="auto" ;;
10510 if test "x-$x11_hidd_shm" != "x-no" ; then
10512 for ac_header
in sys
/ipc.h
10514 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10515 if test "x$ac_cv_header_sys_ipc_h" = x
""yes; then :
10516 cat >>confdefs.h
<<_ACEOF
10517 #define HAVE_SYS_IPC_H 1
10524 for ac_header
in sys
/shm.h
10526 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10527 if test "x$ac_cv_header_sys_shm_h" = x
""yes; then :
10528 cat >>confdefs.h
<<_ACEOF
10529 #define HAVE_SYS_SHM_H 1
10537 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10539 save_cflags
="$CFLAGS"
10540 CFLAGS
="$CFLAGS $x_cflags"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10542 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10543 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10546 ac_check_lib_save_LIBS
=$LIBS
10547 LIBS
="-lXext $LIBS"
10548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10557 char XShmQueryExtension ();
10561 return XShmQueryExtension ();
10566 if ac_fn_c_try_link
"$LINENO"; then :
10567 ac_cv_lib_Xext_XShmQueryExtension
=yes
10569 ac_cv_lib_Xext_XShmQueryExtension
=no
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 LIBS
=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10576 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10577 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x
""yes; then :
10581 CFLAGS
="$save_cflags"
10585 if test "x-$have_xshm" = "x-yes" ; then
10586 DO_XSHM_SUPPORT
="1"
10587 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10588 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10590 DO_XSHM_SUPPORT
="0"
10594 # Check whether --enable-x11_vidmode was given.
10595 if test "${enable_x11_vidmode+set}" = set; then :
10596 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
10598 x11_hidd_vidmode
="auto"
10601 case "x-$x11_hidd_vidmode" in
10602 x-yes|x-no|x-auto
) ;;
10603 *) x11_hidd_vidmode
="auto" ;;
10608 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10610 save_cflags
="$CFLAGS"
10611 CFLAGS
="$CFLAGS $x_cflags"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10613 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10614 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10617 ac_check_lib_save_LIBS
=$LIBS
10618 LIBS
="-lXxf86vm $LIBS"
10619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10628 char XF86VidModeQueryExtension ();
10632 return XF86VidModeQueryExtension ();
10637 if ac_fn_c_try_link
"$LINENO"; then :
10638 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
10640 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
10642 rm -f core conftest.err conftest.
$ac_objext \
10643 conftest
$ac_exeext conftest.
$ac_ext
10644 LIBS
=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10647 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10648 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x
""yes; then :
10652 CFLAGS
="$save_cflags"
10655 if test "x-$have_vidmode" = "x-yes" ; then
10656 DO_VIDMODE_SUPPORT
="1"
10657 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10658 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10660 DO_VIDMODE_SUPPORT
="0"
10664 aros_host_x11_includes
=$x_includes
10665 aros_host_x11_libdirs
=$x_libraries
10669 # Check whether --enable-sdl_hidd was given.
10670 if test "${enable_sdl_hidd+set}" = set; then :
10671 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
10676 case "x-$sdl_hidd" in
10677 x-yes|x-no|x-auto
) ;;
10678 *) sdl_hidd
="auto" ;;
10681 if test "x-$sdl_hidd" != "x-no" ; then
10684 # Check whether --with-sdl-prefix was given.
10685 if test "${with_sdl_prefix+set}" = set; then :
10686 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
10692 # Check whether --with-sdl-exec-prefix was given.
10693 if test "${with_sdl_exec_prefix+set}" = set; then :
10694 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
10699 # Check whether --enable-sdltest was given.
10700 if test "${enable_sdltest+set}" = set; then :
10701 enableval
=$enable_sdltest;
10707 if test x
$sdl_exec_prefix != x
; then
10708 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
10709 if test x
${SDL_CONFIG+set} != xset
; then
10710 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
10713 if test x
$sdl_prefix != x
; then
10714 sdl_args
="$sdl_args --prefix=$sdl_prefix"
10715 if test x
${SDL_CONFIG+set} != xset
; then
10716 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
10720 if test "x$prefix" != xNONE
; then
10721 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
10723 # Extract the first word of "sdl-config", so it can be a program name with args.
10724 set dummy sdl-config
; ac_word
=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10730 case $SDL_CONFIG in
10732 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
10735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10736 for as_dir
in $PATH
10739 test -z "$as_dir" && as_dir
=.
10740 for ac_exec_ext
in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
10754 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
10755 if test -n "$SDL_CONFIG"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10757 $as_echo "$SDL_CONFIG" >&6; }
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10764 min_sdl_version
=1.2.10
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10766 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10768 if test "$SDL_CONFIG" = "no" ; then
10771 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
10772 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
10774 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
10775 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10776 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
10777 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10778 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
10779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10780 if test "x$enable_sdltest" = "xyes" ; then
10781 ac_save_CFLAGS
="$CFLAGS"
10782 ac_save_CXXFLAGS
="$CXXFLAGS"
10783 ac_save_LIBS
="$LIBS"
10784 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10785 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10786 LIBS
="$LIBS $SDL_LIBS"
10788 if test "$cross_compiling" = yes; then :
10789 echo $ac_n "cross compiling; assumed OK... $ac_c"
10791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10795 #include <stdlib.h>
10796 #include <string.h>
10800 my_strdup (char *str)
10806 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10807 strcpy (new_str, str);
10815 int main (int argc, char *argv[])
10817 int major, minor, micro;
10820 /* This hangs on some systems (?)
10821 system ("touch conf.sdltest");
10823 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10825 /* HP/UX 9 (%@#!) writes to sscanf strings */
10826 tmp_version = my_strdup("$min_sdl_version");
10827 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10828 printf("%s, bad version string\n", "$min_sdl_version");
10832 if (($sdl_major_version > major) ||
10833 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10834 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10840 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10841 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10842 printf("*** best to upgrade to the required version.\n");
10843 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10844 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10845 printf("*** config.cache before re-running configure\n");
10852 if ac_fn_c_try_run
"$LINENO"; then :
10857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10861 CFLAGS
="$ac_save_CFLAGS"
10862 CXXFLAGS
="$ac_save_CXXFLAGS"
10863 LIBS
="$ac_save_LIBS"
10866 if test "x$no_sdl" = x
; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10873 if test "$SDL_CONFIG" = "no" ; then
10874 echo "*** The sdl-config script installed by SDL could not be found"
10875 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10876 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10877 echo "*** full path to sdl-config."
10879 if test -f conf.sdltest
; then
10882 echo "*** Could not run SDL test program, checking why..."
10883 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10884 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10885 LIBS
="$LIBS $SDL_LIBS"
10886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10892 int main(int argc, char *argv[])
10895 #define main K_and_R_C_main
10905 if ac_fn_c_try_link
"$LINENO"; then :
10906 echo "*** The test program compiled, but did not run. This usually means"
10907 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10908 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10909 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10910 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10911 echo "*** is required on your system"
10913 echo "*** If you have an old version installed, it is best to remove it, although"
10914 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10916 echo "*** The test program failed to compile or link. See the file config.log for the"
10917 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10918 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10919 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10921 rm -f core conftest.err conftest.
$ac_objext \
10922 conftest
$ac_exeext conftest.
$ac_ext
10923 CFLAGS
="$ac_save_CFLAGS"
10924 CXXFLAGS
="$ac_save_CXXFLAGS"
10925 LIBS
="$ac_save_LIBS"
10937 if test "x-$have_sdl" != "x-yes" ; then
10939 if test "x-$sdl_hidd" != "x-auto" ; then
10940 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10944 sdl_hidd_target
=kernel-hidd-sdl
10945 aros_host_sdl_cflags
=SDL_CFLAGS
10946 aros_host_sdl_libs
=SDL_LIBS
10950 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10951 if test "x$ac_cv_header_sys_soundcard_h" = x
""yes; then :
10956 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10957 oss_library_target
=workbench-libs-oss-unix
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10963 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10964 # Check whether --enable-dbus was given.
10965 if test "${enable_dbus+set}" = set; then :
10966 enableval
=$enable_dbus; dbus
="yes"
10971 if test "$dbus" = "yes" ; then
10973 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
10974 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
10975 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
10976 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10981 $as_echo "$dbus" >&6; }
11093 # Native version related
11096 # Palm native version related
11099 # Unix/Hosted version related
11105 # Apple iOS related
11130 # Collect-aros stuff: "-ius" to ignore undefined symbols
11133 # C compiler related
11136 case "$aros_flavour" in
11137 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
11138 aros_flavour
="emulation" ;;
11139 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11140 aros_flavour
="emulation" ;;
11141 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
11142 aros_flavour
="standalone";;
11143 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11144 aros_flavour
="standalone";;
11145 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
11146 aros_flavour
="native" ;;
11147 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11148 aros_flavour
="native" ;;
11149 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
11150 aros_flavour
="linklib" ;;
11151 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11152 aros_flavour
="palmnative" ;;
11153 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11154 aros_flavour
="mac68knative" ;;
11155 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11156 aros_flavour
="ppcnative" ;;
11159 if test ! -d ${aros_inc_dir} ; then
11160 ${MKDIR} ${aros_inc_dir}
11162 if test ! -d ${aros_geninc_dir} ; then
11163 ${MKDIR} ${aros_geninc_dir}
11165 if test ! -d ${aros_hostcfg_dir} ; then
11166 ${MKDIR} ${aros_hostcfg_dir}
11168 if test ! -d ${aros_targetcfg_dir} ; then
11169 ${MKDIR} ${aros_targetcfg_dir}
11171 if test ! -d ${aros_tools_dir} ; then
11172 ${MKDIR} ${aros_tools_dir}
11174 if test ! -d ${aros_scripts_dir} ; then
11175 ${MKDIR} ${aros_scripts_dir}
11178 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11181 ac_config_commands
="$ac_config_commands compiler_executable"
11183 ac_config_commands
="$ac_config_commands genmf_executable"
11186 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_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11189 cat >confcache
<<\_ACEOF
11190 # This file is a shell script that caches the results of configure
11191 # tests run on this system so they can be shared between configure
11192 # scripts and configure runs, see configure's option --config-cache.
11193 # It is not useful on other systems. If it contains results you don't
11194 # want to keep, you may remove or edit it.
11196 # config.status only pays attention to the cache file if you give it
11197 # the --recheck option to rerun configure.
11199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11201 # following values.
11205 # The following way of writing the cache mishandles newlines in values,
11206 # but we know of no workaround that is simple, portable, and efficient.
11207 # So, we kill variables containing newlines.
11208 # Ultrix sh set writes to stderr and can't be redirected directly,
11209 # and sets the high bit in the cache file unless we assign to the vars.
11211 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11212 eval ac_val
=\$
$ac_var
11216 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11220 _ | IFS | as_nl
) ;; #(
11221 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11222 *) { eval $ac_var=; unset $ac_var;} ;;
11228 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11229 *${as_nl}ac_space
=\
*)
11230 # `set' does not quote correctly, so add quotes: double-quote
11231 # substitution turns \\\\ into \\, and sed turns \\ into \.
11234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11237 # `set' quotes correctly as required by POSIX, so do not add quotes.
11238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11251 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11252 if test -w "$cache_file"; then
11253 test "x$cache_file" != "x/dev/null" &&
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11255 $as_echo "$as_me: updating cache $cache_file" >&6;}
11256 cat confcache
>$cache_file
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11259 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11264 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11265 # Let make expand exec_prefix.
11266 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11268 DEFS
=-DHAVE_CONFIG_H
11273 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11274 # 1. Remove the extension, and $U if already installed.
11275 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11276 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11278 # will be set to the directory where LIBOBJS objects are built.
11279 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11280 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11282 LIBOBJS
=$ac_libobjs
11284 LTLIBOBJS
=$ac_ltlibobjs
11288 : ${CONFIG_STATUS=./config.status}
11290 ac_clean_files_save
=$ac_clean_files
11291 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11295 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11297 # Generated by $as_me.
11298 # Run this file to recreate the current configuration.
11299 # Compiler output produced by configure, useful for debugging
11300 # configure, is in config.log if it exists.
11303 ac_cs_recheck=false
11306 SHELL=\${CONFIG_SHELL-$SHELL}
11309 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11310 ## -------------------- ##
11311 ## M4sh Initialization. ##
11312 ## -------------------- ##
11314 # Be more Bourne compatible
11315 DUALCASE
=1; export DUALCASE
# for MKS sh
11316 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11320 # is contrary to our usage. Disable this feature.
11321 alias -g '${1+"$@"}'='"$@"'
11322 setopt NO_GLOB_SUBST
11324 case `(set -o) 2>/dev/null` in #(
11336 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11337 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11340 # Prefer a ksh shell builtin over an external printf program on Solaris,
11341 # but without wasting forks for bash or zsh.
11342 if test -z "$BASH_VERSION$ZSH_VERSION" \
11343 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11344 as_echo='print
-r --'
11345 as_echo_n='print
-rn --'
11346 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11347 as_echo='printf %s
\n'
11348 as_echo_n='printf %s
'
11350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11351 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11352 as_echo_n='/usr
/ucb
/echo -n'
11354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11355 as_echo_n_body='eval
11359 expr "X$arg" : "X\\(.*\\)$as_nl";
11360 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11362 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11364 export as_echo_n_body
11365 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11367 export as_echo_body
11368 as_echo='sh
-c $as_echo_body as_echo
'
11371 # The user is always right.
11372 if test "${PATH_SEPARATOR+set}" != set; then
11374 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11375 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11382 # We need space, tab and new line, in precisely that order. Quoting is
11383 # there to prevent editors from complaining about space-tab.
11384 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11385 # splitting by setting IFS to empty value.)
11388 # Find who we are. Look in the path if we contain no directory separator.
11390 *[\\/]* ) as_myself=$0 ;;
11391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11402 # We did not find ourselves, most probably we were run as `sh COMMAND'
11403 # in which case we are not to be found in the path.
11404 if test "x$as_myself" = x
; then
11407 if test ! -f "$as_myself"; then
11408 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11412 # Unset variables that we do not need and which cause bugs (e.g. in
11413 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11414 # suppresses any "Segmentation fault" message there. '((' could
11415 # trigger a bug in pdksh 5.2.14.
11416 for as_var
in BASH_ENV ENV MAIL MAILPATH
11417 do eval test x\
${$as_var+set} = xset \
11418 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11431 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11435 # ----------------------------------------
11436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11438 # script with STATUS, using 1 if that was 0.
11441 as_status
=$1; test $as_status -eq 0 && as_status
=1
11443 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11444 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11446 $as_echo "$as_me: error: $2" >&2
11447 as_fn_exit
$as_status
11451 # as_fn_set_status STATUS
11452 # -----------------------
11453 # Set $? to STATUS, without forking.
11454 as_fn_set_status
()
11457 } # as_fn_set_status
11459 # as_fn_exit STATUS
11460 # -----------------
11461 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11465 as_fn_set_status
$1
11471 # Portably unset VAR.
11474 { eval $1=; unset $1;}
11476 as_unset
=as_fn_unset
11477 # as_fn_append VAR VALUE
11478 # ----------------------
11479 # Append the text in VALUE to the end of the definition contained in VAR. Take
11480 # advantage of any shell optimizations that allow amortized linear growth over
11481 # repeated appends, instead of the typical quadratic growth present in naive
11483 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11484 eval 'as_fn_append ()
11495 # as_fn_arith ARG...
11496 # ------------------
11497 # Perform arithmetic evaluation on the ARGs, and store the result in the
11498 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11499 # must be portable across $(()) and expr.
11500 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11501 eval 'as_fn_arith ()
11508 as_val
=`expr "$@" || test $? -eq 1`
11513 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11514 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11520 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11521 as_basename
=basename
11526 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11532 as_me
=`$as_basename -- "$0" ||
11533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11534 X"$0" : 'X\(//\)$' \| \
11535 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11537 sed '/^.*\/\([^/][^/]*\)\/*$/{
11551 # Avoid depending upon Character Ranges.
11552 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11553 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11554 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11555 as_cr_digits
='0123456789'
11556 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11558 ECHO_C
= ECHO_N
= ECHO_T
=
11559 case `echo -n x` in #(((((
11561 case `echo 'xy\c'` in
11562 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11564 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11571 rm -f conf$$ conf$$.exe conf$$.
file
11572 if test -d conf$$.dir
; then
11573 rm -f conf$$.dir
/conf$$.
file
11576 mkdir conf$$.dir
2>/dev
/null
11578 if (echo >conf$$.
file) 2>/dev
/null
; then
11579 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11581 # ... but there are two gotchas:
11582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11584 # In both cases, we have to default to `cp -p'.
11585 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11587 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11595 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11596 rmdir conf$$.dir
2>/dev
/null
11601 # Create "$as_dir" as a directory, including parents if necessary.
11606 -*) as_dir
=.
/$as_dir;;
11608 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11612 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11613 *) as_qdir
=$as_dir;;
11615 as_dirs
="'$as_qdir' $as_dirs"
11616 as_dir
=`$as_dirname -- "$as_dir" ||
11617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11618 X"$as_dir" : 'X\(//\)[^/]' \| \
11619 X"$as_dir" : 'X\(//\)$' \| \
11620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11621 $as_echo X"$as_dir" |
11622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11626 /^X\(\/\/\)[^/].*/{
11639 test -d "$as_dir" && break
11641 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11642 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11646 if mkdir
-p .
2>/dev
/null
; then
11647 as_mkdir_p
='mkdir -p "$as_dir"'
11649 test -d .
/-p && rmdir .
/-p
11653 if test -x / >/dev
/null
2>&1; then
11654 as_test_x
='test -x'
11656 if ls -dL / >/dev
/null
2>&1; then
11663 if test -d "$1"; then
11669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11670 ???[sx]*):;;*)false;;esac;fi
11674 as_executable_p
=$as_test_x
11676 # Sed expression to map a string onto a valid CPP name.
11677 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11679 # Sed expression to map a string onto a valid variable name.
11680 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11684 ## ----------------------------------- ##
11685 ## Main body of $CONFIG_STATUS script. ##
11686 ## ----------------------------------- ##
11688 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11691 # Save the log message, to keep $0 and so on meaningful, and to
11692 # report actual input values of CONFIG_FILES etc. instead of their
11693 # values after options handling.
11695 This file was extended by $as_me, which was
11696 generated by GNU Autoconf 2.67. Invocation command line was
11698 CONFIG_FILES = $CONFIG_FILES
11699 CONFIG_HEADERS = $CONFIG_HEADERS
11700 CONFIG_LINKS = $CONFIG_LINKS
11701 CONFIG_COMMANDS = $CONFIG_COMMANDS
11704 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11709 case $ac_config_files in *"
11710 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11713 case $ac_config_headers in *"
11714 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11719 # Files that config.status was made for.
11720 config_files="$ac_config_files"
11721 config_headers="$ac_config_headers"
11722 config_commands="$ac_config_commands"
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11728 \`$as_me' instantiates files and other configuration actions
11729 from templates according to the current configuration. Unless the files
11730 and actions are specified as TAGs, all are instantiated by default.
11732 Usage: $0 [OPTION]... [TAG]...
11734 -h, --help print this help, then exit
11735 -V, --version print version number and configuration settings, then exit
11736 --config print configuration, then exit
11737 -q, --quiet, --silent
11738 do not print progress messages
11739 -d, --debug don't remove temporary files
11740 --recheck update $as_me by reconfiguring in the same conditions
11741 --file=FILE[:TEMPLATE]
11742 instantiate the configuration file FILE
11743 --header=FILE[:TEMPLATE]
11744 instantiate the configuration header FILE
11746 Configuration files:
11749 Configuration headers:
11752 Configuration commands:
11755 Report bugs to the package provider."
11758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11759 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11762 configured by $0, generated by GNU Autoconf 2.67,
11763 with options \\"\$ac_cs_config\\"
11765 Copyright (C) 2010 Free Software Foundation, Inc.
11766 This config.status script is free software; the Free Software Foundation
11767 gives unlimited permission to copy, distribute and modify it."
11771 test -n "\$AWK" || AWK=awk
11774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11775 # The default lists apply if the user does not specify any file.
11781 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11782 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11786 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11798 # Handling of the options.
11799 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11801 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11802 $as_echo "$ac_cs_version"; exit ;;
11803 --config |
--confi |
--conf |
--con |
--co |
--c )
11804 $as_echo "$ac_cs_config"; exit ;;
11805 --debug |
--debu |
--deb |
--de |
--d |
-d )
11807 --file |
--fil |
--fi |
--f )
11810 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11811 '') as_fn_error $?
"missing file argument" ;;
11813 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11814 ac_need_defaults
=false
;;
11815 --header |
--heade |
--head |
--hea )
11818 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11820 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11821 ac_need_defaults
=false
;;
11823 # Conflict between --help and --header
11824 as_fn_error $?
"ambiguous option: \`$1'
11825 Try \`$0 --help' for more information.";;
11826 --help |
--hel |
-h )
11827 $as_echo "$ac_cs_usage"; exit ;;
11828 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11829 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11832 # This is an error.
11833 -*) as_fn_error $?
"unrecognized option: \`$1'
11834 Try \`$0 --help' for more information." ;;
11836 *) as_fn_append ac_config_targets
" $1"
11837 ac_need_defaults
=false
;;
11843 ac_configure_extra_args
=
11845 if $ac_cs_silent; then
11847 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11852 if \$ac_cs_recheck; then
11853 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11856 CONFIG_SHELL='$SHELL'
11857 export CONFIG_SHELL
11862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11867 ## Running $as_me. ##
11873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878 aros_host_exe_suffix=${aros_host_exe_suffix}
11879 aros_tools_dir=${aros_tools_dir}
11880 aros_target_cpu=${aros_target_cpu}
11881 aros_target_arch=${aros_target_arch}
11882 aros_target_suffix=${aros_target_suffix}
11883 aros_target_nm_ln=${aros_target_nm_ln}
11884 aros_target_as_ln=${aros_target_as_ln}
11885 aros_target_ar_ln=${aros_target_ar_ln}
11886 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11887 aros_target_objdump_ln=${aros_target_objdump_ln}
11888 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11889 aros_target_strip_ln=${aros_target_strip_ln}
11892 aros_tools_dir=${aros_tools_dir}
11897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11899 # Handling of arguments.
11900 for ac_config_target
in $ac_config_targets
11902 case $ac_config_target in
11903 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11904 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
11905 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
11906 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11907 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
11908 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11909 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11910 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11911 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11912 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
11913 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11914 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11915 "${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" ;;
11916 "${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" ;;
11917 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11918 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
11919 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES
="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
11921 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11926 # If the user did not use the arguments to specify the items to instantiate,
11927 # then the envvar interface is used. Set only those that are not.
11928 # We use the long form for the default assignment because of an extremely
11929 # bizarre bug on SunOS 4.1.3.
11930 if $ac_need_defaults; then
11931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11936 # Have a temporary directory for convenience. Make it in the build tree
11937 # simply because there is no reason against having it here, and in addition,
11938 # creating and moving files from /tmp can sometimes cause problems.
11939 # Hook for its removal unless debugging.
11940 # Note that there is a small window in which the directory will not be cleaned:
11941 # after its creation but before its name has been assigned to `$tmp'.
11945 trap 'exit_status=$?
11946 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11948 trap 'as_fn_exit 1' 1 2 13 15
11950 # Create a (secure) tmp directory for tmp files.
11953 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11954 test -n "$tmp" && test -d "$tmp"
11957 tmp
=.
/conf$$
-$RANDOM
11958 (umask 077 && mkdir
"$tmp")
11959 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11961 # Set up the scripts for CONFIG_FILES section.
11962 # No need to generate them if there are no CONFIG_FILES.
11963 # This happens for instance with `./config.status config.h'.
11964 if test -n "$CONFIG_FILES"; then
11967 ac_cr
=`echo X | tr X '\015'`
11968 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11969 # But we know of no other shell where ac_cr would be empty at this
11970 # point, so we can use a bashism as a fallback.
11971 if test "x$ac_cr" = x
; then
11972 eval ac_cr
=\$
\'\\r
\'
11974 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11978 ac_cs_awk_cr
=$ac_cr
11981 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11986 echo "cat >conf$$subs.awk <<_ACEOF" &&
11987 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11989 } >conf$$subs.sh ||
11990 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11993 for ac_last_try in false false false false false :; do
11994 . ./conf$$subs.sh ||
11995 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11997 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11998 if test $ac_delim_n = $ac_delim_num; then
12000 elif $ac_last_try; then
12001 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12003 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12006 rm -f conf$$subs.sh
12008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12009 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
12013 s/^/S["/; s
/!.
*/"]=/
12023 s/\(.\{148\}\)..*/\1/
12025 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12030 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12037 s/\(.\{148\}\)..*/\1/
12039 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12043 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12048 ' <conf$$subs.awk | sed '
12053 ' >>$CONFIG_STATUS || ac_write_fail=1
12054 rm -f conf$$subs.awk
12055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12057 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
12058 for (key in S) S_is_set[key] = 1
12064 nfields = split(line, field, "@
")
12066 len = length(field[1])
12067 for (i = 2; i < nfields; i++) {
12069 keylen = length(key)
12070 if (S_is_set[key]) {
12072 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12073 len += length(value) + length(field[++i])
12084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12086 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12089 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
12090 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12093 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12094 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12095 # trailing colons and then remove the whole line if VPATH becomes empty
12096 # (actually we leave an empty line to preserve line numbers).
12097 if test "x
$srcdir" = x.; then
12098 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117 fi # test -n "$CONFIG_FILES"
12119 # Set up the scripts for CONFIG_HEADERS section.
12120 # No need to generate them if there are no CONFIG_HEADERS.
12121 # This happens for instance with `./config.status Makefile'.
12122 if test -n "$CONFIG_HEADERS"; then
12123 cat >"$tmp/defines.
awk" <<\_ACAWK ||
12127 # Transform confdefs.h into an awk script `defines.awk', embedded as
12128 # here-document in config.status, that substitutes the proper values into
12129 # config.h.in to produce config.h.
12131 # Create a delimiter string that does not exist in confdefs.h, to ease
12132 # handling of long lines.
12134 for ac_last_try in false false :; do
12135 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
12136 if test -z "$ac_t"; then
12138 elif $ac_last_try; then
12139 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12141 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12145 # For the awk script, D is an array of macro values keyed by name,
12146 # likewise P contains macro parameters if any. Preserve backslash
12147 # newline sequences.
12149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12151 s/.\{148\}/&'"$ac_delim"'/g
12154 s/^[ ]*#[ ]*define[ ][ ]*/ /
12161 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12163 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12168 D["\
1"]=" \
3\\\\\\n
"\\/p
12170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12175 s/.\{148\}/&'"$ac_delim"'/g
12180 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12183 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12185 ' <confdefs.h | sed '
12186 s/'"$ac_delim"'/"\\\
12187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12190 for (key in D) D_is_set[key] = 1
12193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12195 split(line, arg, " ")
12196 if (arg[1] == "#") {
12200 defundef
= substr
(arg
[1], 2)
12203 split(mac1
, mac2
, "(") #)
12205 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12206 if (D_is_set
[macro
]) {
12207 # Preserve the white space surrounding the "#".
12208 print prefix
"define", macro P
[macro
] D
[macro
]
12211 # Replace #undef with comments. This is necessary, for example,
12212 # in the case of _POSIX_SOURCE, which is predefined and required
12213 # on some systems where configure will not decide to define it.
12214 if (defundef
== "undef") {
12215 print
"/*", prefix defundef
, macro
, "*/"
12223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12224 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12225 fi # test -n "$CONFIG_HEADERS"
12228 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12233 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12235 case $ac_mode$ac_tag in
12237 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12238 :[FH
]-) ac_tag
=-:-;;
12239 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12256 -) ac_f
="$tmp/stdin";;
12257 *) # Look for the file first in the build tree, then in the source tree
12258 # (if the path is not absolute). The absolute path cannot be DOS-style,
12259 # because $ac_f cannot contain `:'.
12263 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12265 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12267 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12268 as_fn_append ac_file_inputs
" '$ac_f'"
12271 # Let's still pretend it is `configure' which instantiates (i.e., don't
12272 # use $as_me), people would be surprised to read:
12273 # /* config.h. Generated by config.status. */
12274 configure_input
='Generated from '`
12275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12277 if test x
"$ac_file" != x-
; then
12278 configure_input
="$ac_file. $configure_input"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12280 $as_echo "$as_me: creating $ac_file" >&6;}
12282 # Neutralize special characters interpreted by sed in replacement strings.
12283 case $configure_input in #(
12284 *\
&* |
*\|
* |
*\\* )
12285 ac_sed_conf_input
=`$as_echo "$configure_input" |
12286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12287 *) ac_sed_conf_input
=$configure_input;;
12291 *:-:* |
*:-) cat >"$tmp/stdin" \
12292 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12297 ac_dir
=`$as_dirname -- "$ac_file" ||
12298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12299 X"$ac_file" : 'X\(//\)[^/]' \| \
12300 X"$ac_file" : 'X\(//\)$' \| \
12301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12302 $as_echo X"$ac_file" |
12303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12307 /^X\(\/\/\)[^/].*/{
12320 as_dir
="$ac_dir"; as_fn_mkdir_p
12324 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12326 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12327 # A ".." for each directory in $ac_dir_suffix.
12328 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12329 case $ac_top_builddir_sub in
12330 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12331 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12334 ac_abs_top_builddir
=$ac_pwd
12335 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12336 # for backward compatibility:
12337 ac_top_builddir
=$ac_top_build_prefix
12340 .
) # We are building in place.
12342 ac_top_srcdir
=$ac_top_builddir_sub
12343 ac_abs_top_srcdir
=$ac_pwd ;;
12344 [\\/]* | ?
:[\\/]* ) # Absolute name.
12345 ac_srcdir
=$srcdir$ac_dir_suffix;
12346 ac_top_srcdir
=$srcdir
12347 ac_abs_top_srcdir
=$srcdir ;;
12348 *) # Relative name.
12349 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12350 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12351 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12353 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12365 # If the template does not know about datarootdir, expand it.
12366 # FIXME: This hack should be removed a few years after 2.60.
12367 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12379 *datarootdir
*) ac_datarootdir_seen
=yes;;
12380 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12385 ac_datarootdir_hack='
12386 s&@datadir@&$datadir&g
12387 s&@docdir@&$docdir&g
12388 s&@infodir@&$infodir&g
12389 s&@localedir@&$localedir&g
12390 s&@mandir@&$mandir&g
12391 s&\\\${datarootdir}&$datarootdir&g' ;;
12395 # Neutralize VPATH when `$srcdir' = `.'.
12396 # Shell code in configure.ac might set extrasub.
12397 # FIXME: do we really want to maintain this feature?
12398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12399 ac_sed_extra="$ac_vpsub
12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12404 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12405 s|@configure_input@|
$ac_sed_conf_input|
;t t
12406 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12407 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12408 s
&@srcdir@
&$ac_srcdir&;t t
12409 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12410 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12411 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12412 s
&@builddir@
&$ac_builddir&;t t
12413 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12414 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12415 $ac_datarootdir_hack
12417 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
12418 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12421 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12424 which seems to be undefined. Please make sure it is defined" >&5
12425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12426 which seems to be undefined. Please make sure it is defined" >&2;}
12430 -) cat "$tmp/out" && rm -f "$tmp/out";;
12431 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12439 if test x"$ac_file" != x-; then
12441 $as_echo "/* $configure_input */" \
12442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12443 } >"$tmp/config.h" \
12444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12450 mv "$tmp/config.h" "$ac_file" \
12451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12454 $as_echo "/* $configure_input */" \
12455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12456 || as_fn_error $? "could not create -" "$LINENO" 5
12460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12461 $as_echo "$as_me: executing $ac_file commands" >&6;}
12466 case $ac_file$ac_mode in
12467 "compiler_executable":C)
12468 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12470 prefix="${prefix}/${aros_target_cpu}-aros"
12471 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12475 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12477 ln -sf ${prefix2}-gcc ${prefix}-gcc
12478 ln -sf ${prefix2}-ld ${prefix}-ld
12480 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12481 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12482 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12483 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12484 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12485 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12486 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12488 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12489 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12490 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12491 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12492 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12493 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12494 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12496 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12504 ac_clean_files=$ac_clean_files_save
12506 test $ac_write_fail = 0 ||
12507 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12510 # configure is writing to config.log, and then calls config.status.
12511 # config.status does its own redirection, appending to config.log.
12512 # Unfortunately, on DOS this fails, as config.log is still kept open
12513 # by configure, so config.status won't be able to
write to it
; its
12514 # output is simply discarded. So we exec the FD to /dev/null,
12515 # effectively closing config.log, so it can be properly (re)opened and
12516 # appended to by config.status. When coming back to configure, we
12517 # need to make the FD available again.
12518 if test "$no_create" != yes; then
12520 ac_config_status_args
=
12521 test "$silent" = yes &&
12522 ac_config_status_args
="$ac_config_status_args --quiet"
12524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12527 # would make configure fail if this is the last instruction.
12528 $ac_cs_success || as_fn_exit
1
12530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12537 #XXX compatability...
12538 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
12540 if test -n "$aros_shared_cflags" ; then
12541 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12542 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg