If the entry isnt visible dont render it - and if it is, correctly clamp the clipped...
[AROS.git] / configure
blob43726c4ad2576db4932becde2b27773c53c44829
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="mmakefile"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 gcc_target_cpu
593 ignore_undefined_symbols
594 aros_modules_debug
595 aros_stack_debug
596 aros_mungwall_debug
597 aros_debug
598 ENABLE_X11
599 KERNEL_DBUS_INCLUDES
600 KERNEL_DBUS_KOBJ
601 DBUS_LIBFLAGS
602 DBUS_CFLAGS
603 ENABLE_DBUS
604 aros_nesting_supervisor
605 aros_palm_debug_hack
606 aros_serial_debug
607 aros_bochs_hack
608 aros_host_sdl_libs
609 aros_host_sdl_cflags
610 aros_host_x11_libdirs
611 aros_host_x11_includes
612 DO_VIDMODE_SUPPORT
613 DO_XSHM_SUPPORT
614 aros_default_wbdepth
615 aros_default_wbheight
616 aros_default_wbwidth
617 sdl_hidd_target
618 x11_hidd_target
619 aros_target_strip_flags
620 aros_target_genmap
621 aros_debug_ldflags
622 aros_debug_aflags
623 aros_debug_cflags
624 aros_kernel_ldflags
625 aros_kernel_cflags
626 aros_shared_ldflags
627 aros_shared_aflags
628 aros_shared_cflags
629 aros_config_ldflags
630 aros_config_aflags
631 aros_config_cflags
632 aros_arch_libs
633 aros_compiler_libs
634 aros_object_format
635 aros_shared_ld
636 aros_shared_default
637 aros_target_nm
638 aros_target_strip
639 aros_target_objcopy
640 aros_target_objdump
641 aros_target_cc_path
642 aros_target_cc_includes
643 orig_target_ld
644 aros_target_as
645 aros_kernel_cc
646 orig_target_cc
647 aros_kernel_nm
648 aros_target_ranlib
649 aros_target_ar
650 aros_target_incl
651 aros_target_suffix
652 aros_target_variant
653 aros_target_cpu
654 aros_target_arch
655 aros_target_bootloader
656 aros_target_iconset
657 aros_target_guitheme
658 aros_tools_dir
659 aros_host_lib_suffix
660 aros_host_exe_suffix
661 aros_host_mkargs
662 aros_host_mkdep
663 aros_host_debug
664 aros_host_ldflags
665 aros_host_cflags
666 aros_host_make
667 aros_host_cc
668 aros_host_cpu
669 aros_host_arch
670 aros_cc_pre
671 AROS_PORTSSRCDIR
672 SRCDIR
673 AROS_BUILDDIR
674 aros_flavour_uc
675 aros_flavour
676 aros_cpu
677 aros_arch
678 SDL_LIBS
679 SDL_CFLAGS
680 SDL_CONFIG
681 XMKMF
682 aros_cflags_iquote_end
683 aros_cflags_iquote
684 kernel_cflags_iquote_end
685 kernel_cflags_iquote
686 host_cflags_iquote_end
687 host_cflags_iquote
688 aros_target_nostdlib_ldflags
689 aros_target_detach_ldflags
690 aros_target_nix_ldflags
691 aros_target_nostartup_ldflags
692 aros_target_nostdinc_cflags
693 aros_kernel_rescomp
694 aros_target_strip_ln
695 aros_target_ranlib_ln
696 aros_target_objdump_ln
697 aros_target_objcopy_ln
698 aros_target_nm_ln
699 aros_target_ar_ln
700 aros_kernel_ld
701 aros_target_as_ln
702 aros_target_ld
703 aros_target_cc
704 CCACHE
705 DISTCC
706 LIBOBJS
707 EGREP
708 GREP
710 TEST
713 pkgpyexecdir
714 pyexecdir
715 pkgpythondir
716 pythondir
717 PYTHON_PLATFORM
718 PYTHON_EXEC_PREFIX
719 PYTHON_PREFIX
720 PYTHON_VERSION
721 PYTHON
722 CHMOD
724 PPMTOILBM
725 PNGTOPNM
726 FLEX
727 BISON
730 UNIQ
731 SORT
732 TOUCH
733 MKDIR
734 ECHO
738 aros_host_strip
739 aros_host_ranlib
740 aros_host_ar
741 aros_host_automake
742 aros_host_autoheader
743 aros_host_autoconf
744 aros_host_aclocal
745 aros_host_ld
746 MMAKE
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_build_type
806 enable_debug
807 enable_crosstools
808 enable_distcc
809 enable_ccache
810 with_optimization
811 enable_target_variant
812 with_portssources
813 with_bootloader
814 with_iconset
815 with_theme
816 enable_includes
817 with_resolution
818 enable_bochs_hack
819 with_serial_debug
820 enable_palm_debug_hack
821 enable_nesting_supervisor
822 enable_x11_hidd
823 with_x
824 enable_x11_shm
825 enable_x11_vidmode
826 enable_sdl_hidd
827 with_sdl_prefix
828 with_sdl_exec_prefix
829 enable_sdltest
830 enable_dbus
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 XMKMF'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 X features:
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-build-type=TYPE
1459 Select the build type. Available types are:
1460 personal, nightly, snapshot, milestone, release. Do
1461 NOT use this option unless you know what you are
1462 doing! (default=personal)
1463 --enable-debug=list Enable different types of debug. Commas or
1464 whitespaces can be used to separate the items in the
1465 list. Available types of debug are: all, none,
1466 messages, stack, mungwall, modules, symbols. If no
1467 list is provided then "all" is assumed.
1468 (default=none)
1469 --enable-crosstools Build cross-compiler toolchains if necessary
1470 (default=no).
1471 --enable-distcc Use distcc as a front end to the compiler
1472 (default=no).
1473 --enable-ccache Use ccache as a front end to the compiler
1474 (default=no).
1475 --enable-target-variant=NAME
1476 Enable a specific target variant(default=none)
1477 --enable-includes=dir Alternative system include directory
1478 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1479 (default=no)
1480 --enable-palm-debug-hack
1481 Enable palm debug output hack in palm native
1482 (default=no)
1483 --enable-nesting-supervisor
1484 Enable nesting supervisor support in unix
1485 (default=no)
1486 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1487 --enable-x11-shm use X11 shared memory (default=auto)
1488 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1489 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1490 --disable-sdltest Do not try to compile and run a test SDL program
1491 --enable-dbus Enable DBUS support via dbus.library (default=no)
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-optimization=FLAGS
1497 Use optimization flags FLAGS (default=-O2).
1498 --with-portssources=DIR Where to download sourcecode for external ports
1499 --with-bootloader=NAME Use a specific bootloader
1500 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1501 --with-theme=NAME Use a specific GUI Theme
1502 --with-resolution=XRESxYRESxDEPTH
1503 Default resolution of the initial WorkbenchScreen
1504 --with-serial-debug Enable serial debug output in native (default=no)
1505 --with-x use the X Window System
1506 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1507 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CPP C preprocessor
1518 XMKMF Path to xmkmf, Makefile generator for X Window System
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to the package provider.
1524 _ACEOF
1525 ac_status=$?
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 continue
1534 ac_builddir=.
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1552 case $srcdir in
1553 .) # We are building in place.
1554 ac_srcdir=.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1561 *) # Relative name.
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1576 else
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 fi || ac_status=$?
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1580 done
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585 cat <<\_ACEOF
1586 configure
1587 generated by GNU Autoconf 2.64
1589 Copyright (C) 2009 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593 exit
1596 ## ------------------------ ##
1597 ## Autoconf initialization. ##
1598 ## ------------------------ ##
1600 # ac_fn_c_try_compile LINENO
1601 # --------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_compile ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1631 ac_retval=1
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 return $ac_retval
1636 } # ac_fn_c_try_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } >/dev/null && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 return $ac_retval
1673 } # ac_fn_c_try_cpp
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1679 # accordingly.
1680 ac_fn_c_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 else
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1703 else
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1719 else
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 yes:no: )
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 no:yes:* )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 esac
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 eval "$3=\$ac_header_compiler"
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1766 ac_fn_c_try_run ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1802 } # ac_fn_c_try_run
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=1
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 return $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1882 # ----------------------------------------------------
1883 # Tries to find if the field MEMBER exists in type AGGR, after including
1884 # INCLUDES, setting cache variable VAR accordingly.
1885 ac_fn_c_check_member ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1889 $as_echo_n "checking for $2.$3... " >&6; }
1890 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1897 main ()
1899 static $2 ac_aggr;
1900 if (ac_aggr.$3)
1901 return 0;
1903 return 0;
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 eval "$4=yes"
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 main ()
1915 static $2 ac_aggr;
1916 if (sizeof ac_aggr.$3)
1917 return 0;
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 eval "$4=yes"
1924 else
1925 eval "$4=no"
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 eval ac_res=\$$4
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 } # ac_fn_c_check_member
1938 # ac_fn_c_check_decl LINENO SYMBOL VAR
1939 # ------------------------------------
1940 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1941 ac_fn_c_check_decl ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1945 $as_echo_n "checking whether $2 is declared... " >&6; }
1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1953 main ()
1955 #ifndef $2
1956 (void) $2;
1957 #endif
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$3=yes"
1965 else
1966 eval "$3=no"
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 } # ac_fn_c_check_decl
1977 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1978 # -------------------------------------------
1979 # Tests whether TYPE exists after having included INCLUDES, setting cache
1980 # variable VAR accordingly.
1981 ac_fn_c_check_type ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=no"
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 if (sizeof ($2))
1997 return 0;
1999 return 0;
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 main ()
2009 if (sizeof (($2)))
2010 return 0;
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2017 else
2018 eval "$3=yes"
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_c_check_type
2031 # ac_fn_c_check_func LINENO FUNC VAR
2032 # ----------------------------------
2033 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2034 ac_fn_c_check_func ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2046 #define $2 innocuous_$2
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $2 (); below.
2050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2051 <limits.h> exists even on freestanding compilers. */
2053 #ifdef __STDC__
2054 # include <limits.h>
2055 #else
2056 # include <assert.h>
2057 #endif
2059 #undef $2
2061 /* Override any GCC internal prototype to avoid an error.
2062 Use char because int might match the return type of a GCC
2063 builtin and then its argument prototype would still apply. */
2064 #ifdef __cplusplus
2065 extern "C"
2066 #endif
2067 char $2 ();
2068 /* The GNU C library defines this for functions which it implements
2069 to always fail with ENOSYS. Some functions are actually named
2070 something starting with __ and the normal name is an alias. */
2071 #if defined __stub_$2 || defined __stub___$2
2072 choke me
2073 #endif
2076 main ()
2078 return $2 ();
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_link "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext \
2089 conftest$ac_exeext conftest.$ac_ext
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096 } # ac_fn_c_check_func
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2101 It was created by $as_me, which was
2102 generated by GNU Autoconf 2.64. Invocation command line was
2104 $ $0 $@
2106 _ACEOF
2107 exec 5>>config.log
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131 _ASUNAME
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140 IFS=$as_save_IFS
2142 } >&5
2144 cat >&5 <<_ACEOF
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2151 _ACEOF
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2165 for ac_arg
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 case $ac_pass in
2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178 as_fn_append ac_configure_args1 " '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2194 as_fn_append ac_configure_args " '$ac_arg'"
2196 esac
2197 done
2198 done
2199 { ac_configure_args0=; unset ac_configure_args0;}
2200 { ac_configure_args1=; unset ac_configure_args1;}
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log. We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2210 echo
2212 cat <<\_ASBOX
2213 ## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##
2216 _ASBOX
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 esac |
2246 sort
2248 echo
2250 cat <<\_ASBOX
2251 ## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##
2254 _ASBOX
2255 echo
2256 for ac_var in $ac_subst_vars
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2266 if test -n "$ac_subst_files"; then
2267 cat <<\_ASBOX
2268 ## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##
2271 _ASBOX
2272 echo
2273 for ac_var in $ac_subst_files
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2284 if test -s confdefs.h; then
2285 cat <<\_ASBOX
2286 ## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##
2289 _ASBOX
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 ac_site_file1=$CONFIG_SITE
2345 elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348 else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 test "x$ac_site_file" = xNONE && continue
2355 if test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file"
2361 done
2363 if test -r "$cache_file"; then
2364 # Some versions of bash will fail to source /dev/null (special
2365 # files actually), so we avoid doing that.
2366 if test -f "$cache_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368 $as_echo "$as_me: loading cache $cache_file" >&6;}
2369 case $cache_file in
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
2372 esac
2374 else
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376 $as_echo "$as_me: creating cache $cache_file" >&6;}
2377 >$cache_file
2380 # Check that the precious variables saved in the cache have kept the same
2381 # value.
2382 ac_cache_corrupted=false
2383 for ac_var in $ac_precious_vars; do
2384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
2386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
2388 case $ac_old_set,$ac_new_set in
2389 set,)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,set)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,);;
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
2400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416 fi;;
2417 esac
2418 # Pass precious variables to config.status.
2419 if test "$ac_new_set" = set; then
2420 case $ac_new_val in
2421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 *) ac_arg=$ac_var=$ac_new_val ;;
2423 esac
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2427 esac
2429 done
2430 if $ac_cache_corrupted; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437 ## -------------------- ##
2438 ## Main body of script. ##
2439 ## -------------------- ##
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 ac_aux_dir=
2450 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2457 done
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2473 # Check what host we are running on.
2474 # If a target is not suggested, we use this one.
2475 # Note that what we call a target, Autoconf calls a host.
2476 # Make sure we can run config.sub.
2477 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2478 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2481 $as_echo_n "checking build system type... " >&6; }
2482 if test "${ac_cv_build+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 ac_build_alias=$build_alias
2486 test "x$ac_build_alias" = x &&
2487 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2488 test "x$ac_build_alias" = x &&
2489 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2490 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2491 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2495 $as_echo "$ac_cv_build" >&6; }
2496 case $ac_cv_build in
2497 *-*-*) ;;
2498 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2499 esac
2500 build=$ac_cv_build
2501 ac_save_IFS=$IFS; IFS='-'
2502 set x $ac_cv_build
2503 shift
2504 build_cpu=$1
2505 build_vendor=$2
2506 shift; shift
2507 # Remember, the first character of IFS is used to create $*,
2508 # except with old shells:
2509 build_os=$*
2510 IFS=$ac_save_IFS
2511 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2515 $as_echo_n "checking host system type... " >&6; }
2516 if test "${ac_cv_host+set}" = set; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 if test "x$host_alias" = x; then
2520 ac_cv_host=$ac_cv_build
2521 else
2522 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2523 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2528 $as_echo "$ac_cv_host" >&6; }
2529 case $ac_cv_host in
2530 *-*-*) ;;
2531 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2532 esac
2533 host=$ac_cv_host
2534 ac_save_IFS=$IFS; IFS='-'
2535 set x $ac_cv_host
2536 shift
2537 host_cpu=$1
2538 host_vendor=$2
2539 shift; shift
2540 # Remember, the first character of IFS is used to create $*,
2541 # except with old shells:
2542 host_os=$*
2543 IFS=$ac_save_IFS
2544 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548 # The AROS target is slightly different to the normal GNU style
2549 # format. We don't have the middle part, and we reverse the order
2550 # of the $(CPU) and $(OS) bits.
2552 # Don't strip the version of the target yet, it might be
2553 # useful on some systems.
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2556 $as_echo_n "checking for AROS style target... " >&6; }
2558 if test "$target" = "NONE" ; then
2559 target=$host_os-$host_cpu
2560 cross_compile=no
2561 else
2562 if test "$target" = "" ; then
2563 target=$host_os-$host_cpu
2564 cross_compile=no
2565 else
2566 cross_compile=yes
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2570 $as_echo "$target" >&6; }
2572 if test "$host_os" = "mingw32" ; then
2573 PWDCMD="pwd -W"
2576 #don't know where else to put this...
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2578 $as_echo_n "checking Building AROS in .. ... " >&6; }
2579 AROS_BUILDDIR=`${PWDCMD-pwd}`
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2581 $as_echo "$AROS_BUILDDIR" >&6; }
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2584 $as_echo_n "checking AROS Source in .. ... " >&6; }
2585 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2586 SRCDIR=${srcpwd}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2588 $as_echo "$SRCDIR" >&6; }
2590 # Parse the target field into something useful.
2592 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2593 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2596 aros_default_wbwidth=800
2597 aros_default_wbheight=600
2598 aros_default_wbdepth=4
2601 # The first step is to find the host binaries.
2602 # Check for a compiler.
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2632 IFS=$as_save_IFS
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 $as_echo "$CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2647 if test -z "$ac_cv_prog_CC"; then
2648 ac_ct_CC=$CC
2649 # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="gcc"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2679 $as_echo "$ac_ct_CC" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2685 if test "x$ac_ct_CC" = x; then
2686 CC=""
2687 else
2688 case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2692 ac_tool_warned=yes ;;
2693 esac
2694 CC=$ac_ct_CC
2696 else
2697 CC="$ac_cv_prog_CC"
2700 if test -z "$CC"; then
2701 if test -n "$ac_tool_prefix"; then
2702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2703 set dummy ${ac_tool_prefix}cc; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="${ac_tool_prefix}cc"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2741 if test -z "$CC"; then
2742 # Extract the first word of "cc", so it can be a program name with args.
2743 set dummy cc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 ac_prog_rejected=no
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2761 ac_prog_rejected=yes
2762 continue
2764 ac_cv_prog_CC="cc"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2770 IFS=$as_save_IFS
2772 if test $ac_prog_rejected = yes; then
2773 # We found a bogon in the path, so make sure we never use it.
2774 set dummy $ac_cv_prog_CC
2775 shift
2776 if test $# != 0; then
2777 # We chose a different compiler from the bogus one.
2778 # However, it has the same basename, so the bogon will be chosen
2779 # first if we set CC to just the basename; use the full file name.
2780 shift
2781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 for ac_prog in cl.exe
2801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_CC+set}" = set; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2822 done
2823 done
2824 IFS=$as_save_IFS
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2838 test -n "$CC" && break
2839 done
2841 if test -z "$CC"; then
2842 ac_ct_CC=$CC
2843 for ac_prog in cl.exe
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_ac_ct_CC="$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2868 IFS=$as_save_IFS
2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2875 $as_echo "$ac_ct_CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2882 test -n "$ac_ct_CC" && break
2883 done
2885 if test "x$ac_ct_CC" = x; then
2886 CC=""
2887 else
2888 case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894 CC=$ac_ct_CC
2901 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error "no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." "$LINENO" 5; }
2906 # Provide some information about the compiler.
2907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2908 set X $ac_compile
2909 ac_compiler=$2
2910 for ac_option in --version -v -V -qversion; do
2911 { { ac_try="$ac_compiler $ac_option >&5"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917 $as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2919 ac_status=$?
2920 if test -s conftest.err; then
2921 sed '10a\
2922 ... rest of stderr output deleted ...
2923 10q' conftest.err >conftest.er1
2924 cat conftest.er1 >&5
2925 rm -f conftest.er1 conftest.err
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }
2929 done
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933 #include <stdio.h>
2935 main ()
2937 FILE *f = fopen ("conftest.out", "w");
2938 return ferror (f) || fclose (f) != 0;
2941 return 0;
2943 _ACEOF
2944 ac_clean_files_save=$ac_clean_files
2945 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2946 # Try to create an executable without -o first, disregard a.out.
2947 # It will help us diagnose broken compilers, and finding out an intuition
2948 # of exeext.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2950 $as_echo_n "checking for C compiler default output file name... " >&6; }
2951 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2953 # The possible output files:
2954 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2956 ac_rmfiles=
2957 for ac_file in $ac_files
2959 case $ac_file in
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2961 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2962 esac
2963 done
2964 rm -f $ac_rmfiles
2966 if { { ac_try="$ac_link_default"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_link_default") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }; then :
2977 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2978 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2979 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2980 # so that the user can short-circuit this test for compilers unknown to
2981 # Autoconf.
2982 for ac_file in $ac_files ''
2984 test -f "$ac_file" || continue
2985 case $ac_file in
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2988 [ab].out )
2989 # We found the default executable, but exeext='' is most
2990 # certainly right.
2991 break;;
2992 *.* )
2993 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2994 then :; else
2995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997 # We set ac_cv_exeext here because the later test for it is not
2998 # safe: cross compilers may not add the suffix if given an `-o'
2999 # argument, so we may need to know it at that point already.
3000 # Even if this section looks crufty: it has the advantage of
3001 # actually working.
3002 break;;
3004 break;;
3005 esac
3006 done
3007 test "$ac_cv_exeext" = no && ac_cv_exeext=
3009 else
3010 ac_file=''
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3013 $as_echo "$ac_file" >&6; }
3014 if test -z "$ac_file"; then :
3015 $as_echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 { as_fn_set_status 77
3021 as_fn_error "C compiler cannot create executables
3022 See \`config.log' for more details." "$LINENO" 5; }; }
3024 ac_exeext=$ac_cv_exeext
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3029 $as_echo_n "checking whether the C compiler works... " >&6; }
3030 # If not cross compiling, check that we can run a simple program.
3031 if test "$cross_compiling" != yes; then
3032 if { ac_try='./$ac_file'
3033 { { case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; }; then
3043 cross_compiling=no
3044 else
3045 if test "$cross_compiling" = maybe; then
3046 cross_compiling=yes
3047 else
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error "cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details." "$LINENO" 5; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057 $as_echo "yes" >&6; }
3059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3060 ac_clean_files=$ac_clean_files_save
3061 # Check that the compiler produces executables we can run. If not, either
3062 # the compiler is broken, or we cross compile.
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3064 $as_echo_n "checking whether we are cross compiling... " >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3066 $as_echo "$cross_compiling" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093 done
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." "$LINENO" 5; }
3100 rm -f conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3106 ac_exeext=$EXEEXT
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3108 $as_echo_n "checking for suffix of object files... " >&6; }
3109 if test "${ac_cv_objext+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3116 main ()
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.o conftest.obj
3124 if { { ac_try="$ac_compile"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_compile") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 for ac_file in conftest.o conftest.obj conftest.*; do
3136 test -f "$ac_file" || continue;
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3139 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3140 break;;
3141 esac
3142 done
3143 else
3144 $as_echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error "cannot compute suffix of object files: cannot compile
3150 See \`config.log' for more details." "$LINENO" 5; }
3152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3155 $as_echo "$ac_cv_objext" >&6; }
3156 OBJEXT=$ac_cv_objext
3157 ac_objext=$OBJEXT
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3159 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3160 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3167 main ()
3169 #ifndef __GNUC__
3170 choke me
3171 #endif
3174 return 0;
3176 _ACEOF
3177 if ac_fn_c_try_compile "$LINENO"; then :
3178 ac_compiler_gnu=yes
3179 else
3180 ac_compiler_gnu=no
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3187 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3188 if test $ac_compiler_gnu = yes; then
3189 GCC=yes
3190 else
3191 GCC=
3193 ac_test_CFLAGS=${CFLAGS+set}
3194 ac_save_CFLAGS=$CFLAGS
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3196 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3197 if test "${ac_cv_prog_cc_g+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 ac_save_c_werror_flag=$ac_c_werror_flag
3201 ac_c_werror_flag=yes
3202 ac_cv_prog_cc_g=no
3203 CFLAGS="-g"
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3208 main ()
3212 return 0;
3214 _ACEOF
3215 if ac_fn_c_try_compile "$LINENO"; then :
3216 ac_cv_prog_cc_g=yes
3217 else
3218 CFLAGS=""
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3223 main ()
3227 return 0;
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3232 else
3233 ac_c_werror_flag=$ac_save_c_werror_flag
3234 CFLAGS="-g"
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3239 main ()
3243 return 0;
3245 _ACEOF
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_cv_prog_cc_g=yes
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 ac_c_werror_flag=$ac_save_c_werror_flag
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3257 $as_echo "$ac_cv_prog_cc_g" >&6; }
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3266 else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3274 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3275 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_cv_prog_cc_c89=no
3279 ac_save_CC=$CC
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290 char **p;
3291 int i;
3293 return p[i];
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316 #define FOO(x) 'x'
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323 int argc;
3324 char **argv;
3326 main ()
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 return 0;
3332 _ACEOF
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 CC="$ac_save_CC $ac_arg"
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_c89=$ac_arg
3340 rm -f core conftest.err conftest.$ac_objext
3341 test "x$ac_cv_prog_cc_c89" != "xno" && break
3342 done
3343 rm -f conftest.$ac_ext
3344 CC=$ac_save_CC
3347 # AC_CACHE_VAL
3348 case "x$ac_cv_prog_cc_c89" in
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3351 $as_echo "none needed" >&6; } ;;
3352 xno)
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3354 $as_echo "unsupported" >&6; } ;;
3356 CC="$CC $ac_cv_prog_cc_c89"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3358 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3359 esac
3360 if test "x$ac_cv_prog_cc_c89" != xno; then :
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 case $ac_cv_prog_cc_stdc in #(
3371 no) :
3372 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3373 *) :
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3375 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3376 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 ac_cv_prog_cc_c99=no
3380 ac_save_CC=$CC
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383 #include <stdarg.h>
3384 #include <stdbool.h>
3385 #include <stdlib.h>
3386 #include <wchar.h>
3387 #include <stdio.h>
3389 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3390 #define debug(...) fprintf (stderr, __VA_ARGS__)
3391 #define showlist(...) puts (#__VA_ARGS__)
3392 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3393 static void
3394 test_varargs_macros (void)
3396 int x = 1234;
3397 int y = 5678;
3398 debug ("Flag");
3399 debug ("X = %d\n", x);
3400 showlist (The first, second, and third items.);
3401 report (x>y, "x is %d but y is %d", x, y);
3404 // Check long long types.
3405 #define BIG64 18446744073709551615ull
3406 #define BIG32 4294967295ul
3407 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3408 #if !BIG_OK
3409 your preprocessor is broken;
3410 #endif
3411 #if BIG_OK
3412 #else
3413 your preprocessor is broken;
3414 #endif
3415 static long long int bignum = -9223372036854775807LL;
3416 static unsigned long long int ubignum = BIG64;
3418 struct incomplete_array
3420 int datasize;
3421 double data[];
3424 struct named_init {
3425 int number;
3426 const wchar_t *name;
3427 double average;
3430 typedef const char *ccp;
3432 static inline int
3433 test_restrict (ccp restrict text)
3435 // See if C++-style comments work.
3436 // Iterate through items via the restricted pointer.
3437 // Also check for declarations in for loops.
3438 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3439 continue;
3440 return 0;
3443 // Check varargs and va_copy.
3444 static void
3445 test_varargs (const char *format, ...)
3447 va_list args;
3448 va_start (args, format);
3449 va_list args_copy;
3450 va_copy (args_copy, args);
3452 const char *str;
3453 int number;
3454 float fnumber;
3456 while (*format)
3458 switch (*format++)
3460 case 's': // string
3461 str = va_arg (args_copy, const char *);
3462 break;
3463 case 'd': // int
3464 number = va_arg (args_copy, int);
3465 break;
3466 case 'f': // float
3467 fnumber = va_arg (args_copy, double);
3468 break;
3469 default:
3470 break;
3473 va_end (args_copy);
3474 va_end (args);
3478 main ()
3481 // Check bool.
3482 _Bool success = false;
3484 // Check restrict.
3485 if (test_restrict ("String literal") == 0)
3486 success = true;
3487 char *restrict newvar = "Another string";
3489 // Check varargs.
3490 test_varargs ("s, d' f .", "string", 65, 34.234);
3491 test_varargs_macros ();
3493 // Check flexible array members.
3494 struct incomplete_array *ia =
3495 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3496 ia->datasize = 10;
3497 for (int i = 0; i < ia->datasize; ++i)
3498 ia->data[i] = i * 1.234;
3500 // Check named initializers.
3501 struct named_init ni = {
3502 .number = 34,
3503 .name = L"Test wide string",
3504 .average = 543.34343,
3507 ni.number = 58;
3509 int dynamic_array[ni.number];
3510 dynamic_array[ni.number - 1] = 543;
3512 // work around unused variable warnings
3513 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3514 || dynamic_array[ni.number - 1] != 543);
3517 return 0;
3519 _ACEOF
3520 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3522 CC="$ac_save_CC $ac_arg"
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_c99=$ac_arg
3526 rm -f core conftest.err conftest.$ac_objext
3527 test "x$ac_cv_prog_cc_c99" != "xno" && break
3528 done
3529 rm -f conftest.$ac_ext
3530 CC=$ac_save_CC
3533 # AC_CACHE_VAL
3534 case "x$ac_cv_prog_cc_c99" in
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3537 $as_echo "none needed" >&6; } ;;
3538 xno)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3540 $as_echo "unsupported" >&6; } ;;
3542 CC="$CC $ac_cv_prog_cc_c99"
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3544 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3545 esac
3546 if test "x$ac_cv_prog_cc_c99" != xno; then :
3547 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3550 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3551 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 ac_cv_prog_cc_c89=no
3555 ac_save_CC=$CC
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <stdarg.h>
3559 #include <stdio.h>
3560 #include <sys/types.h>
3561 #include <sys/stat.h>
3562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3563 struct buf { int x; };
3564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3565 static char *e (p, i)
3566 char **p;
3567 int i;
3569 return p[i];
3571 static char *f (char * (*g) (char **, int), char **p, ...)
3573 char *s;
3574 va_list v;
3575 va_start (v,p);
3576 s = g (p, va_arg (v,int));
3577 va_end (v);
3578 return s;
3581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3582 function prototypes and stuff, but not '\xHH' hex character constants.
3583 These don't provoke an error unfortunately, instead are silently treated
3584 as 'x'. The following induces an error, until -std is added to get
3585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3586 array size at least. It's necessary to write '\x00'==0 to get something
3587 that's true only with -std. */
3588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3591 inside strings and character constants. */
3592 #define FOO(x) 'x'
3593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3595 int test (int i, double x);
3596 struct s1 {int (*f) (int a);};
3597 struct s2 {int (*f) (double a);};
3598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3599 int argc;
3600 char **argv;
3602 main ()
3604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3606 return 0;
3608 _ACEOF
3609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3612 CC="$ac_save_CC $ac_arg"
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_c89=$ac_arg
3616 rm -f core conftest.err conftest.$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627 $as_echo "none needed" >&6; } ;;
3628 xno)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3630 $as_echo "unsupported" >&6; } ;;
3632 CC="$CC $ac_cv_prog_cc_c89"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3636 if test "x$ac_cv_prog_cc_c89" != xno; then :
3637 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3638 else
3639 ac_cv_prog_cc_stdc=no
3644 esac
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3646 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3647 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3651 case $ac_cv_prog_cc_stdc in #(
3652 no) :
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;; #(
3655 '') :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;; #(
3658 *) :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3660 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3661 esac
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3672 CPP=
3674 if test -z "$CPP"; then
3675 if test "${ac_cv_prog_CPP+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 # Double quotes because CPP needs to be expanded
3679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3681 ac_preproc_ok=false
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #ifdef __STDC__
3693 # include <limits.h>
3694 #else
3695 # include <assert.h>
3696 #endif
3697 Syntax error
3698 _ACEOF
3699 if ac_fn_c_try_cpp "$LINENO"; then :
3701 else
3702 # Broken: fails on valid input.
3703 continue
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3712 _ACEOF
3713 if ac_fn_c_try_cpp "$LINENO"; then :
3714 # Broken: success on invalid input.
3715 continue
3716 else
3717 # Passes both tests.
3718 ac_preproc_ok=:
3719 break
3721 rm -f conftest.err conftest.$ac_ext
3723 done
3724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3725 rm -f conftest.err conftest.$ac_ext
3726 if $ac_preproc_ok; then :
3727 break
3730 done
3731 ac_cv_prog_CPP=$CPP
3734 CPP=$ac_cv_prog_CPP
3735 else
3736 ac_cv_prog_CPP=$CPP
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3739 $as_echo "$CPP" >&6; }
3740 ac_preproc_ok=false
3741 for ac_c_preproc_warn_flag in '' yes
3743 # Use a header file that comes with gcc, so configuring glibc
3744 # with a fresh cross-compiler works.
3745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3746 # <limits.h> exists even on freestanding compilers.
3747 # On the NeXT, cc -E runs the code through the compiler's parser,
3748 # not just through cpp. "Syntax error" is here to catch this case.
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #ifdef __STDC__
3752 # include <limits.h>
3753 #else
3754 # include <assert.h>
3755 #endif
3756 Syntax error
3757 _ACEOF
3758 if ac_fn_c_try_cpp "$LINENO"; then :
3760 else
3761 # Broken: fails on valid input.
3762 continue
3764 rm -f conftest.err conftest.$ac_ext
3766 # OK, works on sane cases. Now check whether nonexistent headers
3767 # can be detected and how.
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #include <ac_nonexistent.h>
3771 _ACEOF
3772 if ac_fn_c_try_cpp "$LINENO"; then :
3773 # Broken: success on invalid input.
3774 continue
3775 else
3776 # Passes both tests.
3777 ac_preproc_ok=:
3778 break
3780 rm -f conftest.err conftest.$ac_ext
3782 done
3783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784 rm -f conftest.err conftest.$ac_ext
3785 if $ac_preproc_ok; then :
3787 else
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." "$LINENO" 5; }
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 # Check for a compatible awk
3802 for ac_prog in gawk nawk
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 $as_echo_n "checking for $ac_word... " >&6; }
3808 if test "${ac_cv_prog_AWK+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 if test -n "$AWK"; then
3812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_AWK="$ac_prog"
3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3827 IFS=$as_save_IFS
3831 AWK=$ac_cv_prog_AWK
3832 if test -n "$AWK"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3834 $as_echo "$AWK" >&6; }
3835 else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3841 test -n "$AWK" && break
3842 done
3844 if test "$AWK" = ""; then
3845 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3847 # Extract the first word of "mmake", so it can be a program name with args.
3848 set dummy mmake; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$MMAKE"; then
3855 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_MMAKE="mmake "
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 MMAKE=$ac_cv_prog_MMAKE
3875 if test -n "$MMAKE"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3877 $as_echo "$MMAKE" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3885 # Perform some default variable assignments. Note all of these will be
3886 # Regenerated from the script, so there is no need to cache them.
3888 aros_host_cc="$CC"
3889 if test "$GCC" = "yes"; then
3890 aros_gcc_ld=`$CC -print-prog-name=ld`
3891 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3892 set dummy `basename $aros_gcc_ld`; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 case $aros_host_ld in
3899 [\\/]* | ?:[\\/]*)
3900 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in `dirname $aros_gcc_ld`
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3919 esac
3921 aros_host_ld=$ac_cv_path_aros_host_ld
3922 if test -n "$aros_host_ld"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3924 $as_echo "$aros_host_ld" >&6; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3932 if test "$aros_host_ld" = ""; then
3933 # Extract the first word of "ld", so it can be a program name with args.
3934 set dummy ld; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 case $aros_host_ld in
3941 [\\/]* | ?:[\\/]*)
3942 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3958 IFS=$as_save_IFS
3961 esac
3963 aros_host_ld=$ac_cv_path_aros_host_ld
3964 if test -n "$aros_host_ld"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3966 $as_echo "$aros_host_ld" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3974 if test "$aros_host_ld" = ""; then
3975 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
3977 aros_host_make="make"
3978 aros_host_cflags=$CFLAGS
3979 aros_host_ldflags=$LDFLAGS
3980 aros_host_debug="-g -O0"
3981 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3982 aros_host_mkargs="--no-print-directory"
3983 aros_host_incl="/usr/include"
3984 aros_host_exe_suffix="$EXEEXT"
3985 aros_host_lib_suffix=""
3987 for ac_prog in aclocal aclocal19 aclocal-1.9
3989 # Extract the first word of "$ac_prog", so it can be a program name with args.
3990 set dummy $ac_prog; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$aros_host_aclocal"; then
3997 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_aros_host_aclocal="$ac_prog"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4016 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4017 if test -n "$aros_host_aclocal"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4019 $as_echo "$aros_host_aclocal" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4026 test -n "$aros_host_aclocal" && break
4027 done
4029 for ac_prog in autoconf autoconf259 autoconf253
4031 # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$aros_host_autoconf"; then
4039 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_aros_host_autoconf="$ac_prog"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4059 if test -n "$aros_host_autoconf"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4061 $as_echo "$aros_host_autoconf" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4068 test -n "$aros_host_autoconf" && break
4069 done
4071 for ac_prog in autoheader autoheader259 autoheader253
4073 # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$aros_host_autoheader"; then
4081 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_aros_host_autoheader="$ac_prog"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4094 done
4095 done
4096 IFS=$as_save_IFS
4100 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4101 if test -n "$aros_host_autoheader"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4103 $as_echo "$aros_host_autoheader" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4110 test -n "$aros_host_autoheader" && break
4111 done
4113 for ac_prog in automake automake19 automake-1.9
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$aros_host_automake"; then
4123 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_aros_host_automake="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 aros_host_automake=$ac_cv_prog_aros_host_automake
4143 if test -n "$aros_host_automake"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4145 $as_echo "$aros_host_automake" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$aros_host_automake" && break
4153 done
4156 if test "$aros_host_aclocal" = ""; then
4157 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4159 if test "$aros_host_automake" = ""; then
4160 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4163 case "$aros_host_cc" in
4164 *gcc*)
4165 aros_host_cc_pipe="-pipe"
4167 icc)
4168 aros_host_cc_pipe=""
4171 aros_host_cc_pipe=""
4173 esac
4175 aros_target_cc_includes=""
4177 # This is the main host configuration section. It is where the host
4178 # can change the values of any variables it needs to change. We do
4179 # not look at anything that compiles to the target yet, we'll get
4180 # to that later.
4182 case "$host_os" in
4183 aros*)
4184 aros_host_arch="aros"
4185 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4186 case "$host_cpu" in
4187 *i?86*)
4188 aros_host_cpu="i386"
4190 *x86_64*)
4191 aros_host_cpu="x86_64"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4195 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4196 aros_host_cpu="$host_cpu"
4198 esac
4201 linux*)
4202 aros_host_arch="linux"
4203 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4204 case "$host_cpu" in
4205 *i?86*)
4206 aros_host_cpu="i386"
4208 *x86_64*)
4209 aros_host_cpu="x86_64"
4211 *m68k*)
4212 aros_host_cpu="m68k"
4214 *powerpc*)
4215 aros_host_cpu="ppc"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4219 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4220 aros_host_cpu="$host_cpu"
4222 esac
4225 freebsd*)
4226 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4227 aros_host_make="gmake"
4228 aros_host_arch="freebsd"
4229 aros_host_cpu="i386"
4231 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4234 case $host_os in
4235 freebsd[234]*)
4236 aros_object_format="elf_i386"
4240 aros_object_format="elf_i386_fbsd"
4242 esac
4246 darwin*)
4247 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4248 aros_host_arch="darwin"
4249 case "$host_cpu" in
4250 *i?86*)
4251 aros_host_cpu="i386"
4253 *powerpc*)
4254 aros_host_cpu="ppc"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4258 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4259 aros_host_cpu="$host_cpu"
4261 esac
4263 aros_host_ldflags="$aros_host_ldflags -liconv"
4267 dragonfly*)
4268 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4269 aros_host_make="gmake"
4270 aros_host_arch="dragonfly"
4271 case $host_cpu in
4272 *i?86*)
4273 aros_host_cpu="i386"
4275 *amd64*)
4276 aros_host_cpu="x86_64"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4280 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4281 aros_host_cpu="$host_cpu"
4283 esac
4286 netbsd*)
4287 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4288 aros_host_make="gmake"
4289 aros_host_arch="netbsd"
4290 case "$host_cpu" in
4291 *i?86*)
4292 aros_host_cpu="i386"
4294 *m68k*)
4295 aros_host_cpu="m68k"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4299 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4300 aros_host_cpu="$host_cpu"
4302 esac
4303 aros_host_lib_suffix=".0.0"
4306 openbsd*)
4307 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4308 aros_host_make="gmake"
4309 aros_host_arch="openbsd"
4310 case "$host_cpu" in
4311 *i?86*)
4312 aros_host_cpu="i386"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4316 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4317 aros_host_cpu="$host_cpu"
4319 esac
4322 solaris*)
4323 aros_host_arch="solaris"
4324 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4325 case "$host_cpu" in
4326 *i?86*)
4327 aros_host_cpu="i386"
4329 *sparc*)
4330 aros_host_cpu="sparc"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4334 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4335 aros_host_cpu="$host_cpu"
4337 esac
4340 morphos*)
4341 aros_host_arch="morphos"
4342 aros_host_cpu="ppc"
4345 amiga*)
4346 aros_host_arch="amiga"
4347 SORT="/gg/bin/sort"
4348 TEST="/gg/bin/test"
4349 UNIQ="/gg/bin/uniq"
4350 FOR="for"
4351 TOUCH="/gg/bin/touch"
4352 case "$host_cpu" in
4353 *m68k*)
4354 aros_host_cpu="m68k"
4356 *powerpc*)
4357 aros_host_cpu="ppc"
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4361 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4362 aros_host_cpu="$host_cpu"
4364 esac
4367 cygwin*)
4368 aros_host_arch="cygwin"
4369 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4370 case "$host_cpu" in
4371 *i?86*)
4372 aros_host_cpu="i386"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4376 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4377 aros_host_cpu="$host_cpu"
4379 esac
4382 mingw32*)
4383 aros_host_arch="mingw32"
4384 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4385 case "$host_cpu" in
4386 *i?86*)
4387 aros_host_cpu="i386"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4391 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4392 aros_host_cpu="$host_cpu"
4394 esac
4397 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4399 esac
4401 # Extract the first word of "ar", so it can be a program name with args.
4402 set dummy ar; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$aros_host_ar"; then
4409 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_aros_host_ar="ar cr"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4428 aros_host_ar=$ac_cv_prog_aros_host_ar
4429 if test -n "$aros_host_ar"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4431 $as_echo "$aros_host_ar" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 if test "$aros_host_ar" = ""; then
4439 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442 set dummy ranlib; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$aros_host_ranlib"; then
4449 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_aros_host_ranlib="ranlib "
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4469 if test -n "$aros_host_ranlib"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4471 $as_echo "$aros_host_ranlib" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4478 if test "$aros_host_ranlib" = ""; then
4479 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4481 # Extract the first word of "strip", so it can be a program name with args.
4482 set dummy strip; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$aros_host_strip"; then
4489 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_aros_host_strip="strip "
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 aros_host_strip=$ac_cv_prog_aros_host_strip
4509 if test -n "$aros_host_strip"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4511 $as_echo "$aros_host_strip" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 if test "$aros_host_strip" = ""; then
4519 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4522 # Extract the first word of "rm", so it can be a program name with args.
4523 set dummy rm; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_RM+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -n "$RM"; then
4530 ac_cv_prog_RM="$RM" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_prog_RM="rm -rf"
4540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4543 done
4544 done
4545 IFS=$as_save_IFS
4549 RM=$ac_cv_prog_RM
4550 if test -n "$RM"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4552 $as_echo "$RM" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4559 if test "$RM" = ""; then
4560 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4562 # Extract the first word of "cp", so it can be a program name with args.
4563 set dummy cp; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_CP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$CP"; then
4570 ac_cv_prog_CP="$CP" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CP="cp "
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 CP=$ac_cv_prog_CP
4590 if test -n "$CP"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4592 $as_echo "$CP" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 if test "$CP" = ""; then
4600 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4602 # Extract the first word of "mv", so it can be a program name with args.
4603 set dummy mv; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_MV+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$MV"; then
4610 ac_cv_prog_MV="$MV" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_MV="mv "
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 MV=$ac_cv_prog_MV
4630 if test -n "$MV"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4632 $as_echo "$MV" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 if test "$MV" = ""; then
4640 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4642 # Extract the first word of "echo", so it can be a program name with args.
4643 set dummy echo; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ECHO+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$ECHO"; then
4650 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ECHO="echo "
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 ECHO=$ac_cv_prog_ECHO
4670 if test -n "$ECHO"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4672 $as_echo "$ECHO" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 if test "$ECHO" = ""; then
4680 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4682 # Extract the first word of "mkdir", so it can be a program name with args.
4683 set dummy mkdir; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if test -n "$MKDIR"; then
4690 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_MKDIR="mkdir -p"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 MKDIR=$ac_cv_prog_MKDIR
4710 if test -n "$MKDIR"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4712 $as_echo "$MKDIR" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4719 if test "$MKDIR" = ""; then
4720 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4722 # Extract the first word of "touch", so it can be a program name with args.
4723 set dummy touch; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -n "$TOUCH"; then
4730 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_TOUCH="touch "
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4743 done
4744 done
4745 IFS=$as_save_IFS
4749 TOUCH=$ac_cv_prog_TOUCH
4750 if test -n "$TOUCH"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4752 $as_echo "$TOUCH" >&6; }
4753 else
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4759 if test "$TOUCH" = ""; then
4760 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4762 # Extract the first word of "sort", so it can be a program name with args.
4763 set dummy sort; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_SORT+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$SORT"; then
4770 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_SORT="sort "
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4783 done
4784 done
4785 IFS=$as_save_IFS
4789 SORT=$ac_cv_prog_SORT
4790 if test -n "$SORT"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4792 $as_echo "$SORT" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4799 if test "$SORT" = ""; then
4800 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4802 # Extract the first word of "uniq", so it can be a program name with args.
4803 set dummy uniq; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$UNIQ"; then
4810 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_UNIQ="uniq "
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 UNIQ=$ac_cv_prog_UNIQ
4830 if test -n "$UNIQ"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4832 $as_echo "$UNIQ" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 if test "$UNIQ" = ""; then
4840 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4842 # Extract the first word of "true", so it can be a program name with args.
4843 set dummy true; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_NOP+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$NOP"; then
4850 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_NOP="true "
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 NOP=$ac_cv_prog_NOP
4870 if test -n "$NOP"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4872 $as_echo "$NOP" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 if test "$NOP" = ""; then
4880 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4882 # Extract the first word of "cat", so it can be a program name with args.
4883 set dummy cat; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_CAT+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$CAT"; then
4890 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_CAT="cat "
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 CAT=$ac_cv_prog_CAT
4910 if test -n "$CAT"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4912 $as_echo "$CAT" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 if test "$CAT" = ""; then
4920 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
4922 # Extract the first word of "bison", so it can be a program name with args.
4923 set dummy bison; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_BISON+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$BISON"; then
4930 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_BISON="bison "
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 BISON=$ac_cv_prog_BISON
4950 if test -n "$BISON"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4952 $as_echo "$BISON" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 if test "$BISON" = ""; then
4960 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
4962 # Extract the first word of "flex", so it can be a program name with args.
4963 set dummy flex; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_FLEX+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$FLEX"; then
4970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_FLEX="flex "
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 FLEX=$ac_cv_prog_FLEX
4990 if test -n "$FLEX"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4992 $as_echo "$FLEX" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 if test "$FLEX" = ""; then
5000 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "pngtopnm", so it can be a program name with args.
5003 set dummy pngtopnm; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$PNGTOPNM"; then
5010 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_PNGTOPNM="pngtopnm "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5030 if test -n "$PNGTOPNM"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5032 $as_echo "$PNGTOPNM" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 if test "$PNGTOPNM" = ""; then
5040 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5042 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5043 set dummy ppmtoilbm; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$PPMTOILBM"; then
5050 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5070 if test -n "$PPMTOILBM"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5072 $as_echo "$PPMTOILBM" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 if test "$PPMTOILBM" = ""; then
5080 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5082 # Extract the first word of "sed", so it can be a program name with args.
5083 set dummy sed; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_SED+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$SED"; then
5090 ac_cv_prog_SED="$SED" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_SED="sed "
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5103 done
5104 done
5105 IFS=$as_save_IFS
5109 SED=$ac_cv_prog_SED
5110 if test -n "$SED"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5112 $as_echo "$SED" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 if test "$SED" = ""; then
5120 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5122 # Extract the first word of "chmod", so it can be a program name with args.
5123 set dummy chmod; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$CHMOD"; then
5130 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_CHMOD="chmod "
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 CHMOD=$ac_cv_prog_CHMOD
5150 if test -n "$CHMOD"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5152 $as_echo "$CHMOD" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 if test "$CHMOD" = ""; then
5160 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5167 if test -n "$PYTHON"; then
5168 # If the user set $PYTHON, use it and don't search something else.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.2.1" >&5
5170 $as_echo_n "checking whether $PYTHON version >= 2.2.1... " >&6; }
5171 prog="import sys, string
5172 # split strings by '.' and convert to numeric. Append some zeros
5173 # because we need at least 4 digits for the hex conversion.
5174 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
5175 minverhex = 0
5176 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5177 sys.exit(sys.hexversion < minverhex)"
5178 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5179 ($PYTHON -c "$prog") >&5 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; then :
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184 $as_echo "yes" >&6; }
5185 else
5186 as_fn_error "too old" "$LINENO" 5
5188 am_display_PYTHON=$PYTHON
5189 else
5190 # Otherwise, try each interpreter until we find one that satisfies
5191 # VERSION.
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.2.1" >&5
5193 $as_echo_n "checking for a Python interpreter with version >= 2.2.1... " >&6; }
5194 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5198 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
5199 test "$am_cv_pathless_PYTHON" = none && break
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: $am_cv_pathless_PYTHON -c "$prog"" >&5
5208 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; then :
5212 break
5214 done
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5217 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5218 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5219 if test "$am_cv_pathless_PYTHON" = none; then
5220 PYTHON=:
5221 else
5222 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5223 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_path_PYTHON+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 case $PYTHON in
5230 [\\/]* | ?:[\\/]*)
5231 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5250 esac
5252 PYTHON=$ac_cv_path_PYTHON
5253 if test -n "$PYTHON"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5255 $as_echo "$PYTHON" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5263 am_display_PYTHON=$am_cv_pathless_PYTHON
5267 if test "$PYTHON" = :; then
5268 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5269 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5273 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5274 if test "${am_cv_python_version+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5280 $as_echo "$am_cv_python_version" >&6; }
5281 PYTHON_VERSION=$am_cv_python_version
5285 PYTHON_PREFIX='${prefix}'
5287 PYTHON_EXEC_PREFIX='${exec_prefix}'
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5292 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5293 if test "${am_cv_python_platform+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5299 $as_echo "$am_cv_python_platform" >&6; }
5300 PYTHON_PLATFORM=$am_cv_python_platform
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5306 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5307 if test "${am_cv_python_pythondir+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5311 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5314 $as_echo "$am_cv_python_pythondir" >&6; }
5315 pythondir=$am_cv_python_pythondir
5319 pkgpythondir=\${pythondir}/$PACKAGE
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5323 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5324 if test "${am_cv_python_pyexecdir+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5328 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5331 $as_echo "$am_cv_python_pyexecdir" >&6; }
5332 pyexecdir=$am_cv_python_pyexecdir
5336 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5344 FOR=for
5346 IF=if
5348 TEST=test
5350 CMP=cmp
5354 # Check for some includes for the X11 HIDD and the kernel
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5358 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5359 if test "${ac_cv_path_GREP+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -z "$GREP"; then
5363 ac_path_GREP_found=false
5364 # Loop through the user's path and test for each of PROGNAME-LIST
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_prog in grep ggrep; do
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5373 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5374 # Check for GNU ac_path_GREP and select it if it is found.
5375 # Check for GNU $ac_path_GREP
5376 case `"$ac_path_GREP" --version 2>&1` in
5377 *GNU*)
5378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5380 ac_count=0
5381 $as_echo_n 0123456789 >"conftest.in"
5382 while :
5384 cat "conftest.in" "conftest.in" >"conftest.tmp"
5385 mv "conftest.tmp" "conftest.in"
5386 cp "conftest.in" "conftest.nl"
5387 $as_echo 'GREP' >> "conftest.nl"
5388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5390 as_fn_arith $ac_count + 1 && ac_count=$as_val
5391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5392 # Best one so far, save it but keep looking for a better one
5393 ac_cv_path_GREP="$ac_path_GREP"
5394 ac_path_GREP_max=$ac_count
5396 # 10*(2^10) chars as input seems more than enough
5397 test $ac_count -gt 10 && break
5398 done
5399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5400 esac
5402 $ac_path_GREP_found && break 3
5403 done
5404 done
5405 done
5406 IFS=$as_save_IFS
5407 if test -z "$ac_cv_path_GREP"; then
5408 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5410 else
5411 ac_cv_path_GREP=$GREP
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5416 $as_echo "$ac_cv_path_GREP" >&6; }
5417 GREP="$ac_cv_path_GREP"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5421 $as_echo_n "checking for egrep... " >&6; }
5422 if test "${ac_cv_path_EGREP+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5426 then ac_cv_path_EGREP="$GREP -E"
5427 else
5428 if test -z "$EGREP"; then
5429 ac_path_EGREP_found=false
5430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_prog in egrep; do
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5440 # Check for GNU ac_path_EGREP and select it if it is found.
5441 # Check for GNU $ac_path_EGREP
5442 case `"$ac_path_EGREP" --version 2>&1` in
5443 *GNU*)
5444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5446 ac_count=0
5447 $as_echo_n 0123456789 >"conftest.in"
5448 while :
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
5453 $as_echo 'EGREP' >> "conftest.nl"
5454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456 as_fn_arith $ac_count + 1 && ac_count=$as_val
5457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_EGREP="$ac_path_EGREP"
5460 ac_path_EGREP_max=$ac_count
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5464 done
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466 esac
5468 $ac_path_EGREP_found && break 3
5469 done
5470 done
5471 done
5472 IFS=$as_save_IFS
5473 if test -z "$ac_cv_path_EGREP"; then
5474 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5476 else
5477 ac_cv_path_EGREP=$EGREP
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5483 $as_echo "$ac_cv_path_EGREP" >&6; }
5484 EGREP="$ac_cv_path_EGREP"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5488 $as_echo_n "checking for ANSI C header files... " >&6; }
5489 if test "${ac_cv_header_stdc+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <stdlib.h>
5495 #include <stdarg.h>
5496 #include <string.h>
5497 #include <float.h>
5500 main ()
5504 return 0;
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_header_stdc=yes
5509 else
5510 ac_cv_header_stdc=no
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <string.h>
5520 _ACEOF
5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 $EGREP "memchr" >/dev/null 2>&1; then :
5524 else
5525 ac_cv_header_stdc=no
5527 rm -f conftest*
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <stdlib.h>
5537 _ACEOF
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then :
5541 else
5542 ac_cv_header_stdc=no
5544 rm -f conftest*
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then :
5552 else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #include <ctype.h>
5556 #include <stdlib.h>
5557 #if ((' ' & 0x0FF) == 0x020)
5558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560 #else
5561 # define ISLOWER(c) \
5562 (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5566 #endif
5568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570 main ()
5572 int i;
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5576 return 2;
5577 return 0;
5579 _ACEOF
5580 if ac_fn_c_try_run "$LINENO"; then :
5582 else
5583 ac_cv_header_stdc=no
5585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5586 conftest.$ac_objext conftest.beam conftest.$ac_ext
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5592 $as_echo "$ac_cv_header_stdc" >&6; }
5593 if test $ac_cv_header_stdc = yes; then
5595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5601 inttypes.h stdint.h unistd.h
5602 do :
5603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5606 eval as_val=\$$as_ac_Header
5607 if test "x$as_val" = x""yes; then :
5608 cat >>confdefs.h <<_ACEOF
5609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610 _ACEOF
5614 done
5617 for ac_header in sys/ipc.h sys/shm.h \
5618 sys/mmap.h sys/mman.h sysexits.h \
5619 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5621 do :
5622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5624 eval as_val=\$$as_ac_Header
5625 if test "x$as_val" = x""yes; then :
5626 cat >>confdefs.h <<_ACEOF
5627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5628 _ACEOF
5632 done
5635 for ac_header in sys/mount.h
5636 do :
5637 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5639 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5640 cat >>confdefs.h <<_ACEOF
5641 #define HAVE_SYS_MOUNT_H 1
5642 _ACEOF
5646 done
5649 ac_header_dirent=no
5650 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5651 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5653 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 #include <$ac_hdr>
5663 main ()
5665 if ((DIR *) 0)
5666 return 0;
5668 return 0;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 eval "$as_ac_Header=yes"
5673 else
5674 eval "$as_ac_Header=no"
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 eval ac_res=\$$as_ac_Header
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5680 $as_echo "$ac_res" >&6; }
5681 eval as_val=\$$as_ac_Header
5682 if test "x$as_val" = x""yes; then :
5683 cat >>confdefs.h <<_ACEOF
5684 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5685 _ACEOF
5687 ac_header_dirent=$ac_hdr; break
5690 done
5691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5692 if test $ac_header_dirent = dirent.h; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5694 $as_echo_n "checking for library containing opendir... " >&6; }
5695 if test "${ac_cv_search_opendir+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 ac_func_search_save_LIBS=$LIBS
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5702 /* Override any GCC internal prototype to avoid an error.
5703 Use char because int might match the return type of a GCC
5704 builtin and then its argument prototype would still apply. */
5705 #ifdef __cplusplus
5706 extern "C"
5707 #endif
5708 char opendir ();
5710 main ()
5712 return opendir ();
5714 return 0;
5716 _ACEOF
5717 for ac_lib in '' dir; do
5718 if test -z "$ac_lib"; then
5719 ac_res="none required"
5720 else
5721 ac_res=-l$ac_lib
5722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5724 if ac_fn_c_try_link "$LINENO"; then :
5725 ac_cv_search_opendir=$ac_res
5727 rm -f core conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext
5729 if test "${ac_cv_search_opendir+set}" = set; then :
5730 break
5732 done
5733 if test "${ac_cv_search_opendir+set}" = set; then :
5735 else
5736 ac_cv_search_opendir=no
5738 rm conftest.$ac_ext
5739 LIBS=$ac_func_search_save_LIBS
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5742 $as_echo "$ac_cv_search_opendir" >&6; }
5743 ac_res=$ac_cv_search_opendir
5744 if test "$ac_res" != no; then :
5745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5751 $as_echo_n "checking for library containing opendir... " >&6; }
5752 if test "${ac_cv_search_opendir+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 ac_func_search_save_LIBS=$LIBS
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5759 /* Override any GCC internal prototype to avoid an error.
5760 Use char because int might match the return type of a GCC
5761 builtin and then its argument prototype would still apply. */
5762 #ifdef __cplusplus
5763 extern "C"
5764 #endif
5765 char opendir ();
5767 main ()
5769 return opendir ();
5771 return 0;
5773 _ACEOF
5774 for ac_lib in '' x; do
5775 if test -z "$ac_lib"; then
5776 ac_res="none required"
5777 else
5778 ac_res=-l$ac_lib
5779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 ac_cv_search_opendir=$ac_res
5784 rm -f core conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext
5786 if test "${ac_cv_search_opendir+set}" = set; then :
5787 break
5789 done
5790 if test "${ac_cv_search_opendir+set}" = set; then :
5792 else
5793 ac_cv_search_opendir=no
5795 rm conftest.$ac_ext
5796 LIBS=$ac_func_search_save_LIBS
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5799 $as_echo "$ac_cv_search_opendir" >&6; }
5800 ac_res=$ac_cv_search_opendir
5801 if test "$ac_res" != no; then :
5802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5809 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5810 if test "${ac_cv_header_stat_broken+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <sys/types.h>
5816 #include <sys/stat.h>
5818 #if defined S_ISBLK && defined S_IFDIR
5819 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5820 #endif
5822 #if defined S_ISBLK && defined S_IFCHR
5823 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5824 #endif
5826 #if defined S_ISLNK && defined S_IFREG
5827 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5828 #endif
5830 #if defined S_ISSOCK && defined S_IFREG
5831 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5832 #endif
5834 _ACEOF
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 ac_cv_header_stat_broken=no
5837 else
5838 ac_cv_header_stat_broken=yes
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5843 $as_echo "$ac_cv_header_stat_broken" >&6; }
5844 if test $ac_cv_header_stat_broken = yes; then
5846 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5851 $as_echo_n "checking for ANSI C header files... " >&6; }
5852 if test "${ac_cv_header_stdc+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 #include <stdlib.h>
5858 #include <stdarg.h>
5859 #include <string.h>
5860 #include <float.h>
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"; then :
5871 ac_cv_header_stdc=yes
5872 else
5873 ac_cv_header_stdc=no
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 if test $ac_cv_header_stdc = yes; then
5878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 #include <string.h>
5883 _ACEOF
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 $EGREP "memchr" >/dev/null 2>&1; then :
5887 else
5888 ac_cv_header_stdc=no
5890 rm -f conftest*
5894 if test $ac_cv_header_stdc = yes; then
5895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <stdlib.h>
5900 _ACEOF
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902 $EGREP "free" >/dev/null 2>&1; then :
5904 else
5905 ac_cv_header_stdc=no
5907 rm -f conftest*
5911 if test $ac_cv_header_stdc = yes; then
5912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5913 if test "$cross_compiling" = yes; then :
5915 else
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 #include <ctype.h>
5919 #include <stdlib.h>
5920 #if ((' ' & 0x0FF) == 0x020)
5921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5923 #else
5924 # define ISLOWER(c) \
5925 (('a' <= (c) && (c) <= 'i') \
5926 || ('j' <= (c) && (c) <= 'r') \
5927 || ('s' <= (c) && (c) <= 'z'))
5928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5929 #endif
5931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5933 main ()
5935 int i;
5936 for (i = 0; i < 256; i++)
5937 if (XOR (islower (i), ISLOWER (i))
5938 || toupper (i) != TOUPPER (i))
5939 return 2;
5940 return 0;
5942 _ACEOF
5943 if ac_fn_c_try_run "$LINENO"; then :
5945 else
5946 ac_cv_header_stdc=no
5948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949 conftest.$ac_objext conftest.beam conftest.$ac_ext
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5955 $as_echo "$ac_cv_header_stdc" >&6; }
5956 if test $ac_cv_header_stdc = yes; then
5958 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5963 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5964 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 #include <sys/wait.h>
5971 #ifndef WEXITSTATUS
5972 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5973 #endif
5974 #ifndef WIFEXITED
5975 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5976 #endif
5979 main ()
5981 int s;
5982 wait (&s);
5983 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5985 return 0;
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 ac_cv_header_sys_wait_h=yes
5990 else
5991 ac_cv_header_sys_wait_h=no
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5996 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5997 if test $ac_cv_header_sys_wait_h = yes; then
5999 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6004 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6005 if test "${ac_cv_header_time+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 #include <sys/time.h>
6012 #include <time.h>
6015 main ()
6017 if ((struct tm *) 0)
6018 return 0;
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 ac_cv_header_time=yes
6025 else
6026 ac_cv_header_time=no
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6031 $as_echo "$ac_cv_header_time" >&6; }
6032 if test $ac_cv_header_time = yes; then
6034 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6038 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6039 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6041 cat >>confdefs.h <<_ACEOF
6042 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6043 _ACEOF
6046 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6051 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6052 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6054 cat >>confdefs.h <<_ACEOF
6055 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6056 _ACEOF
6059 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6061 else
6062 case " $LIBOBJS " in
6063 *" fileblocks.$ac_objext "* ) ;;
6064 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6066 esac
6071 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6072 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_STRUCT_STAT_ST_RDEV 1
6076 _ACEOF
6079 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6085 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6086 if test "${ac_cv_struct_tm+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 #include <time.h>
6095 main ()
6097 struct tm tm;
6098 int *p = &tm.tm_sec;
6099 return !p;
6101 return 0;
6103 _ACEOF
6104 if ac_fn_c_try_compile "$LINENO"; then :
6105 ac_cv_struct_tm=time.h
6106 else
6107 ac_cv_struct_tm=sys/time.h
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6112 $as_echo "$ac_cv_struct_tm" >&6; }
6113 if test $ac_cv_struct_tm = sys/time.h; then
6115 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6119 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6120 #include <$ac_cv_struct_tm>
6123 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define HAVE_STRUCT_TM_TM_ZONE 1
6127 _ACEOF
6132 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6134 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6136 else
6137 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6139 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6140 ac_have_decl=1
6141 else
6142 ac_have_decl=0
6145 cat >>confdefs.h <<_ACEOF
6146 #define HAVE_DECL_TZNAME $ac_have_decl
6147 _ACEOF
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6150 $as_echo_n "checking for tzname... " >&6; }
6151 if test "${ac_cv_var_tzname+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <time.h>
6157 #if !HAVE_DECL_TZNAME
6158 extern char *tzname[];
6159 #endif
6162 main ()
6164 return tzname[0][0];
6166 return 0;
6168 _ACEOF
6169 if ac_fn_c_try_link "$LINENO"; then :
6170 ac_cv_var_tzname=yes
6171 else
6172 ac_cv_var_tzname=no
6174 rm -f core conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6178 $as_echo "$ac_cv_var_tzname" >&6; }
6179 if test $ac_cv_var_tzname = yes; then
6181 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6186 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_off_t" = x""yes; then :
6189 else
6191 cat >>confdefs.h <<_ACEOF
6192 #define off_t long int
6193 _ACEOF
6197 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6198 if test "x$ac_cv_type_pid_t" = x""yes; then :
6200 else
6202 cat >>confdefs.h <<_ACEOF
6203 #define pid_t int
6204 _ACEOF
6208 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6209 if test "x$ac_cv_type_size_t" = x""yes; then :
6211 else
6213 cat >>confdefs.h <<_ACEOF
6214 #define size_t unsigned int
6215 _ACEOF
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6220 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6221 if test "${ac_cv_type_uid_t+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <sys/types.h>
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 $EGREP "uid_t" >/dev/null 2>&1; then :
6231 ac_cv_type_uid_t=yes
6232 else
6233 ac_cv_type_uid_t=no
6235 rm -f conftest*
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6239 $as_echo "$ac_cv_type_uid_t" >&6; }
6240 if test $ac_cv_type_uid_t = no; then
6242 $as_echo "#define uid_t int" >>confdefs.h
6245 $as_echo "#define gid_t int" >>confdefs.h
6250 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6251 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6253 cat >>confdefs.h <<_ACEOF
6254 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6255 _ACEOF
6261 # Look for some functions
6262 for ac_func in getpagesize kqueue statfs statvfs \
6263 clone kse_create rfork_thread thr_create sa_register \
6264 getcontext makecontext setcontext sigaltstack swapcontext
6265 do :
6266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6268 eval as_val=\$$as_ac_var
6269 if test "x$as_val" = x""yes; then :
6270 cat >>confdefs.h <<_ACEOF
6271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6272 _ACEOF
6275 done
6278 for ac_header in stdlib.h unistd.h
6279 do :
6280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6282 eval as_val=\$$as_ac_Header
6283 if test "x$as_val" = x""yes; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286 _ACEOF
6290 done
6292 for ac_func in getpagesize
6293 do :
6294 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6295 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_GETPAGESIZE 1
6298 _ACEOF
6301 done
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6304 $as_echo_n "checking for working mmap... " >&6; }
6305 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test "$cross_compiling" = yes; then :
6309 ac_cv_func_mmap_fixed_mapped=no
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 $ac_includes_default
6314 /* malloc might have been renamed as rpl_malloc. */
6315 #undef malloc
6317 /* Thanks to Mike Haertel and Jim Avera for this test.
6318 Here is a matrix of mmap possibilities:
6319 mmap private not fixed
6320 mmap private fixed at somewhere currently unmapped
6321 mmap private fixed at somewhere already mapped
6322 mmap shared not fixed
6323 mmap shared fixed at somewhere currently unmapped
6324 mmap shared fixed at somewhere already mapped
6325 For private mappings, we should verify that changes cannot be read()
6326 back from the file, nor mmap's back from the file at a different
6327 address. (There have been systems where private was not correctly
6328 implemented like the infamous i386 svr4.0, and systems where the
6329 VM page cache was not coherent with the file system buffer cache
6330 like early versions of FreeBSD and possibly contemporary NetBSD.)
6331 For shared mappings, we should conversely verify that changes get
6332 propagated back to all the places they're supposed to be.
6334 Grep wants private fixed already mapped.
6335 The main things grep needs to know about mmap are:
6336 * does it exist and is it safe to write into the mmap'd area
6337 * how to use it (BSD variants) */
6339 #include <fcntl.h>
6340 #include <sys/mman.h>
6342 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6343 char *malloc ();
6344 #endif
6346 /* This mess was copied from the GNU getpagesize.h. */
6347 #ifndef HAVE_GETPAGESIZE
6348 /* Assume that all systems that can run configure have sys/param.h. */
6349 # ifndef HAVE_SYS_PARAM_H
6350 # define HAVE_SYS_PARAM_H 1
6351 # endif
6353 # ifdef _SC_PAGESIZE
6354 # define getpagesize() sysconf(_SC_PAGESIZE)
6355 # else /* no _SC_PAGESIZE */
6356 # ifdef HAVE_SYS_PARAM_H
6357 # include <sys/param.h>
6358 # ifdef EXEC_PAGESIZE
6359 # define getpagesize() EXEC_PAGESIZE
6360 # else /* no EXEC_PAGESIZE */
6361 # ifdef NBPG
6362 # define getpagesize() NBPG * CLSIZE
6363 # ifndef CLSIZE
6364 # define CLSIZE 1
6365 # endif /* no CLSIZE */
6366 # else /* no NBPG */
6367 # ifdef NBPC
6368 # define getpagesize() NBPC
6369 # else /* no NBPC */
6370 # ifdef PAGESIZE
6371 # define getpagesize() PAGESIZE
6372 # endif /* PAGESIZE */
6373 # endif /* no NBPC */
6374 # endif /* no NBPG */
6375 # endif /* no EXEC_PAGESIZE */
6376 # else /* no HAVE_SYS_PARAM_H */
6377 # define getpagesize() 8192 /* punt totally */
6378 # endif /* no HAVE_SYS_PARAM_H */
6379 # endif /* no _SC_PAGESIZE */
6381 #endif /* no HAVE_GETPAGESIZE */
6384 main ()
6386 char *data, *data2, *data3;
6387 int i, pagesize;
6388 int fd;
6390 pagesize = getpagesize ();
6392 /* First, make a file with some known garbage in it. */
6393 data = (char *) malloc (pagesize);
6394 if (!data)
6395 return 1;
6396 for (i = 0; i < pagesize; ++i)
6397 *(data + i) = rand ();
6398 umask (0);
6399 fd = creat ("conftest.mmap", 0600);
6400 if (fd < 0)
6401 return 1;
6402 if (write (fd, data, pagesize) != pagesize)
6403 return 1;
6404 close (fd);
6406 /* Next, try to mmap the file at a fixed address which already has
6407 something else allocated at it. If we can, also make sure that
6408 we see the same garbage. */
6409 fd = open ("conftest.mmap", O_RDWR);
6410 if (fd < 0)
6411 return 1;
6412 data2 = (char *) malloc (2 * pagesize);
6413 if (!data2)
6414 return 1;
6415 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6416 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6417 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6418 return 1;
6419 for (i = 0; i < pagesize; ++i)
6420 if (*(data + i) != *(data2 + i))
6421 return 1;
6423 /* Finally, make sure that changes to the mapped area do not
6424 percolate back to the file as seen by read(). (This is a bug on
6425 some variants of i386 svr4.0.) */
6426 for (i = 0; i < pagesize; ++i)
6427 *(data2 + i) = *(data2 + i) + 1;
6428 data3 = (char *) malloc (pagesize);
6429 if (!data3)
6430 return 1;
6431 if (read (fd, data3, pagesize) != pagesize)
6432 return 1;
6433 for (i = 0; i < pagesize; ++i)
6434 if (*(data + i) != *(data3 + i))
6435 return 1;
6436 close (fd);
6437 return 0;
6439 _ACEOF
6440 if ac_fn_c_try_run "$LINENO"; then :
6441 ac_cv_func_mmap_fixed_mapped=yes
6442 else
6443 ac_cv_func_mmap_fixed_mapped=no
6445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6446 conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6451 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6452 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6454 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6457 rm -f conftest.mmap
6462 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6463 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6464 aros_config_ldflags=""
6466 aros_shared_default=yes
6468 aros_shared_cflags="-fPIC"
6469 aros_shared_aflags=""
6470 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6471 aros_kernel_ldflags="-Wl,-rpath,./lib"
6473 aros_target_ar_flags="cr"
6474 aros_target_nm_flags="-C -ul"
6475 aros_target_strip_flags="--strip-unneeded -R.comment"
6477 aros_compiler_libs=
6478 aros_arch_libs=
6480 aros_target_genmap="-Wl,-Map -Xlinker"
6482 # Native flavour stuff
6483 aros_bochs_hack="0"
6484 aros_serial_debug="0"
6486 # Palm native flavour stuff
6487 aros_palm_debug_hack="0"
6489 # Unix flavour stuff
6490 aros_nesting_supervisor="0"
6492 # Collect-aros stuff: "-ius" to ignore undefined symbols
6493 ignore_undefined_symbols=""
6495 #-----------------------------------------------------------------------------
6498 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6499 # it switched on by default, and we use the host compiler, so it compiles AROS
6500 # code with this enabled resulting in link failures as we don't have support
6501 # for it.
6503 # We use two methods to disable it. For the host compiler (used to compile
6504 # some hosted modules), we test to see if the compiler supports stack
6505 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6506 # work on all platforms.
6508 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6509 # (this is done unconditionally, as it should have no effect on compilers
6510 # without the stack protection feature). This may be specific to the way that
6511 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6512 # strong enough to disable it in a generic way though, so we'll live with it
6513 # until another vendor ships GCC with it enabled in a different way, and deal
6514 # with it then.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6518 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6519 save_cflags="$CFLAGS"
6520 CFLAGS="$CFLAGS -fno-stack-protector"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6525 main ()
6529 return 0;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 use_no_stack_protector="yes"
6534 else
6535 use_no_stack_protector="no"
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6539 $as_echo "$use_no_stack_protector" >&6; }
6540 if test "x-$use_no_stack_protector" = "x-yes" ; then
6541 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6543 CFLAGS="$save_cflags"
6545 #-----------------------------------------------------------------------------
6547 # Disable pointer-signedness warnings if the compiler recognises the option
6548 # (this only works for the host compiler at the moment)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6551 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6552 save_cflags="$CFLAGS"
6553 CFLAGS="$CFLAGS -Wno-pointer-sign"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6558 main ()
6562 return 0;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 use_no_sign_warning="yes"
6567 else
6568 use_no_sign_warning="no"
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6572 $as_echo "$use_no_sign_warning" >&6; }
6573 if test "x-$use_no_sign_warning" = "x-yes" ; then
6574 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6576 CFLAGS="$save_cflags"
6578 #-----------------------------------------------------------------------------
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6581 $as_echo_n "checking for type of build... " >&6; }
6582 # Check whether --enable-build_type was given.
6583 if test "${enable_build_type+set}" = set; then :
6584 enableval=$enable_build_type; build_type=$enableval
6585 else
6586 build_type="personal"
6590 if test "$build_type" = "nightly"; then
6591 build_type_string="NIGHTLY"
6592 elif test "$build_type" = "snapshot"; then
6593 build_type_string="SNAPSHOT"
6594 elif test "$build_type" = "milestone"; then
6595 build_type_string="MILESTONE"
6596 elif test "$build_type" = "release"; then
6597 build_type_string="RELEASE"
6598 else
6599 build_type_string="PERSONAL"
6600 build_type="personal"
6603 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6606 $as_echo "$build_type" >&6; }
6608 #-----------------------------------------------------------------------------
6609 all_debug_types="messages stack mungwall modules symbols"
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6612 $as_echo_n "checking which debug types to enable... " >&6; }
6613 # Check whether --enable-debug was given.
6614 if test "${enable_debug+set}" = set; then :
6615 enableval=$enable_debug; debug="$enableval"
6616 else
6617 debug=""
6621 if test "$debug" = "" -o "$debug" = "no"; then
6622 debug="none"
6623 elif test "$debug" = "yes"; then
6624 debug="all"
6627 if test "$debug" = "all" ; then
6628 debug=$all_debug_types
6629 for d in $all_debug_types; do
6630 export aros_${d}_debug="1"
6631 done
6632 else
6633 for d in $all_debug_types; do
6634 export aros_${d}_debug="0"
6635 done
6638 if test "$debug" != "none"; then
6639 debug=`echo $debug | sed s/,/\ /g`
6640 for d in $debug; do
6641 found="0"
6642 for d2 in $all_debug_types; do
6643 if test "$d2" = "$d"; then
6644 found="1"
6645 break
6647 done
6648 if test "$found" = "0"; then
6649 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6651 export aros_${d}_debug="1"
6652 done
6653 aros_debug="yes"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6656 $as_echo "$debug" >&6; }
6658 if test "$aros_messages_debug" = "1"; then
6659 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6660 else
6661 aros_messages_debug=""
6663 if test "$aros_symbols_debug" = "1"; then
6664 aros_symbols_debug="-g"
6665 else
6666 aros_symbols_debug=""
6669 # These are the flags to pass when compiling debugged programs
6670 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6671 aros_debug_aflags=""
6672 aros_debug_ldflags="$aros_symbols_debug"
6674 aros_crosstools="no"
6676 #-----------------------------------------------------------------------------
6677 # Checking if we should build crosstools..
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6679 $as_echo_n "checking whether to build crosstools... " >&6; }
6680 # Check whether --enable-crosstools was given.
6681 if test "${enable_crosstools+set}" = set; then :
6682 enableval=$enable_crosstools; crosstools="$enableval"
6683 else
6684 crosstools="no"
6687 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6689 $as_echo "yes" >&6; }
6690 aros_crosstools="yes"
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6696 #-----------------------------------------------------------------------------
6697 # Checking for distcc and ccache.
6699 # Always apply the transforms in this particular order. Basically you should
6700 # always run 'ccache distcc compiler' in that order for the best performance.
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6703 $as_echo_n "checking whether to enable distcc... " >&6; }
6704 # Check whether --enable-distcc was given.
6705 if test "${enable_distcc+set}" = set; then :
6706 enableval=$enable_distcc; distcc="$enableval"
6707 else
6708 distcc="no"
6711 if test "$distcc" != "" -a "$distcc" != "no"; then
6712 # AC_CHECK_PROG will print out the result in this case
6713 # Extract the first word of "distcc", so it can be a program name with args.
6714 set dummy distcc; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_path_DISTCC+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 case $DISTCC in
6721 [\\/]* | ?:[\\/]*)
6722 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6736 done
6737 done
6738 IFS=$as_save_IFS
6740 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6742 esac
6744 DISTCC=$ac_cv_path_DISTCC
6745 if test -n "$DISTCC"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6747 $as_echo "$DISTCC" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6760 $as_echo_n "checking whether to enable ccache... " >&6; }
6761 # Check whether --enable-ccache was given.
6762 if test "${enable_ccache+set}" = set; then :
6763 enableval=$enable_ccache; ccache="$enableval"
6764 else
6765 ccache="no"
6768 if test "$ccache" != "" -a "$ccache" != "no"; then
6769 # AC_CHECK_PROG will print out the result in this case
6770 # Extract the first word of "ccache", so it can be a program name with args.
6771 set dummy ccache; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$CCACHE"; then
6778 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_CCACHE="ccache"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6791 done
6792 done
6793 IFS=$as_save_IFS
6797 CCACHE=$ac_cv_prog_CCACHE
6798 if test -n "$CCACHE"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6800 $as_echo "$CCACHE" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6812 #-----------------------------------------------------------------------------
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6814 $as_echo_n "checking what optimization flags to use... " >&6; }
6816 # Check whether --with-optimization was given.
6817 if test "${with_optimization+set}" = set; then :
6818 withval=$with_optimization; optimization="$withval"
6819 else
6820 optimization="unknown"
6823 if test "$optimization" = "unknown"; then
6824 if test "$debug" != "none"; then
6825 optimization="-O0"
6826 else
6827 optimization="-O2"
6830 aros_config_cflags="$aros_config_cflags $optimization"
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6832 $as_echo "$optimization" >&6; }
6834 #-----------------------------------------------------------------------------
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6836 $as_echo_n "checking what target variant to enable... " >&6; }
6837 # Check whether --enable-target_variant was given.
6838 if test "${enable_target_variant+set}" = set; then :
6839 enableval=$enable_target_variant; target_variant=$enableval
6840 else
6841 target_variant="none"
6844 if test "$target_variant" = "none"; then
6845 aros_target_variant=""
6846 aros_target_suffix=""
6847 else
6848 aros_target_variant="$target_variant"
6849 aros_target_suffix="-$target_variant"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6852 $as_echo "$enableval" >&6; }
6854 target_bootloader="none"
6856 #-----------------------------------------------------------------------------
6857 # This is the target configuration switch.
6858 case "$target_os" in
6859 linux*)
6860 aros_target_arch="linux"
6861 case "$target_cpu" in
6862 *m68k*)
6863 aros_target_cpu="m68k"
6864 aros_object_format="m68kelf"
6865 aros_flavour="emulcompat"
6866 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
6867 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
6868 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
6869 gcc_target_cpu="mc68000"
6871 *i?86*)
6872 aros_target_cpu="i386"
6873 aros_object_format="elf_i386"
6874 aros_flavour="emulation"
6875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
6876 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
6877 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
6878 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
6879 aros_config_ldflags="-m32 -march=i486"
6880 aros_kernel_ldflags="-melf_i386"
6881 aros_default_wbdepth=8
6882 gcc_target_cpu="i386"
6884 *x86_64*)
6885 aros_target_cpu="x86_64"
6886 aros_object_format="elf_x86_64"
6887 aros_flavour="emulation"
6888 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
6889 aros_config_cflags="$aros_config_cflags -mno-red-zone"
6890 aros_default_wbdepth=8
6891 gcc_target_cpu="x86_64"
6893 *powerpc*)
6894 aros_target_cpu="ppc"
6895 aros_object_format="elf32ppc"
6896 aros_flavour="emulation"
6897 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6898 aros_default_wbdepth=8
6899 gcc_target_cpu="ppc"
6901 # TODO
6902 # Same as powerpc, but I need this for the nightly build to work again.
6903 # Actually, the nightly should be made working with powerpc target.
6904 # That just was too much work for the moment, another week or two.
6905 *ppc*)
6906 aros_target_cpu="ppc"
6907 aros_object_format="elf32ppc"
6908 aros_flavour="emulation"
6909 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6910 aros_default_wbdepth=8
6911 gcc_target_cpu="ppc"
6914 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
6916 esac
6920 aros_target_arch="pc"
6921 aros_shared_default="no"
6922 target_bootloader="grub2"
6923 case "$target_cpu" in
6924 *i?86*)
6925 aros_target_cpu="i386"
6928 if test "$aros_object_format" = "" ; then
6929 aros_object_format="elf_i386"
6931 aros_flavour="standalone"
6932 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
6933 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
6934 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
6935 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
6936 aros_config_ldflags="-m32 -march=i486"
6937 aros_kernel_ldflags="-melf_i386"
6938 aros_default_wbwidth=640
6939 aros_default_wbheight=480
6940 gcc_target_cpu="i386"
6942 *x86_64*)
6943 aros_target_cpu="x86_64"
6944 aros_serial_debug=1
6945 if test "$aros_object_format" = "" ; then
6946 aros_object_format="elf_x86_64"
6948 aros_flavour="standalone"
6949 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
6950 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
6951 aros_kernel_ldflags=""
6952 aros_default_wbwidth=640
6953 aros_default_wbheight=480
6954 gcc_target_cpu="x86_64"
6957 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
6959 esac
6962 prep)
6963 aros_target_arch="prep"
6964 aros_shared_default="no"
6965 aros_target_cpu="ppc"
6966 aros_object_format="elf32ppc"
6967 aros_flavour="ppcnative"
6968 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
6969 aros_kernel_ldflags=""
6970 aros_default_wbwidth=640
6971 aros_default_wbheight=480
6972 gcc_target_cpu="ppc"
6975 freebsd*)
6976 aros_target_arch="freebsd"
6977 aros_target_cpu="i386"
6978 aros_flavour="emulation"
6979 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
6980 gcc_target_cpu="i386"
6982 aros_target_strip_flags="-x"
6985 darwin*)
6986 aros_target_arch="darwin"
6987 aros_flavour="emulation"
6988 need_dlopen="no"
6989 case "$target_cpu" in
6990 *i?86*)
6991 aros_target_cpu="i386"
6992 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
6993 gcc_target_cpu="i386"
6994 aros_object_format="elf_i386"
6995 aros_target_strip_flags="-x"
6998 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7000 esac
7003 dragonfly*)
7004 aros_target_arch="dragonfly"
7005 aros_flavour="emulation"
7006 case "$target_cpu" in
7007 *i?86*)
7008 aros_target_cpu="i386"
7009 aros_object_format="elf_i386"
7010 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7012 *x86_64*)
7013 aros_target_cpu="x86_64"
7014 aros_object_format="elf_x86_64"
7015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7018 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7020 esac
7023 netbsd*)
7024 aros_target_arch="netbsd"
7025 case "$target_cpu" in
7026 *m68k*)
7027 aros_target_cpu="m68k"
7028 aros_object_format="m68kelf"
7029 aros_flavour="emulcompat"
7030 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7031 gcc_target_cpu="mc68000"
7033 *i?86*)
7034 aros_target_cpu="i386"
7035 aros_object_format="elf_i386"
7036 aros_flavour="emulation"
7037 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7038 aros_default_wbdepth=8
7039 gcc_target_cpu="i386"
7042 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7044 esac
7045 aros_target_genmap="-Wl,-M -Xlinker >"
7046 aros_flavour="emulation"
7047 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7050 openbsd*)
7051 aros_target_arch="openbsd"
7052 case "$target_cpu" in
7053 *i?86*)
7054 aros_target_cpu="i386"
7055 aros_object_format="elf_i386"
7056 aros_flavour="emulation"
7057 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7058 gcc_target_cpu="i386"
7061 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7063 esac
7064 aros_target_genmap="-Wl,-M -Xlinker >"
7065 aros_target_nm_flags="-u"
7066 aros_flavour="emulation"
7069 solaris*)
7070 aros_target_arch="solaris"
7071 case "$target_cpu" in
7072 *i?86*)
7073 aros_target_cpu="i386"
7074 aros_object_format="elf_i386"
7075 aros_flavour="emulation"
7076 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7077 aros_default_wbdepth=8
7078 gcc_target_cpu="i386"
7080 *sparc*)
7081 aros_target_cpu="sparc"
7082 aros_object_format="elf_sparc"
7083 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7084 gcc_target_cpu="sparc"
7087 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7089 esac
7090 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7091 aros_flavour="emulation"
7094 morphos*)
7095 aros_target_arch="morphos"
7096 aros_shared_default="no"
7097 aros_target_cpu="ppc"
7098 aros_object_format="elf_ppc"
7099 aros_flavour="nativecompat"
7100 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7101 gcc_target_cpu="ppc"
7104 sam440)
7105 aros_target_arch="sam440"
7106 aros_shared_default="no"
7107 aros_target_cpu="ppc"
7108 aros_object_format="elf32ppc"
7109 aros_flavour="ppcnative"
7110 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7111 aros_kernel_ldflags=""
7112 aros_default_wbwidth=1024
7113 aros_default_wbheight=768
7114 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7115 gcc_target_cpu="powerpc"
7118 efika)
7119 aros_target_arch="efika"
7120 aros_shared_default="no"
7121 aros_target_cpu="arm"
7122 aros_object_format="armelf_linux_eabi"
7123 aros_flavour="standalone"
7124 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7125 aros_kernel_ldflags=""
7126 aros_default_wbwidth=1024
7127 aros_default_wbheight=600
7128 aros_arch_libs="-laeabi"
7129 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7130 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7133 chrp)
7134 aros_target_arch="chrp"
7135 aros_shared_default="no"
7136 aros_target_cpu="ppc"
7137 aros_object_format="elf32ppc"
7138 aros_flavour="ppcnative"
7139 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7140 aros_kernel_ldflags=""
7141 aros_default_wbwidth=640
7142 aros_default_wbheight=480
7143 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7144 gcc_target_cpu="powerpc"
7145 case "$aros_target_variant" in
7146 efika)
7147 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7149 esac
7152 amiga*)
7153 aros_target_arch="amiga"
7154 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7155 aros_shared_default="no"
7157 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7159 case "$target_cpu" in
7160 *m68k*)
7161 aros_target_cpu="m68k"
7162 aros_object_format="m68kelf"
7163 aros_flavour="nativecompat"
7164 gcc_target_cpu="mc68000"
7166 *ppc*)
7167 aros_cpu="ppc"
7168 aros_flavour="native"
7169 gcc_target_cpu="ppc"
7172 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7174 esac
7177 mingw32*)
7178 aros_target_arch="mingw32"
7179 aros_shared_default="no"
7180 need_dlopen="no"
7181 rescomp="windres"
7182 case "$target_cpu" in
7183 *i?86*)
7184 aros_target_cpu="i386"
7185 aros_object_format="elf_i386"
7186 aros_flavour="emulation"
7187 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7188 aros_shared_cflags=""
7189 aros_default_wbdepth=8
7190 gcc_target_cpu="i386"
7191 aros_target_cc="i386-aros-gcc"
7192 aros_target_ld="i386-aros-ld"
7193 aros_target_as="i386-aros-as"
7194 aros_target_ar="i386-aros-ar"
7195 aros_target_ranlib="i386-aros-ranlib"
7196 aros_target_nm="i386-aros-nm"
7197 aros_target_strip="i386-aros-strip"
7198 aros_target_objcopy="i386-aros-objcopy"
7199 aros_target_objdump="i386-aros-objdump"
7200 target_tool_prefix="i386-mingw32-"
7203 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7205 esac
7206 if test $host_os = "cygwin"; then
7207 aros_kernel_cflags="-mno-cygwin"
7210 pp*)
7211 aros_target_arch="pp"
7212 aros_shared_default="no"
7213 case "$target_cpu" in
7214 *m68k*)
7215 aros_target_cpu="m68k"
7216 aros_object_format="m68kelf"
7217 aros_flavour="palmnative"
7218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7219 aros_default_wbwidth=160
7220 aros_default_wbheight=160
7221 aros_default_wbdepth=1
7222 aros_target_ar_flags="cru"
7223 aros_compiler_libs="-lgcc1"
7224 aros_shared_default=no
7225 aros_shared_cflags="-fpic"
7226 aros_shared_aflags=""
7227 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7228 aros_kernel_ldflags="-Wl,-rpath,./lib"
7229 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7230 aros_debug_aflags=""
7231 aros_debug_ldflags="$aros_symbols_debug"
7232 aros_mungwall_debug="0"
7233 aros_modules_debug="0"
7234 gcc_target_cpu="mc68000"
7235 ignore_undefined_symbols="-ius"
7238 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7240 esac
7243 mac*)
7244 aros_target_arch="mac"
7245 aros_shared_default="no"
7246 case "$target_cpu" in
7247 *m68k*)
7248 aros_target_cpu="m68k"
7249 aros_object_format="m68kelf"
7250 aros_flavour="mac68knative"
7251 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7252 aros_default_wbwidth=512
7253 aros_default_wbheight=384
7254 aros_default_wbdepth=8
7255 aros_target_ar_flags="cru"
7256 aros_compiler_libs="-lgcc1"
7257 aros_shared_default=no
7258 aros_shared_cflags="-fpic"
7259 aros_shared_aflags=""
7260 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7261 aros_kernel_ldflags="-Wl,-rpath,./lib"
7262 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7263 aros_debug_aflags=""
7264 aros_debug_ldflags="$aros_symbols_debug"
7265 aros_mungwall_debug="0"
7266 aros_modules_debug="0"
7267 gcc_target_cpu="mc68000"
7268 ignore_undefined_symbols="-ius"
7271 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7273 esac
7277 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7279 esac
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7282 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7284 # Check whether --with-portssources was given.
7285 if test "${with_portssources+set}" = set; then :
7286 withval=$with_portssources; with_portssrcdir=$withval
7287 else
7288 with_portssrcdir="default"
7291 if test "$with_portssrcdir" = "default"; then
7292 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
7293 else
7294 AROS_PORTSSRCDIR="$with_portssrcdir"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7297 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7300 $as_echo_n "checking which bootloader to use... " >&6; }
7302 # Check whether --with-bootloader was given.
7303 if test "${with_bootloader+set}" = set; then :
7304 withval=$with_bootloader; target_bootloader=$withval
7305 else
7306 target_bootloader=$target_bootloader
7309 if test "$target_bootloader" = "none"; then
7310 aros_target_bootloader=""
7311 else
7312 aros_target_bootloader="$target_bootloader"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7315 $as_echo "$target_bootloader" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7318 $as_echo_n "checking which icon-set to use... " >&6; }
7320 # Check whether --with-iconset was given.
7321 if test "${with_iconset+set}" = set; then :
7322 withval=$with_iconset; target_iconset=$withval
7323 else
7324 target_iconset="default"
7327 if test "$target_iconset" = "default"; then
7328 aros_target_iconset="Gorilla"
7329 target_iconset="default (Gorilla)"
7330 else
7331 aros_target_iconset="$target_iconset"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7334 $as_echo "$target_iconset" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7337 $as_echo_n "checking which GUI Theme to use... " >&6; }
7339 # Check whether --with-theme was given.
7340 if test "${with_theme+set}" = set; then :
7341 withval=$with_theme; target_guitheme=$withval
7342 else
7343 target_guitheme="default"
7346 if test "$target_guitheme" = "default"; then
7347 aros_target_guitheme="Ice"
7348 else
7349 aros_target_guitheme="$target_guitheme"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7352 $as_echo "$aros_target_guitheme" >&6; }
7354 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7355 # for target code)
7356 cross_compiling=no
7357 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7358 cross_compiling=yes
7360 if test "$aros_host_cpu" == "x86_64" ; then
7361 if test "$aros_target_cpu" == "i386" ; then
7362 if test "$aros_target_arch" != "mingw32"; then
7363 cross_compiling=no
7367 if test "$aros_host_arch" == "darwin" ; then
7368 cross_compiling=yes
7371 # Set prefix for target compiler etc. if we're cross-compiling
7372 # (should possibly be earlier but needs to be after AC_PROG_CC)
7373 if test "$cross_compiling" = "yes" ; then
7374 if test "$target_tool_prefix" = ""; then
7375 target_tool_prefix=${target_cpu}-elf-
7377 CC=${target_tool_prefix}gcc
7380 #-----------------------------------------------------------------------------
7382 # Disable pointer-signedness warnings if the compiler recognises the option
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7385 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7386 save_cflags="$CFLAGS"
7387 CFLAGS="$CFLAGS -Wno-pointer-sign"
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7392 main ()
7396 return 0;
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"; then :
7400 use_no_sign_warning="yes"
7401 else
7402 use_no_sign_warning="no"
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7406 $as_echo "$use_no_sign_warning" >&6; }
7407 if test "x-$use_no_sign_warning" = "x-yes" ; then
7408 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7410 CFLAGS="$save_cflags"
7412 #-----------------------------------------------------------------------------
7414 # Find all the tools we need to compile. This could be cross-compiling
7415 # though! If that is the case we use the GNU form of the target and
7416 # simply add this to the front of the binary name. This is rather simple,
7417 # but it should work under most circumstances.
7419 # The default tools are to use the same as the host, but only if the
7420 # host and target CPU are the same. With GCC this is normally enough.
7423 aros_cc_pre=""
7424 aros_shared_ld="$aros_host_ld"
7426 aros_target_mkdep="$aros_host_mkdep"
7427 aros_target_incl_def="$aros_host_incl"
7429 aros_kernel_cc="$CC"
7431 # The default tools executables to be linked to.
7432 if test "$aros_target_cc" != ""; then
7433 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7434 set dummy $aros_target_cc; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 case $aros_target_cc in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7456 done
7457 done
7458 IFS=$as_save_IFS
7461 esac
7463 aros_target_cc=$ac_cv_path_aros_target_cc
7464 if test -n "$aros_target_cc"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7466 $as_echo "$aros_target_cc" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7473 if test "$aros_target_cc" = ""; then
7474 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7477 if test "$aros_target_ld" != ""; then
7478 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
7479 set dummy $aros_target_ld; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 case $aros_target_ld in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7501 done
7502 done
7503 IFS=$as_save_IFS
7506 esac
7508 aros_target_ld=$ac_cv_path_aros_target_ld
7509 if test -n "$aros_target_ld"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
7511 $as_echo "$aros_target_ld" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 if test "$aros_target_ld" = ""; then
7519 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7523 if test "$crosstools" != "yes"; then
7525 if test "$aros_target_as" = ""; then
7526 if test "$cross_compiling" = "yes" ; then
7527 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7528 set dummy ${target_tool_prefix}as; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 case $aros_target_as_ln in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7550 done
7551 done
7552 IFS=$as_save_IFS
7555 esac
7557 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7558 if test -n "$aros_target_as_ln"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7560 $as_echo "$aros_target_as_ln" >&6; }
7561 else
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7567 else
7568 if test "$GCC" = "yes"; then
7569 aros_gcc_as=`$CC -print-prog-name=as`
7570 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7571 set dummy `basename $aros_gcc_as`; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 case $aros_target_as_ln in
7578 [\\/]* | ?:[\\/]*)
7579 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in `dirname $aros_gcc_as`
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7598 esac
7600 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7601 if test -n "$aros_target_as_ln"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7603 $as_echo "$aros_target_as_ln" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7611 if test "$aros_target_as_ln" = ""; then
7612 # Extract the first word of "as", so it can be a program name with args.
7613 set dummy as; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 case $aros_target_as_ln in
7620 [\\/]* | ?:[\\/]*)
7621 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7640 esac
7642 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7643 if test -n "$aros_target_as_ln"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7645 $as_echo "$aros_target_as_ln" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7654 else
7655 # Extract the first word of "$aros_target_as", so it can be a program name with args.
7656 set dummy $aros_target_as; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 case $aros_target_as_ln in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7683 esac
7685 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7686 if test -n "$aros_target_as_ln"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7688 $as_echo "$aros_target_as_ln" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7697 if test "$aros_target_as_ln" = ""; then
7698 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
7701 if test "$aros_kernel_ld" = ""; then
7702 if test "$cross_compiling" = "yes" ; then
7703 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7704 set dummy ${target_tool_prefix}ld; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 case $aros_kernel_ld in
7711 [\\/]* | ?:[\\/]*)
7712 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7726 done
7727 done
7728 IFS=$as_save_IFS
7731 esac
7733 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7734 if test -n "$aros_kernel_ld"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7736 $as_echo "$aros_kernel_ld" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7743 else
7744 if test "$GCC" = "yes"; then
7745 aros_gcc_ld=`$CC -print-prog-name=ld`
7746 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7747 set dummy `basename $aros_gcc_ld`; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 case $aros_kernel_ld in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in `dirname $aros_gcc_ld`
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7774 esac
7776 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7777 if test -n "$aros_kernel_ld"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7779 $as_echo "$aros_kernel_ld" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7787 if test "$aros_kernel_ld" = ""; then
7788 # Extract the first word of "ld", so it can be a program name with args.
7789 set dummy ld; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 case $aros_kernel_ld in
7796 [\\/]* | ?:[\\/]*)
7797 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7816 esac
7818 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7819 if test -n "$aros_kernel_ld"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7821 $as_echo "$aros_kernel_ld" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7830 else
7831 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
7832 set dummy $aros_kernel_ld; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 case $aros_kernel_ld in
7839 [\\/]* | ?:[\\/]*)
7840 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7854 done
7855 done
7856 IFS=$as_save_IFS
7859 esac
7861 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7862 if test -n "$aros_kernel_ld"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7864 $as_echo "$aros_kernel_ld" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7873 if test "$aros_kernel_ld" = ""; then
7874 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7877 if test "$aros_target_ar" = ""; then
7878 if test "$cross_compiling" = "yes" ; then
7879 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
7880 set dummy ${target_tool_prefix}ar; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $aros_target_ar_ln in
7887 [\\/]* | ?:[\\/]*)
7888 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7907 esac
7909 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7910 if test -n "$aros_target_ar_ln"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
7912 $as_echo "$aros_target_ar_ln" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7919 else
7920 if test "$GCC" = "yes"; then
7921 aros_gcc_ar=`$CC -print-prog-name=ar`
7922 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
7923 set dummy `basename $aros_gcc_ar`; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 case $aros_target_ar_ln in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in `dirname $aros_gcc_ar`
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7950 esac
7952 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7953 if test -n "$aros_target_ar_ln"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
7955 $as_echo "$aros_target_ar_ln" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7963 if test "$aros_target_ar_ln" = ""; then
7964 # Extract the first word of "ar", so it can be a program name with args.
7965 set dummy ar; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 case $aros_target_ar_ln in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7987 done
7988 done
7989 IFS=$as_save_IFS
7992 esac
7994 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7995 if test -n "$aros_target_ar_ln"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
7997 $as_echo "$aros_target_ar_ln" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8006 else
8007 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8008 set dummy $aros_target_ar; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 case $aros_target_ar_ln in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8030 done
8031 done
8032 IFS=$as_save_IFS
8035 esac
8037 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8038 if test -n "$aros_target_ar_ln"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8040 $as_echo "$aros_target_ar_ln" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8049 if test "$aros_target_ar_ln" = ""; then
8050 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8053 if test "$aros_target_nm" = ""; then
8054 if test "$cross_compiling" = "yes" ; then
8055 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8056 set dummy ${target_tool_prefix}nm; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 case $aros_target_nm_ln in
8063 [\\/]* | ?:[\\/]*)
8064 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8078 done
8079 done
8080 IFS=$as_save_IFS
8083 esac
8085 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8086 if test -n "$aros_target_nm_ln"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8088 $as_echo "$aros_target_nm_ln" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8095 else
8096 if test "$GCC" = "yes"; then
8097 aros_gcc_nm=`$CC -print-prog-name=nm`
8098 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8099 set dummy `basename $aros_gcc_nm`; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 case $aros_target_nm_ln in
8106 [\\/]* | ?:[\\/]*)
8107 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in `dirname $aros_gcc_nm`
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8126 esac
8128 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8129 if test -n "$aros_target_nm_ln"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8131 $as_echo "$aros_target_nm_ln" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8139 if test "$aros_target_nm_ln" = ""; then
8140 # Extract the first word of "nm", so it can be a program name with args.
8141 set dummy nm; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 case $aros_target_nm_ln in
8148 [\\/]* | ?:[\\/]*)
8149 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8163 done
8164 done
8165 IFS=$as_save_IFS
8168 esac
8170 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8171 if test -n "$aros_target_nm_ln"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8173 $as_echo "$aros_target_nm_ln" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8182 else
8183 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8184 set dummy $aros_target_nm; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 case $aros_target_nm_ln in
8191 [\\/]* | ?:[\\/]*)
8192 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8202 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 break 2
8206 done
8207 done
8208 IFS=$as_save_IFS
8211 esac
8213 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8214 if test -n "$aros_target_nm_ln"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8216 $as_echo "$aros_target_nm_ln" >&6; }
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8225 if test "$aros_target_nm_ln" = ""; then
8226 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8229 if test "$aros_target_objcopy" = ""; then
8230 if test "$cross_compiling" = "yes" ; then
8231 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8232 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 case $aros_target_objcopy_ln in
8239 [\\/]* | ?:[\\/]*)
8240 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8256 IFS=$as_save_IFS
8259 esac
8261 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8262 if test -n "$aros_target_objcopy_ln"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8264 $as_echo "$aros_target_objcopy_ln" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8271 else
8272 if test "$GCC" = "yes"; then
8273 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8274 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8275 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 case $aros_target_objcopy_ln in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in `dirname $aros_gcc_objcopy`
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8302 esac
8304 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8305 if test -n "$aros_target_objcopy_ln"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8307 $as_echo "$aros_target_objcopy_ln" >&6; }
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8315 if test "$aros_target_objcopy_ln" = ""; then
8316 # Extract the first word of "objcopy", so it can be a program name with args.
8317 set dummy objcopy; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 case $aros_target_objcopy_ln in
8324 [\\/]* | ?:[\\/]*)
8325 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8339 done
8340 done
8341 IFS=$as_save_IFS
8344 esac
8346 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8347 if test -n "$aros_target_objcopy_ln"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8349 $as_echo "$aros_target_objcopy_ln" >&6; }
8350 else
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8358 else
8359 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8360 set dummy $aros_target_objcopy; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 case $aros_target_objcopy_ln in
8367 [\\/]* | ?:[\\/]*)
8368 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8382 done
8383 done
8384 IFS=$as_save_IFS
8387 esac
8389 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8390 if test -n "$aros_target_objcopy_ln"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8392 $as_echo "$aros_target_objcopy_ln" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8401 if test "$aros_target_objcopy_ln" = ""; then
8402 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8405 if test "$aros_target_objdump" = ""; then
8406 if test "$cross_compiling" = "yes" ; then
8407 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8408 set dummy ${target_tool_prefix}objdump; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 case $aros_target_objdump_ln in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8435 esac
8437 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8438 if test -n "$aros_target_objdump_ln"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8440 $as_echo "$aros_target_objdump_ln" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8447 else
8448 if test "$GCC" = "yes"; then
8449 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8450 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8451 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 case $aros_target_objdump_ln in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in `dirname $aros_gcc_objdump`
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8478 esac
8480 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8481 if test -n "$aros_target_objdump_ln"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8483 $as_echo "$aros_target_objdump_ln" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test "$aros_target_objdump_ln" = ""; then
8492 # Extract the first word of "objdump", so it can be a program name with args.
8493 set dummy objdump; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 case $aros_target_objdump_ln in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8517 IFS=$as_save_IFS
8520 esac
8522 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8523 if test -n "$aros_target_objdump_ln"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8525 $as_echo "$aros_target_objdump_ln" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8534 else
8535 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
8536 set dummy $aros_target_objdump; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 case $aros_target_objdump_ln in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8563 esac
8565 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8566 if test -n "$aros_target_objdump_ln"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8568 $as_echo "$aros_target_objdump_ln" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8577 if test "$aros_target_objdump_ln" = ""; then
8578 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
8581 if test "$aros_target_ranlib" = ""; then
8582 if test "$cross_compiling" = "yes" ; then
8583 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8584 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $aros_target_ranlib_ln in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8611 esac
8613 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8614 if test -n "$aros_target_ranlib_ln"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8616 $as_echo "$aros_target_ranlib_ln" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8623 else
8624 if test "$GCC" = "yes"; then
8625 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8626 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8627 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 case $aros_target_ranlib_ln in
8634 [\\/]* | ?:[\\/]*)
8635 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in `dirname $aros_gcc_ranlib`
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8649 done
8650 done
8651 IFS=$as_save_IFS
8654 esac
8656 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8657 if test -n "$aros_target_ranlib_ln"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8659 $as_echo "$aros_target_ranlib_ln" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 if test "$aros_target_ranlib_ln" = ""; then
8668 # Extract the first word of "ranlib", so it can be a program name with args.
8669 set dummy ranlib; ac_word=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 case $aros_target_ranlib_ln in
8676 [\\/]* | ?:[\\/]*)
8677 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8696 esac
8698 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8699 if test -n "$aros_target_ranlib_ln"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8701 $as_echo "$aros_target_ranlib_ln" >&6; }
8702 else
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8710 else
8711 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
8712 set dummy $aros_target_ranlib; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 case $aros_target_ranlib_ln in
8719 [\\/]* | ?:[\\/]*)
8720 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8734 done
8735 done
8736 IFS=$as_save_IFS
8739 esac
8741 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8742 if test -n "$aros_target_ranlib_ln"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8744 $as_echo "$aros_target_ranlib_ln" >&6; }
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8753 if test "$aros_target_ranlib_ln" = ""; then
8754 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
8757 if test "$aros_target_strip" = ""; then
8758 if test "$cross_compiling" = "yes" ; then
8759 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8760 set dummy ${target_tool_prefix}strip; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $aros_target_strip_ln in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8782 done
8783 done
8784 IFS=$as_save_IFS
8787 esac
8789 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8790 if test -n "$aros_target_strip_ln"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8792 $as_echo "$aros_target_strip_ln" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8799 else
8800 if test "$GCC" = "yes"; then
8801 aros_gcc_strip=`$CC -print-prog-name=strip`
8802 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8803 set dummy `basename $aros_gcc_strip`; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 case $aros_target_strip_ln in
8810 [\\/]* | ?:[\\/]*)
8811 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in `dirname $aros_gcc_strip`
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8830 esac
8832 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8833 if test -n "$aros_target_strip_ln"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8835 $as_echo "$aros_target_strip_ln" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8843 if test "$aros_target_strip_ln" = ""; then
8844 # Extract the first word of "strip", so it can be a program name with args.
8845 set dummy strip; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 case $aros_target_strip_ln in
8852 [\\/]* | ?:[\\/]*)
8853 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8869 IFS=$as_save_IFS
8872 esac
8874 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8875 if test -n "$aros_target_strip_ln"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8877 $as_echo "$aros_target_strip_ln" >&6; }
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8886 else
8887 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
8888 set dummy $aros_target_strip; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 case $aros_target_strip_ln in
8895 [\\/]* | ?:[\\/]*)
8896 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8910 done
8911 done
8912 IFS=$as_save_IFS
8915 esac
8917 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8918 if test -n "$aros_target_strip_ln"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8920 $as_echo "$aros_target_strip_ln" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8929 if test "$aros_target_strip_ln" = ""; then
8930 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
8934 if test "$rescomp" != ""; then
8935 if test "$cross_compiling" = "yes" ; then
8936 rescomp=${target_tool_prefix}${rescomp}
8938 # Extract the first word of "$rescomp", so it can be a program name with args.
8939 set dummy $rescomp; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 case $aros_kernel_rescomp in
8946 [\\/]* | ?:[\\/]*)
8947 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8966 esac
8968 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8969 if test -n "$aros_kernel_rescomp"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8971 $as_echo "$aros_kernel_rescomp" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8978 if test "$aros_kernel_rescomp" = ""; then
8979 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8983 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8984 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8985 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8986 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8987 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8988 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8989 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8991 # aros_cc_pre is a variable that is added to the front of the compiler name
8992 # in the generated aros-gcc shell script. We need this to enable the cache
8993 # to work across cleaned builds. Also, support DISTCC using the correct
8994 # environment variable.
8997 if test "x${DISTCC}" != "x" ; then
8998 if test "x${CCACHE}" != "x" ; then
8999 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9000 else
9001 aros_cc_pre="${DISTCC} "
9003 else
9004 if test "x${CCACHE}" != "x" ; then
9005 aros_cc_pre="${CCACHE} "
9009 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9011 aros_target_nostdinc_cflags=-nostdinc
9013 aros_target_nostartup_ldflags=-nostartfiles
9015 aros_target_nix_ldflags=-nix
9017 aros_target_detach_ldflags=-detach
9019 aros_target_nostdlib_ldflags=-nostdlib
9022 # Target tools
9023 if test "$aros_target_cc" = ""; then
9024 orig_target_cc=$aros_kernel_cc
9025 else
9026 orig_target_cc=$aros_target_cc
9028 if test "$aros_target_ld" = ""; then
9029 orig_target_ld=$aros_kernel_ld
9030 else
9031 orig_target_ld=$aros_target_ld
9033 if test "$GCC" = "yes"; then
9034 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9036 aros_target_cc="${prefix}-gcc"
9037 aros_target_as="${prefix}-as"
9038 aros_target_ld="${prefix}-ld"
9039 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9040 aros_target_objcopy=${prefix}-objcopy
9041 aros_target_objdump=${prefix}-objdump
9042 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9043 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9044 aros_kernel_nm="${prefix}-nm"
9045 aros_target_strip=${prefix}-strip
9047 # Find the system include path. We can suggest that an alternative is
9048 # used if we don't get it correct. The default is to use /usr/include.
9049 # Which is set in the aros_target_incl_def variable.
9051 # Check whether --enable-includes was given.
9052 if test "${enable_includes+set}" = set; then :
9053 enableval=$enable_includes; aros_target_incl=$enable_includes
9054 else
9055 aros_target_incl=$aros_target_incl_def
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9060 $as_echo_n "checking for the target compiler's include path... " >&6; }
9061 if test "$aros_target_cc_includes" = "" ; then
9062 #try to guess where the directory is
9063 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9064 if ! test -d $aros_target_cc_includes; then
9065 #the directory doesn't exist, we need to do some more work
9066 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9068 #these are the headers we're looling for
9069 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9070 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9071 zutil.h"
9073 dirs=
9074 for h in $headers; do
9075 #which other headers each of the above headers needs?
9076 deps=$(echo "#include <$h>" | \
9077 $aros_host_cc -E -M - 2>/dev/null | \
9078 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9080 #copy all the needed headers to a directory beneath gendir
9081 for d in $deps; do
9082 h=$(basename $d)
9083 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9084 sed -n "s,^.*/include\(/.*\),\1,p")
9085 ! test -d $dir && mkdir -p $dir
9086 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9087 done
9088 done
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9092 $as_echo "$aros_target_cc_includes" >&6; }
9095 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9096 # On GCC >= 4.0 -iquote should be used
9099 save_cc="$CC"
9100 save_cflags="$CFLAGS"
9101 CFLAGS="-iquote."
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9103 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9108 main ()
9112 return 0;
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116 has_iquote="yes"
9117 else
9118 has_iquote="no"
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9122 $as_echo "$has_iquote" >&6; }
9123 if test "x-$has_iquote" = "x-yes" ; then
9124 host_cflags_iquote=-iquote
9125 host_cflags_iquote_end=
9126 else
9127 host_cflags_iquote=-I
9128 host_cflags_iquote_end=-I-
9130 kernel_cflags_iquote=$host_cflags_iquote
9131 kernel_cflags_iquote_end=$host_cflags_iquote_end
9132 if test "x-$cross_compiling" = "x-yes"; then
9133 CC="$aros_kernel_cc"
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9135 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9140 main ()
9144 return 0;
9146 _ACEOF
9147 if ac_fn_c_try_compile "$LINENO"; then :
9148 use_no_stack_protector="yes"
9149 else
9150 use_no_stack_protector="no"
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9154 $as_echo "$use_no_stack_protector" >&6; }
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9156 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9161 main ()
9165 return 0;
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"; then :
9169 has_iquote="yes"
9170 else
9171 has_iquote="no"
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9175 $as_echo "$has_iquote" >&6; }
9176 if test "x-$has_iquote" = "x-yes" ; then
9177 kernel_cflags_iquote=-iquote
9178 kernel_cflags_iquote_end=
9179 else
9180 kernel_cflags_iquote=-I
9181 kernel_cflags_iquote_end=-I-
9184 aros_cflags_iquote=$kernel_cflags_iquote
9185 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9186 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9187 CC="$orig_target_cc"
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 aros_cflags_iquote=-iquote
9211 aros_cflags_iquote_end=
9212 else
9213 aros_cflags_iquote=-I
9214 aros_cflags_iquote_end=-I-
9217 if test "x-$use_no_stack_protector" = "x-yes" ; then
9218 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9221 #-----------------------------------------------------------------------------
9223 # Check if we can explicitly choose older version of symbol hashing
9225 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9226 CC="$aros_kernel_cc"
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9228 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9233 main ()
9237 return 0;
9239 _ACEOF
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 use_hash_style="yes"
9242 else
9243 use_hash_style="no"
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9248 $as_echo "$use_hash_style" >&6; }
9249 if test "x-$use_hash_style" = "x-yes" ; then
9250 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9252 CC="$save_cc"
9253 CFLAGS="$save_cflags"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9264 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9266 # Check whether --with-resolution was given.
9267 if test "${with_resolution+set}" = set; then :
9268 withval=$with_resolution; resolution=$withval
9269 else
9270 resolution=none
9273 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9274 if test "$resolution" = "yes" ; then
9275 resolution="none"
9277 if test "$resolution" = "no" ; then
9278 resolution="none"
9280 if test "$resolution" != "none" ; then
9281 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9282 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9283 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9286 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9287 aros_cv_default_wbwidth=$aros_default_wbwidth
9288 aros_cv_default_wbheight=$aros_default_wbheight
9289 aros_cv_default_wbdepth=$aros_default_wbdepth
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bochs hack is enabled" >&5
9292 $as_echo_n "checking if bochs hack is enabled... " >&6; }
9293 # Check whether --enable-bochs_hack was given.
9294 if test "${enable_bochs_hack+set}" = set; then :
9295 enableval=$enable_bochs_hack; bochs_hack="yes"
9296 else
9297 bochs_hack="no"
9300 if test "$bochs_hack" = "yes" ; then
9301 aros_bochs_hack="1"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bochs_hack" >&5
9304 $as_echo "$bochs_hack" >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9307 $as_echo_n "checking if serial debug is enabled... " >&6; }
9309 # Check whether --with-serial-debug was given.
9310 if test "${with_serial_debug+set}" = set; then :
9311 withval=$with_serial_debug; serial_debug=$withval
9312 else
9313 serial_debug=none
9316 if test "$aros_serial_debug" = 0 ; then
9317 serial_debug_forced=""
9318 if test "$serial_debug" = "yes" ; then
9319 serial_debug="2"
9321 if test "$serial_debug" = "no" ; then
9322 serial_debug="none"
9324 else
9325 serial_debug_forced="(forced)"
9326 serial_debug=$aros_serial_debug
9328 if test "$serial_debug" != "none" ; then
9329 aros_serial_debug=$serial_debug
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9331 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9332 else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9338 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9339 # Check whether --enable-palm_debug_hack was given.
9340 if test "${enable_palm_debug_hack+set}" = set; then :
9341 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9342 else
9343 palm_debug_hack="no"
9346 if test "$palm_debug_hack" = "yes" ; then
9347 aros_palm_debug_hack="1"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9350 $as_echo "$palm_debug_hack" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9354 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9355 # Check whether --enable-nesting_supervisor was given.
9356 if test "${enable_nesting_supervisor+set}" = set; then :
9357 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9358 else
9359 nesting_supervisor="no"
9362 if test "$nesting_supervisor" = "yes" ; then
9363 aros_nesting_supervisor="1"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9366 $as_echo "$nesting_supervisor" >&6; }
9369 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9371 if test "x-$need_dlopen" != "x-no" ; then
9372 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9373 if test "x$ac_cv_func_dlopen" = x""yes; then :
9374 have_dl="yes"
9375 else
9376 have_dl="no"
9379 if test "x-$have_dl" = "x-no" ; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9382 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-ldl $LIBS"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char dlopen ();
9398 main ()
9400 return dlopen ();
9402 return 0;
9404 _ACEOF
9405 if ac_fn_c_try_link "$LINENO"; then :
9406 ac_cv_lib_dl_dlopen=yes
9407 else
9408 ac_cv_lib_dl_dlopen=no
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9416 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9417 have_dl="yes"
9418 aros_host_ldflags="$aros_host_ldflags -ldl"
9419 else
9420 have_dl="no"
9424 if test "x-$have_dl" = "x-no" ; then
9425 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
9430 # Check whether --enable-x11_hidd was given.
9431 if test "${enable_x11_hidd+set}" = set; then :
9432 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9433 else
9434 x11_hidd="auto"
9437 case "x-$x11_hidd" in
9438 x-yes|x-no|x-auto) ;;
9439 *) x11_hidd="auto" ;;
9440 esac
9442 ENABLE_X11=0
9444 if test "x-$x11_hidd" != "x-no" ; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9447 $as_echo_n "checking for X... " >&6; }
9450 # Check whether --with-x was given.
9451 if test "${with_x+set}" = set; then :
9452 withval=$with_x;
9455 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9456 if test "x$with_x" = xno; then
9457 # The user explicitly disabled X.
9458 have_x=disabled
9459 else
9460 case $x_includes,$x_libraries in #(
9461 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9462 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 # One or both of the vars are not set, and there is no cached value.
9466 ac_x_includes=no ac_x_libraries=no
9467 rm -f -r conftest.dir
9468 if mkdir conftest.dir; then
9469 cd conftest.dir
9470 cat >Imakefile <<'_ACEOF'
9471 incroot:
9472 @echo incroot='${INCROOT}'
9473 usrlibdir:
9474 @echo usrlibdir='${USRLIBDIR}'
9475 libdir:
9476 @echo libdir='${LIBDIR}'
9477 _ACEOF
9478 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9480 for ac_var in incroot usrlibdir libdir; do
9481 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9482 done
9483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9484 for ac_extension in a so sl dylib la dll; do
9485 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9486 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9487 ac_im_usrlibdir=$ac_im_libdir; break
9489 done
9490 # Screen out bogus values from the imake configuration. They are
9491 # bogus both because they are the default anyway, and because
9492 # using them would break gcc on systems where it needs fixed includes.
9493 case $ac_im_incroot in
9494 /usr/include) ac_x_includes= ;;
9495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9496 esac
9497 case $ac_im_usrlibdir in
9498 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9500 esac
9502 cd ..
9503 rm -f -r conftest.dir
9506 # Standard set of common directories for X headers.
9507 # Check X11 before X11Rn because it is often a symlink to the current release.
9508 ac_x_header_dirs='
9509 /usr/X11/include
9510 /usr/X11R7/include
9511 /usr/X11R6/include
9512 /usr/X11R5/include
9513 /usr/X11R4/include
9515 /usr/include/X11
9516 /usr/include/X11R7
9517 /usr/include/X11R6
9518 /usr/include/X11R5
9519 /usr/include/X11R4
9521 /usr/local/X11/include
9522 /usr/local/X11R7/include
9523 /usr/local/X11R6/include
9524 /usr/local/X11R5/include
9525 /usr/local/X11R4/include
9527 /usr/local/include/X11
9528 /usr/local/include/X11R7
9529 /usr/local/include/X11R6
9530 /usr/local/include/X11R5
9531 /usr/local/include/X11R4
9533 /usr/X386/include
9534 /usr/x386/include
9535 /usr/XFree86/include/X11
9537 /usr/include
9538 /usr/local/include
9539 /usr/unsupported/include
9540 /usr/athena/include
9541 /usr/local/x11r5/include
9542 /usr/lpp/Xamples/include
9544 /usr/openwin/include
9545 /usr/openwin/share/include'
9547 if test "$ac_x_includes" = no; then
9548 # Guess where to find include files, by looking for Xlib.h.
9549 # First, try using that file with no special directory specified.
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 #include <X11/Xlib.h>
9553 _ACEOF
9554 if ac_fn_c_try_cpp "$LINENO"; then :
9555 # We can compile using X headers with no special include directory.
9556 ac_x_includes=
9557 else
9558 for ac_dir in $ac_x_header_dirs; do
9559 if test -r "$ac_dir/X11/Xlib.h"; then
9560 ac_x_includes=$ac_dir
9561 break
9563 done
9565 rm -f conftest.err conftest.$ac_ext
9566 fi # $ac_x_includes = no
9568 if test "$ac_x_libraries" = no; then
9569 # Check for the libraries.
9570 # See if we find them without any special options.
9571 # Don't add to $LIBS permanently.
9572 ac_save_LIBS=$LIBS
9573 LIBS="-lX11 $LIBS"
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 #include <X11/Xlib.h>
9578 main ()
9580 XrmInitialize ()
9582 return 0;
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 LIBS=$ac_save_LIBS
9587 # We can link X programs with no special library path.
9588 ac_x_libraries=
9589 else
9590 LIBS=$ac_save_LIBS
9591 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9593 # Don't even attempt the hair of trying to link an X program!
9594 for ac_extension in a so sl dylib la dll; do
9595 if test -r "$ac_dir/libX11.$ac_extension"; then
9596 ac_x_libraries=$ac_dir
9597 break 2
9599 done
9600 done
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 fi # $ac_x_libraries = no
9606 case $ac_x_includes,$ac_x_libraries in #(
9607 no,* | *,no | *\'*)
9608 # Didn't find X, or a directory has "'" in its name.
9609 ac_cv_have_x="have_x=no";; #(
9611 # Record where we found X for the cache.
9612 ac_cv_have_x="have_x=yes\
9613 ac_x_includes='$ac_x_includes'\
9614 ac_x_libraries='$ac_x_libraries'"
9615 esac
9617 ;; #(
9618 *) have_x=yes;;
9619 esac
9620 eval "$ac_cv_have_x"
9621 fi # $with_x != no
9623 if test "$have_x" != yes; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9625 $as_echo "$have_x" >&6; }
9626 no_x=yes
9627 else
9628 # If each of the values was on the command line, it overrides each guess.
9629 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9630 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9631 # Update the cache value to reflect the command line values.
9632 ac_cv_have_x="have_x=yes\
9633 ac_x_includes='$x_includes'\
9634 ac_x_libraries='$x_libraries'"
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9636 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9640 x_cflags=
9641 for path in $x_libraries
9643 x_cflags="$x_cflags -L$path"
9644 done
9646 for path in $x_includes
9648 x_cflags="$x_cflags -I$path"
9649 done
9651 if test "x-$no_x" = "x-yes" ; then
9653 if test "x-$x11_hidd" != "x-auto" ; then
9654 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
9657 else
9658 x11_hidd_target=kernel-x11gfx-kobj
9659 ENABLE_X11=1
9661 # Check whether --enable-x11_shm was given.
9662 if test "${enable_x11_shm+set}" = set; then :
9663 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
9664 else
9665 x11_hidd_shm="auto"
9668 case "x-$x11_hidd_shm" in
9669 x-yes|x-no|x-auto) ;;
9670 *) x11_hidd_shm="auto" ;;
9671 esac
9673 have_xshm=no
9675 if test "x-$x11_hidd_shm" != "x-no" ; then
9677 for ac_header in sys/ipc.h
9678 do :
9679 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
9680 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
9681 cat >>confdefs.h <<_ACEOF
9682 #define HAVE_SYS_IPC_H 1
9683 _ACEOF
9687 done
9689 for ac_header in sys/shm.h
9690 do :
9691 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
9692 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_SYS_SHM_H 1
9695 _ACEOF
9699 done
9702 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
9704 save_cflags="$CFLAGS"
9705 CFLAGS="$CFLAGS $x_cflags"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9707 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9708 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-lXext $LIBS"
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9716 /* Override any GCC internal prototype to avoid an error.
9717 Use char because int might match the return type of a GCC
9718 builtin and then its argument prototype would still apply. */
9719 #ifdef __cplusplus
9720 extern "C"
9721 #endif
9722 char XShmQueryExtension ();
9724 main ()
9726 return XShmQueryExtension ();
9728 return 0;
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 ac_cv_lib_Xext_XShmQueryExtension=yes
9733 else
9734 ac_cv_lib_Xext_XShmQueryExtension=no
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9741 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9742 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
9743 have_xshm=yes
9746 CFLAGS="$save_cflags"
9750 if test "x-$have_xshm" = "x-yes" ; then
9751 DO_XSHM_SUPPORT="1"
9752 elif test "x-$x11_hidd_shm" = "x-yes" ; then
9753 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
9754 else
9755 DO_XSHM_SUPPORT="0"
9759 # Check whether --enable-x11_vidmode was given.
9760 if test "${enable_x11_vidmode+set}" = set; then :
9761 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
9762 else
9763 x11_hidd_vidmode="auto"
9766 case "x-$x11_hidd_vidmode" in
9767 x-yes|x-no|x-auto) ;;
9768 *) x11_hidd_vidmode="auto" ;;
9769 esac
9771 have_vidmode=no
9773 if test "x-$x11_hidd_vidmode" != "x-no" ; then
9775 save_cflags="$CFLAGS"
9776 CFLAGS="$CFLAGS $x_cflags"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9778 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
9779 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-lXxf86vm $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 XF86VidModeQueryExtension ();
9795 main ()
9797 return XF86VidModeQueryExtension ();
9799 return 0;
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9804 else
9805 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=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_Xxf86vm_XF86VidModeQueryExtension" >&5
9812 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9813 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
9814 have_vidmode=yes
9817 CFLAGS="$save_cflags"
9820 if test "x-$have_vidmode" = "x-yes" ; then
9821 DO_VIDMODE_SUPPORT="1"
9822 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
9823 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
9824 else
9825 DO_VIDMODE_SUPPORT="0"
9829 aros_host_x11_includes=$x_includes
9830 aros_host_x11_libdirs=$x_libraries
9834 # Check whether --enable-sdl_hidd was given.
9835 if test "${enable_sdl_hidd+set}" = set; then :
9836 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
9837 else
9838 sdl_hidd="auto"
9841 case "x-$sdl_hidd" in
9842 x-yes|x-no|x-auto) ;;
9843 *) sdl_hidd="auto" ;;
9844 esac
9846 if test "x-$sdl_hidd" != "x-no" ; then
9849 # Check whether --with-sdl-prefix was given.
9850 if test "${with_sdl_prefix+set}" = set; then :
9851 withval=$with_sdl_prefix; sdl_prefix="$withval"
9852 else
9853 sdl_prefix=""
9857 # Check whether --with-sdl-exec-prefix was given.
9858 if test "${with_sdl_exec_prefix+set}" = set; then :
9859 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
9860 else
9861 sdl_exec_prefix=""
9864 # Check whether --enable-sdltest was given.
9865 if test "${enable_sdltest+set}" = set; then :
9866 enableval=$enable_sdltest;
9867 else
9868 enable_sdltest=yes
9872 if test x$sdl_exec_prefix != x ; then
9873 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
9874 if test x${SDL_CONFIG+set} != xset ; then
9875 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
9878 if test x$sdl_prefix != x ; then
9879 sdl_args="$sdl_args --prefix=$sdl_prefix"
9880 if test x${SDL_CONFIG+set} != xset ; then
9881 SDL_CONFIG=$sdl_prefix/bin/sdl-config
9885 if test "x$prefix" != xNONE; then
9886 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9888 # Extract the first word of "sdl-config", so it can be a program name with args.
9889 set dummy sdl-config; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 case $SDL_CONFIG in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9915 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9917 esac
9919 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9920 if test -n "$SDL_CONFIG"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
9922 $as_echo "$SDL_CONFIG" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9929 min_sdl_version=1.2.10
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
9931 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
9932 no_sdl=""
9933 if test "$SDL_CONFIG" = "no" ; then
9934 no_sdl=yes
9935 else
9936 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
9937 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
9939 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
9940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9941 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
9942 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9943 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
9944 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9945 if test "x$enable_sdltest" = "xyes" ; then
9946 ac_save_CFLAGS="$CFLAGS"
9947 ac_save_CXXFLAGS="$CXXFLAGS"
9948 ac_save_LIBS="$LIBS"
9949 CFLAGS="$CFLAGS $SDL_CFLAGS"
9950 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
9951 LIBS="$LIBS $SDL_LIBS"
9952 rm -f conf.sdltest
9953 if test "$cross_compiling" = yes; then :
9954 echo $ac_n "cross compiling; assumed OK... $ac_c"
9955 else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9959 #include <stdio.h>
9960 #include <stdlib.h>
9961 #include <string.h>
9962 #include "SDL.h"
9964 char*
9965 my_strdup (char *str)
9967 char *new_str;
9969 if (str)
9971 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9972 strcpy (new_str, str);
9974 else
9975 new_str = NULL;
9977 return new_str;
9980 int main (int argc, char *argv[])
9982 int major, minor, micro;
9983 char *tmp_version;
9985 /* This hangs on some systems (?)
9986 system ("touch conf.sdltest");
9988 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9990 /* HP/UX 9 (%@#!) writes to sscanf strings */
9991 tmp_version = my_strdup("$min_sdl_version");
9992 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9993 printf("%s, bad version string\n", "$min_sdl_version");
9994 exit(1);
9997 if (($sdl_major_version > major) ||
9998 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
9999 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10001 return 0;
10003 else
10005 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10006 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10007 printf("*** best to upgrade to the required version.\n");
10008 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10009 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10010 printf("*** config.cache before re-running configure\n");
10011 return 1;
10016 _ACEOF
10017 if ac_fn_c_try_run "$LINENO"; then :
10019 else
10020 no_sdl=yes
10022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10023 conftest.$ac_objext conftest.beam conftest.$ac_ext
10026 CFLAGS="$ac_save_CFLAGS"
10027 CXXFLAGS="$ac_save_CXXFLAGS"
10028 LIBS="$ac_save_LIBS"
10031 if test "x$no_sdl" = x ; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; }
10034 have_sdl="yes"
10035 else
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10038 if test "$SDL_CONFIG" = "no" ; then
10039 echo "*** The sdl-config script installed by SDL could not be found"
10040 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10041 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10042 echo "*** full path to sdl-config."
10043 else
10044 if test -f conf.sdltest ; then
10046 else
10047 echo "*** Could not run SDL test program, checking why..."
10048 CFLAGS="$CFLAGS $SDL_CFLAGS"
10049 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10050 LIBS="$LIBS $SDL_LIBS"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 #include <stdio.h>
10055 #include "SDL.h"
10057 int main(int argc, char *argv[])
10058 { return 0; }
10059 #undef main
10060 #define main K_and_R_C_main
10063 main ()
10065 return 0;
10067 return 0;
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071 echo "*** The test program compiled, but did not run. This usually means"
10072 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10073 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10074 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10075 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10076 echo "*** is required on your system"
10077 echo "***"
10078 echo "*** If you have an old version installed, it is best to remove it, although"
10079 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10080 else
10081 echo "*** The test program failed to compile or link. See the file config.log for the"
10082 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10083 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10084 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 CFLAGS="$ac_save_CFLAGS"
10089 CXXFLAGS="$ac_save_CXXFLAGS"
10090 LIBS="$ac_save_LIBS"
10093 SDL_CFLAGS=""
10094 SDL_LIBS=""
10095 have_sdl="no"
10099 rm -f conf.sdltest
10102 if test "x-$have_sdl" != "x-yes" ; then
10104 if test "x-$sdl_hidd" != "x-auto" ; then
10105 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10108 else
10109 sdl_hidd_target=kernel-hidd-sdl
10110 aros_host_sdl_cflags=SDL_CFLAGS
10111 aros_host_sdl_libs=SDL_LIBS
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10119 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10120 # Check whether --enable-dbus was given.
10121 if test "${enable_dbus+set}" = set; then :
10122 enableval=$enable_dbus; dbus="yes"
10123 else
10124 dbus="no"
10127 if test "$dbus" = "yes" ; then
10128 ENABLE_DBUS=1
10129 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10130 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10131 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10132 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10133 else
10134 ENABLE_DBUS=0
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10137 $as_echo "$dbus" >&6; }
10141 # Generic
10150 # Host related
10173 # Target Related
10220 # Graphics Related
10235 # Native version related
10239 # Palm native version related
10242 # Unix/Hosted version related
10245 # DBUS related
10252 #X11 related
10255 # Debug related
10261 # Collect-aros stuff: "-ius" to ignore undefined symbols
10264 # C compiler related
10267 case "$aros_flavour" in
10268 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10269 aros_flavour="emulation" ;;
10270 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10271 aros_flavour="emulation" ;;
10272 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10273 aros_flavour="standalone";;
10274 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10275 aros_flavour="native" ;;
10276 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10277 aros_flavour="native" ;;
10278 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10279 aros_flavour="linklib" ;;
10280 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10281 aros_flavour="palmnative" ;;
10282 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10283 aros_flavour="mac68knative" ;;
10284 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10285 aros_flavour="ppcnative" ;;
10286 esac
10288 if test ! -d ${aros_inc_dir} ; then
10289 ${MKDIR} ${aros_inc_dir}
10291 if test ! -d ${aros_geninc_dir} ; then
10292 ${MKDIR} ${aros_geninc_dir}
10294 if test ! -d ${aros_hostcfg_dir} ; then
10295 ${MKDIR} ${aros_hostcfg_dir}
10297 if test ! -d ${aros_targetcfg_dir} ; then
10298 ${MKDIR} ${aros_targetcfg_dir}
10300 if test ! -d ${aros_tools_dir} ; then
10301 ${MKDIR} ${aros_tools_dir}
10303 if test ! -d ${aros_scripts_dir} ; then
10304 ${MKDIR} ${aros_scripts_dir}
10307 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10310 ac_config_commands="$ac_config_commands compiler_executable"
10312 ac_config_commands="$ac_config_commands genshared_executable"
10314 ac_config_commands="$ac_config_commands genmf_executable"
10317 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"
10320 cat >confcache <<\_ACEOF
10321 # This file is a shell script that caches the results of configure
10322 # tests run on this system so they can be shared between configure
10323 # scripts and configure runs, see configure's option --config-cache.
10324 # It is not useful on other systems. If it contains results you don't
10325 # want to keep, you may remove or edit it.
10327 # config.status only pays attention to the cache file if you give it
10328 # the --recheck option to rerun configure.
10330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10332 # following values.
10334 _ACEOF
10336 # The following way of writing the cache mishandles newlines in values,
10337 # but we know of no workaround that is simple, portable, and efficient.
10338 # So, we kill variables containing newlines.
10339 # Ultrix sh set writes to stderr and can't be redirected directly,
10340 # and sets the high bit in the cache file unless we assign to the vars.
10342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10343 eval ac_val=\$$ac_var
10344 case $ac_val in #(
10345 *${as_nl}*)
10346 case $ac_var in #(
10347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10349 esac
10350 case $ac_var in #(
10351 _ | IFS | as_nl) ;; #(
10352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10353 *) { eval $ac_var=; unset $ac_var;} ;;
10354 esac ;;
10355 esac
10356 done
10358 (set) 2>&1 |
10359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10360 *${as_nl}ac_space=\ *)
10361 # `set' does not quote correctly, so add quotes: double-quote
10362 # substitution turns \\\\ into \\, and sed turns \\ into \.
10363 sed -n \
10364 "s/'/'\\\\''/g;
10365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10366 ;; #(
10368 # `set' quotes correctly as required by POSIX, so do not add quotes.
10369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10371 esac |
10372 sort
10374 sed '
10375 /^ac_cv_env_/b end
10376 t clear
10377 :clear
10378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10379 t end
10380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10381 :end' >>confcache
10382 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10383 if test -w "$cache_file"; then
10384 test "x$cache_file" != "x/dev/null" &&
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10386 $as_echo "$as_me: updating cache $cache_file" >&6;}
10387 cat confcache >$cache_file
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10390 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10393 rm -f confcache
10395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10396 # Let make expand exec_prefix.
10397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10399 DEFS=-DHAVE_CONFIG_H
10401 ac_libobjs=
10402 ac_ltlibobjs=
10403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10404 # 1. Remove the extension, and $U if already installed.
10405 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10406 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10407 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10408 # will be set to the directory where LIBOBJS objects are built.
10409 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10410 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10411 done
10412 LIBOBJS=$ac_libobjs
10414 LTLIBOBJS=$ac_ltlibobjs
10418 : ${CONFIG_STATUS=./config.status}
10419 ac_write_fail=0
10420 ac_clean_files_save=$ac_clean_files
10421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10423 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10424 as_write_fail=0
10425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10426 #! $SHELL
10427 # Generated by $as_me.
10428 # Run this file to recreate the current configuration.
10429 # Compiler output produced by configure, useful for debugging
10430 # configure, is in config.log if it exists.
10432 debug=false
10433 ac_cs_recheck=false
10434 ac_cs_silent=false
10436 SHELL=\${CONFIG_SHELL-$SHELL}
10437 export SHELL
10438 _ASEOF
10439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10440 ## -------------------- ##
10441 ## M4sh Initialization. ##
10442 ## -------------------- ##
10444 # Be more Bourne compatible
10445 DUALCASE=1; export DUALCASE # for MKS sh
10446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10447 emulate sh
10448 NULLCMD=:
10449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10450 # is contrary to our usage. Disable this feature.
10451 alias -g '${1+"$@"}'='"$@"'
10452 setopt NO_GLOB_SUBST
10453 else
10454 case `(set -o) 2>/dev/null` in #(
10455 *posix*) :
10456 set -o posix ;; #(
10457 *) :
10459 esac
10463 as_nl='
10465 export as_nl
10466 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10467 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10470 # Prefer a ksh shell builtin over an external printf program on Solaris,
10471 # but without wasting forks for bash or zsh.
10472 if test -z "$BASH_VERSION$ZSH_VERSION" \
10473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10474 as_echo='print -r --'
10475 as_echo_n='print -rn --'
10476 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10477 as_echo='printf %s\n'
10478 as_echo_n='printf %s'
10479 else
10480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10482 as_echo_n='/usr/ucb/echo -n'
10483 else
10484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10485 as_echo_n_body='eval
10486 arg=$1;
10487 case $arg in #(
10488 *"$as_nl"*)
10489 expr "X$arg" : "X\\(.*\\)$as_nl";
10490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10491 esac;
10492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10494 export as_echo_n_body
10495 as_echo_n='sh -c $as_echo_n_body as_echo'
10497 export as_echo_body
10498 as_echo='sh -c $as_echo_body as_echo'
10501 # The user is always right.
10502 if test "${PATH_SEPARATOR+set}" != set; then
10503 PATH_SEPARATOR=:
10504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10506 PATH_SEPARATOR=';'
10511 # IFS
10512 # We need space, tab and new line, in precisely that order. Quoting is
10513 # there to prevent editors from complaining about space-tab.
10514 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10515 # splitting by setting IFS to empty value.)
10516 IFS=" "" $as_nl"
10518 # Find who we are. Look in the path if we contain no directory separator.
10519 case $0 in #((
10520 *[\\/]* ) as_myself=$0 ;;
10521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10527 done
10528 IFS=$as_save_IFS
10531 esac
10532 # We did not find ourselves, most probably we were run as `sh COMMAND'
10533 # in which case we are not to be found in the path.
10534 if test "x$as_myself" = x; then
10535 as_myself=$0
10537 if test ! -f "$as_myself"; then
10538 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10539 exit 1
10542 # Unset variables that we do not need and which cause bugs (e.g. in
10543 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10544 # suppresses any "Segmentation fault" message there. '((' could
10545 # trigger a bug in pdksh 5.2.14.
10546 for as_var in BASH_ENV ENV MAIL MAILPATH
10547 do eval test x\${$as_var+set} = xset \
10548 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10549 done
10550 PS1='$ '
10551 PS2='> '
10552 PS4='+ '
10554 # NLS nuisances.
10555 LC_ALL=C
10556 export LC_ALL
10557 LANGUAGE=C
10558 export LANGUAGE
10560 # CDPATH.
10561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10564 # as_fn_error ERROR [LINENO LOG_FD]
10565 # ---------------------------------
10566 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10567 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10568 # script with status $?, using 1 if that was 0.
10569 as_fn_error ()
10571 as_status=$?; test $as_status -eq 0 && as_status=1
10572 if test "$3"; then
10573 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10574 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10576 $as_echo "$as_me: error: $1" >&2
10577 as_fn_exit $as_status
10578 } # as_fn_error
10581 # as_fn_set_status STATUS
10582 # -----------------------
10583 # Set $? to STATUS, without forking.
10584 as_fn_set_status ()
10586 return $1
10587 } # as_fn_set_status
10589 # as_fn_exit STATUS
10590 # -----------------
10591 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10592 as_fn_exit ()
10594 set +e
10595 as_fn_set_status $1
10596 exit $1
10597 } # as_fn_exit
10599 # as_fn_unset VAR
10600 # ---------------
10601 # Portably unset VAR.
10602 as_fn_unset ()
10604 { eval $1=; unset $1;}
10606 as_unset=as_fn_unset
10607 # as_fn_append VAR VALUE
10608 # ----------------------
10609 # Append the text in VALUE to the end of the definition contained in VAR. Take
10610 # advantage of any shell optimizations that allow amortized linear growth over
10611 # repeated appends, instead of the typical quadratic growth present in naive
10612 # implementations.
10613 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10614 eval 'as_fn_append ()
10616 eval $1+=\$2
10618 else
10619 as_fn_append ()
10621 eval $1=\$$1\$2
10623 fi # as_fn_append
10625 # as_fn_arith ARG...
10626 # ------------------
10627 # Perform arithmetic evaluation on the ARGs, and store the result in the
10628 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10629 # must be portable across $(()) and expr.
10630 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10631 eval 'as_fn_arith ()
10633 as_val=$(( $* ))
10635 else
10636 as_fn_arith ()
10638 as_val=`expr "$@" || test $? -eq 1`
10640 fi # as_fn_arith
10643 if expr a : '\(a\)' >/dev/null 2>&1 &&
10644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10645 as_expr=expr
10646 else
10647 as_expr=false
10650 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10651 as_basename=basename
10652 else
10653 as_basename=false
10656 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10657 as_dirname=dirname
10658 else
10659 as_dirname=false
10662 as_me=`$as_basename -- "$0" ||
10663 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10664 X"$0" : 'X\(//\)$' \| \
10665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10666 $as_echo X/"$0" |
10667 sed '/^.*\/\([^/][^/]*\)\/*$/{
10668 s//\1/
10671 /^X\/\(\/\/\)$/{
10672 s//\1/
10675 /^X\/\(\/\).*/{
10676 s//\1/
10679 s/.*/./; q'`
10681 # Avoid depending upon Character Ranges.
10682 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10683 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10684 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10685 as_cr_digits='0123456789'
10686 as_cr_alnum=$as_cr_Letters$as_cr_digits
10688 ECHO_C= ECHO_N= ECHO_T=
10689 case `echo -n x` in #(((((
10690 -n*)
10691 case `echo 'xy\c'` in
10692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10693 xy) ECHO_C='\c';;
10694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10695 ECHO_T=' ';;
10696 esac;;
10698 ECHO_N='-n';;
10699 esac
10701 rm -f conf$$ conf$$.exe conf$$.file
10702 if test -d conf$$.dir; then
10703 rm -f conf$$.dir/conf$$.file
10704 else
10705 rm -f conf$$.dir
10706 mkdir conf$$.dir 2>/dev/null
10708 if (echo >conf$$.file) 2>/dev/null; then
10709 if ln -s conf$$.file conf$$ 2>/dev/null; then
10710 as_ln_s='ln -s'
10711 # ... but there are two gotchas:
10712 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10713 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10714 # In both cases, we have to default to `cp -p'.
10715 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10716 as_ln_s='cp -p'
10717 elif ln conf$$.file conf$$ 2>/dev/null; then
10718 as_ln_s=ln
10719 else
10720 as_ln_s='cp -p'
10722 else
10723 as_ln_s='cp -p'
10725 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10726 rmdir conf$$.dir 2>/dev/null
10729 # as_fn_mkdir_p
10730 # -------------
10731 # Create "$as_dir" as a directory, including parents if necessary.
10732 as_fn_mkdir_p ()
10735 case $as_dir in #(
10736 -*) as_dir=./$as_dir;;
10737 esac
10738 test -d "$as_dir" || eval $as_mkdir_p || {
10739 as_dirs=
10740 while :; do
10741 case $as_dir in #(
10742 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10743 *) as_qdir=$as_dir;;
10744 esac
10745 as_dirs="'$as_qdir' $as_dirs"
10746 as_dir=`$as_dirname -- "$as_dir" ||
10747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10748 X"$as_dir" : 'X\(//\)[^/]' \| \
10749 X"$as_dir" : 'X\(//\)$' \| \
10750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10751 $as_echo X"$as_dir" |
10752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10753 s//\1/
10756 /^X\(\/\/\)[^/].*/{
10757 s//\1/
10760 /^X\(\/\/\)$/{
10761 s//\1/
10764 /^X\(\/\).*/{
10765 s//\1/
10768 s/.*/./; q'`
10769 test -d "$as_dir" && break
10770 done
10771 test -z "$as_dirs" || eval "mkdir $as_dirs"
10772 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10775 } # as_fn_mkdir_p
10776 if mkdir -p . 2>/dev/null; then
10777 as_mkdir_p='mkdir -p "$as_dir"'
10778 else
10779 test -d ./-p && rmdir ./-p
10780 as_mkdir_p=false
10783 if test -x / >/dev/null 2>&1; then
10784 as_test_x='test -x'
10785 else
10786 if ls -dL / >/dev/null 2>&1; then
10787 as_ls_L_option=L
10788 else
10789 as_ls_L_option=
10791 as_test_x='
10792 eval sh -c '\''
10793 if test -d "$1"; then
10794 test -d "$1/.";
10795 else
10796 case $1 in #(
10797 -*)set "./$1";;
10798 esac;
10799 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10800 ???[sx]*):;;*)false;;esac;fi
10801 '\'' sh
10804 as_executable_p=$as_test_x
10806 # Sed expression to map a string onto a valid CPP name.
10807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10809 # Sed expression to map a string onto a valid variable name.
10810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10813 exec 6>&1
10814 ## ----------------------------------- ##
10815 ## Main body of $CONFIG_STATUS script. ##
10816 ## ----------------------------------- ##
10817 _ASEOF
10818 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10821 # Save the log message, to keep $0 and so on meaningful, and to
10822 # report actual input values of CONFIG_FILES etc. instead of their
10823 # values after options handling.
10824 ac_log="
10825 This file was extended by $as_me, which was
10826 generated by GNU Autoconf 2.64. Invocation command line was
10828 CONFIG_FILES = $CONFIG_FILES
10829 CONFIG_HEADERS = $CONFIG_HEADERS
10830 CONFIG_LINKS = $CONFIG_LINKS
10831 CONFIG_COMMANDS = $CONFIG_COMMANDS
10832 $ $0 $@
10834 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10837 _ACEOF
10839 case $ac_config_files in *"
10840 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10841 esac
10843 case $ac_config_headers in *"
10844 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10845 esac
10848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10849 # Files that config.status was made for.
10850 config_files="$ac_config_files"
10851 config_headers="$ac_config_headers"
10852 config_commands="$ac_config_commands"
10854 _ACEOF
10856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10857 ac_cs_usage="\
10858 \`$as_me' instantiates files and other configuration actions
10859 from templates according to the current configuration. Unless the files
10860 and actions are specified as TAGs, all are instantiated by default.
10862 Usage: $0 [OPTION]... [TAG]...
10864 -h, --help print this help, then exit
10865 -V, --version print version number and configuration settings, then exit
10866 -q, --quiet, --silent
10867 do not print progress messages
10868 -d, --debug don't remove temporary files
10869 --recheck update $as_me by reconfiguring in the same conditions
10870 --file=FILE[:TEMPLATE]
10871 instantiate the configuration file FILE
10872 --header=FILE[:TEMPLATE]
10873 instantiate the configuration header FILE
10875 Configuration files:
10876 $config_files
10878 Configuration headers:
10879 $config_headers
10881 Configuration commands:
10882 $config_commands
10884 Report bugs to the package provider."
10886 _ACEOF
10887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10888 ac_cs_version="\\
10889 config.status
10890 configured by $0, generated by GNU Autoconf 2.64,
10891 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10893 Copyright (C) 2009 Free Software Foundation, Inc.
10894 This config.status script is free software; the Free Software Foundation
10895 gives unlimited permission to copy, distribute and modify it."
10897 ac_pwd='$ac_pwd'
10898 srcdir='$srcdir'
10899 test -n "\$AWK" || AWK=awk
10900 _ACEOF
10902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10903 # The default lists apply if the user does not specify any file.
10904 ac_need_defaults=:
10905 while test $# != 0
10907 case $1 in
10908 --*=*)
10909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10911 ac_shift=:
10914 ac_option=$1
10915 ac_optarg=$2
10916 ac_shift=shift
10918 esac
10920 case $ac_option in
10921 # Handling of the options.
10922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10923 ac_cs_recheck=: ;;
10924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10925 $as_echo "$ac_cs_version"; exit ;;
10926 --debug | --debu | --deb | --de | --d | -d )
10927 debug=: ;;
10928 --file | --fil | --fi | --f )
10929 $ac_shift
10930 case $ac_optarg in
10931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10932 esac
10933 as_fn_append CONFIG_FILES " '$ac_optarg'"
10934 ac_need_defaults=false;;
10935 --header | --heade | --head | --hea )
10936 $ac_shift
10937 case $ac_optarg in
10938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10939 esac
10940 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10941 ac_need_defaults=false;;
10942 --he | --h)
10943 # Conflict between --help and --header
10944 as_fn_error "ambiguous option: \`$1'
10945 Try \`$0 --help' for more information.";;
10946 --help | --hel | -h )
10947 $as_echo "$ac_cs_usage"; exit ;;
10948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10950 ac_cs_silent=: ;;
10952 # This is an error.
10953 -*) as_fn_error "unrecognized option: \`$1'
10954 Try \`$0 --help' for more information." ;;
10956 *) as_fn_append ac_config_targets " $1"
10957 ac_need_defaults=false ;;
10959 esac
10960 shift
10961 done
10963 ac_configure_extra_args=
10965 if $ac_cs_silent; then
10966 exec 6>/dev/null
10967 ac_configure_extra_args="$ac_configure_extra_args --silent"
10970 _ACEOF
10971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10972 if \$ac_cs_recheck; then
10973 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10974 shift
10975 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10976 CONFIG_SHELL='$SHELL'
10977 export CONFIG_SHELL
10978 exec "\$@"
10981 _ACEOF
10982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10983 exec 5>>config.log
10985 echo
10986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10987 ## Running $as_me. ##
10988 _ASBOX
10989 $as_echo "$ac_log"
10990 } >&5
10992 _ACEOF
10993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10995 # INIT-COMMANDS
10998 aros_host_exe_suffix=${aros_host_exe_suffix}
10999 aros_tools_dir=${aros_tools_dir}
11000 aros_target_cpu=${aros_target_cpu}
11001 aros_target_arch=${aros_target_arch}
11002 aros_target_suffix=${aros_target_suffix}
11003 aros_target_nm_ln=${aros_target_nm_ln}
11004 aros_target_as_ln=${aros_target_as_ln}
11005 aros_target_ar_ln=${aros_target_ar_ln}
11006 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11007 aros_target_objdump_ln=${aros_target_objdump_ln}
11008 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11009 aros_target_strip_ln=${aros_target_strip_ln}
11012 aros_scripts_dir=${aros_scripts_dir}
11014 aros_tools_dir=${aros_tools_dir}
11017 _ACEOF
11019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11021 # Handling of arguments.
11022 for ac_config_target in $ac_config_targets
11024 case $ac_config_target in
11025 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11026 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11027 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11028 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11030 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11031 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11032 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11033 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11034 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11035 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11036 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11037 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11038 "${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" ;;
11039 "${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" ;;
11040 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11041 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11042 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11044 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11045 esac
11046 done
11049 # If the user did not use the arguments to specify the items to instantiate,
11050 # then the envvar interface is used. Set only those that are not.
11051 # We use the long form for the default assignment because of an extremely
11052 # bizarre bug on SunOS 4.1.3.
11053 if $ac_need_defaults; then
11054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11059 # Have a temporary directory for convenience. Make it in the build tree
11060 # simply because there is no reason against having it here, and in addition,
11061 # creating and moving files from /tmp can sometimes cause problems.
11062 # Hook for its removal unless debugging.
11063 # Note that there is a small window in which the directory will not be cleaned:
11064 # after its creation but before its name has been assigned to `$tmp'.
11065 $debug ||
11067 tmp=
11068 trap 'exit_status=$?
11069 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11071 trap 'as_fn_exit 1' 1 2 13 15
11073 # Create a (secure) tmp directory for tmp files.
11076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11077 test -n "$tmp" && test -d "$tmp"
11078 } ||
11080 tmp=./conf$$-$RANDOM
11081 (umask 077 && mkdir "$tmp")
11082 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11084 # Set up the scripts for CONFIG_FILES section.
11085 # No need to generate them if there are no CONFIG_FILES.
11086 # This happens for instance with `./config.status config.h'.
11087 if test -n "$CONFIG_FILES"; then
11090 ac_cr=`echo X | tr X '\015'`
11091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11092 # But we know of no other shell where ac_cr would be empty at this
11093 # point, so we can use a bashism as a fallback.
11094 if test "x$ac_cr" = x; then
11095 eval ac_cr=\$\'\\r\'
11097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11099 ac_cs_awk_cr='\r'
11100 else
11101 ac_cs_awk_cr=$ac_cr
11104 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11105 _ACEOF
11109 echo "cat >conf$$subs.awk <<_ACEOF" &&
11110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11111 echo "_ACEOF"
11112 } >conf$$subs.sh ||
11113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11115 ac_delim='%!_!# '
11116 for ac_last_try in false false false false false :; do
11117 . ./conf$$subs.sh ||
11118 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11121 if test $ac_delim_n = $ac_delim_num; then
11122 break
11123 elif $ac_last_try; then
11124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11125 else
11126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11128 done
11129 rm -f conf$$subs.sh
11131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11132 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11133 _ACEOF
11134 sed -n '
11136 s/^/S["/; s/!.*/"]=/
11139 s/^[^!]*!//
11140 :repl
11141 t repl
11142 s/'"$ac_delim"'$//
11143 t delim
11146 s/\(.\{148\}\).*/\1/
11147 t more1
11148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11151 b repl
11152 :more1
11153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11156 s/.\{148\}//
11157 t nl
11158 :delim
11160 s/\(.\{148\}\).*/\1/
11161 t more2
11162 s/["\\]/\\&/g; s/^/"/; s/$/"/
11165 :more2
11166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11169 s/.\{148\}//
11170 t delim
11171 ' <conf$$subs.awk | sed '
11172 /^[^""]/{
11174 s/\n//
11176 ' >>$CONFIG_STATUS || ac_write_fail=1
11177 rm -f conf$$subs.awk
11178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11179 _ACAWK
11180 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11181 for (key in S) S_is_set[key] = 1
11182 FS = "\a"
11186 line = $ 0
11187 nfields = split(line, field, "@")
11188 substed = 0
11189 len = length(field[1])
11190 for (i = 2; i < nfields; i++) {
11191 key = field[i]
11192 keylen = length(key)
11193 if (S_is_set[key]) {
11194 value = S[key]
11195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11196 len += length(value) + length(field[++i])
11197 substed = 1
11198 } else
11199 len += 1 + keylen
11202 print line
11205 _ACAWK
11206 _ACEOF
11207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11210 else
11212 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11213 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11214 _ACEOF
11216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11218 # trailing colons and then remove the whole line if VPATH becomes empty
11219 # (actually we leave an empty line to preserve line numbers).
11220 if test "x$srcdir" = x.; then
11221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11222 s/:*\$(srcdir):*/:/
11223 s/:*\${srcdir}:*/:/
11224 s/:*@srcdir@:*/:/
11225 s/^\([^=]*=[ ]*\):*/\1/
11226 s/:*$//
11227 s/^[^=]*=[ ]*$//
11231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11232 fi # test -n "$CONFIG_FILES"
11234 # Set up the scripts for CONFIG_HEADERS section.
11235 # No need to generate them if there are no CONFIG_HEADERS.
11236 # This happens for instance with `./config.status Makefile'.
11237 if test -n "$CONFIG_HEADERS"; then
11238 cat >"$tmp/defines.awk" <<\_ACAWK ||
11239 BEGIN {
11240 _ACEOF
11242 # Transform confdefs.h into an awk script `defines.awk', embedded as
11243 # here-document in config.status, that substitutes the proper values into
11244 # config.h.in to produce config.h.
11246 # Create a delimiter string that does not exist in confdefs.h, to ease
11247 # handling of long lines.
11248 ac_delim='%!_!# '
11249 for ac_last_try in false false :; do
11250 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11251 if test -z "$ac_t"; then
11252 break
11253 elif $ac_last_try; then
11254 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11255 else
11256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11258 done
11260 # For the awk script, D is an array of macro values keyed by name,
11261 # likewise P contains macro parameters if any. Preserve backslash
11262 # newline sequences.
11264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11265 sed -n '
11266 s/.\{148\}/&'"$ac_delim"'/g
11267 t rset
11268 :rset
11269 s/^[ ]*#[ ]*define[ ][ ]*/ /
11270 t def
11272 :def
11273 s/\\$//
11274 t bsnl
11275 s/["\\]/\\&/g
11276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11277 D["\1"]=" \3"/p
11278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11280 :bsnl
11281 s/["\\]/\\&/g
11282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11283 D["\1"]=" \3\\\\\\n"\\/p
11284 t cont
11285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11286 t cont
11288 :cont
11290 s/.\{148\}/&'"$ac_delim"'/g
11291 t clear
11292 :clear
11293 s/\\$//
11294 t bsnlc
11295 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11297 :bsnlc
11298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11299 b cont
11300 ' <confdefs.h | sed '
11301 s/'"$ac_delim"'/"\\\
11302 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11305 for (key in D) D_is_set[key] = 1
11306 FS = "\a"
11308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11309 line = \$ 0
11310 split(line, arg, " ")
11311 if (arg[1] == "#") {
11312 defundef = arg[2]
11313 mac1 = arg[3]
11314 } else {
11315 defundef = substr(arg[1], 2)
11316 mac1 = arg[2]
11318 split(mac1, mac2, "(") #)
11319 macro = mac2[1]
11320 prefix = substr(line, 1, index(line, defundef) - 1)
11321 if (D_is_set[macro]) {
11322 # Preserve the white space surrounding the "#".
11323 print prefix "define", macro P[macro] D[macro]
11324 next
11325 } else {
11326 # Replace #undef with comments. This is necessary, for example,
11327 # in the case of _POSIX_SOURCE, which is predefined and required
11328 # on some systems where configure will not decide to define it.
11329 if (defundef == "undef") {
11330 print "/*", prefix defundef, macro, "*/"
11331 next
11335 { print }
11336 _ACAWK
11337 _ACEOF
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11340 fi # test -n "$CONFIG_HEADERS"
11343 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11344 shift
11345 for ac_tag
11347 case $ac_tag in
11348 :[FHLC]) ac_mode=$ac_tag; continue;;
11349 esac
11350 case $ac_mode$ac_tag in
11351 :[FHL]*:*);;
11352 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11353 :[FH]-) ac_tag=-:-;;
11354 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11355 esac
11356 ac_save_IFS=$IFS
11357 IFS=:
11358 set x $ac_tag
11359 IFS=$ac_save_IFS
11360 shift
11361 ac_file=$1
11362 shift
11364 case $ac_mode in
11365 :L) ac_source=$1;;
11366 :[FH])
11367 ac_file_inputs=
11368 for ac_f
11370 case $ac_f in
11371 -) ac_f="$tmp/stdin";;
11372 *) # Look for the file first in the build tree, then in the source tree
11373 # (if the path is not absolute). The absolute path cannot be DOS-style,
11374 # because $ac_f cannot contain `:'.
11375 test -f "$ac_f" ||
11376 case $ac_f in
11377 [\\/$]*) false;;
11378 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11379 esac ||
11380 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11381 esac
11382 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11383 as_fn_append ac_file_inputs " '$ac_f'"
11384 done
11386 # Let's still pretend it is `configure' which instantiates (i.e., don't
11387 # use $as_me), people would be surprised to read:
11388 # /* config.h. Generated by config.status. */
11389 configure_input='Generated from '`
11390 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11391 `' by configure.'
11392 if test x"$ac_file" != x-; then
11393 configure_input="$ac_file. $configure_input"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11395 $as_echo "$as_me: creating $ac_file" >&6;}
11397 # Neutralize special characters interpreted by sed in replacement strings.
11398 case $configure_input in #(
11399 *\&* | *\|* | *\\* )
11400 ac_sed_conf_input=`$as_echo "$configure_input" |
11401 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11402 *) ac_sed_conf_input=$configure_input;;
11403 esac
11405 case $ac_tag in
11406 *:-:* | *:-) cat >"$tmp/stdin" \
11407 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11408 esac
11410 esac
11412 ac_dir=`$as_dirname -- "$ac_file" ||
11413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414 X"$ac_file" : 'X\(//\)[^/]' \| \
11415 X"$ac_file" : 'X\(//\)$' \| \
11416 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11417 $as_echo X"$ac_file" |
11418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11419 s//\1/
11422 /^X\(\/\/\)[^/].*/{
11423 s//\1/
11426 /^X\(\/\/\)$/{
11427 s//\1/
11430 /^X\(\/\).*/{
11431 s//\1/
11434 s/.*/./; q'`
11435 as_dir="$ac_dir"; as_fn_mkdir_p
11436 ac_builddir=.
11438 case "$ac_dir" in
11439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11442 # A ".." for each directory in $ac_dir_suffix.
11443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11444 case $ac_top_builddir_sub in
11445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11447 esac ;;
11448 esac
11449 ac_abs_top_builddir=$ac_pwd
11450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11451 # for backward compatibility:
11452 ac_top_builddir=$ac_top_build_prefix
11454 case $srcdir in
11455 .) # We are building in place.
11456 ac_srcdir=.
11457 ac_top_srcdir=$ac_top_builddir_sub
11458 ac_abs_top_srcdir=$ac_pwd ;;
11459 [\\/]* | ?:[\\/]* ) # Absolute name.
11460 ac_srcdir=$srcdir$ac_dir_suffix;
11461 ac_top_srcdir=$srcdir
11462 ac_abs_top_srcdir=$srcdir ;;
11463 *) # Relative name.
11464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11465 ac_top_srcdir=$ac_top_build_prefix$srcdir
11466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11467 esac
11468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11471 case $ac_mode in
11474 # CONFIG_FILE
11477 _ACEOF
11479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11480 # If the template does not know about datarootdir, expand it.
11481 # FIXME: This hack should be removed a few years after 2.60.
11482 ac_datarootdir_hack=; ac_datarootdir_seen=
11483 ac_sed_dataroot='
11484 /datarootdir/ {
11488 /@datadir@/p
11489 /@docdir@/p
11490 /@infodir@/p
11491 /@localedir@/p
11492 /@mandir@/p'
11493 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11494 *datarootdir*) ac_datarootdir_seen=yes;;
11495 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11497 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11498 _ACEOF
11499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11500 ac_datarootdir_hack='
11501 s&@datadir@&$datadir&g
11502 s&@docdir@&$docdir&g
11503 s&@infodir@&$infodir&g
11504 s&@localedir@&$localedir&g
11505 s&@mandir@&$mandir&g
11506 s&\\\${datarootdir}&$datarootdir&g' ;;
11507 esac
11508 _ACEOF
11510 # Neutralize VPATH when `$srcdir' = `.'.
11511 # Shell code in configure.ac might set extrasub.
11512 # FIXME: do we really want to maintain this feature?
11513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514 ac_sed_extra="$ac_vpsub
11515 $extrasub
11516 _ACEOF
11517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11520 s|@configure_input@|$ac_sed_conf_input|;t t
11521 s&@top_builddir@&$ac_top_builddir_sub&;t t
11522 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11523 s&@srcdir@&$ac_srcdir&;t t
11524 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11525 s&@top_srcdir@&$ac_top_srcdir&;t t
11526 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11527 s&@builddir@&$ac_builddir&;t t
11528 s&@abs_builddir@&$ac_abs_builddir&;t t
11529 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11530 $ac_datarootdir_hack
11532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11533 || as_fn_error "could not create $ac_file" "$LINENO" 5
11535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11536 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11539 which seems to be undefined. Please make sure it is defined." >&5
11540 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11541 which seems to be undefined. Please make sure it is defined." >&2;}
11543 rm -f "$tmp/stdin"
11544 case $ac_file in
11545 -) cat "$tmp/out" && rm -f "$tmp/out";;
11546 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11547 esac \
11548 || as_fn_error "could not create $ac_file" "$LINENO" 5
11552 # CONFIG_HEADER
11554 if test x"$ac_file" != x-; then
11556 $as_echo "/* $configure_input */" \
11557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11558 } >"$tmp/config.h" \
11559 || as_fn_error "could not create $ac_file" "$LINENO" 5
11560 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11562 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11563 else
11564 rm -f "$ac_file"
11565 mv "$tmp/config.h" "$ac_file" \
11566 || as_fn_error "could not create $ac_file" "$LINENO" 5
11568 else
11569 $as_echo "/* $configure_input */" \
11570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11571 || as_fn_error "could not create -" "$LINENO" 5
11575 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11576 $as_echo "$as_me: executing $ac_file commands" >&6;}
11578 esac
11581 case $ac_file$ac_mode in
11582 "compiler_executable":C)
11583 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11584 mkdir -p $prefix
11585 prefix="${prefix}/${aros_target_cpu}-aros"
11586 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11588 echo ${prefix}
11589 echo ${prefix2}
11590 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11592 ln -sf ${prefix2}-gcc ${prefix}-gcc
11593 ln -sf ${prefix2}-ld ${prefix}-ld
11595 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
11596 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
11597 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
11598 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
11599 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
11600 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
11601 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
11603 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
11604 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
11605 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
11606 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
11607 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
11608 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
11609 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
11611 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11612 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11614 esac
11615 done # for ac_tag
11618 as_fn_exit 0
11619 _ACEOF
11620 ac_clean_files=$ac_clean_files_save
11622 test $ac_write_fail = 0 ||
11623 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11626 # configure is writing to config.log, and then calls config.status.
11627 # config.status does its own redirection, appending to config.log.
11628 # Unfortunately, on DOS this fails, as config.log is still kept open
11629 # by configure, so config.status won't be able to write to it; its
11630 # output is simply discarded. So we exec the FD to /dev/null,
11631 # effectively closing config.log, so it can be properly (re)opened and
11632 # appended to by config.status. When coming back to configure, we
11633 # need to make the FD available again.
11634 if test "$no_create" != yes; then
11635 ac_cs_success=:
11636 ac_config_status_args=
11637 test "$silent" = yes &&
11638 ac_config_status_args="$ac_config_status_args --quiet"
11639 exec 5>/dev/null
11640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11641 exec 5>>config.log
11642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11643 # would make configure fail if this is the last instruction.
11644 $ac_cs_success || as_fn_exit $?
11646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11653 #XXX compatability...
11654 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11656 if test -n "$aros_shared_cflags" ; then
11657 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11658 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg