Thailand
[AROS.git] / configure
blobcb3e78e4a65317b1962cfc12a67551303ea3dd0c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
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
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
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 || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
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 :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
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; }
159 exitcode=0
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 :
166 else
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 :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
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 :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
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."
230 else
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."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
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 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
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
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
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 :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error 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.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
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. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
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).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
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
474 as_ln_s='ln -s'
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 ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
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"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
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
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_nesting_supervisor
609 aros_palm_debug_hack
610 aros_serial_debug
611 aros_host_sdl_libs
612 aros_host_sdl_cflags
613 aros_host_x11_libdirs
614 aros_host_x11_includes
615 DO_VIDMODE_SUPPORT
616 DO_XSHM_SUPPORT
617 aros_default_wbdepth
618 aros_default_wbheight
619 aros_default_wbwidth
620 sdl_hidd_target
621 x11_hidd_target
622 aros_target_strip_flags
623 aros_target_genmap
624 aros_debug_ldflags
625 aros_debug_aflags
626 aros_debug_cflags
627 aros_kernel_ldflags
628 aros_kernel_cflags
629 aros_shared_ldflags
630 aros_shared_aflags
631 aros_shared_cflags
632 aros_config_ldflags
633 aros_config_aflags
634 aros_config_cflags
635 aros_arch_libs
636 aros_compiler_libs
637 aros_object_format
638 aros_shared_ld
639 aros_shared_default
640 aros_target_nm
641 aros_target_strip
642 aros_target_objcopy
643 aros_target_objdump
644 aros_target_cc_path
645 aros_target_cc_includes
646 orig_target_ld
647 aros_target_as
648 aros_kernel_cc
649 orig_target_cc
650 aros_kernel_nm
651 aros_target_ranlib
652 aros_target_ar
653 aros_target_incl
654 aros_target_suffix
655 aros_target_variant
656 aros_target_cpu
657 aros_target_arch
658 aros_target_bootloader
659 aros_target_iconset
660 aros_target_guitheme
661 aros_tools_dir
662 aros_host_lib_suffix
663 aros_host_exe_suffix
664 aros_host_mkargs
665 aros_host_mkdep
666 aros_host_debug
667 aros_host_ldflags
668 aros_host_cflags
669 aros_host_make
670 aros_host_cc
671 aros_host_cpu
672 aros_host_arch
673 aros_cc_pre
674 AROS_PORTSSRCDIR
675 SRCDIR
676 AROS_BUILDDIR_UNIX
677 AROS_BUILDDIR
678 aros_flavour_uc
679 aros_flavour
680 aros_cpu
681 aros_arch
682 SDL_LIBS
683 SDL_CFLAGS
684 SDL_CONFIG
685 XMKMF
686 aros_cflags_iquote_end
687 aros_cflags_iquote
688 kernel_cflags_iquote_end
689 kernel_cflags_iquote
690 host_cflags_iquote_end
691 host_cflags_iquote
692 aros_target_nostdlib_ldflags
693 aros_target_detach_ldflags
694 aros_target_nix_ldflags
695 aros_target_nostartup_ldflags
696 aros_target_nostdinc_cflags
697 aros_kernel_rescomp
698 aros_target_strip_ln
699 aros_target_ranlib_ln
700 aros_target_objdump_ln
701 aros_target_objcopy_ln
702 aros_target_nm_ln
703 aros_target_ar_ln
704 aros_kernel_ld
705 aros_target_as_ln
706 aros_target_ld
707 aros_target_cc
708 CCACHE
709 DISTCC
710 LIBOBJS
711 EGREP
712 GREP
714 TEST
717 pkgpyexecdir
718 pyexecdir
719 pkgpythondir
720 pythondir
721 PYTHON_PLATFORM
722 PYTHON_EXEC_PREFIX
723 PYTHON_PREFIX
724 PYTHON_VERSION
725 PYTHON
726 CHMOD
728 PPMTOILBM
729 PNGTOPNM
730 FLEX
731 BISON
734 UNIQ
735 SORT
736 TOUCH
737 MKDIR
738 ECHO
742 aros_host_strip
743 aros_host_ranlib
744 aros_host_ar
745 aros_host_automake
746 aros_host_autoheader
747 aros_host_autoconf
748 aros_host_aclocal
749 aros_host_ld
750 MMAKE
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_build_type
810 enable_debug
811 enable_crosstools
812 enable_distcc
813 enable_ccache
814 with_optimization
815 enable_target_variant
816 with_portssources
817 with_bootloader
818 with_iconset
819 with_theme
820 enable_includes
821 with_resolution
822 with_serial_debug
823 enable_palm_debug_hack
824 enable_nesting_supervisor
825 enable_x11_hidd
826 with_x
827 enable_x11_shm
828 enable_x11_vidmode
829 enable_sdl_hidd
830 with_sdl_prefix
831 with_sdl_exec_prefix
832 enable_sdltest
833 enable_dbus
835 ac_precious_vars='build_alias
836 host_alias
837 target_alias
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
844 XMKMF'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 X features:
1444 --x-includes=DIR X include files are in DIR
1445 --x-libraries=DIR X library files are in DIR
1447 System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1453 if test -n "$ac_init_help"; then
1455 cat <<\_ACEOF
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-build-type=TYPE
1462 Select the build type. Available types are:
1463 personal, nightly, snapshot, milestone, release. Do
1464 NOT use this option unless you know what you are
1465 doing! (default=personal)
1466 --enable-debug=list Enable different types of debug. Commas or
1467 whitespaces can be used to separate the items in the
1468 list. Available types of debug are: all, none,
1469 messages, stack, mungwall, modules, symbols. If no
1470 list is provided then "all" is assumed.
1471 (default=none)
1472 --enable-crosstools Build cross-compiler toolchains if necessary
1473 (default=no).
1474 --enable-distcc Use distcc as a front end to the compiler
1475 (default=no).
1476 --enable-ccache Use ccache as a front end to the compiler
1477 (default=no).
1478 --enable-target-variant=NAME
1479 Enable a specific target variant(default=none)
1480 --enable-includes=dir Alternative system include directory
1481 --enable-palm-debug-hack
1482 Enable palm debug output hack in palm native
1483 (default=no)
1484 --enable-nesting-supervisor
1485 Enable nesting supervisor support in unix
1486 (default=no)
1487 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1488 --enable-x11-shm use X11 shared memory (default=auto)
1489 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1490 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1491 --disable-sdltest Do not try to compile and run a test SDL program
1492 --enable-dbus Enable DBUS support via dbus.library (default=no)
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-optimization=FLAGS
1498 Use optimization flags FLAGS (default=-O2).
1499 --with-portssources=DIR Where to download sourcecode for external ports
1500 --with-bootloader=NAME Use a specific bootloader
1501 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1502 --with-theme=NAME Use a specific GUI Theme
1503 --with-resolution=XRESxYRESxDEPTH
1504 Default resolution of the initial WorkbenchScreen
1505 --with-serial-debug Enable serial debug output in native (default=no)
1506 --with-x use the X Window System
1507 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1508 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CPP C preprocessor
1519 XMKMF Path to xmkmf, Makefile generator for X Window System
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1524 Report bugs to the package provider.
1525 _ACEOF
1526 ac_status=$?
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 configure
1588 generated by GNU Autoconf 2.65
1590 Copyright (C) 2009 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594 exit
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1608 if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_compile
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } >/dev/null && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1669 ac_retval=1
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_cpp
1676 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1679 # the include files in INCLUDES and setting the cache variable VAR
1680 # accordingly.
1681 ac_fn_c_check_header_mongrel ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1688 $as_echo_n "(cached) " >&6
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 else
1694 # Is the header compilable?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1696 $as_echo_n "checking $2 usability... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703 ac_header_compiler=yes
1704 else
1705 ac_header_compiler=no
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1709 $as_echo "$ac_header_compiler" >&6; }
1711 # Is the header present?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1713 $as_echo_n "checking $2 presence... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_cpp "$LINENO"; then :
1719 ac_header_preproc=yes
1720 else
1721 ac_header_preproc=no
1723 rm -f conftest.err conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1725 $as_echo "$ac_header_preproc" >&6; }
1727 # So? What about this header?
1728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729 yes:no: )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 no:yes:* )
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1739 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1743 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 esac
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 eval "$3=\$ac_header_compiler"
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_mongrel
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1767 ac_fn_c_try_run ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=$ac_status
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_run
1805 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists and can be compiled using the include files in
1808 # INCLUDES, setting the cache variable VAR accordingly.
1809 ac_fn_c_check_header_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1816 else
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_header_compile
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_link
1882 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1883 # ----------------------------------------------------
1884 # Tries to find if the field MEMBER exists in type AGGR, after including
1885 # INCLUDES, setting cache variable VAR accordingly.
1886 ac_fn_c_check_member ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1890 $as_echo_n "checking for $2.$3... " >&6; }
1891 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1893 else
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 main ()
1900 static $2 ac_aggr;
1901 if (ac_aggr.$3)
1902 return 0;
1904 return 0;
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$4=yes"
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1914 main ()
1916 static $2 ac_aggr;
1917 if (sizeof ac_aggr.$3)
1918 return 0;
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$4=yes"
1925 else
1926 eval "$4=no"
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 eval ac_res=\$$4
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_c_check_member
1939 # ac_fn_c_check_decl LINENO SYMBOL VAR
1940 # ------------------------------------
1941 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1942 ac_fn_c_check_decl ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1946 $as_echo_n "checking whether $2 is declared... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 #ifndef $2
1957 (void) $2;
1958 #endif
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$3=yes"
1966 else
1967 eval "$3=no"
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_decl
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=no"
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 if (sizeof ($2))
1998 return 0;
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 if (sizeof (($2)))
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2018 else
2019 eval "$3=yes"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_c_check_type
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047 #define $2 innocuous_$2
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2054 #ifdef __STDC__
2055 # include <limits.h>
2056 #else
2057 # include <assert.h>
2058 #endif
2060 #undef $2
2062 /* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2065 #ifdef __cplusplus
2066 extern "C"
2067 #endif
2068 char $2 ();
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined __stub_$2 || defined __stub___$2
2073 choke me
2074 #endif
2077 main ()
2079 return $2 ();
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_link "$LINENO"; then :
2085 eval "$3=yes"
2086 else
2087 eval "$3=no"
2089 rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 } # ac_fn_c_check_func
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by $as_me, which was
2103 generated by GNU Autoconf 2.65. Invocation command line was
2105 $ $0 $@
2107 _ACEOF
2108 exec 5>>config.log
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 _ASUNAME
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141 IFS=$as_save_IFS
2143 } >&5
2145 cat >&5 <<_ACEOF
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2152 _ACEOF
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2166 for ac_arg
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2195 as_fn_append ac_configure_args " '$ac_arg'"
2197 esac
2198 done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2211 echo
2213 cat <<\_ASBOX
2214 ## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##
2217 _ASBOX
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 esac |
2247 sort
2249 echo
2251 cat <<\_ASBOX
2252 ## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##
2255 _ASBOX
2256 echo
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
2267 if test -n "$ac_subst_files"; then
2268 cat <<\_ASBOX
2269 ## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##
2272 _ASBOX
2273 echo
2274 for ac_var in $ac_subst_files
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2285 if test -s confdefs.h; then
2286 cat <<\_ASBOX
2287 ## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##
2290 _ASBOX
2291 echo
2292 cat confdefs.h
2293 echo
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2311 $as_echo "/* confdefs.h */" > confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345 ac_site_file1=$CONFIG_SITE
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file"
2362 done
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special files
2366 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2381 as_fn_append ac_header_list " stdlib.h"
2382 as_fn_append ac_header_list " unistd.h"
2383 as_fn_append ac_header_list " sys/param.h"
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2433 done
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 ac_aux_dir=
2454 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2455 for ac_t in install-sh install.sh shtool; do
2456 if test -f "$ac_dir/$ac_t"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/$ac_t -c"
2459 break 2
2461 done
2462 done
2463 if test -z "$ac_aux_dir"; then
2464 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 # Check what host we are running on.
2478 # If a target is not suggested, we use this one.
2479 # Note that what we call a target, Autoconf calls a host.
2480 # Make sure we can run config.sub.
2481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2482 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2485 $as_echo_n "checking build system type... " >&6; }
2486 if test "${ac_cv_build+set}" = set; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 ac_build_alias=$build_alias
2490 test "x$ac_build_alias" = x &&
2491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2492 test "x$ac_build_alias" = x &&
2493 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2495 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2499 $as_echo "$ac_cv_build" >&6; }
2500 case $ac_cv_build in
2501 *-*-*) ;;
2502 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2503 esac
2504 build=$ac_cv_build
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_build
2507 shift
2508 build_cpu=$1
2509 build_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 build_os=$*
2514 IFS=$ac_save_IFS
2515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2519 $as_echo_n "checking host system type... " >&6; }
2520 if test "${ac_cv_host+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test "x$host_alias" = x; then
2524 ac_cv_host=$ac_cv_build
2525 else
2526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2527 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2532 $as_echo "$ac_cv_host" >&6; }
2533 case $ac_cv_host in
2534 *-*-*) ;;
2535 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2536 esac
2537 host=$ac_cv_host
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_host
2540 shift
2541 host_cpu=$1
2542 host_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 host_os=$*
2547 IFS=$ac_save_IFS
2548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2552 # The AROS target is slightly different to the normal GNU style
2553 # format. We don't have the middle part, and we reverse the order
2554 # of the $(CPU) and $(OS) bits.
2556 # Don't strip the version of the target yet, it might be
2557 # useful on some systems.
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2560 $as_echo_n "checking for AROS style target... " >&6; }
2562 if test "$target" = "NONE" ; then
2563 target=$host_os-$host_cpu
2564 cross_compile=no
2565 else
2566 if test "$target" = "" ; then
2567 target=$host_os-$host_cpu
2568 cross_compile=no
2569 else
2570 cross_compile=yes
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2574 $as_echo "$target" >&6; }
2576 if test "$host_os" = "mingw32" ; then
2577 PWDCMD="pwd -W"
2580 #don't know where else to put this...
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2582 $as_echo_n "checking Building AROS in .. ... " >&6; }
2583 AROS_BUILDDIR=`${PWDCMD-pwd}`
2584 AROS_BUILDDIR_UNIX=${PWD}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2586 $as_echo "$AROS_BUILDDIR" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2589 $as_echo_n "checking AROS Source in .. ... " >&6; }
2590 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2591 SRCDIR=${srcpwd}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2593 $as_echo "$SRCDIR" >&6; }
2595 # Parse the target field into something useful.
2597 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2598 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2601 aros_default_wbwidth=800
2602 aros_default_wbheight=600
2603 aros_default_wbdepth=4
2606 # The first step is to find the host binaries.
2607 # Check for a compiler.
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2635 done
2636 done
2637 IFS=$as_save_IFS
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2652 if test -z "$ac_cv_prog_CC"; then
2653 ac_ct_CC=$CC
2654 # Extract the first word of "gcc", so it can be a program name with args.
2655 set dummy gcc; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="gcc"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2675 done
2676 done
2677 IFS=$as_save_IFS
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2698 esac
2699 CC=$ac_ct_CC
2701 else
2702 CC="$ac_cv_prog_CC"
2705 if test -z "$CC"; then
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}cc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="${ac_tool_prefix}cc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2730 IFS=$as_save_IFS
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 ac_prog_rejected=no
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2766 ac_prog_rejected=yes
2767 continue
2769 ac_cv_prog_CC="cc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2777 if test $ac_prog_rejected = yes; then
2778 # We found a bogon in the path, so make sure we never use it.
2779 set dummy $ac_cv_prog_CC
2780 shift
2781 if test $# != 0; then
2782 # We chose a different compiler from the bogus one.
2783 # However, it has the same basename, so the bogon will be chosen
2784 # first if we set CC to just the basename; use the full file name.
2785 shift
2786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 for ac_prog in cl.exe
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$CC" && break
2844 done
2846 if test -z "$CC"; then
2847 ac_ct_CC=$CC
2848 for ac_prog in cl.exe
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CC="$ac_prog"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2871 done
2872 done
2873 IFS=$as_save_IFS
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2887 test -n "$ac_ct_CC" && break
2888 done
2890 if test "x$ac_ct_CC" = x; then
2891 CC=""
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899 CC=$ac_ct_CC
2906 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908 as_fn_error "no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details." "$LINENO" 5; }
2911 # Provide some information about the compiler.
2912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2913 set X $ac_compile
2914 ac_compiler=$2
2915 for ac_option in --version -v -V -qversion; do
2916 { { ac_try="$ac_compiler $ac_option >&5"
2917 case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922 $as_echo "$ac_try_echo"; } >&5
2923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2924 ac_status=$?
2925 if test -s conftest.err; then
2926 sed '10a\
2927 ... rest of stderr output deleted ...
2928 10q' conftest.err >conftest.er1
2929 cat conftest.er1 >&5
2931 rm -f conftest.er1 conftest.err
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }
2934 done
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h. */
2940 main ()
2944 return 0;
2946 _ACEOF
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2951 # of exeext.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2953 $as_echo_n "checking whether the C compiler works... " >&6; }
2954 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2956 # The possible output files:
2957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2959 ac_rmfiles=
2960 for ac_file in $ac_files
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2965 esac
2966 done
2967 rm -f $ac_rmfiles
2969 if { { ac_try="$ac_link_default"
2970 case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link_default") 2>&5
2977 ac_status=$?
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }; then :
2980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2981 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2982 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2983 # so that the user can short-circuit this test for compilers unknown to
2984 # Autoconf.
2985 for ac_file in $ac_files ''
2987 test -f "$ac_file" || continue
2988 case $ac_file in
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2991 [ab].out )
2992 # We found the default executable, but exeext='' is most
2993 # certainly right.
2994 break;;
2995 *.* )
2996 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2997 then :; else
2998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 # We set ac_cv_exeext here because the later test for it is not
3001 # safe: cross compilers may not add the suffix if given an `-o'
3002 # argument, so we may need to know it at that point already.
3003 # Even if this section looks crufty: it has the advantage of
3004 # actually working.
3005 break;;
3007 break;;
3008 esac
3009 done
3010 test "$ac_cv_exeext" = no && ac_cv_exeext=
3012 else
3013 ac_file=''
3015 if test -z "$ac_file"; then :
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 $as_echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 { as_fn_set_status 77
3024 as_fn_error "C compiler cannot create executables
3025 See \`config.log' for more details." "$LINENO" 5; }; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033 $as_echo "$ac_file" >&6; }
3034 ac_exeext=$ac_cv_exeext
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039 $as_echo_n "checking for suffix of executables... " >&6; }
3040 if { { ac_try="$ac_link"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3053 # work properly (i.e., refer to `conftest.exe'), while it won't with
3054 # `rm'.
3055 for ac_file in conftest.exe conftest conftest.*; do
3056 test -f "$ac_file" || continue
3057 case $ac_file in
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060 break;;
3061 * ) break;;
3062 esac
3063 done
3064 else
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error "cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details." "$LINENO" 5; }
3070 rm -f conftest conftest$ac_cv_exeext
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072 $as_echo "$ac_cv_exeext" >&6; }
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3076 ac_exeext=$EXEEXT
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079 #include <stdio.h>
3081 main ()
3083 FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3087 return 0;
3089 _ACEOF
3090 ac_clean_files="$ac_clean_files conftest.out"
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094 $as_echo_n "checking whether we are cross compiling... " >&6; }
3095 if test "$cross_compiling" != yes; then
3096 { { ac_try="$ac_link"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 if { ac_try='./conftest$ac_cv_exeext'
3108 { { case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; }; then
3118 cross_compiling=no
3119 else
3120 if test "$cross_compiling" = maybe; then
3121 cross_compiling=yes
3122 else
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error "cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." "$LINENO" 5; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132 $as_echo "$cross_compiling" >&6; }
3134 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if test "${ac_cv_objext+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3145 main ()
3149 return 0;
3151 _ACEOF
3152 rm -f conftest.o conftest.obj
3153 if { { ac_try="$ac_compile"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compile") 2>&5
3161 ac_status=$?
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }; then :
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169 break;;
3170 esac
3171 done
3172 else
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error "cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details." "$LINENO" 5; }
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184 $as_echo "$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3186 ac_objext=$OBJEXT
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3196 main ()
3198 #ifndef __GNUC__
3199 choke me
3200 #endif
3203 return 0;
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3207 ac_compiler_gnu=yes
3208 else
3209 ac_compiler_gnu=no
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217 if test $ac_compiler_gnu = yes; then
3218 GCC=yes
3219 else
3220 GCC=
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3226 if test "${ac_cv_prog_cc_g+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 ac_save_c_werror_flag=$ac_c_werror_flag
3230 ac_c_werror_flag=yes
3231 ac_cv_prog_cc_g=no
3232 CFLAGS="-g"
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3237 main ()
3241 return 0;
3243 _ACEOF
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245 ac_cv_prog_cc_g=yes
3246 else
3247 CFLAGS=""
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3252 main ()
3256 return 0;
3258 _ACEOF
3259 if ac_fn_c_try_compile "$LINENO"; then :
3261 else
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3263 CFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_g=yes
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286 $as_echo "$ac_cv_prog_cc_g" >&6; }
3287 if test "$ac_test_CFLAGS" = set; then
3288 CFLAGS=$ac_save_CFLAGS
3289 elif test $ac_cv_prog_cc_g = yes; then
3290 if test "$GCC" = yes; then
3291 CFLAGS="-g -O2"
3292 else
3293 CFLAGS="-g"
3295 else
3296 if test "$GCC" = yes; then
3297 CFLAGS="-O2"
3298 else
3299 CFLAGS=
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 ac_cv_prog_cc_c89=no
3308 ac_save_CC=$CC
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3311 #include <stdarg.h>
3312 #include <stdio.h>
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319 char **p;
3320 int i;
3322 return p[i];
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3355 main ()
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3359 return 0;
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_c89=$ac_arg
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 done
3372 rm -f conftest.$ac_ext
3373 CC=$ac_save_CC
3376 # AC_CACHE_VAL
3377 case "x$ac_cv_prog_cc_c89" in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3381 xno)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3388 esac
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 case $ac_cv_prog_cc_stdc in #(
3400 no) :
3401 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3402 *) :
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3404 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3405 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 ac_cv_prog_cc_c99=no
3409 ac_save_CC=$CC
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412 #include <stdarg.h>
3413 #include <stdbool.h>
3414 #include <stdlib.h>
3415 #include <wchar.h>
3416 #include <stdio.h>
3418 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3419 #define debug(...) fprintf (stderr, __VA_ARGS__)
3420 #define showlist(...) puts (#__VA_ARGS__)
3421 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3422 static void
3423 test_varargs_macros (void)
3425 int x = 1234;
3426 int y = 5678;
3427 debug ("Flag");
3428 debug ("X = %d\n", x);
3429 showlist (The first, second, and third items.);
3430 report (x>y, "x is %d but y is %d", x, y);
3433 // Check long long types.
3434 #define BIG64 18446744073709551615ull
3435 #define BIG32 4294967295ul
3436 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3437 #if !BIG_OK
3438 your preprocessor is broken;
3439 #endif
3440 #if BIG_OK
3441 #else
3442 your preprocessor is broken;
3443 #endif
3444 static long long int bignum = -9223372036854775807LL;
3445 static unsigned long long int ubignum = BIG64;
3447 struct incomplete_array
3449 int datasize;
3450 double data[];
3453 struct named_init {
3454 int number;
3455 const wchar_t *name;
3456 double average;
3459 typedef const char *ccp;
3461 static inline int
3462 test_restrict (ccp restrict text)
3464 // See if C++-style comments work.
3465 // Iterate through items via the restricted pointer.
3466 // Also check for declarations in for loops.
3467 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3468 continue;
3469 return 0;
3472 // Check varargs and va_copy.
3473 static void
3474 test_varargs (const char *format, ...)
3476 va_list args;
3477 va_start (args, format);
3478 va_list args_copy;
3479 va_copy (args_copy, args);
3481 const char *str;
3482 int number;
3483 float fnumber;
3485 while (*format)
3487 switch (*format++)
3489 case 's': // string
3490 str = va_arg (args_copy, const char *);
3491 break;
3492 case 'd': // int
3493 number = va_arg (args_copy, int);
3494 break;
3495 case 'f': // float
3496 fnumber = va_arg (args_copy, double);
3497 break;
3498 default:
3499 break;
3502 va_end (args_copy);
3503 va_end (args);
3507 main ()
3510 // Check bool.
3511 _Bool success = false;
3513 // Check restrict.
3514 if (test_restrict ("String literal") == 0)
3515 success = true;
3516 char *restrict newvar = "Another string";
3518 // Check varargs.
3519 test_varargs ("s, d' f .", "string", 65, 34.234);
3520 test_varargs_macros ();
3522 // Check flexible array members.
3523 struct incomplete_array *ia =
3524 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3525 ia->datasize = 10;
3526 for (int i = 0; i < ia->datasize; ++i)
3527 ia->data[i] = i * 1.234;
3529 // Check named initializers.
3530 struct named_init ni = {
3531 .number = 34,
3532 .name = L"Test wide string",
3533 .average = 543.34343,
3536 ni.number = 58;
3538 int dynamic_array[ni.number];
3539 dynamic_array[ni.number - 1] = 543;
3541 // work around unused variable warnings
3542 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3543 || dynamic_array[ni.number - 1] != 543);
3546 return 0;
3548 _ACEOF
3549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3551 CC="$ac_save_CC $ac_arg"
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_c99=$ac_arg
3555 rm -f core conftest.err conftest.$ac_objext
3556 test "x$ac_cv_prog_cc_c99" != "xno" && break
3557 done
3558 rm -f conftest.$ac_ext
3559 CC=$ac_save_CC
3562 # AC_CACHE_VAL
3563 case "x$ac_cv_prog_cc_c99" in
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3566 $as_echo "none needed" >&6; } ;;
3567 xno)
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3569 $as_echo "unsupported" >&6; } ;;
3571 CC="$CC $ac_cv_prog_cc_c99"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3573 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3574 esac
3575 if test "x$ac_cv_prog_cc_c99" != xno; then :
3576 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 #include <sys/types.h>
3590 #include <sys/stat.h>
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3595 char **p;
3596 int i;
3598 return p[i];
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621 #define FOO(x) 'x'
3622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 int argc;
3629 char **argv;
3631 main ()
3633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3635 return 0;
3637 _ACEOF
3638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_c89=$ac_arg
3645 rm -f core conftest.err conftest.$ac_objext
3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
3647 done
3648 rm -f conftest.$ac_ext
3649 CC=$ac_save_CC
3652 # AC_CACHE_VAL
3653 case "x$ac_cv_prog_cc_c89" in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 $as_echo "none needed" >&6; } ;;
3657 xno)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 $as_echo "unsupported" >&6; } ;;
3661 CC="$CC $ac_cv_prog_cc_c89"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 esac
3665 if test "x$ac_cv_prog_cc_c89" != xno; then :
3666 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3667 else
3668 ac_cv_prog_cc_stdc=no
3673 esac
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3675 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3676 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3680 case $ac_cv_prog_cc_stdc in #(
3681 no) :
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683 $as_echo "unsupported" >&6; } ;; #(
3684 '') :
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;; #(
3687 *) :
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3689 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3690 esac
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3698 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3699 # On Suns, sometimes $CPP names a directory.
3700 if test -n "$CPP" && test -d "$CPP"; then
3701 CPP=
3703 if test -z "$CPP"; then
3704 if test "${ac_cv_prog_CPP+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 # Double quotes because CPP needs to be expanded
3708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3710 ac_preproc_ok=false
3711 for ac_c_preproc_warn_flag in '' yes
3713 # Use a header file that comes with gcc, so configuring glibc
3714 # with a fresh cross-compiler works.
3715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3716 # <limits.h> exists even on freestanding compilers.
3717 # On the NeXT, cc -E runs the code through the compiler's parser,
3718 # not just through cpp. "Syntax error" is here to catch this case.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #ifdef __STDC__
3722 # include <limits.h>
3723 #else
3724 # include <assert.h>
3725 #endif
3726 Syntax error
3727 _ACEOF
3728 if ac_fn_c_try_cpp "$LINENO"; then :
3730 else
3731 # Broken: fails on valid input.
3732 continue
3734 rm -f conftest.err conftest.$ac_ext
3736 # OK, works on sane cases. Now check whether nonexistent headers
3737 # can be detected and how.
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3741 _ACEOF
3742 if ac_fn_c_try_cpp "$LINENO"; then :
3743 # Broken: success on invalid input.
3744 continue
3745 else
3746 # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3750 rm -f conftest.err conftest.$ac_ext
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then :
3756 break
3759 done
3760 ac_cv_prog_CPP=$CPP
3763 CPP=$ac_cv_prog_CPP
3764 else
3765 ac_cv_prog_CPP=$CPP
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3768 $as_echo "$CPP" >&6; }
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #ifdef __STDC__
3781 # include <limits.h>
3782 #else
3783 # include <assert.h>
3784 #endif
3785 Syntax error
3786 _ACEOF
3787 if ac_fn_c_try_cpp "$LINENO"; then :
3789 else
3790 # Broken: fails on valid input.
3791 continue
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799 #include <ac_nonexistent.h>
3800 _ACEOF
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3802 # Broken: success on invalid input.
3803 continue
3804 else
3805 # Passes both tests.
3806 ac_preproc_ok=:
3807 break
3809 rm -f conftest.err conftest.$ac_ext
3811 done
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then :
3816 else
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3820 See \`config.log' for more details." "$LINENO" 5; }
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 # Check for a compatible awk
3831 for ac_prog in gawk nawk
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_AWK+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$AWK"; then
3841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_AWK="$ac_prog"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 AWK=$ac_cv_prog_AWK
3861 if test -n "$AWK"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3863 $as_echo "$AWK" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3870 test -n "$AWK" && break
3871 done
3873 if test "$AWK" = ""; then
3874 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3876 # Extract the first word of "mmake", so it can be a program name with args.
3877 set dummy mmake; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$MMAKE"; then
3884 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_MMAKE="mmake "
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 MMAKE=$ac_cv_prog_MMAKE
3904 if test -n "$MMAKE"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3906 $as_echo "$MMAKE" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3914 # Perform some default variable assignments. Note all of these will be
3915 # Regenerated from the script, so there is no need to cache them.
3917 aros_host_cc="$CC"
3918 if test "$GCC" = "yes"; then
3919 aros_gcc_ld=`$CC -print-prog-name=ld`
3920 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3921 set dummy `basename $aros_gcc_ld`; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 case $aros_host_ld in
3928 [\\/]* | ?:[\\/]*)
3929 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in `dirname $aros_gcc_ld`
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3945 IFS=$as_save_IFS
3948 esac
3950 aros_host_ld=$ac_cv_path_aros_host_ld
3951 if test -n "$aros_host_ld"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3953 $as_echo "$aros_host_ld" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3961 if test "$aros_host_ld" = ""; then
3962 # Extract the first word of "ld", so it can be a program name with args.
3963 set dummy ld; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 case $aros_host_ld in
3970 [\\/]* | ?:[\\/]*)
3971 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3985 done
3986 done
3987 IFS=$as_save_IFS
3990 esac
3992 aros_host_ld=$ac_cv_path_aros_host_ld
3993 if test -n "$aros_host_ld"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3995 $as_echo "$aros_host_ld" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4003 if test "$aros_host_ld" = ""; then
4004 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4006 aros_host_make="make"
4007 aros_host_cflags=$CFLAGS
4008 aros_host_ldflags=$LDFLAGS
4009 aros_host_debug="-g -O0"
4010 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4011 aros_host_mkargs="--no-print-directory"
4012 aros_host_incl="/usr/include"
4013 aros_host_exe_suffix="$EXEEXT"
4014 aros_host_lib_suffix=""
4016 for ac_prog in aclocal aclocal19 aclocal-1.9
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$aros_host_aclocal"; then
4026 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_aros_host_aclocal="$ac_prog"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4041 IFS=$as_save_IFS
4045 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4046 if test -n "$aros_host_aclocal"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4048 $as_echo "$aros_host_aclocal" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4055 test -n "$aros_host_aclocal" && break
4056 done
4058 for ac_prog in autoconf autoconf259 autoconf253
4060 # Extract the first word of "$ac_prog", so it can be a program name with args.
4061 set dummy $ac_prog; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$aros_host_autoconf"; then
4068 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 ac_cv_prog_aros_host_autoconf="$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4083 IFS=$as_save_IFS
4087 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4088 if test -n "$aros_host_autoconf"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4090 $as_echo "$aros_host_autoconf" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4097 test -n "$aros_host_autoconf" && break
4098 done
4100 for ac_prog in autoheader autoheader259 autoheader253
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103 set dummy $ac_prog; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$aros_host_autoheader"; then
4110 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_aros_host_autoheader="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4125 IFS=$as_save_IFS
4129 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4130 if test -n "$aros_host_autoheader"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4132 $as_echo "$aros_host_autoheader" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4139 test -n "$aros_host_autoheader" && break
4140 done
4142 for ac_prog in automake automake19 automake-1.9
4144 # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -n "$aros_host_automake"; then
4152 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_aros_host_automake="$ac_prog"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4171 aros_host_automake=$ac_cv_prog_aros_host_automake
4172 if test -n "$aros_host_automake"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4174 $as_echo "$aros_host_automake" >&6; }
4175 else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4181 test -n "$aros_host_automake" && break
4182 done
4185 if test "$aros_host_aclocal" = ""; then
4186 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4188 if test "$aros_host_automake" = ""; then
4189 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4192 case "$aros_host_cc" in
4193 *gcc*)
4194 aros_host_cc_pipe="-pipe"
4196 icc)
4197 aros_host_cc_pipe=""
4200 aros_host_cc_pipe=""
4202 esac
4204 aros_target_cc_includes=""
4206 # This is the main host configuration section. It is where the host
4207 # can change the values of any variables it needs to change. We do
4208 # not look at anything that compiles to the target yet, we'll get
4209 # to that later.
4211 case "$host_os" in
4212 aros*)
4213 aros_host_arch="aros"
4214 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4215 case "$host_cpu" in
4216 *i?86*)
4217 aros_host_cpu="i386"
4219 *x86_64*)
4220 aros_host_cpu="x86_64"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4224 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4225 aros_host_cpu="$host_cpu"
4227 esac
4230 linux*)
4231 aros_host_arch="linux"
4232 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4233 case "$host_cpu" in
4234 *i?86*)
4235 aros_host_cpu="i386"
4237 *x86_64*)
4238 aros_host_cpu="x86_64"
4240 *m68k*)
4241 aros_host_cpu="m68k"
4243 *powerpc*)
4244 aros_host_cpu="ppc"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4248 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4249 aros_host_cpu="$host_cpu"
4251 esac
4254 freebsd*)
4255 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4256 aros_host_make="gmake"
4257 aros_host_arch="freebsd"
4258 aros_host_cpu="i386"
4260 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4263 case $host_os in
4264 freebsd[234]*)
4265 aros_object_format="elf_i386"
4269 aros_object_format="elf_i386_fbsd"
4271 esac
4275 darwin*)
4276 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4277 aros_host_arch="darwin"
4278 case "$host_cpu" in
4279 *i?86*)
4280 aros_host_cpu="i386"
4282 *powerpc*)
4283 aros_host_cpu="ppc"
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4287 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4288 aros_host_cpu="$host_cpu"
4290 esac
4292 aros_host_ldflags="$aros_host_ldflags -liconv"
4296 dragonfly*)
4297 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4298 aros_host_make="gmake"
4299 aros_host_arch="dragonfly"
4300 case $host_cpu in
4301 *i?86*)
4302 aros_host_cpu="i386"
4304 *amd64*)
4305 aros_host_cpu="x86_64"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4309 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4310 aros_host_cpu="$host_cpu"
4312 esac
4315 netbsd*)
4316 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4317 aros_host_make="gmake"
4318 aros_host_arch="netbsd"
4319 case "$host_cpu" in
4320 *i?86*)
4321 aros_host_cpu="i386"
4323 *m68k*)
4324 aros_host_cpu="m68k"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4328 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4329 aros_host_cpu="$host_cpu"
4331 esac
4332 aros_host_lib_suffix=".0.0"
4335 openbsd*)
4336 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4337 aros_host_make="gmake"
4338 aros_host_arch="openbsd"
4339 case "$host_cpu" in
4340 *i?86*)
4341 aros_host_cpu="i386"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4345 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4346 aros_host_cpu="$host_cpu"
4348 esac
4351 solaris*)
4352 aros_host_arch="solaris"
4353 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4354 case "$host_cpu" in
4355 *i?86*)
4356 aros_host_cpu="i386"
4358 *sparc*)
4359 aros_host_cpu="sparc"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4363 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4364 aros_host_cpu="$host_cpu"
4366 esac
4369 morphos*)
4370 aros_host_arch="morphos"
4371 aros_host_cpu="ppc"
4374 amiga*)
4375 aros_host_arch="amiga"
4376 SORT="/gg/bin/sort"
4377 TEST="/gg/bin/test"
4378 UNIQ="/gg/bin/uniq"
4379 FOR="for"
4380 TOUCH="/gg/bin/touch"
4381 case "$host_cpu" in
4382 *m68k*)
4383 aros_host_cpu="m68k"
4385 *powerpc*)
4386 aros_host_cpu="ppc"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4390 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4391 aros_host_cpu="$host_cpu"
4393 esac
4396 cygwin*)
4397 aros_host_arch="cygwin"
4398 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4399 case "$host_cpu" in
4400 *i?86*)
4401 aros_host_cpu="i386"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4405 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4406 aros_host_cpu="$host_cpu"
4408 esac
4411 mingw32*)
4412 aros_host_arch="mingw32"
4413 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4414 case "$host_cpu" in
4415 *i?86*)
4416 aros_host_cpu="i386"
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4420 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4421 aros_host_cpu="$host_cpu"
4423 esac
4426 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4428 esac
4430 # Extract the first word of "ar", so it can be a program name with args.
4431 set dummy ar; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$aros_host_ar"; then
4438 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_aros_host_ar="ar cr"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 aros_host_ar=$ac_cv_prog_aros_host_ar
4458 if test -n "$aros_host_ar"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4460 $as_echo "$aros_host_ar" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 if test "$aros_host_ar" = ""; then
4468 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4470 # Extract the first word of "ranlib", so it can be a program name with args.
4471 set dummy ranlib; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$aros_host_ranlib"; then
4478 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_aros_host_ranlib="ranlib "
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4497 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4498 if test -n "$aros_host_ranlib"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4500 $as_echo "$aros_host_ranlib" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4507 if test "$aros_host_ranlib" = ""; then
4508 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4510 # Extract the first word of "strip", so it can be a program name with args.
4511 set dummy strip; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -n "$aros_host_strip"; then
4518 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_aros_host_strip="strip "
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4537 aros_host_strip=$ac_cv_prog_aros_host_strip
4538 if test -n "$aros_host_strip"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4540 $as_echo "$aros_host_strip" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4547 if test "$aros_host_strip" = ""; then
4548 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4551 # Extract the first word of "rm", so it can be a program name with args.
4552 set dummy rm; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_RM+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$RM"; then
4559 ac_cv_prog_RM="$RM" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_RM="rm -rf"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 RM=$ac_cv_prog_RM
4579 if test -n "$RM"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4581 $as_echo "$RM" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test "$RM" = ""; then
4589 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4591 # Extract the first word of "cp", so it can be a program name with args.
4592 set dummy cp; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_CP+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$CP"; then
4599 ac_cv_prog_CP="$CP" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_CP="cp "
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 CP=$ac_cv_prog_CP
4619 if test -n "$CP"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4621 $as_echo "$CP" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 if test "$CP" = ""; then
4629 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4631 # Extract the first word of "mv", so it can be a program name with args.
4632 set dummy mv; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if test "${ac_cv_prog_MV+set}" = set; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$MV"; then
4639 ac_cv_prog_MV="$MV" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_prog_MV="mv "
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 MV=$ac_cv_prog_MV
4659 if test -n "$MV"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4661 $as_echo "$MV" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4668 if test "$MV" = ""; then
4669 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4671 # Extract the first word of "echo", so it can be a program name with args.
4672 set dummy echo; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_ECHO+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$ECHO"; then
4679 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_ECHO="echo "
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 ECHO=$ac_cv_prog_ECHO
4699 if test -n "$ECHO"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4701 $as_echo "$ECHO" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4708 if test "$ECHO" = ""; then
4709 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4711 # Extract the first word of "mkdir", so it can be a program name with args.
4712 set dummy mkdir; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$MKDIR"; then
4719 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_MKDIR="mkdir -p"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 MKDIR=$ac_cv_prog_MKDIR
4739 if test -n "$MKDIR"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4741 $as_echo "$MKDIR" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4748 if test "$MKDIR" = ""; then
4749 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4751 # Extract the first word of "touch", so it can be a program name with args.
4752 set dummy touch; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$TOUCH"; then
4759 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_TOUCH="touch "
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 TOUCH=$ac_cv_prog_TOUCH
4779 if test -n "$TOUCH"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4781 $as_echo "$TOUCH" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 if test "$TOUCH" = ""; then
4789 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4791 # Extract the first word of "sort", so it can be a program name with args.
4792 set dummy sort; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_SORT+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$SORT"; then
4799 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_SORT="sort "
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4812 done
4813 done
4814 IFS=$as_save_IFS
4818 SORT=$ac_cv_prog_SORT
4819 if test -n "$SORT"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4821 $as_echo "$SORT" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 if test "$SORT" = ""; then
4829 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4831 # Extract the first word of "uniq", so it can be a program name with args.
4832 set dummy uniq; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 if test -n "$UNIQ"; then
4839 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_UNIQ="uniq "
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 UNIQ=$ac_cv_prog_UNIQ
4859 if test -n "$UNIQ"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4861 $as_echo "$UNIQ" >&6; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4868 if test "$UNIQ" = ""; then
4869 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4871 # Extract the first word of "true", so it can be a program name with args.
4872 set dummy true; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_NOP+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$NOP"; then
4879 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_NOP="true "
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 NOP=$ac_cv_prog_NOP
4899 if test -n "$NOP"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4901 $as_echo "$NOP" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4908 if test "$NOP" = ""; then
4909 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4911 # Extract the first word of "cat", so it can be a program name with args.
4912 set dummy cat; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if test "${ac_cv_prog_CAT+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -n "$CAT"; then
4919 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_CAT="cat "
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4934 IFS=$as_save_IFS
4938 CAT=$ac_cv_prog_CAT
4939 if test -n "$CAT"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4941 $as_echo "$CAT" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4948 if test "$CAT" = ""; then
4949 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
4951 # Extract the first word of "bison", so it can be a program name with args.
4952 set dummy bison; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_BISON+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$BISON"; then
4959 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_BISON="bison "
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 BISON=$ac_cv_prog_BISON
4979 if test -n "$BISON"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4981 $as_echo "$BISON" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 if test "$BISON" = ""; then
4989 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
4991 # Extract the first word of "flex", so it can be a program name with args.
4992 set dummy flex; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_FLEX+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$FLEX"; then
4999 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_FLEX="flex "
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 FLEX=$ac_cv_prog_FLEX
5019 if test -n "$FLEX"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5021 $as_echo "$FLEX" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5028 if test "$FLEX" = ""; then
5029 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5031 # Extract the first word of "pngtopnm", so it can be a program name with args.
5032 set dummy pngtopnm; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$PNGTOPNM"; then
5039 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_PNGTOPNM="pngtopnm "
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5059 if test -n "$PNGTOPNM"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5061 $as_echo "$PNGTOPNM" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 if test "$PNGTOPNM" = ""; then
5069 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5071 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5072 set dummy ppmtoilbm; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$PPMTOILBM"; then
5079 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5099 if test -n "$PPMTOILBM"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5101 $as_echo "$PPMTOILBM" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 if test "$PPMTOILBM" = ""; then
5109 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5111 # Extract the first word of "sed", so it can be a program name with args.
5112 set dummy sed; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_SED+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$SED"; then
5119 ac_cv_prog_SED="$SED" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_SED="sed "
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5138 SED=$ac_cv_prog_SED
5139 if test -n "$SED"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5141 $as_echo "$SED" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 if test "$SED" = ""; then
5149 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5151 # Extract the first word of "chmod", so it can be a program name with args.
5152 set dummy chmod; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$CHMOD"; then
5159 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_CHMOD="chmod "
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 CHMOD=$ac_cv_prog_CHMOD
5179 if test -n "$CHMOD"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5181 $as_echo "$CHMOD" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 if test "$CHMOD" = ""; then
5189 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5196 if test -n "$PYTHON"; then
5197 # If the user set $PYTHON, use it and don't search something else.
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.2.1" >&5
5199 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5200 prog="import sys, string
5201 # split strings by '.' and convert to numeric. Append some zeros
5202 # because we need at least 4 digits for the hex conversion.
5203 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5204 minverhex = 0
5205 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5206 sys.exit(sys.hexversion < minverhex)"
5207 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5208 ($PYTHON -c "$prog") >&5 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213 $as_echo "yes" >&6; }
5214 else
5215 as_fn_error "too old" "$LINENO" 5
5217 am_display_PYTHON=$PYTHON
5218 else
5219 # Otherwise, try each interpreter until we find one that satisfies
5220 # VERSION.
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.2.1" >&5
5222 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5223 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5227 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
5228 test "$am_cv_pathless_PYTHON" = none && break
5229 prog="import sys, string
5230 # split strings by '.' and convert to numeric. Append some zeros
5231 # because we need at least 4 digits for the hex conversion.
5232 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5233 minverhex = 0
5234 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5235 sys.exit(sys.hexversion < minverhex)"
5236 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5237 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; then :
5241 break
5243 done
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5246 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5247 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5248 if test "$am_cv_pathless_PYTHON" = none; then
5249 PYTHON=:
5250 else
5251 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5252 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_path_PYTHON+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 case $PYTHON in
5259 [\\/]* | ?:[\\/]*)
5260 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5274 done
5275 done
5276 IFS=$as_save_IFS
5279 esac
5281 PYTHON=$ac_cv_path_PYTHON
5282 if test -n "$PYTHON"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5284 $as_echo "$PYTHON" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5292 am_display_PYTHON=$am_cv_pathless_PYTHON
5296 if test "$PYTHON" = :; then
5297 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5298 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5302 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5303 if test "${am_cv_python_version+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5309 $as_echo "$am_cv_python_version" >&6; }
5310 PYTHON_VERSION=$am_cv_python_version
5314 PYTHON_PREFIX='${prefix}'
5316 PYTHON_EXEC_PREFIX='${exec_prefix}'
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5321 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5322 if test "${am_cv_python_platform+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5328 $as_echo "$am_cv_python_platform" >&6; }
5329 PYTHON_PLATFORM=$am_cv_python_platform
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5335 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5336 if test "${am_cv_python_pythondir+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5340 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5343 $as_echo "$am_cv_python_pythondir" >&6; }
5344 pythondir=$am_cv_python_pythondir
5348 pkgpythondir=\${pythondir}/$PACKAGE
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5352 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5353 if test "${am_cv_python_pyexecdir+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5357 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5360 $as_echo "$am_cv_python_pyexecdir" >&6; }
5361 pyexecdir=$am_cv_python_pyexecdir
5365 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5373 FOR=for
5375 IF=if
5377 TEST=test
5379 CMP=cmp
5383 # Check for some includes for the X11 HIDD and the kernel
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388 if test "${ac_cv_path_GREP+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in grep ggrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5403 # Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5406 *GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5431 $ac_path_GREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5439 else
5440 ac_cv_path_GREP=$GREP
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445 $as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450 $as_echo_n "checking for egrep... " >&6; }
5451 if test "${ac_cv_path_EGREP+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_prog in egrep; do
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5469 # Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471 case `"$ac_path_EGREP" --version 2>&1` in
5472 *GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5493 done
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495 esac
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
5500 done
5501 IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 else
5506 ac_cv_path_EGREP=$EGREP
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512 $as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5517 $as_echo_n "checking for ANSI C header files... " >&6; }
5518 if test "${ac_cv_header_stdc+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <stdlib.h>
5524 #include <stdarg.h>
5525 #include <string.h>
5526 #include <float.h>
5529 main ()
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 ac_cv_header_stdc=yes
5538 else
5539 ac_cv_header_stdc=no
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 if test $ac_cv_header_stdc = yes; then
5544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #include <string.h>
5549 _ACEOF
5550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "memchr" >/dev/null 2>&1; then :
5553 else
5554 ac_cv_header_stdc=no
5556 rm -f conftest*
5560 if test $ac_cv_header_stdc = yes; then
5561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 #include <stdlib.h>
5566 _ACEOF
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 $EGREP "free" >/dev/null 2>&1; then :
5570 else
5571 ac_cv_header_stdc=no
5573 rm -f conftest*
5577 if test $ac_cv_header_stdc = yes; then
5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579 if test "$cross_compiling" = yes; then :
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <ctype.h>
5585 #include <stdlib.h>
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589 #else
5590 # define ISLOWER(c) \
5591 (('a' <= (c) && (c) <= 'i') \
5592 || ('j' <= (c) && (c) <= 'r') \
5593 || ('s' <= (c) && (c) <= 'z'))
5594 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5595 #endif
5597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5599 main ()
5601 int i;
5602 for (i = 0; i < 256; i++)
5603 if (XOR (islower (i), ISLOWER (i))
5604 || toupper (i) != TOUPPER (i))
5605 return 2;
5606 return 0;
5608 _ACEOF
5609 if ac_fn_c_try_run "$LINENO"; then :
5611 else
5612 ac_cv_header_stdc=no
5614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5615 conftest.$ac_objext conftest.beam conftest.$ac_ext
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5621 $as_echo "$ac_cv_header_stdc" >&6; }
5622 if test $ac_cv_header_stdc = yes; then
5624 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5630 inttypes.h stdint.h unistd.h
5631 do :
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5635 eval as_val=\$$as_ac_Header
5636 if test "x$as_val" = x""yes; then :
5637 cat >>confdefs.h <<_ACEOF
5638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639 _ACEOF
5643 done
5646 for ac_header in sys/ipc.h sys/shm.h \
5647 sys/mmap.h sys/mman.h sysexits.h \
5648 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5650 do :
5651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5652 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5653 eval as_val=\$$as_ac_Header
5654 if test "x$as_val" = x""yes; then :
5655 cat >>confdefs.h <<_ACEOF
5656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5657 _ACEOF
5661 done
5664 for ac_header in sys/mount.h
5665 do :
5666 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5668 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5669 cat >>confdefs.h <<_ACEOF
5670 #define HAVE_SYS_MOUNT_H 1
5671 _ACEOF
5675 done
5678 ac_header_dirent=no
5679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5680 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5682 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <$ac_hdr>
5692 main ()
5694 if ((DIR *) 0)
5695 return 0;
5697 return 0;
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 eval "$as_ac_Header=yes"
5702 else
5703 eval "$as_ac_Header=no"
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 eval ac_res=\$$as_ac_Header
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5709 $as_echo "$ac_res" >&6; }
5710 eval as_val=\$$as_ac_Header
5711 if test "x$as_val" = x""yes; then :
5712 cat >>confdefs.h <<_ACEOF
5713 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5714 _ACEOF
5716 ac_header_dirent=$ac_hdr; break
5719 done
5720 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5721 if test $ac_header_dirent = dirent.h; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5723 $as_echo_n "checking for library containing opendir... " >&6; }
5724 if test "${ac_cv_search_opendir+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 ac_func_search_save_LIBS=$LIBS
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5731 /* Override any GCC internal prototype to avoid an error.
5732 Use char because int might match the return type of a GCC
5733 builtin and then its argument prototype would still apply. */
5734 #ifdef __cplusplus
5735 extern "C"
5736 #endif
5737 char opendir ();
5739 main ()
5741 return opendir ();
5743 return 0;
5745 _ACEOF
5746 for ac_lib in '' dir; do
5747 if test -z "$ac_lib"; then
5748 ac_res="none required"
5749 else
5750 ac_res=-l$ac_lib
5751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_search_opendir=$ac_res
5756 rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext
5758 if test "${ac_cv_search_opendir+set}" = set; then :
5759 break
5761 done
5762 if test "${ac_cv_search_opendir+set}" = set; then :
5764 else
5765 ac_cv_search_opendir=no
5767 rm conftest.$ac_ext
5768 LIBS=$ac_func_search_save_LIBS
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5771 $as_echo "$ac_cv_search_opendir" >&6; }
5772 ac_res=$ac_cv_search_opendir
5773 if test "$ac_res" != no; then :
5774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5780 $as_echo_n "checking for library containing opendir... " >&6; }
5781 if test "${ac_cv_search_opendir+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 ac_func_search_save_LIBS=$LIBS
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5791 #ifdef __cplusplus
5792 extern "C"
5793 #endif
5794 char opendir ();
5796 main ()
5798 return opendir ();
5800 return 0;
5802 _ACEOF
5803 for ac_lib in '' x; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5806 else
5807 ac_res=-l$ac_lib
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_search_opendir=$ac_res
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext
5815 if test "${ac_cv_search_opendir+set}" = set; then :
5816 break
5818 done
5819 if test "${ac_cv_search_opendir+set}" = set; then :
5821 else
5822 ac_cv_search_opendir=no
5824 rm conftest.$ac_ext
5825 LIBS=$ac_func_search_save_LIBS
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5828 $as_echo "$ac_cv_search_opendir" >&6; }
5829 ac_res=$ac_cv_search_opendir
5830 if test "$ac_res" != no; then :
5831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5838 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5839 if test "${ac_cv_header_stat_broken+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include <sys/types.h>
5845 #include <sys/stat.h>
5847 #if defined S_ISBLK && defined S_IFDIR
5848 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5849 #endif
5851 #if defined S_ISBLK && defined S_IFCHR
5852 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5853 #endif
5855 #if defined S_ISLNK && defined S_IFREG
5856 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5857 #endif
5859 #if defined S_ISSOCK && defined S_IFREG
5860 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5861 #endif
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"; then :
5865 ac_cv_header_stat_broken=no
5866 else
5867 ac_cv_header_stat_broken=yes
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5872 $as_echo "$ac_cv_header_stat_broken" >&6; }
5873 if test $ac_cv_header_stat_broken = yes; then
5875 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5880 $as_echo_n "checking for ANSI C header files... " >&6; }
5881 if test "${ac_cv_header_stdc+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <stdlib.h>
5887 #include <stdarg.h>
5888 #include <string.h>
5889 #include <float.h>
5892 main ()
5896 return 0;
5898 _ACEOF
5899 if ac_fn_c_try_compile "$LINENO"; then :
5900 ac_cv_header_stdc=yes
5901 else
5902 ac_cv_header_stdc=no
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 if test $ac_cv_header_stdc = yes; then
5907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 #include <string.h>
5912 _ACEOF
5913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5914 $EGREP "memchr" >/dev/null 2>&1; then :
5916 else
5917 ac_cv_header_stdc=no
5919 rm -f conftest*
5923 if test $ac_cv_header_stdc = yes; then
5924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include <stdlib.h>
5929 _ACEOF
5930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5931 $EGREP "free" >/dev/null 2>&1; then :
5933 else
5934 ac_cv_header_stdc=no
5936 rm -f conftest*
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then :
5944 else
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 #include <ctype.h>
5948 #include <stdlib.h>
5949 #if ((' ' & 0x0FF) == 0x020)
5950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952 #else
5953 # define ISLOWER(c) \
5954 (('a' <= (c) && (c) <= 'i') \
5955 || ('j' <= (c) && (c) <= 'r') \
5956 || ('s' <= (c) && (c) <= 'z'))
5957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #endif
5960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5962 main ()
5964 int i;
5965 for (i = 0; i < 256; i++)
5966 if (XOR (islower (i), ISLOWER (i))
5967 || toupper (i) != TOUPPER (i))
5968 return 2;
5969 return 0;
5971 _ACEOF
5972 if ac_fn_c_try_run "$LINENO"; then :
5974 else
5975 ac_cv_header_stdc=no
5977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5978 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5984 $as_echo "$ac_cv_header_stdc" >&6; }
5985 if test $ac_cv_header_stdc = yes; then
5987 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5992 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5993 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 #include <sys/types.h>
5999 #include <sys/wait.h>
6000 #ifndef WEXITSTATUS
6001 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6002 #endif
6003 #ifndef WIFEXITED
6004 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6005 #endif
6008 main ()
6010 int s;
6011 wait (&s);
6012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6014 return 0;
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018 ac_cv_header_sys_wait_h=yes
6019 else
6020 ac_cv_header_sys_wait_h=no
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6025 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6026 if test $ac_cv_header_sys_wait_h = yes; then
6028 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6033 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6034 if test "${ac_cv_header_time+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <sys/types.h>
6040 #include <sys/time.h>
6041 #include <time.h>
6044 main ()
6046 if ((struct tm *) 0)
6047 return 0;
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_header_time=yes
6054 else
6055 ac_cv_header_time=no
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6060 $as_echo "$ac_cv_header_time" >&6; }
6061 if test $ac_cv_header_time = yes; then
6063 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6067 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6068 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6072 _ACEOF
6075 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6080 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6081 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6085 _ACEOF
6088 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6090 else
6091 case " $LIBOBJS " in
6092 *" fileblocks.$ac_objext "* ) ;;
6093 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6095 esac
6100 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6101 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6103 cat >>confdefs.h <<_ACEOF
6104 #define HAVE_STRUCT_STAT_ST_RDEV 1
6105 _ACEOF
6108 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6114 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6115 if test "${ac_cv_struct_tm+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <sys/types.h>
6121 #include <time.h>
6124 main ()
6126 struct tm tm;
6127 int *p = &tm.tm_sec;
6128 return !p;
6130 return 0;
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"; then :
6134 ac_cv_struct_tm=time.h
6135 else
6136 ac_cv_struct_tm=sys/time.h
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6141 $as_echo "$ac_cv_struct_tm" >&6; }
6142 if test $ac_cv_struct_tm = sys/time.h; then
6144 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6148 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6149 #include <$ac_cv_struct_tm>
6152 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6154 cat >>confdefs.h <<_ACEOF
6155 #define HAVE_STRUCT_TM_TM_ZONE 1
6156 _ACEOF
6161 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6163 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6165 else
6166 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6168 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6169 ac_have_decl=1
6170 else
6171 ac_have_decl=0
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_DECL_TZNAME $ac_have_decl
6176 _ACEOF
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6179 $as_echo_n "checking for tzname... " >&6; }
6180 if test "${ac_cv_var_tzname+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <time.h>
6186 #if !HAVE_DECL_TZNAME
6187 extern char *tzname[];
6188 #endif
6191 main ()
6193 return tzname[0][0];
6195 return 0;
6197 _ACEOF
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 ac_cv_var_tzname=yes
6200 else
6201 ac_cv_var_tzname=no
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6207 $as_echo "$ac_cv_var_tzname" >&6; }
6208 if test $ac_cv_var_tzname = yes; then
6210 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6215 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6216 if test "x$ac_cv_type_off_t" = x""yes; then :
6218 else
6220 cat >>confdefs.h <<_ACEOF
6221 #define off_t long int
6222 _ACEOF
6226 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6227 if test "x$ac_cv_type_pid_t" = x""yes; then :
6229 else
6231 cat >>confdefs.h <<_ACEOF
6232 #define pid_t int
6233 _ACEOF
6237 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_size_t" = x""yes; then :
6240 else
6242 cat >>confdefs.h <<_ACEOF
6243 #define size_t unsigned int
6244 _ACEOF
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6249 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6250 if test "${ac_cv_type_uid_t+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 #include <sys/types.h>
6257 _ACEOF
6258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 $EGREP "uid_t" >/dev/null 2>&1; then :
6260 ac_cv_type_uid_t=yes
6261 else
6262 ac_cv_type_uid_t=no
6264 rm -f conftest*
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6268 $as_echo "$ac_cv_type_uid_t" >&6; }
6269 if test $ac_cv_type_uid_t = no; then
6271 $as_echo "#define uid_t int" >>confdefs.h
6274 $as_echo "#define gid_t int" >>confdefs.h
6279 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6280 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6284 _ACEOF
6290 # Look for some functions
6291 for ac_func in getpagesize kqueue statfs statvfs \
6292 clone kse_create rfork_thread thr_create sa_register \
6293 getcontext makecontext setcontext sigaltstack swapcontext
6294 do :
6295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6297 eval as_val=\$$as_ac_var
6298 if test "x$as_val" = x""yes; then :
6299 cat >>confdefs.h <<_ACEOF
6300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6301 _ACEOF
6304 done
6310 for ac_header in $ac_header_list
6311 do :
6312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6315 eval as_val=\$$as_ac_Header
6316 if test "x$as_val" = x""yes; then :
6317 cat >>confdefs.h <<_ACEOF
6318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6319 _ACEOF
6323 done
6332 for ac_func in getpagesize
6333 do :
6334 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6335 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6336 cat >>confdefs.h <<_ACEOF
6337 #define HAVE_GETPAGESIZE 1
6338 _ACEOF
6341 done
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6344 $as_echo_n "checking for working mmap... " >&6; }
6345 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test "$cross_compiling" = yes; then :
6349 ac_cv_func_mmap_fixed_mapped=no
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6354 /* malloc might have been renamed as rpl_malloc. */
6355 #undef malloc
6357 /* Thanks to Mike Haertel and Jim Avera for this test.
6358 Here is a matrix of mmap possibilities:
6359 mmap private not fixed
6360 mmap private fixed at somewhere currently unmapped
6361 mmap private fixed at somewhere already mapped
6362 mmap shared not fixed
6363 mmap shared fixed at somewhere currently unmapped
6364 mmap shared fixed at somewhere already mapped
6365 For private mappings, we should verify that changes cannot be read()
6366 back from the file, nor mmap's back from the file at a different
6367 address. (There have been systems where private was not correctly
6368 implemented like the infamous i386 svr4.0, and systems where the
6369 VM page cache was not coherent with the file system buffer cache
6370 like early versions of FreeBSD and possibly contemporary NetBSD.)
6371 For shared mappings, we should conversely verify that changes get
6372 propagated back to all the places they're supposed to be.
6374 Grep wants private fixed already mapped.
6375 The main things grep needs to know about mmap are:
6376 * does it exist and is it safe to write into the mmap'd area
6377 * how to use it (BSD variants) */
6379 #include <fcntl.h>
6380 #include <sys/mman.h>
6382 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6383 char *malloc ();
6384 #endif
6386 /* This mess was copied from the GNU getpagesize.h. */
6387 #ifndef HAVE_GETPAGESIZE
6388 # ifdef _SC_PAGESIZE
6389 # define getpagesize() sysconf(_SC_PAGESIZE)
6390 # else /* no _SC_PAGESIZE */
6391 # ifdef HAVE_SYS_PARAM_H
6392 # include <sys/param.h>
6393 # ifdef EXEC_PAGESIZE
6394 # define getpagesize() EXEC_PAGESIZE
6395 # else /* no EXEC_PAGESIZE */
6396 # ifdef NBPG
6397 # define getpagesize() NBPG * CLSIZE
6398 # ifndef CLSIZE
6399 # define CLSIZE 1
6400 # endif /* no CLSIZE */
6401 # else /* no NBPG */
6402 # ifdef NBPC
6403 # define getpagesize() NBPC
6404 # else /* no NBPC */
6405 # ifdef PAGESIZE
6406 # define getpagesize() PAGESIZE
6407 # endif /* PAGESIZE */
6408 # endif /* no NBPC */
6409 # endif /* no NBPG */
6410 # endif /* no EXEC_PAGESIZE */
6411 # else /* no HAVE_SYS_PARAM_H */
6412 # define getpagesize() 8192 /* punt totally */
6413 # endif /* no HAVE_SYS_PARAM_H */
6414 # endif /* no _SC_PAGESIZE */
6416 #endif /* no HAVE_GETPAGESIZE */
6419 main ()
6421 char *data, *data2, *data3;
6422 const char *cdata2;
6423 int i, pagesize;
6424 int fd, fd2;
6426 pagesize = getpagesize ();
6428 /* First, make a file with some known garbage in it. */
6429 data = (char *) malloc (pagesize);
6430 if (!data)
6431 return 1;
6432 for (i = 0; i < pagesize; ++i)
6433 *(data + i) = rand ();
6434 umask (0);
6435 fd = creat ("conftest.mmap", 0600);
6436 if (fd < 0)
6437 return 2;
6438 if (write (fd, data, pagesize) != pagesize)
6439 return 3;
6440 close (fd);
6442 /* Next, check that the tail of a page is zero-filled. File must have
6443 non-zero length, otherwise we risk SIGBUS for entire page. */
6444 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6445 if (fd2 < 0)
6446 return 4;
6447 cdata2 = "";
6448 if (write (fd2, cdata2, 1) != 1)
6449 return 5;
6450 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6451 if (data2 == MAP_FAILED)
6452 return 6;
6453 for (i = 0; i < pagesize; ++i)
6454 if (*(data2 + i))
6455 return 7;
6456 close (fd2);
6457 if (munmap (data2, pagesize))
6458 return 8;
6460 /* Next, try to mmap the file at a fixed address which already has
6461 something else allocated at it. If we can, also make sure that
6462 we see the same garbage. */
6463 fd = open ("conftest.mmap", O_RDWR);
6464 if (fd < 0)
6465 return 9;
6466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6468 return 10;
6469 for (i = 0; i < pagesize; ++i)
6470 if (*(data + i) != *(data2 + i))
6471 return 11;
6473 /* Finally, make sure that changes to the mapped area do not
6474 percolate back to the file as seen by read(). (This is a bug on
6475 some variants of i386 svr4.0.) */
6476 for (i = 0; i < pagesize; ++i)
6477 *(data2 + i) = *(data2 + i) + 1;
6478 data3 = (char *) malloc (pagesize);
6479 if (!data3)
6480 return 12;
6481 if (read (fd, data3, pagesize) != pagesize)
6482 return 13;
6483 for (i = 0; i < pagesize; ++i)
6484 if (*(data + i) != *(data3 + i))
6485 return 14;
6486 close (fd);
6487 return 0;
6489 _ACEOF
6490 if ac_fn_c_try_run "$LINENO"; then :
6491 ac_cv_func_mmap_fixed_mapped=yes
6492 else
6493 ac_cv_func_mmap_fixed_mapped=no
6495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6496 conftest.$ac_objext conftest.beam conftest.$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6501 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6504 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6507 rm -f conftest.mmap conftest.txt
6512 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6513 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6514 aros_config_ldflags=""
6516 aros_shared_default=yes
6518 aros_shared_cflags="-fPIC"
6519 aros_shared_aflags=""
6520 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6521 aros_kernel_ldflags="-Wl,-rpath,./lib"
6523 aros_target_ar_flags="cr"
6524 aros_target_nm_flags="-C -ul"
6525 aros_target_strip_flags="--strip-unneeded -R.comment"
6527 aros_compiler_libs=
6528 aros_arch_libs=
6530 aros_target_genmap="-Wl,-Map -Xlinker"
6532 # Native flavour stuff
6533 aros_serial_debug="0"
6535 # Palm native flavour stuff
6536 aros_palm_debug_hack="0"
6538 # Unix flavour stuff
6539 aros_nesting_supervisor="0"
6541 # Collect-aros stuff: "-ius" to ignore undefined symbols
6542 ignore_undefined_symbols=""
6544 #-----------------------------------------------------------------------------
6547 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6548 # it switched on by default, and we use the host compiler, so it compiles AROS
6549 # code with this enabled resulting in link failures as we don't have support
6550 # for it.
6552 # We use two methods to disable it. For the host compiler (used to compile
6553 # some hosted modules), we test to see if the compiler supports stack
6554 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6555 # work on all platforms.
6557 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6558 # (this is done unconditionally, as it should have no effect on compilers
6559 # without the stack protection feature). This may be specific to the way that
6560 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6561 # strong enough to disable it in a generic way though, so we'll live with it
6562 # until another vendor ships GCC with it enabled in a different way, and deal
6563 # with it then.
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6567 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6568 save_cflags="$CFLAGS"
6569 CFLAGS="$CFLAGS -fno-stack-protector"
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6574 main ()
6578 return 0;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 use_no_stack_protector="yes"
6583 else
6584 use_no_stack_protector="no"
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6588 $as_echo "$use_no_stack_protector" >&6; }
6589 if test "x-$use_no_stack_protector" = "x-yes" ; then
6590 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6592 CFLAGS="$save_cflags"
6594 #-----------------------------------------------------------------------------
6596 # Disable pointer-signedness warnings if the compiler recognises the option
6597 # (this only works for the host compiler at the moment)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6600 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6601 save_cflags="$CFLAGS"
6602 CFLAGS="$CFLAGS -Wno-pointer-sign"
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6607 main ()
6611 return 0;
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 use_no_sign_warning="yes"
6616 else
6617 use_no_sign_warning="no"
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6621 $as_echo "$use_no_sign_warning" >&6; }
6622 if test "x-$use_no_sign_warning" = "x-yes" ; then
6623 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6625 CFLAGS="$save_cflags"
6627 #-----------------------------------------------------------------------------
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6630 $as_echo_n "checking for type of build... " >&6; }
6631 # Check whether --enable-build_type was given.
6632 if test "${enable_build_type+set}" = set; then :
6633 enableval=$enable_build_type; build_type=$enableval
6634 else
6635 build_type="personal"
6639 if test "$build_type" = "nightly"; then
6640 build_type_string="NIGHTLY"
6641 elif test "$build_type" = "snapshot"; then
6642 build_type_string="SNAPSHOT"
6643 elif test "$build_type" = "milestone"; then
6644 build_type_string="MILESTONE"
6645 elif test "$build_type" = "release"; then
6646 build_type_string="RELEASE"
6647 else
6648 build_type_string="PERSONAL"
6649 build_type="personal"
6652 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6655 $as_echo "$build_type" >&6; }
6657 #-----------------------------------------------------------------------------
6658 all_debug_types="messages stack mungwall modules symbols"
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6661 $as_echo_n "checking which debug types to enable... " >&6; }
6662 # Check whether --enable-debug was given.
6663 if test "${enable_debug+set}" = set; then :
6664 enableval=$enable_debug; debug="$enableval"
6665 else
6666 debug=""
6670 if test "$debug" = "" -o "$debug" = "no"; then
6671 debug="none"
6672 elif test "$debug" = "yes"; then
6673 debug="all"
6676 if test "$debug" = "all" ; then
6677 debug=$all_debug_types
6678 for d in $all_debug_types; do
6679 export aros_${d}_debug="1"
6680 done
6681 else
6682 for d in $all_debug_types; do
6683 export aros_${d}_debug="0"
6684 done
6687 if test "$debug" != "none"; then
6688 debug=`echo $debug | sed s/,/\ /g`
6689 for d in $debug; do
6690 found="0"
6691 for d2 in $all_debug_types; do
6692 if test "$d2" = "$d"; then
6693 found="1"
6694 break
6696 done
6697 if test "$found" = "0"; then
6698 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6700 export aros_${d}_debug="1"
6701 done
6702 aros_debug="yes"
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6705 $as_echo "$debug" >&6; }
6707 if test "$aros_messages_debug" = "1"; then
6708 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6709 else
6710 aros_messages_debug=""
6712 if test "$aros_symbols_debug" = "1"; then
6713 aros_symbols_debug="-g"
6714 else
6715 aros_symbols_debug=""
6718 # These are the flags to pass when compiling debugged programs
6719 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6720 aros_debug_aflags=""
6721 aros_debug_ldflags="$aros_symbols_debug"
6723 aros_crosstools="no"
6725 #-----------------------------------------------------------------------------
6726 # Checking if we should build crosstools..
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6728 $as_echo_n "checking whether to build crosstools... " >&6; }
6729 # Check whether --enable-crosstools was given.
6730 if test "${enable_crosstools+set}" = set; then :
6731 enableval=$enable_crosstools; crosstools="$enableval"
6732 else
6733 crosstools="no"
6736 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6738 $as_echo "yes" >&6; }
6739 aros_crosstools="yes"
6740 else
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6745 #-----------------------------------------------------------------------------
6746 # Checking for distcc and ccache.
6748 # Always apply the transforms in this particular order. Basically you should
6749 # always run 'ccache distcc compiler' in that order for the best performance.
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6752 $as_echo_n "checking whether to enable distcc... " >&6; }
6753 # Check whether --enable-distcc was given.
6754 if test "${enable_distcc+set}" = set; then :
6755 enableval=$enable_distcc; distcc="$enableval"
6756 else
6757 distcc="no"
6760 if test "$distcc" != "" -a "$distcc" != "no"; then
6761 # AC_CHECK_PROG will print out the result in this case
6762 # Extract the first word of "distcc", so it can be a program name with args.
6763 set dummy distcc; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_path_DISTCC+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 case $DISTCC in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6789 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6791 esac
6793 DISTCC=$ac_cv_path_DISTCC
6794 if test -n "$DISTCC"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6796 $as_echo "$DISTCC" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6809 $as_echo_n "checking whether to enable ccache... " >&6; }
6810 # Check whether --enable-ccache was given.
6811 if test "${enable_ccache+set}" = set; then :
6812 enableval=$enable_ccache; ccache="$enableval"
6813 else
6814 ccache="no"
6817 if test "$ccache" != "" -a "$ccache" != "no"; then
6818 # AC_CHECK_PROG will print out the result in this case
6819 # Extract the first word of "ccache", so it can be a program name with args.
6820 set dummy ccache; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$CCACHE"; then
6827 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_CCACHE="ccache"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6840 done
6841 done
6842 IFS=$as_save_IFS
6846 CCACHE=$ac_cv_prog_CCACHE
6847 if test -n "$CCACHE"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6849 $as_echo "$CCACHE" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6861 #-----------------------------------------------------------------------------
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6863 $as_echo_n "checking what optimization flags to use... " >&6; }
6865 # Check whether --with-optimization was given.
6866 if test "${with_optimization+set}" = set; then :
6867 withval=$with_optimization; optimization="$withval"
6868 else
6869 optimization="unknown"
6872 if test "$optimization" = "unknown"; then
6873 if test "$debug" != "none"; then
6874 optimization="-O0"
6875 else
6876 optimization="-O2"
6879 aros_config_cflags="$aros_config_cflags $optimization"
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6881 $as_echo "$optimization" >&6; }
6883 #-----------------------------------------------------------------------------
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6885 $as_echo_n "checking what target variant to enable... " >&6; }
6886 # Check whether --enable-target_variant was given.
6887 if test "${enable_target_variant+set}" = set; then :
6888 enableval=$enable_target_variant; target_variant=$enableval
6889 else
6890 target_variant="none"
6893 if test "$target_variant" = "none"; then
6894 aros_target_variant=""
6895 aros_target_suffix=""
6896 else
6897 aros_target_variant="$target_variant"
6898 aros_target_suffix="-$target_variant"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6901 $as_echo "$enableval" >&6; }
6903 target_bootloader="none"
6905 #-----------------------------------------------------------------------------
6906 # This is the target configuration switch.
6907 case "$target_os" in
6908 linux*)
6909 aros_target_arch="linux"
6910 case "$target_cpu" in
6911 *m68k*)
6912 aros_target_cpu="m68k"
6913 aros_object_format="m68kelf"
6914 aros_flavour="emulcompat"
6915 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
6916 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
6917 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
6918 gcc_target_cpu="mc68000"
6920 *i?86*)
6921 aros_target_cpu="i386"
6922 aros_object_format="elf_i386"
6923 aros_flavour="emulation"
6924 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
6925 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
6926 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
6927 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
6928 aros_config_ldflags="-m32 -march=i486"
6929 aros_kernel_ldflags="-melf_i386"
6930 aros_default_wbdepth=8
6931 gcc_target_cpu="i386"
6933 *x86_64*)
6934 aros_target_cpu="x86_64"
6935 aros_object_format="elf_x86_64"
6936 aros_flavour="emulation"
6937 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
6938 aros_config_cflags="$aros_config_cflags -mno-red-zone"
6939 aros_default_wbdepth=8
6940 gcc_target_cpu="x86_64"
6942 *powerpc*)
6943 aros_target_cpu="ppc"
6944 aros_object_format="elf32ppc"
6945 aros_flavour="emulation"
6946 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6947 aros_default_wbdepth=8
6948 gcc_target_cpu="ppc"
6950 # TODO
6951 # Same as powerpc, but I need this for the nightly build to work again.
6952 # Actually, the nightly should be made working with powerpc target.
6953 # That just was too much work for the moment, another week or two.
6954 *ppc*)
6955 aros_target_cpu="ppc"
6956 aros_object_format="elf32ppc"
6957 aros_flavour="emulation"
6958 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6959 aros_default_wbdepth=8
6960 gcc_target_cpu="ppc"
6963 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
6965 esac
6969 aros_target_arch="pc"
6970 aros_shared_default="no"
6971 target_bootloader="grub2"
6972 case "$target_cpu" in
6973 *i?86*)
6974 aros_target_cpu="i386"
6977 if test "$aros_object_format" = "" ; then
6978 aros_object_format="elf_i386"
6980 aros_flavour="standalone"
6981 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
6982 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
6983 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
6984 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
6985 aros_config_ldflags="-m32 -march=i486"
6986 aros_kernel_ldflags="-melf_i386"
6987 aros_default_wbwidth=640
6988 aros_default_wbheight=480
6989 gcc_target_cpu="i386"
6991 *x86_64*)
6992 aros_target_cpu="x86_64"
6993 aros_serial_debug=1
6994 if test "$aros_object_format" = "" ; then
6995 aros_object_format="elf_x86_64"
6997 aros_flavour="standalone"
6998 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
6999 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7000 aros_kernel_ldflags=""
7001 aros_default_wbwidth=640
7002 aros_default_wbheight=480
7003 gcc_target_cpu="x86_64"
7006 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7008 esac
7011 prep)
7012 aros_target_arch="prep"
7013 aros_shared_default="no"
7014 aros_target_cpu="ppc"
7015 aros_object_format="elf32ppc"
7016 aros_flavour="ppcnative"
7017 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7018 aros_kernel_ldflags=""
7019 aros_default_wbwidth=640
7020 aros_default_wbheight=480
7021 gcc_target_cpu="ppc"
7024 freebsd*)
7025 aros_target_arch="freebsd"
7026 aros_target_cpu="i386"
7027 aros_flavour="emulation"
7028 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7029 gcc_target_cpu="i386"
7031 aros_target_strip_flags="-x"
7034 darwin*)
7035 aros_target_arch="darwin"
7036 aros_flavour="emulation"
7037 need_dlopen="no"
7038 case "$target_cpu" in
7039 *i?86*)
7040 aros_target_cpu="i386"
7041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7042 gcc_target_cpu="i386"
7043 aros_object_format="elf_i386"
7044 aros_target_strip_flags="-x"
7047 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7049 esac
7052 dragonfly*)
7053 aros_target_arch="dragonfly"
7054 aros_flavour="emulation"
7055 case "$target_cpu" in
7056 *i?86*)
7057 aros_target_cpu="i386"
7058 aros_object_format="elf_i386"
7059 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7061 *x86_64*)
7062 aros_target_cpu="x86_64"
7063 aros_object_format="elf_x86_64"
7064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7067 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7069 esac
7072 netbsd*)
7073 aros_target_arch="netbsd"
7074 case "$target_cpu" in
7075 *m68k*)
7076 aros_target_cpu="m68k"
7077 aros_object_format="m68kelf"
7078 aros_flavour="emulcompat"
7079 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7080 gcc_target_cpu="mc68000"
7082 *i?86*)
7083 aros_target_cpu="i386"
7084 aros_object_format="elf_i386"
7085 aros_flavour="emulation"
7086 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7087 aros_default_wbdepth=8
7088 gcc_target_cpu="i386"
7091 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7093 esac
7094 aros_target_genmap="-Wl,-M -Xlinker >"
7095 aros_flavour="emulation"
7096 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7099 openbsd*)
7100 aros_target_arch="openbsd"
7101 case "$target_cpu" in
7102 *i?86*)
7103 aros_target_cpu="i386"
7104 aros_object_format="elf_i386"
7105 aros_flavour="emulation"
7106 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7107 gcc_target_cpu="i386"
7110 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7112 esac
7113 aros_target_genmap="-Wl,-M -Xlinker >"
7114 aros_target_nm_flags="-u"
7115 aros_flavour="emulation"
7118 solaris*)
7119 aros_target_arch="solaris"
7120 case "$target_cpu" in
7121 *i?86*)
7122 aros_target_cpu="i386"
7123 aros_object_format="elf_i386"
7124 aros_flavour="emulation"
7125 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7126 aros_default_wbdepth=8
7127 gcc_target_cpu="i386"
7129 *sparc*)
7130 aros_target_cpu="sparc"
7131 aros_object_format="elf_sparc"
7132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7133 gcc_target_cpu="sparc"
7136 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7138 esac
7139 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7140 aros_flavour="emulation"
7143 morphos*)
7144 aros_target_arch="morphos"
7145 aros_shared_default="no"
7146 aros_target_cpu="ppc"
7147 aros_object_format="elf_ppc"
7148 aros_flavour="nativecompat"
7149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7150 gcc_target_cpu="ppc"
7153 sam440)
7154 aros_target_arch="sam440"
7155 aros_shared_default="no"
7156 aros_target_cpu="ppc"
7157 aros_object_format="elf32ppc"
7158 aros_flavour="ppcnative"
7159 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7160 aros_kernel_ldflags=""
7161 aros_default_wbwidth=1024
7162 aros_default_wbheight=768
7163 aros_default_wbdepth=24
7164 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7165 gcc_target_cpu="powerpc"
7168 efika)
7169 aros_target_arch="efika"
7170 aros_shared_default="no"
7171 aros_target_cpu="arm"
7172 aros_object_format="armelf_linux_eabi"
7173 aros_flavour="standalone"
7174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7175 aros_kernel_ldflags=""
7176 aros_default_wbwidth=1024
7177 aros_default_wbheight=600
7178 aros_arch_libs="-laeabi"
7179 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7180 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7183 chrp)
7184 aros_target_arch="chrp"
7185 aros_shared_default="no"
7186 aros_target_cpu="ppc"
7187 aros_object_format="elf32ppc"
7188 aros_flavour="ppcnative"
7189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7190 aros_kernel_ldflags=""
7191 aros_default_wbwidth=640
7192 aros_default_wbheight=480
7193 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7194 gcc_target_cpu="powerpc"
7195 case "$aros_target_variant" in
7196 efika)
7197 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7199 esac
7202 amiga*)
7203 aros_target_arch="amiga"
7204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7205 aros_shared_default="no"
7207 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7209 case "$target_cpu" in
7210 *m68k*)
7211 aros_target_cpu="m68k"
7212 aros_object_format="m68kelf"
7213 aros_flavour="nativecompat"
7214 gcc_target_cpu="mc68000"
7216 *ppc*)
7217 aros_cpu="ppc"
7218 aros_flavour="native"
7219 gcc_target_cpu="ppc"
7222 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7224 esac
7227 mingw*)
7228 aros_target_arch="mingw32"
7229 aros_shared_default="no"
7230 aros_flavour="emulation"
7231 aros_shared_cflags=""
7232 need_dlopen="no"
7233 rescomp="windres"
7234 case "$target_cpu" in
7235 *i?86*)
7236 aros_target_cpu="i386"
7237 aros_object_format="elf_i386"
7238 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7239 aros_default_wbdepth=8
7240 gcc_target_cpu="i386"
7241 aros_target_cc="i386-aros-gcc"
7242 aros_target_ld="i386-aros-ld"
7243 aros_target_as="i386-aros-as"
7244 aros_target_ar="i386-aros-ar"
7245 aros_target_ranlib="i386-aros-ranlib"
7246 aros_target_nm="i386-aros-nm"
7247 aros_target_strip="i386-aros-strip"
7248 aros_target_objcopy="i386-aros-objcopy"
7249 aros_target_objdump="i386-aros-objdump"
7250 target_tool_prefix="i386-mingw32-"
7252 *x86_64*)
7253 aros_target_cpu="x86_64"
7254 aros_object_format="elf_x86_64"
7255 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7256 aros_default_wbdepth=8
7257 gcc_target_cpu="x86_64"
7258 aros_target_cc="x86_64-aros-gcc"
7259 aros_target_ld="x86_64-aros-ld"
7260 aros_target_as="x86_64-aros-as"
7261 aros_target_ar="x86_64-aros-ar"
7262 aros_target_ranlib="x86_64-aros-ranlib"
7263 aros_target_nm="x86_64-aros-nm"
7264 aros_target_strip="x86_64-aros-strip"
7265 aros_target_objcopy="x86_64-aros-objcopy"
7266 aros_target_objdump="x86_64-aros-objdump"
7267 target_tool_prefix="x86_64-w64-mingw32-"
7269 *arm*)
7270 aros_target_cpu="arm"
7271 aros_object_format="armelf_linux_eabi"
7272 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7273 aros_default_wbdepth=8
7274 gcc_target_cpu="arm"
7275 aros_target_cc="arm-elf-gcc"
7276 aros_target_ld="arm-elf-ld"
7277 aros_target_as="arm-elf-as"
7278 aros_target_ar="arm-elf-ar"
7279 aros_target_ranlib="arm-elf-ranlib"
7280 aros_target_nm="arm-elf-nm"
7281 aros_target_strip="arm-elf-strip"
7282 aros_target_objcopy="arm-elf-objcopy"
7283 aros_target_objdump="arm-elf-objdump"
7284 target_tool_prefix="arm-mingw32ce-"
7285 aros_default_wbwidth=160
7286 aros_default_wbheight=160
7289 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7291 esac
7292 if test $host_os = "cygwin"; then
7293 aros_kernel_cflags="-mno-cygwin"
7296 pp*)
7297 aros_target_arch="pp"
7298 aros_shared_default="no"
7299 case "$target_cpu" in
7300 *m68k*)
7301 aros_target_cpu="m68k"
7302 aros_object_format="m68kelf"
7303 aros_flavour="palmnative"
7304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7305 aros_default_wbwidth=160
7306 aros_default_wbheight=160
7307 aros_default_wbdepth=1
7308 aros_target_ar_flags="cru"
7309 aros_compiler_libs="-lgcc1"
7310 aros_shared_default=no
7311 aros_shared_cflags="-fpic"
7312 aros_shared_aflags=""
7313 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7314 aros_kernel_ldflags="-Wl,-rpath,./lib"
7315 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7316 aros_debug_aflags=""
7317 aros_debug_ldflags="$aros_symbols_debug"
7318 aros_mungwall_debug="0"
7319 aros_modules_debug="0"
7320 gcc_target_cpu="mc68000"
7321 ignore_undefined_symbols="-ius"
7324 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7326 esac
7329 mac*)
7330 aros_target_arch="mac"
7331 aros_shared_default="no"
7332 case "$target_cpu" in
7333 *m68k*)
7334 aros_target_cpu="m68k"
7335 aros_object_format="m68kelf"
7336 aros_flavour="mac68knative"
7337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7338 aros_default_wbwidth=512
7339 aros_default_wbheight=384
7340 aros_default_wbdepth=8
7341 aros_target_ar_flags="cru"
7342 aros_compiler_libs="-lgcc1"
7343 aros_shared_default=no
7344 aros_shared_cflags="-fpic"
7345 aros_shared_aflags=""
7346 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7347 aros_kernel_ldflags="-Wl,-rpath,./lib"
7348 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7349 aros_debug_aflags=""
7350 aros_debug_ldflags="$aros_symbols_debug"
7351 aros_mungwall_debug="0"
7352 aros_modules_debug="0"
7353 gcc_target_cpu="mc68000"
7354 ignore_undefined_symbols="-ius"
7357 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7359 esac
7363 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7365 esac
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7368 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7370 # Check whether --with-portssources was given.
7371 if test "${with_portssources+set}" = set; then :
7372 withval=$with_portssources; with_portssrcdir=$withval
7373 else
7374 with_portssrcdir="default"
7377 if test "$with_portssrcdir" = "default"; then
7378 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7379 else
7380 AROS_PORTSSRCDIR="$with_portssrcdir"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7383 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7386 $as_echo_n "checking which bootloader to use... " >&6; }
7388 # Check whether --with-bootloader was given.
7389 if test "${with_bootloader+set}" = set; then :
7390 withval=$with_bootloader; target_bootloader=$withval
7391 else
7392 target_bootloader=$target_bootloader
7395 if test "$target_bootloader" = "none"; then
7396 aros_target_bootloader=""
7397 else
7398 aros_target_bootloader="$target_bootloader"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7401 $as_echo "$target_bootloader" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7404 $as_echo_n "checking which icon-set to use... " >&6; }
7406 # Check whether --with-iconset was given.
7407 if test "${with_iconset+set}" = set; then :
7408 withval=$with_iconset; target_iconset=$withval
7409 else
7410 target_iconset="default"
7413 if test "$target_iconset" = "default"; then
7414 aros_target_iconset="Gorilla"
7415 target_iconset="default (Gorilla)"
7416 else
7417 aros_target_iconset="$target_iconset"
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7420 $as_echo "$target_iconset" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7423 $as_echo_n "checking which GUI Theme to use... " >&6; }
7425 # Check whether --with-theme was given.
7426 if test "${with_theme+set}" = set; then :
7427 withval=$with_theme; target_guitheme=$withval
7428 else
7429 target_guitheme="default"
7432 if test "$target_guitheme" = "default"; then
7433 aros_target_guitheme="Ice"
7434 else
7435 aros_target_guitheme="$target_guitheme"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7438 $as_echo "$aros_target_guitheme" >&6; }
7440 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7441 # for target code)
7442 cross_compiling=no
7443 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7444 cross_compiling=yes
7446 if test "$aros_host_cpu" == "x86_64" ; then
7447 if test "$aros_target_cpu" == "i386" ; then
7448 if test "$aros_target_arch" != "mingw32"; then
7449 cross_compiling=no
7453 if test "$aros_host_arch" == "darwin" ; then
7454 cross_compiling=yes
7457 # Set prefix for target compiler etc. if we're cross-compiling
7458 # (should possibly be earlier but needs to be after AC_PROG_CC)
7459 if test "$cross_compiling" = "yes" ; then
7460 if test "$target_tool_prefix" = ""; then
7461 target_tool_prefix=${target_cpu}-elf-
7463 CC=${target_tool_prefix}gcc
7466 #-----------------------------------------------------------------------------
7468 # Disable pointer-signedness warnings if the compiler recognises the option
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7471 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7472 save_cflags="$CFLAGS"
7473 CFLAGS="$CFLAGS -Wno-pointer-sign"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7478 main ()
7482 return 0;
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 use_no_sign_warning="yes"
7487 else
7488 use_no_sign_warning="no"
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7492 $as_echo "$use_no_sign_warning" >&6; }
7493 if test "x-$use_no_sign_warning" = "x-yes" ; then
7494 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7496 CFLAGS="$save_cflags"
7498 #-----------------------------------------------------------------------------
7500 # Find all the tools we need to compile. This could be cross-compiling
7501 # though! If that is the case we use the GNU form of the target and
7502 # simply add this to the front of the binary name. This is rather simple,
7503 # but it should work under most circumstances.
7505 # The default tools are to use the same as the host, but only if the
7506 # host and target CPU are the same. With GCC this is normally enough.
7509 aros_cc_pre=""
7510 aros_shared_ld="$aros_host_ld"
7512 aros_target_mkdep="$aros_host_mkdep"
7513 aros_target_incl_def="$aros_host_incl"
7515 aros_kernel_cc="$CC"
7517 # The default tools executables to be linked to.
7518 if test "$aros_target_cc" != ""; then
7519 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7520 set dummy $aros_target_cc; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 case $aros_target_cc in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7544 IFS=$as_save_IFS
7547 esac
7549 aros_target_cc=$ac_cv_path_aros_target_cc
7550 if test -n "$aros_target_cc"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7552 $as_echo "$aros_target_cc" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7559 if test "$aros_target_cc" = ""; then
7560 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7563 if test "$aros_target_ld" != ""; then
7564 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
7565 set dummy $aros_target_ld; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 case $aros_target_ld in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7587 done
7588 done
7589 IFS=$as_save_IFS
7592 esac
7594 aros_target_ld=$ac_cv_path_aros_target_ld
7595 if test -n "$aros_target_ld"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
7597 $as_echo "$aros_target_ld" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7604 if test "$aros_target_ld" = ""; then
7605 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7609 if test "$crosstools" != "yes"; then
7611 if test "$aros_target_as" = ""; then
7612 if test "$cross_compiling" = "yes" ; then
7613 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7614 set dummy ${target_tool_prefix}as; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 case $aros_target_as_ln in
7621 [\\/]* | ?:[\\/]*)
7622 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7636 done
7637 done
7638 IFS=$as_save_IFS
7641 esac
7643 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7644 if test -n "$aros_target_as_ln"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7646 $as_echo "$aros_target_as_ln" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7653 else
7654 if test "$GCC" = "yes"; then
7655 aros_gcc_as=`$CC -print-prog-name=as`
7656 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7657 set dummy `basename $aros_gcc_as`; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 case $aros_target_as_ln in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in `dirname $aros_gcc_as`
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7684 esac
7686 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7687 if test -n "$aros_target_as_ln"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7689 $as_echo "$aros_target_as_ln" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test "$aros_target_as_ln" = ""; then
7698 # Extract the first word of "as", so it can be a program name with args.
7699 set dummy as; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 case $aros_target_as_ln in
7706 [\\/]* | ?:[\\/]*)
7707 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7723 IFS=$as_save_IFS
7726 esac
7728 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7729 if test -n "$aros_target_as_ln"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7731 $as_echo "$aros_target_as_ln" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7740 else
7741 # Extract the first word of "$aros_target_as", so it can be a program name with args.
7742 set dummy $aros_target_as; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 case $aros_target_as_ln in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7769 esac
7771 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7772 if test -n "$aros_target_as_ln"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7774 $as_echo "$aros_target_as_ln" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7783 if test "$aros_target_as_ln" = ""; then
7784 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
7787 if test "$aros_kernel_ld" = ""; then
7788 if test "$cross_compiling" = "yes" ; then
7789 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7790 set dummy ${target_tool_prefix}ld; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 case $aros_kernel_ld in
7797 [\\/]* | ?:[\\/]*)
7798 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7817 esac
7819 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7820 if test -n "$aros_kernel_ld"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7822 $as_echo "$aros_kernel_ld" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7829 else
7830 if test "$GCC" = "yes"; then
7831 aros_gcc_ld=`$CC -print-prog-name=ld`
7832 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7833 set dummy `basename $aros_gcc_ld`; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 case $aros_kernel_ld in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in `dirname $aros_gcc_ld`
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7855 done
7856 done
7857 IFS=$as_save_IFS
7860 esac
7862 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7863 if test -n "$aros_kernel_ld"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7865 $as_echo "$aros_kernel_ld" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test "$aros_kernel_ld" = ""; then
7874 # Extract the first word of "ld", so it can be a program name with args.
7875 set dummy ld; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 case $aros_kernel_ld in
7882 [\\/]* | ?:[\\/]*)
7883 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7902 esac
7904 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7905 if test -n "$aros_kernel_ld"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7907 $as_echo "$aros_kernel_ld" >&6; }
7908 else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7916 else
7917 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
7918 set dummy $aros_kernel_ld; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 case $aros_kernel_ld in
7925 [\\/]* | ?:[\\/]*)
7926 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7945 esac
7947 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7948 if test -n "$aros_kernel_ld"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7950 $as_echo "$aros_kernel_ld" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7959 if test "$aros_kernel_ld" = ""; then
7960 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7963 if test "$aros_target_ar" = ""; then
7964 if test "$cross_compiling" = "yes" ; then
7965 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
7966 set dummy ${target_tool_prefix}ar; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 case $aros_target_ar_ln in
7973 [\\/]* | ?:[\\/]*)
7974 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7993 esac
7995 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7996 if test -n "$aros_target_ar_ln"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
7998 $as_echo "$aros_target_ar_ln" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 else
8006 if test "$GCC" = "yes"; then
8007 aros_gcc_ar=`$CC -print-prog-name=ar`
8008 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8009 set dummy `basename $aros_gcc_ar`; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 case $aros_target_ar_ln in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in `dirname $aros_gcc_ar`
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8036 esac
8038 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8039 if test -n "$aros_target_ar_ln"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8041 $as_echo "$aros_target_ar_ln" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8049 if test "$aros_target_ar_ln" = ""; then
8050 # Extract the first word of "ar", so it can be a program name with args.
8051 set dummy ar; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 case $aros_target_ar_ln in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8078 esac
8080 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8081 if test -n "$aros_target_ar_ln"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8083 $as_echo "$aros_target_ar_ln" >&6; }
8084 else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8092 else
8093 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8094 set dummy $aros_target_ar; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 case $aros_target_ar_ln in
8101 [\\/]* | ?:[\\/]*)
8102 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8108 IFS=$as_save_IFS
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8112 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 break 2
8116 done
8117 done
8118 IFS=$as_save_IFS
8121 esac
8123 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8124 if test -n "$aros_target_ar_ln"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8126 $as_echo "$aros_target_ar_ln" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8135 if test "$aros_target_ar_ln" = ""; then
8136 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8139 if test "$aros_target_nm" = ""; then
8140 if test "$cross_compiling" = "yes" ; then
8141 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8142 set dummy ${target_tool_prefix}nm; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 case $aros_target_nm_ln in
8149 [\\/]* | ?:[\\/]*)
8150 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8160 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 break 2
8164 done
8165 done
8166 IFS=$as_save_IFS
8169 esac
8171 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8172 if test -n "$aros_target_nm_ln"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8174 $as_echo "$aros_target_nm_ln" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8181 else
8182 if test "$GCC" = "yes"; then
8183 aros_gcc_nm=`$CC -print-prog-name=nm`
8184 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8185 set dummy `basename $aros_gcc_nm`; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 case $aros_target_nm_ln in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 for as_dir in `dirname $aros_gcc_nm`
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8203 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8207 done
8208 done
8209 IFS=$as_save_IFS
8212 esac
8214 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8215 if test -n "$aros_target_nm_ln"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8217 $as_echo "$aros_target_nm_ln" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8225 if test "$aros_target_nm_ln" = ""; then
8226 # Extract the first word of "nm", so it can be a program name with args.
8227 set dummy nm; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 case $aros_target_nm_ln in
8234 [\\/]* | ?:[\\/]*)
8235 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8249 done
8250 done
8251 IFS=$as_save_IFS
8254 esac
8256 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8257 if test -n "$aros_target_nm_ln"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8259 $as_echo "$aros_target_nm_ln" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8268 else
8269 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8270 set dummy $aros_target_nm; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 case $aros_target_nm_ln in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8297 esac
8299 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8300 if test -n "$aros_target_nm_ln"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8302 $as_echo "$aros_target_nm_ln" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8311 if test "$aros_target_nm_ln" = ""; then
8312 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8315 if test "$aros_target_objcopy" = ""; then
8316 if test "$cross_compiling" = "yes" ; then
8317 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8318 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 case $aros_target_objcopy_ln in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 break 2
8340 done
8341 done
8342 IFS=$as_save_IFS
8345 esac
8347 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8348 if test -n "$aros_target_objcopy_ln"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8350 $as_echo "$aros_target_objcopy_ln" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8357 else
8358 if test "$GCC" = "yes"; then
8359 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8360 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8361 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 case $aros_target_objcopy_ln in
8368 [\\/]* | ?:[\\/]*)
8369 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in `dirname $aros_gcc_objcopy`
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8388 esac
8390 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8391 if test -n "$aros_target_objcopy_ln"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8393 $as_echo "$aros_target_objcopy_ln" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8401 if test "$aros_target_objcopy_ln" = ""; then
8402 # Extract the first word of "objcopy", so it can be a program name with args.
8403 set dummy objcopy; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 case $aros_target_objcopy_ln in
8410 [\\/]* | ?:[\\/]*)
8411 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8427 IFS=$as_save_IFS
8430 esac
8432 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8433 if test -n "$aros_target_objcopy_ln"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8435 $as_echo "$aros_target_objcopy_ln" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8444 else
8445 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8446 set dummy $aros_target_objcopy; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 case $aros_target_objcopy_ln in
8453 [\\/]* | ?:[\\/]*)
8454 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8470 IFS=$as_save_IFS
8473 esac
8475 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8476 if test -n "$aros_target_objcopy_ln"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8478 $as_echo "$aros_target_objcopy_ln" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8487 if test "$aros_target_objcopy_ln" = ""; then
8488 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8491 if test "$aros_target_objdump" = ""; then
8492 if test "$cross_compiling" = "yes" ; then
8493 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8494 set dummy ${target_tool_prefix}objdump; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 case $aros_target_objdump_ln in
8501 [\\/]* | ?:[\\/]*)
8502 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8516 done
8517 done
8518 IFS=$as_save_IFS
8521 esac
8523 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8524 if test -n "$aros_target_objdump_ln"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8526 $as_echo "$aros_target_objdump_ln" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8533 else
8534 if test "$GCC" = "yes"; then
8535 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8536 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8537 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 case $aros_target_objdump_ln in
8544 [\\/]* | ?:[\\/]*)
8545 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in `dirname $aros_gcc_objdump`
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8564 esac
8566 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8567 if test -n "$aros_target_objdump_ln"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8569 $as_echo "$aros_target_objdump_ln" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test "$aros_target_objdump_ln" = ""; then
8578 # Extract the first word of "objdump", so it can be a program name with args.
8579 set dummy objdump; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 case $aros_target_objdump_ln in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8601 done
8602 done
8603 IFS=$as_save_IFS
8606 esac
8608 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8609 if test -n "$aros_target_objdump_ln"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8611 $as_echo "$aros_target_objdump_ln" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8620 else
8621 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
8622 set dummy $aros_target_objdump; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 case $aros_target_objdump_ln in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8649 esac
8651 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8652 if test -n "$aros_target_objdump_ln"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8654 $as_echo "$aros_target_objdump_ln" >&6; }
8655 else
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8663 if test "$aros_target_objdump_ln" = ""; then
8664 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
8667 if test "$aros_target_ranlib" = ""; then
8668 if test "$cross_compiling" = "yes" ; then
8669 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8670 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 case $aros_target_ranlib_ln in
8677 [\\/]* | ?:[\\/]*)
8678 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8688 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8692 done
8693 done
8694 IFS=$as_save_IFS
8697 esac
8699 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8700 if test -n "$aros_target_ranlib_ln"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8702 $as_echo "$aros_target_ranlib_ln" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8709 else
8710 if test "$GCC" = "yes"; then
8711 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8712 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8713 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 case $aros_target_ranlib_ln in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in `dirname $aros_gcc_ranlib`
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8731 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8735 done
8736 done
8737 IFS=$as_save_IFS
8740 esac
8742 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8743 if test -n "$aros_target_ranlib_ln"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8745 $as_echo "$aros_target_ranlib_ln" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8753 if test "$aros_target_ranlib_ln" = ""; then
8754 # Extract the first word of "ranlib", so it can be a program name with args.
8755 set dummy ranlib; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 case $aros_target_ranlib_ln in
8762 [\\/]* | ?:[\\/]*)
8763 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8769 IFS=$as_save_IFS
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 break 2
8777 done
8778 done
8779 IFS=$as_save_IFS
8782 esac
8784 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8785 if test -n "$aros_target_ranlib_ln"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8787 $as_echo "$aros_target_ranlib_ln" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8796 else
8797 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
8798 set dummy $aros_target_ranlib; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 case $aros_target_ranlib_ln in
8805 [\\/]* | ?:[\\/]*)
8806 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8820 done
8821 done
8822 IFS=$as_save_IFS
8825 esac
8827 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8828 if test -n "$aros_target_ranlib_ln"; then
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8830 $as_echo "$aros_target_ranlib_ln" >&6; }
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8839 if test "$aros_target_ranlib_ln" = ""; then
8840 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
8843 if test "$aros_target_strip" = ""; then
8844 if test "$cross_compiling" = "yes" ; then
8845 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8846 set dummy ${target_tool_prefix}strip; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 case $aros_target_strip_ln in
8853 [\\/]* | ?:[\\/]*)
8854 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8868 done
8869 done
8870 IFS=$as_save_IFS
8873 esac
8875 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8876 if test -n "$aros_target_strip_ln"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8878 $as_echo "$aros_target_strip_ln" >&6; }
8879 else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 else
8886 if test "$GCC" = "yes"; then
8887 aros_gcc_strip=`$CC -print-prog-name=strip`
8888 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8889 set dummy `basename $aros_gcc_strip`; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 case $aros_target_strip_ln in
8896 [\\/]* | ?:[\\/]*)
8897 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in `dirname $aros_gcc_strip`
8903 IFS=$as_save_IFS
8904 test -z "$as_dir" && as_dir=.
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8907 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 break 2
8911 done
8912 done
8913 IFS=$as_save_IFS
8916 esac
8918 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8919 if test -n "$aros_target_strip_ln"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8921 $as_echo "$aros_target_strip_ln" >&6; }
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8929 if test "$aros_target_strip_ln" = ""; then
8930 # Extract the first word of "strip", so it can be a program name with args.
8931 set dummy strip; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 case $aros_target_strip_ln in
8938 [\\/]* | ?:[\\/]*)
8939 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8953 done
8954 done
8955 IFS=$as_save_IFS
8958 esac
8960 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8961 if test -n "$aros_target_strip_ln"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8963 $as_echo "$aros_target_strip_ln" >&6; }
8964 else
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8972 else
8973 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
8974 set dummy $aros_target_strip; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 case $aros_target_strip_ln in
8981 [\\/]* | ?:[\\/]*)
8982 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9001 esac
9003 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9004 if test -n "$aros_target_strip_ln"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9006 $as_echo "$aros_target_strip_ln" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9015 if test "$aros_target_strip_ln" = ""; then
9016 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9020 if test "$rescomp" != ""; then
9021 if test "$cross_compiling" = "yes" ; then
9022 rescomp=${target_tool_prefix}${rescomp}
9024 # Extract the first word of "$rescomp", so it can be a program name with args.
9025 set dummy $rescomp; ac_word=$2
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027 $as_echo_n "checking for $ac_word... " >&6; }
9028 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 case $aros_kernel_rescomp in
9032 [\\/]* | ?:[\\/]*)
9033 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9052 esac
9054 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9055 if test -n "$aros_kernel_rescomp"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9057 $as_echo "$aros_kernel_rescomp" >&6; }
9058 else
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9064 if test "$aros_kernel_rescomp" = ""; then
9065 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9069 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9070 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9071 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9072 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9073 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9074 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9075 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9077 # aros_cc_pre is a variable that is added to the front of the compiler name
9078 # in the generated aros-gcc shell script. We need this to enable the cache
9079 # to work across cleaned builds. Also, support DISTCC using the correct
9080 # environment variable.
9083 if test "x${DISTCC}" != "x" ; then
9084 if test "x${CCACHE}" != "x" ; then
9085 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9086 else
9087 aros_cc_pre="${DISTCC} "
9089 else
9090 if test "x${CCACHE}" != "x" ; then
9091 aros_cc_pre="${CCACHE} "
9095 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9097 aros_target_nostdinc_cflags=-nostdinc
9099 aros_target_nostartup_ldflags=-nostartfiles
9101 aros_target_nix_ldflags=-nix
9103 aros_target_detach_ldflags=-detach
9105 aros_target_nostdlib_ldflags=-nostdlib
9108 # Target tools
9109 if test "$aros_target_cc" = ""; then
9110 orig_target_cc=$aros_kernel_cc
9111 else
9112 orig_target_cc=$aros_target_cc
9114 if test "$aros_target_ld" = ""; then
9115 orig_target_ld=$aros_kernel_ld
9116 else
9117 orig_target_ld=$aros_target_ld
9119 if test "$GCC" = "yes"; then
9120 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9122 aros_target_cc="${prefix}-gcc"
9123 aros_target_as="${prefix}-as"
9124 aros_target_ld="${prefix}-ld"
9125 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9126 aros_target_objcopy=${prefix}-objcopy
9127 aros_target_objdump=${prefix}-objdump
9128 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9129 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9130 aros_kernel_nm="${prefix}-nm"
9131 aros_target_strip=${prefix}-strip
9133 # Find the system include path. We can suggest that an alternative is
9134 # used if we don't get it correct. The default is to use /usr/include.
9135 # Which is set in the aros_target_incl_def variable.
9137 # Check whether --enable-includes was given.
9138 if test "${enable_includes+set}" = set; then :
9139 enableval=$enable_includes; aros_target_incl=$enable_includes
9140 else
9141 aros_target_incl=$aros_target_incl_def
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9146 $as_echo_n "checking for the target compiler's include path... " >&6; }
9147 if test "$aros_target_cc_includes" = "" ; then
9148 #try to guess where the directory is
9149 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9150 if ! test -d $aros_target_cc_includes; then
9151 #the directory doesn't exist, we need to do some more work
9152 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9154 #these are the headers we're looling for
9155 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9156 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9157 zutil.h"
9159 dirs=
9160 for h in $headers; do
9161 #which other headers each of the above headers needs?
9162 deps=$(echo "#include <$h>" | \
9163 $aros_host_cc -E -M - 2>/dev/null | \
9164 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9166 #copy all the needed headers to a directory beneath gendir
9167 for d in $deps; do
9168 h=$(basename $d)
9169 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9170 sed -n "s,^.*/include\(/.*\),\1,p")
9171 ! test -d $dir && mkdir -p $dir
9172 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9173 done
9174 done
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9178 $as_echo "$aros_target_cc_includes" >&6; }
9181 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9182 # On GCC >= 4.0 -iquote should be used
9185 save_cc="$CC"
9186 save_cflags="$CFLAGS"
9187 CFLAGS="-iquote."
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9189 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9194 main ()
9198 return 0;
9200 _ACEOF
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 has_iquote="yes"
9203 else
9204 has_iquote="no"
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9208 $as_echo "$has_iquote" >&6; }
9209 if test "x-$has_iquote" = "x-yes" ; then
9210 host_cflags_iquote=-iquote
9211 host_cflags_iquote_end=
9212 else
9213 host_cflags_iquote=-I
9214 host_cflags_iquote_end=-I-
9216 kernel_cflags_iquote=$host_cflags_iquote
9217 kernel_cflags_iquote_end=$host_cflags_iquote_end
9218 if test "x-$cross_compiling" = "x-yes"; then
9219 CC="$aros_kernel_cc"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9221 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9226 main ()
9230 return 0;
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 use_no_stack_protector="yes"
9235 else
9236 use_no_stack_protector="no"
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9240 $as_echo "$use_no_stack_protector" >&6; }
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9242 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9247 main ()
9251 return 0;
9253 _ACEOF
9254 if ac_fn_c_try_compile "$LINENO"; then :
9255 has_iquote="yes"
9256 else
9257 has_iquote="no"
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9261 $as_echo "$has_iquote" >&6; }
9262 if test "x-$has_iquote" = "x-yes" ; then
9263 kernel_cflags_iquote=-iquote
9264 kernel_cflags_iquote_end=
9265 else
9266 kernel_cflags_iquote=-I
9267 kernel_cflags_iquote_end=-I-
9270 aros_cflags_iquote=$kernel_cflags_iquote
9271 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9272 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9273 CC="$orig_target_cc"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9275 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9280 main ()
9284 return 0;
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"; then :
9288 has_iquote="yes"
9289 else
9290 has_iquote="no"
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9294 $as_echo "$has_iquote" >&6; }
9295 if test "x-$has_iquote" = "x-yes" ; then
9296 aros_cflags_iquote=-iquote
9297 aros_cflags_iquote_end=
9298 else
9299 aros_cflags_iquote=-I
9300 aros_cflags_iquote_end=-I-
9303 if test "x-$use_no_stack_protector" = "x-yes" ; then
9304 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9307 #-----------------------------------------------------------------------------
9309 # Check if we can explicitly choose older version of symbol hashing
9311 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9312 CC="$aros_kernel_cc"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9314 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9319 main ()
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9327 use_hash_style="yes"
9328 else
9329 use_hash_style="no"
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9334 $as_echo "$use_hash_style" >&6; }
9335 if test "x-$use_hash_style" = "x-yes" ; then
9336 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9338 CC="$save_cc"
9339 CFLAGS="$save_cflags"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9350 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9352 # Check whether --with-resolution was given.
9353 if test "${with_resolution+set}" = set; then :
9354 withval=$with_resolution; resolution=$withval
9355 else
9356 resolution=none
9359 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9360 if test "$resolution" = "yes" ; then
9361 resolution="none"
9363 if test "$resolution" = "no" ; then
9364 resolution="none"
9366 if test "$resolution" != "none" ; then
9367 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9368 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9369 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9372 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9373 aros_cv_default_wbwidth=$aros_default_wbwidth
9374 aros_cv_default_wbheight=$aros_default_wbheight
9375 aros_cv_default_wbdepth=$aros_default_wbdepth
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9378 $as_echo_n "checking if serial debug is enabled... " >&6; }
9380 # Check whether --with-serial-debug was given.
9381 if test "${with_serial_debug+set}" = set; then :
9382 withval=$with_serial_debug; serial_debug=$withval
9383 else
9384 serial_debug=none
9387 if test "$aros_serial_debug" = 0 ; then
9388 serial_debug_forced=""
9389 if test "$serial_debug" = "yes" ; then
9390 serial_debug="2"
9392 if test "$serial_debug" = "no" ; then
9393 serial_debug="none"
9395 else
9396 serial_debug_forced="(forced)"
9397 serial_debug=$aros_serial_debug
9399 if test "$serial_debug" != "none" ; then
9400 aros_serial_debug=$serial_debug
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9402 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9409 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9410 # Check whether --enable-palm_debug_hack was given.
9411 if test "${enable_palm_debug_hack+set}" = set; then :
9412 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9413 else
9414 palm_debug_hack="no"
9417 if test "$palm_debug_hack" = "yes" ; then
9418 aros_palm_debug_hack="1"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9421 $as_echo "$palm_debug_hack" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9425 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9426 # Check whether --enable-nesting_supervisor was given.
9427 if test "${enable_nesting_supervisor+set}" = set; then :
9428 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9429 else
9430 nesting_supervisor="no"
9433 if test "$nesting_supervisor" = "yes" ; then
9434 aros_nesting_supervisor="1"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9437 $as_echo "$nesting_supervisor" >&6; }
9440 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9442 if test "x-$need_dlopen" != "x-no" ; then
9443 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9444 if test "x$ac_cv_func_dlopen" = x""yes; then :
9445 have_dl="yes"
9446 else
9447 have_dl="no"
9450 if test "x-$have_dl" = "x-no" ; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_check_lib_save_LIBS=$LIBS
9457 LIBS="-ldl $LIBS"
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char dlopen ();
9469 main ()
9471 return dlopen ();
9473 return 0;
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"; then :
9477 ac_cv_lib_dl_dlopen=yes
9478 else
9479 ac_cv_lib_dl_dlopen=no
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9487 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9488 have_dl="yes"
9489 aros_host_ldflags="$aros_host_ldflags -ldl"
9490 else
9491 have_dl="no"
9495 if test "x-$have_dl" = "x-no" ; then
9496 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
9501 # Check whether --enable-x11_hidd was given.
9502 if test "${enable_x11_hidd+set}" = set; then :
9503 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9504 else
9505 x11_hidd="auto"
9508 case "x-$x11_hidd" in
9509 x-yes|x-no|x-auto) ;;
9510 *) x11_hidd="auto" ;;
9511 esac
9513 ENABLE_X11=0
9515 if test "x-$x11_hidd" != "x-no" ; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9518 $as_echo_n "checking for X... " >&6; }
9521 # Check whether --with-x was given.
9522 if test "${with_x+set}" = set; then :
9523 withval=$with_x;
9526 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9527 if test "x$with_x" = xno; then
9528 # The user explicitly disabled X.
9529 have_x=disabled
9530 else
9531 case $x_includes,$x_libraries in #(
9532 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9533 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 # One or both of the vars are not set, and there is no cached value.
9537 ac_x_includes=no ac_x_libraries=no
9538 rm -f -r conftest.dir
9539 if mkdir conftest.dir; then
9540 cd conftest.dir
9541 cat >Imakefile <<'_ACEOF'
9542 incroot:
9543 @echo incroot='${INCROOT}'
9544 usrlibdir:
9545 @echo usrlibdir='${USRLIBDIR}'
9546 libdir:
9547 @echo libdir='${LIBDIR}'
9548 _ACEOF
9549 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9551 for ac_var in incroot usrlibdir libdir; do
9552 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9553 done
9554 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9555 for ac_extension in a so sl dylib la dll; do
9556 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9557 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9558 ac_im_usrlibdir=$ac_im_libdir; break
9560 done
9561 # Screen out bogus values from the imake configuration. They are
9562 # bogus both because they are the default anyway, and because
9563 # using them would break gcc on systems where it needs fixed includes.
9564 case $ac_im_incroot in
9565 /usr/include) ac_x_includes= ;;
9566 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9567 esac
9568 case $ac_im_usrlibdir in
9569 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9570 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9571 esac
9573 cd ..
9574 rm -f -r conftest.dir
9577 # Standard set of common directories for X headers.
9578 # Check X11 before X11Rn because it is often a symlink to the current release.
9579 ac_x_header_dirs='
9580 /usr/X11/include
9581 /usr/X11R7/include
9582 /usr/X11R6/include
9583 /usr/X11R5/include
9584 /usr/X11R4/include
9586 /usr/include/X11
9587 /usr/include/X11R7
9588 /usr/include/X11R6
9589 /usr/include/X11R5
9590 /usr/include/X11R4
9592 /usr/local/X11/include
9593 /usr/local/X11R7/include
9594 /usr/local/X11R6/include
9595 /usr/local/X11R5/include
9596 /usr/local/X11R4/include
9598 /usr/local/include/X11
9599 /usr/local/include/X11R7
9600 /usr/local/include/X11R6
9601 /usr/local/include/X11R5
9602 /usr/local/include/X11R4
9604 /usr/X386/include
9605 /usr/x386/include
9606 /usr/XFree86/include/X11
9608 /usr/include
9609 /usr/local/include
9610 /usr/unsupported/include
9611 /usr/athena/include
9612 /usr/local/x11r5/include
9613 /usr/lpp/Xamples/include
9615 /usr/openwin/include
9616 /usr/openwin/share/include'
9618 if test "$ac_x_includes" = no; then
9619 # Guess where to find include files, by looking for Xlib.h.
9620 # First, try using that file with no special directory specified.
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #include <X11/Xlib.h>
9624 _ACEOF
9625 if ac_fn_c_try_cpp "$LINENO"; then :
9626 # We can compile using X headers with no special include directory.
9627 ac_x_includes=
9628 else
9629 for ac_dir in $ac_x_header_dirs; do
9630 if test -r "$ac_dir/X11/Xlib.h"; then
9631 ac_x_includes=$ac_dir
9632 break
9634 done
9636 rm -f conftest.err conftest.$ac_ext
9637 fi # $ac_x_includes = no
9639 if test "$ac_x_libraries" = no; then
9640 # Check for the libraries.
9641 # See if we find them without any special options.
9642 # Don't add to $LIBS permanently.
9643 ac_save_LIBS=$LIBS
9644 LIBS="-lX11 $LIBS"
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <X11/Xlib.h>
9649 main ()
9651 XrmInitialize ()
9653 return 0;
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657 LIBS=$ac_save_LIBS
9658 # We can link X programs with no special library path.
9659 ac_x_libraries=
9660 else
9661 LIBS=$ac_save_LIBS
9662 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9664 # Don't even attempt the hair of trying to link an X program!
9665 for ac_extension in a so sl dylib la dll; do
9666 if test -r "$ac_dir/libX11.$ac_extension"; then
9667 ac_x_libraries=$ac_dir
9668 break 2
9670 done
9671 done
9673 rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675 fi # $ac_x_libraries = no
9677 case $ac_x_includes,$ac_x_libraries in #(
9678 no,* | *,no | *\'*)
9679 # Didn't find X, or a directory has "'" in its name.
9680 ac_cv_have_x="have_x=no";; #(
9682 # Record where we found X for the cache.
9683 ac_cv_have_x="have_x=yes\
9684 ac_x_includes='$ac_x_includes'\
9685 ac_x_libraries='$ac_x_libraries'"
9686 esac
9688 ;; #(
9689 *) have_x=yes;;
9690 esac
9691 eval "$ac_cv_have_x"
9692 fi # $with_x != no
9694 if test "$have_x" != yes; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9696 $as_echo "$have_x" >&6; }
9697 no_x=yes
9698 else
9699 # If each of the values was on the command line, it overrides each guess.
9700 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9701 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9702 # Update the cache value to reflect the command line values.
9703 ac_cv_have_x="have_x=yes\
9704 ac_x_includes='$x_includes'\
9705 ac_x_libraries='$x_libraries'"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9707 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9711 x_cflags=
9712 for path in $x_libraries
9714 x_cflags="$x_cflags -L$path"
9715 done
9717 for path in $x_includes
9719 x_cflags="$x_cflags -I$path"
9720 done
9722 if test "x-$no_x" = "x-yes" ; then
9724 if test "x-$x11_hidd" != "x-auto" ; then
9725 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
9728 else
9729 x11_hidd_target=kernel-x11gfx-kobj
9730 ENABLE_X11=1
9732 # Check whether --enable-x11_shm was given.
9733 if test "${enable_x11_shm+set}" = set; then :
9734 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
9735 else
9736 x11_hidd_shm="auto"
9739 case "x-$x11_hidd_shm" in
9740 x-yes|x-no|x-auto) ;;
9741 *) x11_hidd_shm="auto" ;;
9742 esac
9744 have_xshm=no
9746 if test "x-$x11_hidd_shm" != "x-no" ; then
9748 for ac_header in sys/ipc.h
9749 do :
9750 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
9751 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
9752 cat >>confdefs.h <<_ACEOF
9753 #define HAVE_SYS_IPC_H 1
9754 _ACEOF
9758 done
9760 for ac_header in sys/shm.h
9761 do :
9762 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
9763 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
9764 cat >>confdefs.h <<_ACEOF
9765 #define HAVE_SYS_SHM_H 1
9766 _ACEOF
9770 done
9773 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
9775 save_cflags="$CFLAGS"
9776 CFLAGS="$CFLAGS $x_cflags"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9778 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9779 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-lXext $LIBS"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char XShmQueryExtension ();
9795 main ()
9797 return XShmQueryExtension ();
9799 return 0;
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803 ac_cv_lib_Xext_XShmQueryExtension=yes
9804 else
9805 ac_cv_lib_Xext_XShmQueryExtension=no
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9812 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9813 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
9814 have_xshm=yes
9817 CFLAGS="$save_cflags"
9821 if test "x-$have_xshm" = "x-yes" ; then
9822 DO_XSHM_SUPPORT="1"
9823 elif test "x-$x11_hidd_shm" = "x-yes" ; then
9824 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
9825 else
9826 DO_XSHM_SUPPORT="0"
9830 # Check whether --enable-x11_vidmode was given.
9831 if test "${enable_x11_vidmode+set}" = set; then :
9832 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
9833 else
9834 x11_hidd_vidmode="auto"
9837 case "x-$x11_hidd_vidmode" in
9838 x-yes|x-no|x-auto) ;;
9839 *) x11_hidd_vidmode="auto" ;;
9840 esac
9842 have_vidmode=no
9844 if test "x-$x11_hidd_vidmode" != "x-no" ; then
9846 save_cflags="$CFLAGS"
9847 CFLAGS="$CFLAGS $x_cflags"
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9849 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
9850 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-lXxf86vm $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char XF86VidModeQueryExtension ();
9866 main ()
9868 return XF86VidModeQueryExtension ();
9870 return 0;
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9875 else
9876 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9883 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9884 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
9885 have_vidmode=yes
9888 CFLAGS="$save_cflags"
9891 if test "x-$have_vidmode" = "x-yes" ; then
9892 DO_VIDMODE_SUPPORT="1"
9893 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
9894 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
9895 else
9896 DO_VIDMODE_SUPPORT="0"
9900 aros_host_x11_includes=$x_includes
9901 aros_host_x11_libdirs=$x_libraries
9905 # Check whether --enable-sdl_hidd was given.
9906 if test "${enable_sdl_hidd+set}" = set; then :
9907 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
9908 else
9909 sdl_hidd="auto"
9912 case "x-$sdl_hidd" in
9913 x-yes|x-no|x-auto) ;;
9914 *) sdl_hidd="auto" ;;
9915 esac
9917 if test "x-$sdl_hidd" != "x-no" ; then
9920 # Check whether --with-sdl-prefix was given.
9921 if test "${with_sdl_prefix+set}" = set; then :
9922 withval=$with_sdl_prefix; sdl_prefix="$withval"
9923 else
9924 sdl_prefix=""
9928 # Check whether --with-sdl-exec-prefix was given.
9929 if test "${with_sdl_exec_prefix+set}" = set; then :
9930 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
9931 else
9932 sdl_exec_prefix=""
9935 # Check whether --enable-sdltest was given.
9936 if test "${enable_sdltest+set}" = set; then :
9937 enableval=$enable_sdltest;
9938 else
9939 enable_sdltest=yes
9943 if test x$sdl_exec_prefix != x ; then
9944 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
9945 if test x${SDL_CONFIG+set} != xset ; then
9946 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
9949 if test x$sdl_prefix != x ; then
9950 sdl_args="$sdl_args --prefix=$sdl_prefix"
9951 if test x${SDL_CONFIG+set} != xset ; then
9952 SDL_CONFIG=$sdl_prefix/bin/sdl-config
9956 if test "x$prefix" != xNONE; then
9957 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9959 # Extract the first word of "sdl-config", so it can be a program name with args.
9960 set dummy sdl-config; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 case $SDL_CONFIG in
9967 [\\/]* | ?:[\\/]*)
9968 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9982 done
9983 done
9984 IFS=$as_save_IFS
9986 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9988 esac
9990 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9991 if test -n "$SDL_CONFIG"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
9993 $as_echo "$SDL_CONFIG" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10000 min_sdl_version=1.2.10
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10002 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10003 no_sdl=""
10004 if test "$SDL_CONFIG" = "no" ; then
10005 no_sdl=yes
10006 else
10007 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10008 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10010 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10011 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10012 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10014 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10015 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10016 if test "x$enable_sdltest" = "xyes" ; then
10017 ac_save_CFLAGS="$CFLAGS"
10018 ac_save_CXXFLAGS="$CXXFLAGS"
10019 ac_save_LIBS="$LIBS"
10020 CFLAGS="$CFLAGS $SDL_CFLAGS"
10021 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10022 LIBS="$LIBS $SDL_LIBS"
10023 rm -f conf.sdltest
10024 if test "$cross_compiling" = yes; then :
10025 echo $ac_n "cross compiling; assumed OK... $ac_c"
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10030 #include <stdio.h>
10031 #include <stdlib.h>
10032 #include <string.h>
10033 #include "SDL.h"
10035 char*
10036 my_strdup (char *str)
10038 char *new_str;
10040 if (str)
10042 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10043 strcpy (new_str, str);
10045 else
10046 new_str = NULL;
10048 return new_str;
10051 int main (int argc, char *argv[])
10053 int major, minor, micro;
10054 char *tmp_version;
10056 /* This hangs on some systems (?)
10057 system ("touch conf.sdltest");
10059 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10061 /* HP/UX 9 (%@#!) writes to sscanf strings */
10062 tmp_version = my_strdup("$min_sdl_version");
10063 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10064 printf("%s, bad version string\n", "$min_sdl_version");
10065 exit(1);
10068 if (($sdl_major_version > major) ||
10069 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10070 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10072 return 0;
10074 else
10076 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10077 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10078 printf("*** best to upgrade to the required version.\n");
10079 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10080 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10081 printf("*** config.cache before re-running configure\n");
10082 return 1;
10087 _ACEOF
10088 if ac_fn_c_try_run "$LINENO"; then :
10090 else
10091 no_sdl=yes
10093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10094 conftest.$ac_objext conftest.beam conftest.$ac_ext
10097 CFLAGS="$ac_save_CFLAGS"
10098 CXXFLAGS="$ac_save_CXXFLAGS"
10099 LIBS="$ac_save_LIBS"
10102 if test "x$no_sdl" = x ; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10104 $as_echo "yes" >&6; }
10105 have_sdl="yes"
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 if test "$SDL_CONFIG" = "no" ; then
10110 echo "*** The sdl-config script installed by SDL could not be found"
10111 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10112 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10113 echo "*** full path to sdl-config."
10114 else
10115 if test -f conf.sdltest ; then
10117 else
10118 echo "*** Could not run SDL test program, checking why..."
10119 CFLAGS="$CFLAGS $SDL_CFLAGS"
10120 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10121 LIBS="$LIBS $SDL_LIBS"
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 #include <stdio.h>
10126 #include "SDL.h"
10128 int main(int argc, char *argv[])
10129 { return 0; }
10130 #undef main
10131 #define main K_and_R_C_main
10134 main ()
10136 return 0;
10138 return 0;
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142 echo "*** The test program compiled, but did not run. This usually means"
10143 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10144 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10145 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10146 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10147 echo "*** is required on your system"
10148 echo "***"
10149 echo "*** If you have an old version installed, it is best to remove it, although"
10150 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10151 else
10152 echo "*** The test program failed to compile or link. See the file config.log for the"
10153 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10154 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10155 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 CFLAGS="$ac_save_CFLAGS"
10160 CXXFLAGS="$ac_save_CXXFLAGS"
10161 LIBS="$ac_save_LIBS"
10164 SDL_CFLAGS=""
10165 SDL_LIBS=""
10166 have_sdl="no"
10170 rm -f conf.sdltest
10173 if test "x-$have_sdl" != "x-yes" ; then
10175 if test "x-$sdl_hidd" != "x-auto" ; then
10176 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10179 else
10180 sdl_hidd_target=kernel-hidd-sdl
10181 aros_host_sdl_cflags=SDL_CFLAGS
10182 aros_host_sdl_libs=SDL_LIBS
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10190 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10191 # Check whether --enable-dbus was given.
10192 if test "${enable_dbus+set}" = set; then :
10193 enableval=$enable_dbus; dbus="yes"
10194 else
10195 dbus="no"
10198 if test "$dbus" = "yes" ; then
10199 ENABLE_DBUS=1
10200 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10201 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10202 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10203 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10204 else
10205 ENABLE_DBUS=0
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10208 $as_echo "$dbus" >&6; }
10212 # Generic
10222 # Host related
10245 # Target Related
10292 # Graphics Related
10307 # Native version related
10310 # Palm native version related
10313 # Unix/Hosted version related
10316 # DBUS related
10323 #X11 related
10326 # Debug related
10332 # Collect-aros stuff: "-ius" to ignore undefined symbols
10335 # C compiler related
10338 case "$aros_flavour" in
10339 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10340 aros_flavour="emulation" ;;
10341 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10342 aros_flavour="emulation" ;;
10343 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10344 aros_flavour="standalone";;
10345 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10346 aros_flavour="native" ;;
10347 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10348 aros_flavour="native" ;;
10349 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10350 aros_flavour="linklib" ;;
10351 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10352 aros_flavour="palmnative" ;;
10353 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10354 aros_flavour="mac68knative" ;;
10355 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10356 aros_flavour="ppcnative" ;;
10357 esac
10359 if test ! -d ${aros_inc_dir} ; then
10360 ${MKDIR} ${aros_inc_dir}
10362 if test ! -d ${aros_geninc_dir} ; then
10363 ${MKDIR} ${aros_geninc_dir}
10365 if test ! -d ${aros_hostcfg_dir} ; then
10366 ${MKDIR} ${aros_hostcfg_dir}
10368 if test ! -d ${aros_targetcfg_dir} ; then
10369 ${MKDIR} ${aros_targetcfg_dir}
10371 if test ! -d ${aros_tools_dir} ; then
10372 ${MKDIR} ${aros_tools_dir}
10374 if test ! -d ${aros_scripts_dir} ; then
10375 ${MKDIR} ${aros_scripts_dir}
10378 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10381 ac_config_commands="$ac_config_commands compiler_executable"
10383 ac_config_commands="$ac_config_commands genshared_executable"
10385 ac_config_commands="$ac_config_commands genmf_executable"
10388 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
10391 cat >confcache <<\_ACEOF
10392 # This file is a shell script that caches the results of configure
10393 # tests run on this system so they can be shared between configure
10394 # scripts and configure runs, see configure's option --config-cache.
10395 # It is not useful on other systems. If it contains results you don't
10396 # want to keep, you may remove or edit it.
10398 # config.status only pays attention to the cache file if you give it
10399 # the --recheck option to rerun configure.
10401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10403 # following values.
10405 _ACEOF
10407 # The following way of writing the cache mishandles newlines in values,
10408 # but we know of no workaround that is simple, portable, and efficient.
10409 # So, we kill variables containing newlines.
10410 # Ultrix sh set writes to stderr and can't be redirected directly,
10411 # and sets the high bit in the cache file unless we assign to the vars.
10413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10414 eval ac_val=\$$ac_var
10415 case $ac_val in #(
10416 *${as_nl}*)
10417 case $ac_var in #(
10418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10420 esac
10421 case $ac_var in #(
10422 _ | IFS | as_nl) ;; #(
10423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10424 *) { eval $ac_var=; unset $ac_var;} ;;
10425 esac ;;
10426 esac
10427 done
10429 (set) 2>&1 |
10430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10431 *${as_nl}ac_space=\ *)
10432 # `set' does not quote correctly, so add quotes: double-quote
10433 # substitution turns \\\\ into \\, and sed turns \\ into \.
10434 sed -n \
10435 "s/'/'\\\\''/g;
10436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10437 ;; #(
10439 # `set' quotes correctly as required by POSIX, so do not add quotes.
10440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10442 esac |
10443 sort
10445 sed '
10446 /^ac_cv_env_/b end
10447 t clear
10448 :clear
10449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10450 t end
10451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10452 :end' >>confcache
10453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10454 if test -w "$cache_file"; then
10455 test "x$cache_file" != "x/dev/null" &&
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10457 $as_echo "$as_me: updating cache $cache_file" >&6;}
10458 cat confcache >$cache_file
10459 else
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10464 rm -f confcache
10466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10467 # Let make expand exec_prefix.
10468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10470 DEFS=-DHAVE_CONFIG_H
10472 ac_libobjs=
10473 ac_ltlibobjs=
10474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10475 # 1. Remove the extension, and $U if already installed.
10476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10479 # will be set to the directory where LIBOBJS objects are built.
10480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10482 done
10483 LIBOBJS=$ac_libobjs
10485 LTLIBOBJS=$ac_ltlibobjs
10489 : ${CONFIG_STATUS=./config.status}
10490 ac_write_fail=0
10491 ac_clean_files_save=$ac_clean_files
10492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10495 as_write_fail=0
10496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10497 #! $SHELL
10498 # Generated by $as_me.
10499 # Run this file to recreate the current configuration.
10500 # Compiler output produced by configure, useful for debugging
10501 # configure, is in config.log if it exists.
10503 debug=false
10504 ac_cs_recheck=false
10505 ac_cs_silent=false
10507 SHELL=\${CONFIG_SHELL-$SHELL}
10508 export SHELL
10509 _ASEOF
10510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10511 ## -------------------- ##
10512 ## M4sh Initialization. ##
10513 ## -------------------- ##
10515 # Be more Bourne compatible
10516 DUALCASE=1; export DUALCASE # for MKS sh
10517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10518 emulate sh
10519 NULLCMD=:
10520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10521 # is contrary to our usage. Disable this feature.
10522 alias -g '${1+"$@"}'='"$@"'
10523 setopt NO_GLOB_SUBST
10524 else
10525 case `(set -o) 2>/dev/null` in #(
10526 *posix*) :
10527 set -o posix ;; #(
10528 *) :
10530 esac
10534 as_nl='
10536 export as_nl
10537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10541 # Prefer a ksh shell builtin over an external printf program on Solaris,
10542 # but without wasting forks for bash or zsh.
10543 if test -z "$BASH_VERSION$ZSH_VERSION" \
10544 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10545 as_echo='print -r --'
10546 as_echo_n='print -rn --'
10547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10548 as_echo='printf %s\n'
10549 as_echo_n='printf %s'
10550 else
10551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10552 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10553 as_echo_n='/usr/ucb/echo -n'
10554 else
10555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10556 as_echo_n_body='eval
10557 arg=$1;
10558 case $arg in #(
10559 *"$as_nl"*)
10560 expr "X$arg" : "X\\(.*\\)$as_nl";
10561 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10562 esac;
10563 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10565 export as_echo_n_body
10566 as_echo_n='sh -c $as_echo_n_body as_echo'
10568 export as_echo_body
10569 as_echo='sh -c $as_echo_body as_echo'
10572 # The user is always right.
10573 if test "${PATH_SEPARATOR+set}" != set; then
10574 PATH_SEPARATOR=:
10575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10577 PATH_SEPARATOR=';'
10582 # IFS
10583 # We need space, tab and new line, in precisely that order. Quoting is
10584 # there to prevent editors from complaining about space-tab.
10585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10586 # splitting by setting IFS to empty value.)
10587 IFS=" "" $as_nl"
10589 # Find who we are. Look in the path if we contain no directory separator.
10590 case $0 in #((
10591 *[\\/]* ) as_myself=$0 ;;
10592 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10598 done
10599 IFS=$as_save_IFS
10602 esac
10603 # We did not find ourselves, most probably we were run as `sh COMMAND'
10604 # in which case we are not to be found in the path.
10605 if test "x$as_myself" = x; then
10606 as_myself=$0
10608 if test ! -f "$as_myself"; then
10609 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10610 exit 1
10613 # Unset variables that we do not need and which cause bugs (e.g. in
10614 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10615 # suppresses any "Segmentation fault" message there. '((' could
10616 # trigger a bug in pdksh 5.2.14.
10617 for as_var in BASH_ENV ENV MAIL MAILPATH
10618 do eval test x\${$as_var+set} = xset \
10619 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10620 done
10621 PS1='$ '
10622 PS2='> '
10623 PS4='+ '
10625 # NLS nuisances.
10626 LC_ALL=C
10627 export LC_ALL
10628 LANGUAGE=C
10629 export LANGUAGE
10631 # CDPATH.
10632 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10635 # as_fn_error ERROR [LINENO LOG_FD]
10636 # ---------------------------------
10637 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10638 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10639 # script with status $?, using 1 if that was 0.
10640 as_fn_error ()
10642 as_status=$?; test $as_status -eq 0 && as_status=1
10643 if test "$3"; then
10644 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10645 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10647 $as_echo "$as_me: error: $1" >&2
10648 as_fn_exit $as_status
10649 } # as_fn_error
10652 # as_fn_set_status STATUS
10653 # -----------------------
10654 # Set $? to STATUS, without forking.
10655 as_fn_set_status ()
10657 return $1
10658 } # as_fn_set_status
10660 # as_fn_exit STATUS
10661 # -----------------
10662 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10663 as_fn_exit ()
10665 set +e
10666 as_fn_set_status $1
10667 exit $1
10668 } # as_fn_exit
10670 # as_fn_unset VAR
10671 # ---------------
10672 # Portably unset VAR.
10673 as_fn_unset ()
10675 { eval $1=; unset $1;}
10677 as_unset=as_fn_unset
10678 # as_fn_append VAR VALUE
10679 # ----------------------
10680 # Append the text in VALUE to the end of the definition contained in VAR. Take
10681 # advantage of any shell optimizations that allow amortized linear growth over
10682 # repeated appends, instead of the typical quadratic growth present in naive
10683 # implementations.
10684 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10685 eval 'as_fn_append ()
10687 eval $1+=\$2
10689 else
10690 as_fn_append ()
10692 eval $1=\$$1\$2
10694 fi # as_fn_append
10696 # as_fn_arith ARG...
10697 # ------------------
10698 # Perform arithmetic evaluation on the ARGs, and store the result in the
10699 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10700 # must be portable across $(()) and expr.
10701 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10702 eval 'as_fn_arith ()
10704 as_val=$(( $* ))
10706 else
10707 as_fn_arith ()
10709 as_val=`expr "$@" || test $? -eq 1`
10711 fi # as_fn_arith
10714 if expr a : '\(a\)' >/dev/null 2>&1 &&
10715 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10716 as_expr=expr
10717 else
10718 as_expr=false
10721 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10722 as_basename=basename
10723 else
10724 as_basename=false
10727 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10728 as_dirname=dirname
10729 else
10730 as_dirname=false
10733 as_me=`$as_basename -- "$0" ||
10734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10735 X"$0" : 'X\(//\)$' \| \
10736 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10737 $as_echo X/"$0" |
10738 sed '/^.*\/\([^/][^/]*\)\/*$/{
10739 s//\1/
10742 /^X\/\(\/\/\)$/{
10743 s//\1/
10746 /^X\/\(\/\).*/{
10747 s//\1/
10750 s/.*/./; q'`
10752 # Avoid depending upon Character Ranges.
10753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10756 as_cr_digits='0123456789'
10757 as_cr_alnum=$as_cr_Letters$as_cr_digits
10759 ECHO_C= ECHO_N= ECHO_T=
10760 case `echo -n x` in #(((((
10761 -n*)
10762 case `echo 'xy\c'` in
10763 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10764 xy) ECHO_C='\c';;
10765 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10766 ECHO_T=' ';;
10767 esac;;
10769 ECHO_N='-n';;
10770 esac
10772 rm -f conf$$ conf$$.exe conf$$.file
10773 if test -d conf$$.dir; then
10774 rm -f conf$$.dir/conf$$.file
10775 else
10776 rm -f conf$$.dir
10777 mkdir conf$$.dir 2>/dev/null
10779 if (echo >conf$$.file) 2>/dev/null; then
10780 if ln -s conf$$.file conf$$ 2>/dev/null; then
10781 as_ln_s='ln -s'
10782 # ... but there are two gotchas:
10783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10785 # In both cases, we have to default to `cp -p'.
10786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10787 as_ln_s='cp -p'
10788 elif ln conf$$.file conf$$ 2>/dev/null; then
10789 as_ln_s=ln
10790 else
10791 as_ln_s='cp -p'
10793 else
10794 as_ln_s='cp -p'
10796 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10797 rmdir conf$$.dir 2>/dev/null
10800 # as_fn_mkdir_p
10801 # -------------
10802 # Create "$as_dir" as a directory, including parents if necessary.
10803 as_fn_mkdir_p ()
10806 case $as_dir in #(
10807 -*) as_dir=./$as_dir;;
10808 esac
10809 test -d "$as_dir" || eval $as_mkdir_p || {
10810 as_dirs=
10811 while :; do
10812 case $as_dir in #(
10813 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10814 *) as_qdir=$as_dir;;
10815 esac
10816 as_dirs="'$as_qdir' $as_dirs"
10817 as_dir=`$as_dirname -- "$as_dir" ||
10818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10819 X"$as_dir" : 'X\(//\)[^/]' \| \
10820 X"$as_dir" : 'X\(//\)$' \| \
10821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10822 $as_echo X"$as_dir" |
10823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10824 s//\1/
10827 /^X\(\/\/\)[^/].*/{
10828 s//\1/
10831 /^X\(\/\/\)$/{
10832 s//\1/
10835 /^X\(\/\).*/{
10836 s//\1/
10839 s/.*/./; q'`
10840 test -d "$as_dir" && break
10841 done
10842 test -z "$as_dirs" || eval "mkdir $as_dirs"
10843 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10846 } # as_fn_mkdir_p
10847 if mkdir -p . 2>/dev/null; then
10848 as_mkdir_p='mkdir -p "$as_dir"'
10849 else
10850 test -d ./-p && rmdir ./-p
10851 as_mkdir_p=false
10854 if test -x / >/dev/null 2>&1; then
10855 as_test_x='test -x'
10856 else
10857 if ls -dL / >/dev/null 2>&1; then
10858 as_ls_L_option=L
10859 else
10860 as_ls_L_option=
10862 as_test_x='
10863 eval sh -c '\''
10864 if test -d "$1"; then
10865 test -d "$1/.";
10866 else
10867 case $1 in #(
10868 -*)set "./$1";;
10869 esac;
10870 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10871 ???[sx]*):;;*)false;;esac;fi
10872 '\'' sh
10875 as_executable_p=$as_test_x
10877 # Sed expression to map a string onto a valid CPP name.
10878 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10880 # Sed expression to map a string onto a valid variable name.
10881 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10884 exec 6>&1
10885 ## ----------------------------------- ##
10886 ## Main body of $CONFIG_STATUS script. ##
10887 ## ----------------------------------- ##
10888 _ASEOF
10889 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10892 # Save the log message, to keep $0 and so on meaningful, and to
10893 # report actual input values of CONFIG_FILES etc. instead of their
10894 # values after options handling.
10895 ac_log="
10896 This file was extended by $as_me, which was
10897 generated by GNU Autoconf 2.65. Invocation command line was
10899 CONFIG_FILES = $CONFIG_FILES
10900 CONFIG_HEADERS = $CONFIG_HEADERS
10901 CONFIG_LINKS = $CONFIG_LINKS
10902 CONFIG_COMMANDS = $CONFIG_COMMANDS
10903 $ $0 $@
10905 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10908 _ACEOF
10910 case $ac_config_files in *"
10911 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10912 esac
10914 case $ac_config_headers in *"
10915 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10916 esac
10919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10920 # Files that config.status was made for.
10921 config_files="$ac_config_files"
10922 config_headers="$ac_config_headers"
10923 config_commands="$ac_config_commands"
10925 _ACEOF
10927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10928 ac_cs_usage="\
10929 \`$as_me' instantiates files and other configuration actions
10930 from templates according to the current configuration. Unless the files
10931 and actions are specified as TAGs, all are instantiated by default.
10933 Usage: $0 [OPTION]... [TAG]...
10935 -h, --help print this help, then exit
10936 -V, --version print version number and configuration settings, then exit
10937 --config print configuration, then exit
10938 -q, --quiet, --silent
10939 do not print progress messages
10940 -d, --debug don't remove temporary files
10941 --recheck update $as_me by reconfiguring in the same conditions
10942 --file=FILE[:TEMPLATE]
10943 instantiate the configuration file FILE
10944 --header=FILE[:TEMPLATE]
10945 instantiate the configuration header FILE
10947 Configuration files:
10948 $config_files
10950 Configuration headers:
10951 $config_headers
10953 Configuration commands:
10954 $config_commands
10956 Report bugs to the package provider."
10958 _ACEOF
10959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10961 ac_cs_version="\\
10962 config.status
10963 configured by $0, generated by GNU Autoconf 2.65,
10964 with options \\"\$ac_cs_config\\"
10966 Copyright (C) 2009 Free Software Foundation, Inc.
10967 This config.status script is free software; the Free Software Foundation
10968 gives unlimited permission to copy, distribute and modify it."
10970 ac_pwd='$ac_pwd'
10971 srcdir='$srcdir'
10972 test -n "\$AWK" || AWK=awk
10973 _ACEOF
10975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10976 # The default lists apply if the user does not specify any file.
10977 ac_need_defaults=:
10978 while test $# != 0
10980 case $1 in
10981 --*=*)
10982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10983 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10984 ac_shift=:
10987 ac_option=$1
10988 ac_optarg=$2
10989 ac_shift=shift
10991 esac
10993 case $ac_option in
10994 # Handling of the options.
10995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10996 ac_cs_recheck=: ;;
10997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10998 $as_echo "$ac_cs_version"; exit ;;
10999 --config | --confi | --conf | --con | --co | --c )
11000 $as_echo "$ac_cs_config"; exit ;;
11001 --debug | --debu | --deb | --de | --d | -d )
11002 debug=: ;;
11003 --file | --fil | --fi | --f )
11004 $ac_shift
11005 case $ac_optarg in
11006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11007 esac
11008 as_fn_append CONFIG_FILES " '$ac_optarg'"
11009 ac_need_defaults=false;;
11010 --header | --heade | --head | --hea )
11011 $ac_shift
11012 case $ac_optarg in
11013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11014 esac
11015 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11016 ac_need_defaults=false;;
11017 --he | --h)
11018 # Conflict between --help and --header
11019 as_fn_error "ambiguous option: \`$1'
11020 Try \`$0 --help' for more information.";;
11021 --help | --hel | -h )
11022 $as_echo "$ac_cs_usage"; exit ;;
11023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11024 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11025 ac_cs_silent=: ;;
11027 # This is an error.
11028 -*) as_fn_error "unrecognized option: \`$1'
11029 Try \`$0 --help' for more information." ;;
11031 *) as_fn_append ac_config_targets " $1"
11032 ac_need_defaults=false ;;
11034 esac
11035 shift
11036 done
11038 ac_configure_extra_args=
11040 if $ac_cs_silent; then
11041 exec 6>/dev/null
11042 ac_configure_extra_args="$ac_configure_extra_args --silent"
11045 _ACEOF
11046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11047 if \$ac_cs_recheck; then
11048 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11049 shift
11050 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11051 CONFIG_SHELL='$SHELL'
11052 export CONFIG_SHELL
11053 exec "\$@"
11056 _ACEOF
11057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11058 exec 5>>config.log
11060 echo
11061 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11062 ## Running $as_me. ##
11063 _ASBOX
11064 $as_echo "$ac_log"
11065 } >&5
11067 _ACEOF
11068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11070 # INIT-COMMANDS
11073 aros_host_exe_suffix=${aros_host_exe_suffix}
11074 aros_tools_dir=${aros_tools_dir}
11075 aros_target_cpu=${aros_target_cpu}
11076 aros_target_arch=${aros_target_arch}
11077 aros_target_suffix=${aros_target_suffix}
11078 aros_target_nm_ln=${aros_target_nm_ln}
11079 aros_target_as_ln=${aros_target_as_ln}
11080 aros_target_ar_ln=${aros_target_ar_ln}
11081 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11082 aros_target_objdump_ln=${aros_target_objdump_ln}
11083 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11084 aros_target_strip_ln=${aros_target_strip_ln}
11087 aros_scripts_dir=${aros_scripts_dir}
11089 aros_tools_dir=${aros_tools_dir}
11092 _ACEOF
11094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11096 # Handling of arguments.
11097 for ac_config_target in $ac_config_targets
11099 case $ac_config_target in
11100 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11101 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11102 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11103 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11105 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11106 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11107 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11108 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11109 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11110 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11111 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11112 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11113 "${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" ;;
11114 "${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" ;;
11115 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11116 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11117 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11119 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11120 esac
11121 done
11124 # If the user did not use the arguments to specify the items to instantiate,
11125 # then the envvar interface is used. Set only those that are not.
11126 # We use the long form for the default assignment because of an extremely
11127 # bizarre bug on SunOS 4.1.3.
11128 if $ac_need_defaults; then
11129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11134 # Have a temporary directory for convenience. Make it in the build tree
11135 # simply because there is no reason against having it here, and in addition,
11136 # creating and moving files from /tmp can sometimes cause problems.
11137 # Hook for its removal unless debugging.
11138 # Note that there is a small window in which the directory will not be cleaned:
11139 # after its creation but before its name has been assigned to `$tmp'.
11140 $debug ||
11142 tmp=
11143 trap 'exit_status=$?
11144 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11146 trap 'as_fn_exit 1' 1 2 13 15
11148 # Create a (secure) tmp directory for tmp files.
11151 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11152 test -n "$tmp" && test -d "$tmp"
11153 } ||
11155 tmp=./conf$$-$RANDOM
11156 (umask 077 && mkdir "$tmp")
11157 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11159 # Set up the scripts for CONFIG_FILES section.
11160 # No need to generate them if there are no CONFIG_FILES.
11161 # This happens for instance with `./config.status config.h'.
11162 if test -n "$CONFIG_FILES"; then
11165 ac_cr=`echo X | tr X '\015'`
11166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11167 # But we know of no other shell where ac_cr would be empty at this
11168 # point, so we can use a bashism as a fallback.
11169 if test "x$ac_cr" = x; then
11170 eval ac_cr=\$\'\\r\'
11172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11174 ac_cs_awk_cr='\r'
11175 else
11176 ac_cs_awk_cr=$ac_cr
11179 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11180 _ACEOF
11184 echo "cat >conf$$subs.awk <<_ACEOF" &&
11185 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11186 echo "_ACEOF"
11187 } >conf$$subs.sh ||
11188 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11190 ac_delim='%!_!# '
11191 for ac_last_try in false false false false false :; do
11192 . ./conf$$subs.sh ||
11193 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11195 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11196 if test $ac_delim_n = $ac_delim_num; then
11197 break
11198 elif $ac_last_try; then
11199 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11200 else
11201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11203 done
11204 rm -f conf$$subs.sh
11206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11207 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11208 _ACEOF
11209 sed -n '
11211 s/^/S["/; s/!.*/"]=/
11214 s/^[^!]*!//
11215 :repl
11216 t repl
11217 s/'"$ac_delim"'$//
11218 t delim
11221 s/\(.\{148\}\)..*/\1/
11222 t more1
11223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11226 b repl
11227 :more1
11228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11231 s/.\{148\}//
11232 t nl
11233 :delim
11235 s/\(.\{148\}\)..*/\1/
11236 t more2
11237 s/["\\]/\\&/g; s/^/"/; s/$/"/
11240 :more2
11241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11244 s/.\{148\}//
11245 t delim
11246 ' <conf$$subs.awk | sed '
11247 /^[^""]/{
11249 s/\n//
11251 ' >>$CONFIG_STATUS || ac_write_fail=1
11252 rm -f conf$$subs.awk
11253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11254 _ACAWK
11255 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11256 for (key in S) S_is_set[key] = 1
11257 FS = "\a"
11261 line = $ 0
11262 nfields = split(line, field, "@")
11263 substed = 0
11264 len = length(field[1])
11265 for (i = 2; i < nfields; i++) {
11266 key = field[i]
11267 keylen = length(key)
11268 if (S_is_set[key]) {
11269 value = S[key]
11270 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11271 len += length(value) + length(field[++i])
11272 substed = 1
11273 } else
11274 len += 1 + keylen
11277 print line
11280 _ACAWK
11281 _ACEOF
11282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11284 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11285 else
11287 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11288 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11289 _ACEOF
11291 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11292 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11293 # trailing colons and then remove the whole line if VPATH becomes empty
11294 # (actually we leave an empty line to preserve line numbers).
11295 if test "x$srcdir" = x.; then
11296 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11297 s/:*\$(srcdir):*/:/
11298 s/:*\${srcdir}:*/:/
11299 s/:*@srcdir@:*/:/
11300 s/^\([^=]*=[ ]*\):*/\1/
11301 s/:*$//
11302 s/^[^=]*=[ ]*$//
11306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307 fi # test -n "$CONFIG_FILES"
11309 # Set up the scripts for CONFIG_HEADERS section.
11310 # No need to generate them if there are no CONFIG_HEADERS.
11311 # This happens for instance with `./config.status Makefile'.
11312 if test -n "$CONFIG_HEADERS"; then
11313 cat >"$tmp/defines.awk" <<\_ACAWK ||
11314 BEGIN {
11315 _ACEOF
11317 # Transform confdefs.h into an awk script `defines.awk', embedded as
11318 # here-document in config.status, that substitutes the proper values into
11319 # config.h.in to produce config.h.
11321 # Create a delimiter string that does not exist in confdefs.h, to ease
11322 # handling of long lines.
11323 ac_delim='%!_!# '
11324 for ac_last_try in false false :; do
11325 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11326 if test -z "$ac_t"; then
11327 break
11328 elif $ac_last_try; then
11329 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11330 else
11331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11333 done
11335 # For the awk script, D is an array of macro values keyed by name,
11336 # likewise P contains macro parameters if any. Preserve backslash
11337 # newline sequences.
11339 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11340 sed -n '
11341 s/.\{148\}/&'"$ac_delim"'/g
11342 t rset
11343 :rset
11344 s/^[ ]*#[ ]*define[ ][ ]*/ /
11345 t def
11347 :def
11348 s/\\$//
11349 t bsnl
11350 s/["\\]/\\&/g
11351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11352 D["\1"]=" \3"/p
11353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11355 :bsnl
11356 s/["\\]/\\&/g
11357 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11358 D["\1"]=" \3\\\\\\n"\\/p
11359 t cont
11360 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11361 t cont
11363 :cont
11365 s/.\{148\}/&'"$ac_delim"'/g
11366 t clear
11367 :clear
11368 s/\\$//
11369 t bsnlc
11370 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11372 :bsnlc
11373 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11374 b cont
11375 ' <confdefs.h | sed '
11376 s/'"$ac_delim"'/"\\\
11377 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11380 for (key in D) D_is_set[key] = 1
11381 FS = "\a"
11383 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11384 line = \$ 0
11385 split(line, arg, " ")
11386 if (arg[1] == "#") {
11387 defundef = arg[2]
11388 mac1 = arg[3]
11389 } else {
11390 defundef = substr(arg[1], 2)
11391 mac1 = arg[2]
11393 split(mac1, mac2, "(") #)
11394 macro = mac2[1]
11395 prefix = substr(line, 1, index(line, defundef) - 1)
11396 if (D_is_set[macro]) {
11397 # Preserve the white space surrounding the "#".
11398 print prefix "define", macro P[macro] D[macro]
11399 next
11400 } else {
11401 # Replace #undef with comments. This is necessary, for example,
11402 # in the case of _POSIX_SOURCE, which is predefined and required
11403 # on some systems where configure will not decide to define it.
11404 if (defundef == "undef") {
11405 print "/*", prefix defundef, macro, "*/"
11406 next
11410 { print }
11411 _ACAWK
11412 _ACEOF
11413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11414 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11415 fi # test -n "$CONFIG_HEADERS"
11418 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11419 shift
11420 for ac_tag
11422 case $ac_tag in
11423 :[FHLC]) ac_mode=$ac_tag; continue;;
11424 esac
11425 case $ac_mode$ac_tag in
11426 :[FHL]*:*);;
11427 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11428 :[FH]-) ac_tag=-:-;;
11429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11430 esac
11431 ac_save_IFS=$IFS
11432 IFS=:
11433 set x $ac_tag
11434 IFS=$ac_save_IFS
11435 shift
11436 ac_file=$1
11437 shift
11439 case $ac_mode in
11440 :L) ac_source=$1;;
11441 :[FH])
11442 ac_file_inputs=
11443 for ac_f
11445 case $ac_f in
11446 -) ac_f="$tmp/stdin";;
11447 *) # Look for the file first in the build tree, then in the source tree
11448 # (if the path is not absolute). The absolute path cannot be DOS-style,
11449 # because $ac_f cannot contain `:'.
11450 test -f "$ac_f" ||
11451 case $ac_f in
11452 [\\/$]*) false;;
11453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11454 esac ||
11455 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11456 esac
11457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11458 as_fn_append ac_file_inputs " '$ac_f'"
11459 done
11461 # Let's still pretend it is `configure' which instantiates (i.e., don't
11462 # use $as_me), people would be surprised to read:
11463 # /* config.h. Generated by config.status. */
11464 configure_input='Generated from '`
11465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11466 `' by configure.'
11467 if test x"$ac_file" != x-; then
11468 configure_input="$ac_file. $configure_input"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11470 $as_echo "$as_me: creating $ac_file" >&6;}
11472 # Neutralize special characters interpreted by sed in replacement strings.
11473 case $configure_input in #(
11474 *\&* | *\|* | *\\* )
11475 ac_sed_conf_input=`$as_echo "$configure_input" |
11476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11477 *) ac_sed_conf_input=$configure_input;;
11478 esac
11480 case $ac_tag in
11481 *:-:* | *:-) cat >"$tmp/stdin" \
11482 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11483 esac
11485 esac
11487 ac_dir=`$as_dirname -- "$ac_file" ||
11488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11489 X"$ac_file" : 'X\(//\)[^/]' \| \
11490 X"$ac_file" : 'X\(//\)$' \| \
11491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11492 $as_echo X"$ac_file" |
11493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11494 s//\1/
11497 /^X\(\/\/\)[^/].*/{
11498 s//\1/
11501 /^X\(\/\/\)$/{
11502 s//\1/
11505 /^X\(\/\).*/{
11506 s//\1/
11509 s/.*/./; q'`
11510 as_dir="$ac_dir"; as_fn_mkdir_p
11511 ac_builddir=.
11513 case "$ac_dir" in
11514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11517 # A ".." for each directory in $ac_dir_suffix.
11518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11519 case $ac_top_builddir_sub in
11520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11522 esac ;;
11523 esac
11524 ac_abs_top_builddir=$ac_pwd
11525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11526 # for backward compatibility:
11527 ac_top_builddir=$ac_top_build_prefix
11529 case $srcdir in
11530 .) # We are building in place.
11531 ac_srcdir=.
11532 ac_top_srcdir=$ac_top_builddir_sub
11533 ac_abs_top_srcdir=$ac_pwd ;;
11534 [\\/]* | ?:[\\/]* ) # Absolute name.
11535 ac_srcdir=$srcdir$ac_dir_suffix;
11536 ac_top_srcdir=$srcdir
11537 ac_abs_top_srcdir=$srcdir ;;
11538 *) # Relative name.
11539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11540 ac_top_srcdir=$ac_top_build_prefix$srcdir
11541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11542 esac
11543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11546 case $ac_mode in
11549 # CONFIG_FILE
11552 _ACEOF
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555 # If the template does not know about datarootdir, expand it.
11556 # FIXME: This hack should be removed a few years after 2.60.
11557 ac_datarootdir_hack=; ac_datarootdir_seen=
11558 ac_sed_dataroot='
11559 /datarootdir/ {
11563 /@datadir@/p
11564 /@docdir@/p
11565 /@infodir@/p
11566 /@localedir@/p
11567 /@mandir@/p'
11568 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11569 *datarootdir*) ac_datarootdir_seen=yes;;
11570 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11572 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11573 _ACEOF
11574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11575 ac_datarootdir_hack='
11576 s&@datadir@&$datadir&g
11577 s&@docdir@&$docdir&g
11578 s&@infodir@&$infodir&g
11579 s&@localedir@&$localedir&g
11580 s&@mandir@&$mandir&g
11581 s&\\\${datarootdir}&$datarootdir&g' ;;
11582 esac
11583 _ACEOF
11585 # Neutralize VPATH when `$srcdir' = `.'.
11586 # Shell code in configure.ac might set extrasub.
11587 # FIXME: do we really want to maintain this feature?
11588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11589 ac_sed_extra="$ac_vpsub
11590 $extrasub
11591 _ACEOF
11592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11595 s|@configure_input@|$ac_sed_conf_input|;t t
11596 s&@top_builddir@&$ac_top_builddir_sub&;t t
11597 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11598 s&@srcdir@&$ac_srcdir&;t t
11599 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11600 s&@top_srcdir@&$ac_top_srcdir&;t t
11601 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11602 s&@builddir@&$ac_builddir&;t t
11603 s&@abs_builddir@&$ac_abs_builddir&;t t
11604 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11605 $ac_datarootdir_hack
11607 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11608 || as_fn_error "could not create $ac_file" "$LINENO" 5
11610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11614 which seems to be undefined. Please make sure it is defined." >&5
11615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11616 which seems to be undefined. Please make sure it is defined." >&2;}
11618 rm -f "$tmp/stdin"
11619 case $ac_file in
11620 -) cat "$tmp/out" && rm -f "$tmp/out";;
11621 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11622 esac \
11623 || as_fn_error "could not create $ac_file" "$LINENO" 5
11627 # CONFIG_HEADER
11629 if test x"$ac_file" != x-; then
11631 $as_echo "/* $configure_input */" \
11632 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11633 } >"$tmp/config.h" \
11634 || as_fn_error "could not create $ac_file" "$LINENO" 5
11635 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11637 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11638 else
11639 rm -f "$ac_file"
11640 mv "$tmp/config.h" "$ac_file" \
11641 || as_fn_error "could not create $ac_file" "$LINENO" 5
11643 else
11644 $as_echo "/* $configure_input */" \
11645 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11646 || as_fn_error "could not create -" "$LINENO" 5
11650 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11651 $as_echo "$as_me: executing $ac_file commands" >&6;}
11653 esac
11656 case $ac_file$ac_mode in
11657 "compiler_executable":C)
11658 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11659 mkdir -p $prefix
11660 prefix="${prefix}/${aros_target_cpu}-aros"
11661 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11663 echo ${prefix}
11664 echo ${prefix2}
11665 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11667 ln -sf ${prefix2}-gcc ${prefix}-gcc
11668 ln -sf ${prefix2}-ld ${prefix}-ld
11670 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
11671 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
11672 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
11673 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
11674 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
11675 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
11676 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
11678 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
11679 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
11680 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
11681 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
11682 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
11683 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
11684 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
11686 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11687 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11689 esac
11690 done # for ac_tag
11693 as_fn_exit 0
11694 _ACEOF
11695 ac_clean_files=$ac_clean_files_save
11697 test $ac_write_fail = 0 ||
11698 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11701 # configure is writing to config.log, and then calls config.status.
11702 # config.status does its own redirection, appending to config.log.
11703 # Unfortunately, on DOS this fails, as config.log is still kept open
11704 # by configure, so config.status won't be able to write to it; its
11705 # output is simply discarded. So we exec the FD to /dev/null,
11706 # effectively closing config.log, so it can be properly (re)opened and
11707 # appended to by config.status. When coming back to configure, we
11708 # need to make the FD available again.
11709 if test "$no_create" != yes; then
11710 ac_cs_success=:
11711 ac_config_status_args=
11712 test "$silent" = yes &&
11713 ac_config_status_args="$ac_config_status_args --quiet"
11714 exec 5>/dev/null
11715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11716 exec 5>>config.log
11717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11718 # would make configure fail if this is the last instruction.
11719 $ac_cs_success || as_fn_exit $?
11721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11728 #XXX compatability...
11729 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11731 if test -n "$aros_shared_cflags" ; then
11732 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11733 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg