Reorganised C type definitions. Use now sys/type/..._t.h files for defining
[AROS.git] / configure
blobca86e059ce6d06e68b4218afa32c20b8c23f7f40
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_cc="$CC"
6520 save_cflags="$CFLAGS"
6521 CFLAGS="$CFLAGS -fno-stack-protector"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6526 main ()
6530 return 0;
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 use_no_stack_protector="yes"
6535 else
6536 use_no_stack_protector="no"
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6540 $as_echo "$use_no_stack_protector" >&6; }
6541 if test "x-$use_no_stack_protector" = "x-yes" ; then
6542 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6544 if test "x-$cross_compiling" = "x-yes"; then
6545 CC="$aros_kernel_cc"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6547 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6552 main ()
6556 return 0;
6558 _ACEOF
6559 if ac_fn_c_try_compile "$LINENO"; then :
6560 use_no_stack_protector="yes"
6561 else
6562 use_no_stack_protector="no"
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6566 $as_echo "$use_no_stack_protector" >&6; }
6568 if test "x-$use_no_stack_protector" = "x-yes" ; then
6569 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
6571 CC="$save_cc"
6572 CFLAGS="$save_cflags"
6575 #-----------------------------------------------------------------------------
6577 # Check if we can explicitly choose older version of symbol hashing
6579 save_cflags="$CFLAGS"
6580 CFLAGS="$CFLAGS -Wl,--hash-style=sysv"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
6582 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6587 main ()
6591 return 0;
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 use_hash_style="yes"
6596 else
6597 use_hash_style="no"
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
6602 $as_echo "$use_hash_style" >&6; }
6603 if test "x-$use_hash_style" = "x-yes" ; then
6604 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
6606 CFLAGS="$save_cflags"
6609 #-----------------------------------------------------------------------------
6611 # Disable pointer-signedness warnings if the compiler recognises the option
6612 # (this only works for the host compiler at the moment)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6615 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6616 save_cflags="$CFLAGS"
6617 CFLAGS="$CFLAGS -Wno-pointer-sign"
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6622 main ()
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_compile "$LINENO"; then :
6630 use_no_sign_warning="yes"
6631 else
6632 use_no_sign_warning="no"
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6636 $as_echo "$use_no_sign_warning" >&6; }
6637 if test "x-$use_no_sign_warning" = "x-yes" ; then
6638 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6640 CFLAGS="$save_cflags"
6642 #-----------------------------------------------------------------------------
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6645 $as_echo_n "checking for type of build... " >&6; }
6646 # Check whether --enable-build_type was given.
6647 if test "${enable_build_type+set}" = set; then :
6648 enableval=$enable_build_type; build_type=$enableval
6649 else
6650 build_type="personal"
6654 if test "$build_type" = "nightly"; then
6655 build_type_string="NIGHTLY"
6656 elif test "$build_type" = "snapshot"; then
6657 build_type_string="SNAPSHOT"
6658 elif test "$build_type" = "milestone"; then
6659 build_type_string="MILESTONE"
6660 elif test "$build_type" = "release"; then
6661 build_type_string="RELEASE"
6662 else
6663 build_type_string="PERSONAL"
6664 build_type="personal"
6667 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6670 $as_echo "$build_type" >&6; }
6672 #-----------------------------------------------------------------------------
6673 all_debug_types="messages stack mungwall modules symbols"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6676 $as_echo_n "checking which debug types to enable... " >&6; }
6677 # Check whether --enable-debug was given.
6678 if test "${enable_debug+set}" = set; then :
6679 enableval=$enable_debug; debug="$enableval"
6680 else
6681 debug=""
6685 if test "$debug" = "" -o "$debug" = "no"; then
6686 debug="none"
6687 elif test "$debug" = "yes"; then
6688 debug="all"
6691 if test "$debug" = "all" ; then
6692 debug=$all_debug_types
6693 for d in $all_debug_types; do
6694 export aros_${d}_debug="1"
6695 done
6696 else
6697 for d in $all_debug_types; do
6698 export aros_${d}_debug="0"
6699 done
6702 if test "$debug" != "none"; then
6703 debug=`echo $debug | sed s/,/\ /g`
6704 for d in $debug; do
6705 found="0"
6706 for d2 in $all_debug_types; do
6707 if test "$d2" = "$d"; then
6708 found="1"
6709 break
6711 done
6712 if test "$found" = "0"; then
6713 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6715 export aros_${d}_debug="1"
6716 done
6717 aros_debug="yes"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6720 $as_echo "$debug" >&6; }
6722 if test "$aros_messages_debug" = "1"; then
6723 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6724 else
6725 aros_messages_debug=""
6727 if test "$aros_symbols_debug" = "1"; then
6728 aros_symbols_debug="-g"
6729 else
6730 aros_symbols_debug=""
6733 # These are the flags to pass when compiling debugged programs
6734 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6735 aros_debug_aflags=""
6736 aros_debug_ldflags="$aros_symbols_debug"
6738 aros_crosstools="no"
6740 #-----------------------------------------------------------------------------
6741 # Checking if we should build crosstools..
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6743 $as_echo_n "checking whether to build crosstools... " >&6; }
6744 # Check whether --enable-crosstools was given.
6745 if test "${enable_crosstools+set}" = set; then :
6746 enableval=$enable_crosstools; crosstools="$enableval"
6747 else
6748 crosstools="no"
6751 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6754 aros_crosstools="yes"
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6760 #-----------------------------------------------------------------------------
6761 # Checking for distcc and ccache.
6763 # Always apply the transforms in this particular order. Basically you should
6764 # always run 'ccache distcc compiler' in that order for the best performance.
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6767 $as_echo_n "checking whether to enable distcc... " >&6; }
6768 # Check whether --enable-distcc was given.
6769 if test "${enable_distcc+set}" = set; then :
6770 enableval=$enable_distcc; distcc="$enableval"
6771 else
6772 distcc="no"
6775 if test "$distcc" != "" -a "$distcc" != "no"; then
6776 # AC_CHECK_PROG will print out the result in this case
6777 # Extract the first word of "distcc", so it can be a program name with args.
6778 set dummy distcc; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_path_DISTCC+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 case $DISTCC in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6804 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6806 esac
6808 DISTCC=$ac_cv_path_DISTCC
6809 if test -n "$DISTCC"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6811 $as_echo "$DISTCC" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6824 $as_echo_n "checking whether to enable ccache... " >&6; }
6825 # Check whether --enable-ccache was given.
6826 if test "${enable_ccache+set}" = set; then :
6827 enableval=$enable_ccache; ccache="$enableval"
6828 else
6829 ccache="no"
6832 if test "$ccache" != "" -a "$ccache" != "no"; then
6833 # AC_CHECK_PROG will print out the result in this case
6834 # Extract the first word of "ccache", so it can be a program name with args.
6835 set dummy ccache; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$CCACHE"; then
6842 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_CCACHE="ccache"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 CCACHE=$ac_cv_prog_CCACHE
6862 if test -n "$CCACHE"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6864 $as_echo "$CCACHE" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6876 #-----------------------------------------------------------------------------
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6878 $as_echo_n "checking what optimization flags to use... " >&6; }
6880 # Check whether --with-optimization was given.
6881 if test "${with_optimization+set}" = set; then :
6882 withval=$with_optimization; optimization="$withval"
6883 else
6884 optimization="unknown"
6887 if test "$optimization" = "unknown"; then
6888 if test "$debug" != "none"; then
6889 optimization="-O0"
6890 else
6891 optimization="-O2"
6894 aros_config_cflags="$aros_config_cflags $optimization"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6896 $as_echo "$optimization" >&6; }
6898 #-----------------------------------------------------------------------------
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6900 $as_echo_n "checking what target variant to enable... " >&6; }
6901 # Check whether --enable-target_variant was given.
6902 if test "${enable_target_variant+set}" = set; then :
6903 enableval=$enable_target_variant; target_variant=$enableval
6904 else
6905 target_variant="none"
6908 if test "$target_variant" = "none"; then
6909 aros_target_variant=""
6910 aros_target_suffix=""
6911 else
6912 aros_target_variant="$target_variant"
6913 aros_target_suffix="-$target_variant"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6916 $as_echo "$enableval" >&6; }
6918 target_bootloader="none"
6920 #-----------------------------------------------------------------------------
6921 # This is the target configuration switch.
6922 case "$target_os" in
6923 linux*)
6924 aros_target_arch="linux"
6925 case "$target_cpu" in
6926 *m68k*)
6927 aros_target_cpu="m68k"
6928 aros_object_format="m68kelf"
6929 aros_flavour="emulcompat"
6930 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
6931 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
6932 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
6933 gcc_target_cpu="mc68000"
6935 *i?86*)
6936 aros_target_cpu="i386"
6937 aros_object_format="elf_i386"
6938 aros_flavour="emulation"
6939 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
6940 aros_config_cflags="$aros_config_cflags -m32"
6941 aros_kernel_cflags="$aros_kernel_cflags -m32"
6942 aros_config_aflags="$aros_config_aflags -m32"
6943 aros_config_ldflags="-m32"
6944 aros_kernel_ldflags="-melf_i386"
6945 aros_default_wbdepth=8
6946 gcc_target_cpu="i386"
6948 *x86_64*)
6949 aros_target_cpu="x86_64"
6950 aros_object_format="elf_x86_64"
6951 aros_flavour="emulation"
6952 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
6953 aros_config_cflags="$aros_config_cflags -mno-red-zone"
6954 aros_default_wbdepth=8
6955 gcc_target_cpu="x86_64"
6957 *powerpc*)
6958 aros_target_cpu="ppc"
6959 aros_object_format="elf32ppc"
6960 aros_flavour="emulation"
6961 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6962 aros_default_wbdepth=8
6963 gcc_target_cpu="ppc"
6965 # TODO
6966 # Same as powerpc, but I need this for the nightly build to work again.
6967 # Actually, the nightly should be made working with powerpc target.
6968 # That just was too much work for the moment, another week or two.
6969 *ppc*)
6970 aros_target_cpu="ppc"
6971 aros_object_format="elf32ppc"
6972 aros_flavour="emulation"
6973 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
6974 aros_default_wbdepth=8
6975 gcc_target_cpu="ppc"
6978 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
6980 esac
6984 aros_target_arch="pc"
6985 aros_shared_default="no"
6986 target_bootloader="grub2"
6987 case "$target_cpu" in
6988 *i?86*)
6989 aros_target_cpu="i386"
6992 if test "$aros_object_format" = "" ; then
6993 aros_object_format="elf_i386"
6995 aros_flavour="standalone"
6996 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
6997 aros_config_cflags="$aros_config_cflags -m32"
6998 aros_kernel_cflags="$aros_kernel_cflags -m32"
6999 aros_config_aflags="$aros_config_aflags -m32"
7000 aros_config_ldflags="-m32"
7001 aros_kernel_ldflags="-melf_i386"
7002 aros_default_wbwidth=640
7003 aros_default_wbheight=480
7004 gcc_target_cpu="i386"
7006 *x86_64*)
7007 aros_target_cpu="x86_64"
7008 aros_serial_debug=1
7009 if test "$aros_object_format" = "" ; then
7010 aros_object_format="elf_x86_64"
7012 aros_flavour="standalone"
7013 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7014 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7015 aros_kernel_ldflags=""
7016 aros_default_wbwidth=640
7017 aros_default_wbheight=480
7018 gcc_target_cpu="x86_64"
7021 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7023 esac
7026 prep)
7027 aros_target_arch="prep"
7028 aros_shared_default="no"
7029 aros_target_cpu="ppc"
7030 aros_object_format="elf32ppc"
7031 aros_flavour="ppcnative"
7032 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7033 aros_kernel_ldflags=""
7034 aros_default_wbwidth=640
7035 aros_default_wbheight=480
7036 gcc_target_cpu="ppc"
7039 freebsd*)
7040 aros_target_arch="freebsd"
7041 aros_target_cpu="i386"
7042 aros_flavour="emulation"
7043 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7044 gcc_target_cpu="i386"
7046 aros_target_strip_flags="-x"
7049 darwin*)
7050 aros_target_arch="darwin"
7051 aros_flavour="emulation"
7052 need_dlopen="no"
7053 case "$target_cpu" in
7054 *i?86*)
7055 aros_target_cpu="i386"
7056 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7057 gcc_target_cpu="i386"
7058 aros_object_format="elf_i386"
7059 aros_target_strip_flags="-x"
7062 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7064 esac
7067 dragonfly*)
7068 aros_target_arch="dragonfly"
7069 aros_flavour="emulation"
7070 case "$target_cpu" in
7071 *i?86*)
7072 aros_target_cpu="i386"
7073 aros_object_format="elf_i386"
7074 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7076 *x86_64*)
7077 aros_target_cpu="x86_64"
7078 aros_object_format="elf_x86_64"
7079 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7082 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7084 esac
7087 netbsd*)
7088 aros_target_arch="netbsd"
7089 case "$target_cpu" in
7090 *m68k*)
7091 aros_target_cpu="m68k"
7092 aros_object_format="m68kelf"
7093 aros_flavour="emulcompat"
7094 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7095 gcc_target_cpu="mc68000"
7097 *i?86*)
7098 aros_target_cpu="i386"
7099 aros_object_format="elf_i386"
7100 aros_flavour="emulation"
7101 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7102 aros_default_wbdepth=8
7103 gcc_target_cpu="i386"
7106 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7108 esac
7109 aros_target_genmap="-Wl,-M -Xlinker >"
7110 aros_flavour="emulation"
7111 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7114 openbsd*)
7115 aros_target_arch="openbsd"
7116 case "$target_cpu" in
7117 *i?86*)
7118 aros_target_cpu="i386"
7119 aros_object_format="elf_i386"
7120 aros_flavour="emulation"
7121 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7122 gcc_target_cpu="i386"
7125 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7127 esac
7128 aros_target_genmap="-Wl,-M -Xlinker >"
7129 aros_target_nm_flags="-u"
7130 aros_flavour="emulation"
7133 solaris*)
7134 aros_target_arch="solaris"
7135 case "$target_cpu" in
7136 *i?86*)
7137 aros_target_cpu="i386"
7138 aros_object_format="elf_i386"
7139 aros_flavour="emulation"
7140 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7141 aros_default_wbdepth=8
7142 gcc_target_cpu="i386"
7144 *sparc*)
7145 aros_target_cpu="sparc"
7146 aros_object_format="elf_sparc"
7147 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7148 gcc_target_cpu="sparc"
7151 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7153 esac
7154 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7155 aros_flavour="emulation"
7158 morphos*)
7159 aros_target_arch="morphos"
7160 aros_shared_default="no"
7161 aros_target_cpu="ppc"
7162 aros_object_format="elf_ppc"
7163 aros_flavour="nativecompat"
7164 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7165 gcc_target_cpu="ppc"
7168 sam440)
7169 aros_target_arch="sam440"
7170 aros_shared_default="no"
7171 aros_target_cpu="ppc"
7172 aros_object_format="elf32ppc"
7173 aros_flavour="ppcnative"
7174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7175 aros_kernel_ldflags=""
7176 aros_default_wbwidth=640
7177 aros_default_wbheight=480
7178 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7179 gcc_target_cpu="powerpc"
7182 efika)
7183 aros_target_arch="efika"
7184 aros_shared_default="no"
7185 aros_target_cpu="arm"
7186 aros_object_format="armelf_linux_eabi"
7187 aros_flavour="standalone"
7188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7189 aros_kernel_ldflags=""
7190 aros_default_wbwidth=1024
7191 aros_default_wbheight=600
7192 aros_arch_libs="-laeabi"
7193 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7194 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7197 chrp)
7198 aros_target_arch="chrp"
7199 aros_shared_default="no"
7200 aros_target_cpu="ppc"
7201 aros_object_format="elf32ppc"
7202 aros_flavour="ppcnative"
7203 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7204 aros_kernel_ldflags=""
7205 aros_default_wbwidth=640
7206 aros_default_wbheight=480
7207 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7208 gcc_target_cpu="powerpc"
7209 case "$aros_target_variant" in
7210 efika)
7211 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7213 esac
7216 amiga*)
7217 aros_target_arch="amiga"
7218 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7219 aros_shared_default="no"
7221 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7223 case "$target_cpu" in
7224 *m68k*)
7225 aros_target_cpu="m68k"
7226 aros_object_format="m68kelf"
7227 aros_flavour="nativecompat"
7228 gcc_target_cpu="mc68000"
7230 *ppc*)
7231 aros_cpu="ppc"
7232 aros_flavour="native"
7233 gcc_target_cpu="ppc"
7236 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7238 esac
7241 mingw32*)
7242 aros_target_arch="mingw32"
7243 aros_shared_default="no"
7244 need_dlopen="no"
7245 rescomp="windres"
7246 case "$target_cpu" in
7247 *i?86*)
7248 aros_target_cpu="i386"
7249 aros_object_format="elf_i386"
7250 aros_flavour="emulation"
7251 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7252 aros_shared_cflags=""
7253 aros_default_wbdepth=8
7254 gcc_target_cpu="i386"
7255 aros_target_cc="i386-aros-gcc"
7256 aros_target_ld="i386-aros-ld"
7257 aros_target_as="i386-aros-as"
7258 aros_target_ar="i386-aros-ar"
7259 aros_target_ranlib="i386-aros-ranlib"
7260 aros_target_nm="i386-aros-nm"
7261 aros_target_strip="i386-aros-strip"
7262 aros_target_objcopy="i386-aros-objcopy"
7263 aros_target_objdump="i386-aros-objdump"
7264 target_tool_prefix="i386-mingw32-"
7267 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7269 esac
7270 if test $host_os = "cygwin"; then
7271 aros_kernel_cflags="-mno-cygwin"
7274 pp*)
7275 aros_target_arch="pp"
7276 aros_shared_default="no"
7277 case "$target_cpu" in
7278 *m68k*)
7279 aros_target_cpu="m68k"
7280 aros_object_format="m68kelf"
7281 aros_flavour="palmnative"
7282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7283 aros_default_wbwidth=160
7284 aros_default_wbheight=160
7285 aros_default_wbdepth=1
7286 aros_target_ar_flags="cru"
7287 aros_compiler_libs="-lgcc1"
7288 aros_shared_default=no
7289 aros_shared_cflags="-fpic"
7290 aros_shared_aflags=""
7291 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7292 aros_kernel_ldflags="-Wl,-rpath,./lib"
7293 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7294 aros_debug_aflags=""
7295 aros_debug_ldflags="$aros_symbols_debug"
7296 aros_mungwall_debug="0"
7297 aros_modules_debug="0"
7298 gcc_target_cpu="mc68000"
7299 ignore_undefined_symbols="-ius"
7302 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7304 esac
7307 mac*)
7308 aros_target_arch="mac"
7309 aros_shared_default="no"
7310 case "$target_cpu" in
7311 *m68k*)
7312 aros_target_cpu="m68k"
7313 aros_object_format="m68kelf"
7314 aros_flavour="mac68knative"
7315 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7316 aros_default_wbwidth=512
7317 aros_default_wbheight=384
7318 aros_default_wbdepth=8
7319 aros_target_ar_flags="cru"
7320 aros_compiler_libs="-lgcc1"
7321 aros_shared_default=no
7322 aros_shared_cflags="-fpic"
7323 aros_shared_aflags=""
7324 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7325 aros_kernel_ldflags="-Wl,-rpath,./lib"
7326 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7327 aros_debug_aflags=""
7328 aros_debug_ldflags="$aros_symbols_debug"
7329 aros_mungwall_debug="0"
7330 aros_modules_debug="0"
7331 gcc_target_cpu="mc68000"
7332 ignore_undefined_symbols="-ius"
7335 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7337 esac
7341 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7343 esac
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7346 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7348 # Check whether --with-portssources was given.
7349 if test "${with_portssources+set}" = set; then :
7350 withval=$with_portssources; with_portssrcdir=$withval
7351 else
7352 with_portssrcdir="default"
7355 if test "$with_portssrcdir" = "default"; then
7356 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
7357 else
7358 AROS_PORTSSRCDIR="$with_portssrcdir"
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7361 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7364 $as_echo_n "checking which bootloader to use... " >&6; }
7366 # Check whether --with-bootloader was given.
7367 if test "${with_bootloader+set}" = set; then :
7368 withval=$with_bootloader; target_bootloader=$withval
7369 else
7370 target_bootloader=$target_bootloader
7373 if test "$target_bootloader" = "none"; then
7374 aros_target_bootloader=""
7375 else
7376 aros_target_bootloader="$target_bootloader"
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7379 $as_echo "$target_bootloader" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7382 $as_echo_n "checking which icon-set to use... " >&6; }
7384 # Check whether --with-iconset was given.
7385 if test "${with_iconset+set}" = set; then :
7386 withval=$with_iconset; target_iconset=$withval
7387 else
7388 target_iconset="default"
7391 if test "$target_iconset" = "default"; then
7392 aros_target_iconset="Gorilla"
7393 target_iconset="default (Gorilla)"
7394 else
7395 aros_target_iconset="$target_iconset"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7398 $as_echo "$target_iconset" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7401 $as_echo_n "checking which GUI Theme to use... " >&6; }
7403 # Check whether --with-theme was given.
7404 if test "${with_theme+set}" = set; then :
7405 withval=$with_theme; target_guitheme=$withval
7406 else
7407 target_guitheme="default"
7410 if test "$target_guitheme" = "default"; then
7411 aros_target_guitheme="Ice"
7412 else
7413 aros_target_guitheme="$target_guitheme"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7416 $as_echo "$aros_target_guitheme" >&6; }
7418 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7419 # for target code)
7420 cross_compiling=no
7421 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7422 cross_compiling=yes
7424 if test "$aros_host_cpu" == "x86_64" ; then
7425 if test "$aros_target_cpu" == "i386" ; then
7426 cross_compiling=no
7429 if test "$aros_host_arch" == "darwin" ; then
7430 cross_compiling=yes
7433 # Set prefix for target compiler etc. if we're cross-compiling
7434 # (should possibly be earlier but needs to be after AC_PROG_CC)
7435 if test "$cross_compiling" = "yes" ; then
7436 if test "$target_tool_prefix" = ""; then
7437 target_tool_prefix=${target_cpu}-elf-
7439 CC=${target_tool_prefix}gcc
7442 #-----------------------------------------------------------------------------
7444 # Disable pointer-signedness warnings if the compiler recognises the option
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7447 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7448 save_cflags="$CFLAGS"
7449 CFLAGS="$CFLAGS -Wno-pointer-sign"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 use_no_sign_warning="yes"
7463 else
7464 use_no_sign_warning="no"
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7468 $as_echo "$use_no_sign_warning" >&6; }
7469 if test "x-$use_no_sign_warning" = "x-yes" ; then
7470 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7472 CFLAGS="$save_cflags"
7474 #-----------------------------------------------------------------------------
7476 # Find all the tools we need to compile. This could be cross-compiling
7477 # though! If that is the case we use the GNU form of the target and
7478 # simply add this to the front of the binary name. This is rather simple,
7479 # but it should work under most circumstances.
7481 # The default tools are to use the same as the host, but only if the
7482 # host and target CPU are the same. With GCC this is normally enough.
7485 aros_cc_pre=""
7486 aros_shared_ld="$aros_host_ld"
7488 aros_target_mkdep="$aros_host_mkdep"
7489 aros_target_incl_def="$aros_host_incl"
7491 aros_kernel_cc="$CC"
7493 # The default tools executables to be linked to.
7494 if test "$aros_target_cc" != ""; then
7495 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7496 set dummy $aros_target_cc; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 case $aros_target_cc in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7518 done
7519 done
7520 IFS=$as_save_IFS
7523 esac
7525 aros_target_cc=$ac_cv_path_aros_target_cc
7526 if test -n "$aros_target_cc"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7528 $as_echo "$aros_target_cc" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 if test "$aros_target_cc" = ""; then
7536 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7539 if test "$aros_target_ld" != ""; then
7540 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
7541 set dummy $aros_target_ld; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 case $aros_target_ld in
7548 [\\/]* | ?:[\\/]*)
7549 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7565 IFS=$as_save_IFS
7568 esac
7570 aros_target_ld=$ac_cv_path_aros_target_ld
7571 if test -n "$aros_target_ld"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
7573 $as_echo "$aros_target_ld" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7580 if test "$aros_target_ld" = ""; then
7581 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7585 if test "$crosstools" != "yes"; then
7587 if test "$aros_target_as" = ""; then
7588 if test "$cross_compiling" = "yes" ; then
7589 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7590 set dummy ${target_tool_prefix}as; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 case $aros_target_as_ln in
7597 [\\/]* | ?:[\\/]*)
7598 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7612 done
7613 done
7614 IFS=$as_save_IFS
7617 esac
7619 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7620 if test -n "$aros_target_as_ln"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7622 $as_echo "$aros_target_as_ln" >&6; }
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7629 else
7630 if test "$GCC" = "yes"; then
7631 aros_gcc_as=`$CC -print-prog-name=as`
7632 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7633 set dummy `basename $aros_gcc_as`; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $aros_target_as_ln in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in `dirname $aros_gcc_as`
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7655 done
7656 done
7657 IFS=$as_save_IFS
7660 esac
7662 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7663 if test -n "$aros_target_as_ln"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7665 $as_echo "$aros_target_as_ln" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7673 if test "$aros_target_as_ln" = ""; then
7674 # Extract the first word of "as", so it can be a program name with args.
7675 set dummy as; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 case $aros_target_as_ln in
7682 [\\/]* | ?:[\\/]*)
7683 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7697 done
7698 done
7699 IFS=$as_save_IFS
7702 esac
7704 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7705 if test -n "$aros_target_as_ln"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7707 $as_echo "$aros_target_as_ln" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7716 else
7717 # Extract the first word of "$aros_target_as", so it can be a program name with args.
7718 set dummy $aros_target_as; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 case $aros_target_as_ln in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7745 esac
7747 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7748 if test -n "$aros_target_as_ln"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7750 $as_echo "$aros_target_as_ln" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7759 if test "$aros_target_as_ln" = ""; then
7760 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
7763 if test "$aros_kernel_ld" = ""; then
7764 if test "$cross_compiling" = "yes" ; then
7765 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7766 set dummy ${target_tool_prefix}ld; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 case $aros_kernel_ld in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7788 done
7789 done
7790 IFS=$as_save_IFS
7793 esac
7795 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7796 if test -n "$aros_kernel_ld"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7798 $as_echo "$aros_kernel_ld" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7805 else
7806 if test "$GCC" = "yes"; then
7807 aros_gcc_ld=`$CC -print-prog-name=ld`
7808 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7809 set dummy `basename $aros_gcc_ld`; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 case $aros_kernel_ld in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in `dirname $aros_gcc_ld`
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7831 done
7832 done
7833 IFS=$as_save_IFS
7836 esac
7838 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7839 if test -n "$aros_kernel_ld"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7841 $as_echo "$aros_kernel_ld" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7849 if test "$aros_kernel_ld" = ""; then
7850 # Extract the first word of "ld", so it can be a program name with args.
7851 set dummy ld; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 case $aros_kernel_ld in
7858 [\\/]* | ?:[\\/]*)
7859 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7873 done
7874 done
7875 IFS=$as_save_IFS
7878 esac
7880 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7881 if test -n "$aros_kernel_ld"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7883 $as_echo "$aros_kernel_ld" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7892 else
7893 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
7894 set dummy $aros_kernel_ld; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 case $aros_kernel_ld in
7901 [\\/]* | ?:[\\/]*)
7902 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7916 done
7917 done
7918 IFS=$as_save_IFS
7921 esac
7923 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7924 if test -n "$aros_kernel_ld"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
7926 $as_echo "$aros_kernel_ld" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7935 if test "$aros_kernel_ld" = ""; then
7936 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7939 if test "$aros_target_ar" = ""; then
7940 if test "$cross_compiling" = "yes" ; then
7941 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
7942 set dummy ${target_tool_prefix}ar; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 case $aros_target_ar_ln in
7949 [\\/]* | ?:[\\/]*)
7950 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7966 IFS=$as_save_IFS
7969 esac
7971 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7972 if test -n "$aros_target_ar_ln"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
7974 $as_echo "$aros_target_ar_ln" >&6; }
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7981 else
7982 if test "$GCC" = "yes"; then
7983 aros_gcc_ar=`$CC -print-prog-name=ar`
7984 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
7985 set dummy `basename $aros_gcc_ar`; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 case $aros_target_ar_ln in
7992 [\\/]* | ?:[\\/]*)
7993 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in `dirname $aros_gcc_ar`
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8012 esac
8014 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8015 if test -n "$aros_target_ar_ln"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8017 $as_echo "$aros_target_ar_ln" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8025 if test "$aros_target_ar_ln" = ""; then
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy ar; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 case $aros_target_ar_ln in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8054 esac
8056 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8057 if test -n "$aros_target_ar_ln"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8059 $as_echo "$aros_target_ar_ln" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8068 else
8069 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8070 set dummy $aros_target_ar; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 case $aros_target_ar_ln in
8077 [\\/]* | ?:[\\/]*)
8078 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8097 esac
8099 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8100 if test -n "$aros_target_ar_ln"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8102 $as_echo "$aros_target_ar_ln" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8111 if test "$aros_target_ar_ln" = ""; then
8112 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8115 if test "$aros_target_nm" = ""; then
8116 if test "$cross_compiling" = "yes" ; then
8117 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8118 set dummy ${target_tool_prefix}nm; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 case $aros_target_nm_ln in
8125 [\\/]* | ?:[\\/]*)
8126 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8142 IFS=$as_save_IFS
8145 esac
8147 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8148 if test -n "$aros_target_nm_ln"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8150 $as_echo "$aros_target_nm_ln" >&6; }
8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8157 else
8158 if test "$GCC" = "yes"; then
8159 aros_gcc_nm=`$CC -print-prog-name=nm`
8160 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8161 set dummy `basename $aros_gcc_nm`; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 case $aros_target_nm_ln in
8168 [\\/]* | ?:[\\/]*)
8169 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in `dirname $aros_gcc_nm`
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8183 done
8184 done
8185 IFS=$as_save_IFS
8188 esac
8190 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8191 if test -n "$aros_target_nm_ln"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8193 $as_echo "$aros_target_nm_ln" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8201 if test "$aros_target_nm_ln" = ""; then
8202 # Extract the first word of "nm", so it can be a program name with args.
8203 set dummy nm; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 case $aros_target_nm_ln in
8210 [\\/]* | ?:[\\/]*)
8211 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8225 done
8226 done
8227 IFS=$as_save_IFS
8230 esac
8232 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8233 if test -n "$aros_target_nm_ln"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8235 $as_echo "$aros_target_nm_ln" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8244 else
8245 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8246 set dummy $aros_target_nm; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 case $aros_target_nm_ln in
8253 [\\/]* | ?:[\\/]*)
8254 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8273 esac
8275 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8276 if test -n "$aros_target_nm_ln"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8278 $as_echo "$aros_target_nm_ln" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8287 if test "$aros_target_nm_ln" = ""; then
8288 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8291 if test "$aros_target_objcopy" = ""; then
8292 if test "$cross_compiling" = "yes" ; then
8293 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8294 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 case $aros_target_objcopy_ln in
8301 [\\/]* | ?:[\\/]*)
8302 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8321 esac
8323 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8324 if test -n "$aros_target_objcopy_ln"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8326 $as_echo "$aros_target_objcopy_ln" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8333 else
8334 if test "$GCC" = "yes"; then
8335 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8336 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8337 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $aros_target_objcopy_ln in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in `dirname $aros_gcc_objcopy`
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8367 if test -n "$aros_target_objcopy_ln"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8369 $as_echo "$aros_target_objcopy_ln" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test "$aros_target_objcopy_ln" = ""; then
8378 # Extract the first word of "objcopy", so it can be a program name with args.
8379 set dummy objcopy; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 case $aros_target_objcopy_ln in
8386 [\\/]* | ?:[\\/]*)
8387 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8406 esac
8408 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8409 if test -n "$aros_target_objcopy_ln"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8411 $as_echo "$aros_target_objcopy_ln" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8420 else
8421 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8422 set dummy $aros_target_objcopy; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $aros_target_objcopy_ln in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8452 if test -n "$aros_target_objcopy_ln"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8454 $as_echo "$aros_target_objcopy_ln" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 if test "$aros_target_objcopy_ln" = ""; then
8464 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8467 if test "$aros_target_objdump" = ""; then
8468 if test "$cross_compiling" = "yes" ; then
8469 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8470 set dummy ${target_tool_prefix}objdump; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 case $aros_target_objdump_ln in
8477 [\\/]* | ?:[\\/]*)
8478 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8492 done
8493 done
8494 IFS=$as_save_IFS
8497 esac
8499 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8500 if test -n "$aros_target_objdump_ln"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8502 $as_echo "$aros_target_objdump_ln" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8509 else
8510 if test "$GCC" = "yes"; then
8511 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8512 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8513 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $aros_target_objdump_ln in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in `dirname $aros_gcc_objdump`
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8543 if test -n "$aros_target_objdump_ln"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8545 $as_echo "$aros_target_objdump_ln" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 if test "$aros_target_objdump_ln" = ""; then
8554 # Extract the first word of "objdump", so it can be a program name with args.
8555 set dummy objdump; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 case $aros_target_objdump_ln in
8562 [\\/]* | ?:[\\/]*)
8563 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8577 done
8578 done
8579 IFS=$as_save_IFS
8582 esac
8584 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8585 if test -n "$aros_target_objdump_ln"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8587 $as_echo "$aros_target_objdump_ln" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8596 else
8597 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
8598 set dummy $aros_target_objdump; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 case $aros_target_objdump_ln in
8605 [\\/]* | ?:[\\/]*)
8606 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8620 done
8621 done
8622 IFS=$as_save_IFS
8625 esac
8627 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8628 if test -n "$aros_target_objdump_ln"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8630 $as_echo "$aros_target_objdump_ln" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8639 if test "$aros_target_objdump_ln" = ""; then
8640 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
8643 if test "$aros_target_ranlib" = ""; then
8644 if test "$cross_compiling" = "yes" ; then
8645 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8646 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 case $aros_target_ranlib_ln in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8673 esac
8675 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8676 if test -n "$aros_target_ranlib_ln"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8678 $as_echo "$aros_target_ranlib_ln" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8685 else
8686 if test "$GCC" = "yes"; then
8687 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8688 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8689 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $aros_target_ranlib_ln in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in `dirname $aros_gcc_ranlib`
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8719 if test -n "$aros_target_ranlib_ln"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8721 $as_echo "$aros_target_ranlib_ln" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test "$aros_target_ranlib_ln" = ""; then
8730 # Extract the first word of "ranlib", so it can be a program name with args.
8731 set dummy ranlib; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 case $aros_target_ranlib_ln in
8738 [\\/]* | ?:[\\/]*)
8739 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8758 esac
8760 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8761 if test -n "$aros_target_ranlib_ln"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8763 $as_echo "$aros_target_ranlib_ln" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8772 else
8773 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
8774 set dummy $aros_target_ranlib; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 case $aros_target_ranlib_ln in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8801 esac
8803 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8804 if test -n "$aros_target_ranlib_ln"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8806 $as_echo "$aros_target_ranlib_ln" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8815 if test "$aros_target_ranlib_ln" = ""; then
8816 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
8819 if test "$aros_target_strip" = ""; then
8820 if test "$cross_compiling" = "yes" ; then
8821 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8822 set dummy ${target_tool_prefix}strip; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 case $aros_target_strip_ln in
8829 [\\/]* | ?:[\\/]*)
8830 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8842 break 2
8844 done
8845 done
8846 IFS=$as_save_IFS
8849 esac
8851 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8852 if test -n "$aros_target_strip_ln"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8854 $as_echo "$aros_target_strip_ln" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8861 else
8862 if test "$GCC" = "yes"; then
8863 aros_gcc_strip=`$CC -print-prog-name=strip`
8864 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8865 set dummy `basename $aros_gcc_strip`; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_target_strip_ln in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in `dirname $aros_gcc_strip`
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8895 if test -n "$aros_target_strip_ln"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8897 $as_echo "$aros_target_strip_ln" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8905 if test "$aros_target_strip_ln" = ""; then
8906 # Extract the first word of "strip", so it can be a program name with args.
8907 set dummy strip; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 case $aros_target_strip_ln in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8929 done
8930 done
8931 IFS=$as_save_IFS
8934 esac
8936 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8937 if test -n "$aros_target_strip_ln"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8939 $as_echo "$aros_target_strip_ln" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8948 else
8949 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
8950 set dummy $aros_target_strip; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $aros_target_strip_ln in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8980 if test -n "$aros_target_strip_ln"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
8982 $as_echo "$aros_target_strip_ln" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8991 if test "$aros_target_strip_ln" = ""; then
8992 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
8996 if test "$rescomp" != ""; then
8997 if test "$cross_compiling" = "yes" ; then
8998 rescomp=${target_tool_prefix}${rescomp}
9000 # Extract the first word of "$rescomp", so it can be a program name with args.
9001 set dummy $rescomp; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 case $aros_kernel_rescomp in
9008 [\\/]* | ?:[\\/]*)
9009 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9023 done
9024 done
9025 IFS=$as_save_IFS
9028 esac
9030 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9031 if test -n "$aros_kernel_rescomp"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9033 $as_echo "$aros_kernel_rescomp" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9040 if test "$aros_kernel_rescomp" = ""; then
9041 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9045 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9046 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9047 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9048 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9049 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9050 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9051 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9053 # aros_cc_pre is a variable that is added to the front of the compiler name
9054 # in the generated aros-gcc shell script. We need this to enable the cache
9055 # to work across cleaned builds. Also, support DISTCC using the correct
9056 # environment variable.
9059 if test "x${DISTCC}" != "x" ; then
9060 if test "x${CCACHE}" != "x" ; then
9061 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9062 else
9063 aros_cc_pre="${DISTCC} "
9065 else
9066 if test "x${CCACHE}" != "x" ; then
9067 aros_cc_pre="${CCACHE} "
9071 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9073 aros_target_nostdinc_cflags=-nostdinc
9075 aros_target_nostartup_ldflags=-nostartfiles
9077 aros_target_nix_ldflags=-nix
9079 aros_target_detach_ldflags=-detach
9081 aros_target_nostdlib_ldflags=-nostdlib
9084 # Target tools
9085 if test "$aros_target_cc" = ""; then
9086 orig_target_cc=$aros_kernel_cc
9087 else
9088 orig_target_cc=$aros_target_cc
9090 if test "$aros_target_ld" = ""; then
9091 orig_target_ld=$aros_kernel_ld
9092 else
9093 orig_target_ld=$aros_target_ld
9095 if test "$GCC" = "yes"; then
9096 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9098 aros_target_cc="${prefix}-gcc"
9099 aros_target_as="${prefix}-as"
9100 aros_target_ld="${prefix}-ld"
9101 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9102 aros_target_objcopy=${prefix}-objcopy
9103 aros_target_objdump=${prefix}-objdump
9104 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9105 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9106 aros_kernel_nm="${prefix}-nm"
9107 aros_target_strip=${prefix}-strip
9109 # Find the system include path. We can suggest that an alternative is
9110 # used if we don't get it correct. The default is to use /usr/include.
9111 # Which is set in the aros_target_incl_def variable.
9113 # Check whether --enable-includes was given.
9114 if test "${enable_includes+set}" = set; then :
9115 enableval=$enable_includes; aros_target_incl=$enable_includes
9116 else
9117 aros_target_incl=$aros_target_incl_def
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9122 $as_echo_n "checking for the target compiler's include path... " >&6; }
9123 if test "$aros_target_cc_includes" = "" ; then
9124 #try to guess where the directory is
9125 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9126 if ! test -d $aros_target_cc_includes; then
9127 #the directory doesn't exist, we need to do some more work
9128 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9130 #these are the headers we're looling for
9131 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9132 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9133 zutil.h"
9135 dirs=
9136 for h in $headers; do
9137 #which other headers each of the above headers needs?
9138 deps=$(echo "#include <$h>" | \
9139 $aros_host_cc -E -M - 2>/dev/null | \
9140 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9142 #copy all the needed headers to a directory beneath gendir
9143 for d in $deps; do
9144 h=$(basename $d)
9145 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9146 sed -n "s,^.*/include\(/.*\),\1,p")
9147 ! test -d $dir && mkdir -p $dir
9148 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9149 done
9150 done
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9154 $as_echo "$aros_target_cc_includes" >&6; }
9157 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9158 # On GCC >= 4.0 -iquote should be used
9161 save_cc="$CC"
9162 save_cflags="$CFLAGS"
9163 CFLAGS="-iquote."
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9165 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9170 main ()
9174 return 0;
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 has_iquote="yes"
9179 else
9180 has_iquote="no"
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9184 $as_echo "$has_iquote" >&6; }
9185 if test "x-$has_iquote" = "x-yes" ; then
9186 host_cflags_iquote=-iquote
9187 host_cflags_iquote_end=
9188 else
9189 host_cflags_iquote=-I
9190 host_cflags_iquote_end=-I-
9192 kernel_cflags_iquote=$host_cflags_iquote
9193 kernel_cflags_iquote_end=$host_cflags_iquote_end
9194 if test "x-$cross_compiling" = "x-yes"; then
9195 CC="$aros_kernel_cc"
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9197 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9202 main ()
9206 return 0;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"; then :
9210 has_iquote="yes"
9211 else
9212 has_iquote="no"
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9216 $as_echo "$has_iquote" >&6; }
9217 if test "x-$has_iquote" = "x-yes" ; then
9218 kernel_cflags_iquote=-iquote
9219 kernel_cflags_iquote_end=
9220 else
9221 kernel_cflags_iquote=-I
9222 kernel_cflags_iquote_end=-I-
9225 aros_cflags_iquote=$kernel_cflags_iquote
9226 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9227 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9228 CC="$orig_target_cc"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9230 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9235 main ()
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 has_iquote="yes"
9244 else
9245 has_iquote="no"
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9249 $as_echo "$has_iquote" >&6; }
9250 if test "x-$has_iquote" = "x-yes" ; then
9251 aros_cflags_iquote=-iquote
9252 aros_cflags_iquote_end=
9253 else
9254 aros_cflags_iquote=-I
9255 aros_cflags_iquote_end=-I-
9258 CC="$save_cc"
9259 CFLAGS="$save_cflags"
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9270 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9272 # Check whether --with-resolution was given.
9273 if test "${with_resolution+set}" = set; then :
9274 withval=$with_resolution; resolution=$withval
9275 else
9276 resolution=none
9279 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9280 if test "$resolution" = "yes" ; then
9281 resolution="none"
9283 if test "$resolution" = "no" ; then
9284 resolution="none"
9286 if test "$resolution" != "none" ; then
9287 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9288 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9289 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9292 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9293 aros_cv_default_wbwidth=$aros_default_wbwidth
9294 aros_cv_default_wbheight=$aros_default_wbheight
9295 aros_cv_default_wbdepth=$aros_default_wbdepth
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bochs hack is enabled" >&5
9298 $as_echo_n "checking if bochs hack is enabled... " >&6; }
9299 # Check whether --enable-bochs_hack was given.
9300 if test "${enable_bochs_hack+set}" = set; then :
9301 enableval=$enable_bochs_hack; bochs_hack="yes"
9302 else
9303 bochs_hack="no"
9306 if test "$bochs_hack" = "yes" ; then
9307 aros_bochs_hack="1"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bochs_hack" >&5
9310 $as_echo "$bochs_hack" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9313 $as_echo_n "checking if serial debug is enabled... " >&6; }
9315 # Check whether --with-serial-debug was given.
9316 if test "${with_serial_debug+set}" = set; then :
9317 withval=$with_serial_debug; serial_debug=$withval
9318 else
9319 serial_debug=none
9322 if test "$aros_serial_debug" = 0 ; then
9323 serial_debug_forced=""
9324 if test "$serial_debug" = "yes" ; then
9325 serial_debug="2"
9327 if test "$serial_debug" = "no" ; then
9328 serial_debug="none"
9330 else
9331 serial_debug_forced="(forced)"
9332 serial_debug=$aros_serial_debug
9334 if test "$serial_debug" != "none" ; then
9335 aros_serial_debug=$serial_debug
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9337 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9338 else
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9344 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9345 # Check whether --enable-palm_debug_hack was given.
9346 if test "${enable_palm_debug_hack+set}" = set; then :
9347 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9348 else
9349 palm_debug_hack="no"
9352 if test "$palm_debug_hack" = "yes" ; then
9353 aros_palm_debug_hack="1"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9356 $as_echo "$palm_debug_hack" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9360 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9361 # Check whether --enable-nesting_supervisor was given.
9362 if test "${enable_nesting_supervisor+set}" = set; then :
9363 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9364 else
9365 nesting_supervisor="no"
9368 if test "$nesting_supervisor" = "yes" ; then
9369 aros_nesting_supervisor="1"
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9372 $as_echo "$nesting_supervisor" >&6; }
9375 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9377 if test "x-$need_dlopen" != "x-no" ; then
9378 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9379 if test "x$ac_cv_func_dlopen" = x""yes; then :
9380 have_dl="yes"
9381 else
9382 have_dl="no"
9385 if test "x-$have_dl" = "x-no" ; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 ac_check_lib_save_LIBS=$LIBS
9392 LIBS="-ldl $LIBS"
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 /* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
9399 #ifdef __cplusplus
9400 extern "C"
9401 #endif
9402 char dlopen ();
9404 main ()
9406 return dlopen ();
9408 return 0;
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 ac_cv_lib_dl_dlopen=yes
9413 else
9414 ac_cv_lib_dl_dlopen=no
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9422 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9423 have_dl="yes"
9424 aros_host_ldflags="$aros_host_ldflags -ldl"
9425 else
9426 have_dl="no"
9430 if test "x-$have_dl" = "x-no" ; then
9431 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
9436 # Check whether --enable-x11_hidd was given.
9437 if test "${enable_x11_hidd+set}" = set; then :
9438 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9439 else
9440 x11_hidd="auto"
9443 case "x-$x11_hidd" in
9444 x-yes|x-no|x-auto) ;;
9445 *) x11_hidd="auto" ;;
9446 esac
9448 ENABLE_X11=0
9450 if test "x-$x11_hidd" != "x-no" ; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9453 $as_echo_n "checking for X... " >&6; }
9456 # Check whether --with-x was given.
9457 if test "${with_x+set}" = set; then :
9458 withval=$with_x;
9461 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9462 if test "x$with_x" = xno; then
9463 # The user explicitly disabled X.
9464 have_x=disabled
9465 else
9466 case $x_includes,$x_libraries in #(
9467 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9468 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 # One or both of the vars are not set, and there is no cached value.
9472 ac_x_includes=no ac_x_libraries=no
9473 rm -f -r conftest.dir
9474 if mkdir conftest.dir; then
9475 cd conftest.dir
9476 cat >Imakefile <<'_ACEOF'
9477 incroot:
9478 @echo incroot='${INCROOT}'
9479 usrlibdir:
9480 @echo usrlibdir='${USRLIBDIR}'
9481 libdir:
9482 @echo libdir='${LIBDIR}'
9483 _ACEOF
9484 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9486 for ac_var in incroot usrlibdir libdir; do
9487 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9488 done
9489 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9490 for ac_extension in a so sl dylib la dll; do
9491 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9492 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9493 ac_im_usrlibdir=$ac_im_libdir; break
9495 done
9496 # Screen out bogus values from the imake configuration. They are
9497 # bogus both because they are the default anyway, and because
9498 # using them would break gcc on systems where it needs fixed includes.
9499 case $ac_im_incroot in
9500 /usr/include) ac_x_includes= ;;
9501 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9502 esac
9503 case $ac_im_usrlibdir in
9504 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9505 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9506 esac
9508 cd ..
9509 rm -f -r conftest.dir
9512 # Standard set of common directories for X headers.
9513 # Check X11 before X11Rn because it is often a symlink to the current release.
9514 ac_x_header_dirs='
9515 /usr/X11/include
9516 /usr/X11R7/include
9517 /usr/X11R6/include
9518 /usr/X11R5/include
9519 /usr/X11R4/include
9521 /usr/include/X11
9522 /usr/include/X11R7
9523 /usr/include/X11R6
9524 /usr/include/X11R5
9525 /usr/include/X11R4
9527 /usr/local/X11/include
9528 /usr/local/X11R7/include
9529 /usr/local/X11R6/include
9530 /usr/local/X11R5/include
9531 /usr/local/X11R4/include
9533 /usr/local/include/X11
9534 /usr/local/include/X11R7
9535 /usr/local/include/X11R6
9536 /usr/local/include/X11R5
9537 /usr/local/include/X11R4
9539 /usr/X386/include
9540 /usr/x386/include
9541 /usr/XFree86/include/X11
9543 /usr/include
9544 /usr/local/include
9545 /usr/unsupported/include
9546 /usr/athena/include
9547 /usr/local/x11r5/include
9548 /usr/lpp/Xamples/include
9550 /usr/openwin/include
9551 /usr/openwin/share/include'
9553 if test "$ac_x_includes" = no; then
9554 # Guess where to find include files, by looking for Xlib.h.
9555 # First, try using that file with no special directory specified.
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9558 #include <X11/Xlib.h>
9559 _ACEOF
9560 if ac_fn_c_try_cpp "$LINENO"; then :
9561 # We can compile using X headers with no special include directory.
9562 ac_x_includes=
9563 else
9564 for ac_dir in $ac_x_header_dirs; do
9565 if test -r "$ac_dir/X11/Xlib.h"; then
9566 ac_x_includes=$ac_dir
9567 break
9569 done
9571 rm -f conftest.err conftest.$ac_ext
9572 fi # $ac_x_includes = no
9574 if test "$ac_x_libraries" = no; then
9575 # Check for the libraries.
9576 # See if we find them without any special options.
9577 # Don't add to $LIBS permanently.
9578 ac_save_LIBS=$LIBS
9579 LIBS="-lX11 $LIBS"
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 #include <X11/Xlib.h>
9584 main ()
9586 XrmInitialize ()
9588 return 0;
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9592 LIBS=$ac_save_LIBS
9593 # We can link X programs with no special library path.
9594 ac_x_libraries=
9595 else
9596 LIBS=$ac_save_LIBS
9597 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9599 # Don't even attempt the hair of trying to link an X program!
9600 for ac_extension in a so sl dylib la dll; do
9601 if test -r "$ac_dir/libX11.$ac_extension"; then
9602 ac_x_libraries=$ac_dir
9603 break 2
9605 done
9606 done
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi # $ac_x_libraries = no
9612 case $ac_x_includes,$ac_x_libraries in #(
9613 no,* | *,no | *\'*)
9614 # Didn't find X, or a directory has "'" in its name.
9615 ac_cv_have_x="have_x=no";; #(
9617 # Record where we found X for the cache.
9618 ac_cv_have_x="have_x=yes\
9619 ac_x_includes='$ac_x_includes'\
9620 ac_x_libraries='$ac_x_libraries'"
9621 esac
9623 ;; #(
9624 *) have_x=yes;;
9625 esac
9626 eval "$ac_cv_have_x"
9627 fi # $with_x != no
9629 if test "$have_x" != yes; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9631 $as_echo "$have_x" >&6; }
9632 no_x=yes
9633 else
9634 # If each of the values was on the command line, it overrides each guess.
9635 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9636 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9637 # Update the cache value to reflect the command line values.
9638 ac_cv_have_x="have_x=yes\
9639 ac_x_includes='$x_includes'\
9640 ac_x_libraries='$x_libraries'"
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9642 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9646 x_cflags=
9647 for path in $x_libraries
9649 x_cflags="$x_cflags -L$path"
9650 done
9652 for path in $x_includes
9654 x_cflags="$x_cflags -I$path"
9655 done
9657 if test "x-$no_x" = "x-yes" ; then
9659 if test "x-$x11_hidd" != "x-auto" ; then
9660 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
9663 else
9664 x11_hidd_target=kernel-x11gfx-kobj
9665 ENABLE_X11=1
9667 # Check whether --enable-x11_shm was given.
9668 if test "${enable_x11_shm+set}" = set; then :
9669 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
9670 else
9671 x11_hidd_shm="auto"
9674 case "x-$x11_hidd_shm" in
9675 x-yes|x-no|x-auto) ;;
9676 *) x11_hidd_shm="auto" ;;
9677 esac
9679 have_xshm=no
9681 if test "x-$x11_hidd_shm" != "x-no" ; then
9683 for ac_header in sys/ipc.h
9684 do :
9685 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
9686 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
9687 cat >>confdefs.h <<_ACEOF
9688 #define HAVE_SYS_IPC_H 1
9689 _ACEOF
9693 done
9695 for ac_header in sys/shm.h
9696 do :
9697 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
9698 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_SYS_SHM_H 1
9701 _ACEOF
9705 done
9708 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
9710 save_cflags="$CFLAGS"
9711 CFLAGS="$CFLAGS $x_cflags"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9713 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9714 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lXext $LIBS"
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char XShmQueryExtension ();
9730 main ()
9732 return XShmQueryExtension ();
9734 return 0;
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 ac_cv_lib_Xext_XShmQueryExtension=yes
9739 else
9740 ac_cv_lib_Xext_XShmQueryExtension=no
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9747 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9748 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
9749 have_xshm=yes
9752 CFLAGS="$save_cflags"
9756 if test "x-$have_xshm" = "x-yes" ; then
9757 DO_XSHM_SUPPORT="1"
9758 elif test "x-$x11_hidd_shm" = "x-yes" ; then
9759 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
9760 else
9761 DO_XSHM_SUPPORT="0"
9765 # Check whether --enable-x11_vidmode was given.
9766 if test "${enable_x11_vidmode+set}" = set; then :
9767 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
9768 else
9769 x11_hidd_vidmode="auto"
9772 case "x-$x11_hidd_vidmode" in
9773 x-yes|x-no|x-auto) ;;
9774 *) x11_hidd_vidmode="auto" ;;
9775 esac
9777 have_vidmode=no
9779 if test "x-$x11_hidd_vidmode" != "x-no" ; then
9781 save_cflags="$CFLAGS"
9782 CFLAGS="$CFLAGS $x_cflags"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9784 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
9785 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-lXxf86vm $LIBS"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char XF86VidModeQueryExtension ();
9801 main ()
9803 return XF86VidModeQueryExtension ();
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9810 else
9811 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9818 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9819 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
9820 have_vidmode=yes
9823 CFLAGS="$save_cflags"
9826 if test "x-$have_vidmode" = "x-yes" ; then
9827 DO_VIDMODE_SUPPORT="1"
9828 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
9829 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
9830 else
9831 DO_VIDMODE_SUPPORT="0"
9835 aros_host_x11_includes=$x_includes
9836 aros_host_x11_libdirs=$x_libraries
9840 # Check whether --enable-sdl_hidd was given.
9841 if test "${enable_sdl_hidd+set}" = set; then :
9842 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
9843 else
9844 sdl_hidd="auto"
9847 case "x-$sdl_hidd" in
9848 x-yes|x-no|x-auto) ;;
9849 *) sdl_hidd="auto" ;;
9850 esac
9852 if test "x-$sdl_hidd" != "x-no" ; then
9855 # Check whether --with-sdl-prefix was given.
9856 if test "${with_sdl_prefix+set}" = set; then :
9857 withval=$with_sdl_prefix; sdl_prefix="$withval"
9858 else
9859 sdl_prefix=""
9863 # Check whether --with-sdl-exec-prefix was given.
9864 if test "${with_sdl_exec_prefix+set}" = set; then :
9865 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
9866 else
9867 sdl_exec_prefix=""
9870 # Check whether --enable-sdltest was given.
9871 if test "${enable_sdltest+set}" = set; then :
9872 enableval=$enable_sdltest;
9873 else
9874 enable_sdltest=yes
9878 if test x$sdl_exec_prefix != x ; then
9879 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
9880 if test x${SDL_CONFIG+set} != xset ; then
9881 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
9884 if test x$sdl_prefix != x ; then
9885 sdl_args="$sdl_args --prefix=$sdl_prefix"
9886 if test x${SDL_CONFIG+set} != xset ; then
9887 SDL_CONFIG=$sdl_prefix/bin/sdl-config
9891 if test "x$prefix" != xNONE; then
9892 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9894 # Extract the first word of "sdl-config", so it can be a program name with args.
9895 set dummy sdl-config; ac_word=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 case $SDL_CONFIG in
9902 [\\/]* | ?:[\\/]*)
9903 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 break 2
9917 done
9918 done
9919 IFS=$as_save_IFS
9921 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9923 esac
9925 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9926 if test -n "$SDL_CONFIG"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
9928 $as_echo "$SDL_CONFIG" >&6; }
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9935 min_sdl_version=1.2.10
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
9937 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
9938 no_sdl=""
9939 if test "$SDL_CONFIG" = "no" ; then
9940 no_sdl=yes
9941 else
9942 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
9943 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
9945 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
9946 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9947 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
9948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9949 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
9950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9951 if test "x$enable_sdltest" = "xyes" ; then
9952 ac_save_CFLAGS="$CFLAGS"
9953 ac_save_CXXFLAGS="$CXXFLAGS"
9954 ac_save_LIBS="$LIBS"
9955 CFLAGS="$CFLAGS $SDL_CFLAGS"
9956 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
9957 LIBS="$LIBS $SDL_LIBS"
9958 rm -f conf.sdltest
9959 if test "$cross_compiling" = yes; then :
9960 echo $ac_n "cross compiling; assumed OK... $ac_c"
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9965 #include <stdio.h>
9966 #include <stdlib.h>
9967 #include <string.h>
9968 #include "SDL.h"
9970 char*
9971 my_strdup (char *str)
9973 char *new_str;
9975 if (str)
9977 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9978 strcpy (new_str, str);
9980 else
9981 new_str = NULL;
9983 return new_str;
9986 int main (int argc, char *argv[])
9988 int major, minor, micro;
9989 char *tmp_version;
9991 /* This hangs on some systems (?)
9992 system ("touch conf.sdltest");
9994 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9996 /* HP/UX 9 (%@#!) writes to sscanf strings */
9997 tmp_version = my_strdup("$min_sdl_version");
9998 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9999 printf("%s, bad version string\n", "$min_sdl_version");
10000 exit(1);
10003 if (($sdl_major_version > major) ||
10004 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10005 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10007 return 0;
10009 else
10011 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10012 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10013 printf("*** best to upgrade to the required version.\n");
10014 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10015 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10016 printf("*** config.cache before re-running configure\n");
10017 return 1;
10022 _ACEOF
10023 if ac_fn_c_try_run "$LINENO"; then :
10025 else
10026 no_sdl=yes
10028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10029 conftest.$ac_objext conftest.beam conftest.$ac_ext
10032 CFLAGS="$ac_save_CFLAGS"
10033 CXXFLAGS="$ac_save_CXXFLAGS"
10034 LIBS="$ac_save_LIBS"
10037 if test "x$no_sdl" = x ; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039 $as_echo "yes" >&6; }
10040 have_sdl="yes"
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 if test "$SDL_CONFIG" = "no" ; then
10045 echo "*** The sdl-config script installed by SDL could not be found"
10046 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10047 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10048 echo "*** full path to sdl-config."
10049 else
10050 if test -f conf.sdltest ; then
10052 else
10053 echo "*** Could not run SDL test program, checking why..."
10054 CFLAGS="$CFLAGS $SDL_CFLAGS"
10055 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10056 LIBS="$LIBS $SDL_LIBS"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10060 #include <stdio.h>
10061 #include "SDL.h"
10063 int main(int argc, char *argv[])
10064 { return 0; }
10065 #undef main
10066 #define main K_and_R_C_main
10069 main ()
10071 return 0;
10073 return 0;
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 echo "*** The test program compiled, but did not run. This usually means"
10078 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10079 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10080 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10081 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10082 echo "*** is required on your system"
10083 echo "***"
10084 echo "*** If you have an old version installed, it is best to remove it, although"
10085 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10086 else
10087 echo "*** The test program failed to compile or link. See the file config.log for the"
10088 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10089 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10090 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 CFLAGS="$ac_save_CFLAGS"
10095 CXXFLAGS="$ac_save_CXXFLAGS"
10096 LIBS="$ac_save_LIBS"
10099 SDL_CFLAGS=""
10100 SDL_LIBS=""
10101 have_sdl="no"
10105 rm -f conf.sdltest
10108 if test "x-$have_sdl" != "x-yes" ; then
10110 if test "x-$sdl_hidd" != "x-auto" ; then
10111 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10114 else
10115 sdl_hidd_target=kernel-hidd-sdl
10116 aros_host_sdl_cflags=SDL_CFLAGS
10117 aros_host_sdl_libs=SDL_LIBS
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10125 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10126 # Check whether --enable-dbus was given.
10127 if test "${enable_dbus+set}" = set; then :
10128 enableval=$enable_dbus; dbus="yes"
10129 else
10130 dbus="no"
10133 if test "$dbus" = "yes" ; then
10134 ENABLE_DBUS=1
10135 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10136 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10137 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10138 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10139 else
10140 ENABLE_DBUS=0
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10143 $as_echo "$dbus" >&6; }
10147 # Generic
10156 # Host related
10179 # Target Related
10226 # Graphics Related
10241 # Native version related
10245 # Palm native version related
10248 # Unix/Hosted version related
10251 # DBUS related
10258 #X11 related
10261 # Debug related
10267 # Collect-aros stuff: "-ius" to ignore undefined symbols
10270 # C compiler related
10273 case "$aros_flavour" in
10274 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10275 aros_flavour="emulation" ;;
10276 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10277 aros_flavour="emulation" ;;
10278 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10279 aros_flavour="standalone";;
10280 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10281 aros_flavour="native" ;;
10282 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10283 aros_flavour="native" ;;
10284 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10285 aros_flavour="linklib" ;;
10286 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10287 aros_flavour="palmnative" ;;
10288 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10289 aros_flavour="mac68knative" ;;
10290 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10291 aros_flavour="ppcnative" ;;
10292 esac
10294 if test ! -d ${aros_inc_dir} ; then
10295 ${MKDIR} ${aros_inc_dir}
10297 if test ! -d ${aros_geninc_dir} ; then
10298 ${MKDIR} ${aros_geninc_dir}
10300 if test ! -d ${aros_hostcfg_dir} ; then
10301 ${MKDIR} ${aros_hostcfg_dir}
10303 if test ! -d ${aros_targetcfg_dir} ; then
10304 ${MKDIR} ${aros_targetcfg_dir}
10306 if test ! -d ${aros_tools_dir} ; then
10307 ${MKDIR} ${aros_tools_dir}
10309 if test ! -d ${aros_scripts_dir} ; then
10310 ${MKDIR} ${aros_scripts_dir}
10313 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10316 ac_config_commands="$ac_config_commands compiler_executable"
10318 ac_config_commands="$ac_config_commands genshared_executable"
10320 ac_config_commands="$ac_config_commands genmf_executable"
10323 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"
10326 cat >confcache <<\_ACEOF
10327 # This file is a shell script that caches the results of configure
10328 # tests run on this system so they can be shared between configure
10329 # scripts and configure runs, see configure's option --config-cache.
10330 # It is not useful on other systems. If it contains results you don't
10331 # want to keep, you may remove or edit it.
10333 # config.status only pays attention to the cache file if you give it
10334 # the --recheck option to rerun configure.
10336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10338 # following values.
10340 _ACEOF
10342 # The following way of writing the cache mishandles newlines in values,
10343 # but we know of no workaround that is simple, portable, and efficient.
10344 # So, we kill variables containing newlines.
10345 # Ultrix sh set writes to stderr and can't be redirected directly,
10346 # and sets the high bit in the cache file unless we assign to the vars.
10348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10349 eval ac_val=\$$ac_var
10350 case $ac_val in #(
10351 *${as_nl}*)
10352 case $ac_var in #(
10353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10354 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10355 esac
10356 case $ac_var in #(
10357 _ | IFS | as_nl) ;; #(
10358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10359 *) { eval $ac_var=; unset $ac_var;} ;;
10360 esac ;;
10361 esac
10362 done
10364 (set) 2>&1 |
10365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10366 *${as_nl}ac_space=\ *)
10367 # `set' does not quote correctly, so add quotes: double-quote
10368 # substitution turns \\\\ into \\, and sed turns \\ into \.
10369 sed -n \
10370 "s/'/'\\\\''/g;
10371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10372 ;; #(
10374 # `set' quotes correctly as required by POSIX, so do not add quotes.
10375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10377 esac |
10378 sort
10380 sed '
10381 /^ac_cv_env_/b end
10382 t clear
10383 :clear
10384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10385 t end
10386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10387 :end' >>confcache
10388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10389 if test -w "$cache_file"; then
10390 test "x$cache_file" != "x/dev/null" &&
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10392 $as_echo "$as_me: updating cache $cache_file" >&6;}
10393 cat confcache >$cache_file
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10396 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10399 rm -f confcache
10401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10402 # Let make expand exec_prefix.
10403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10405 DEFS=-DHAVE_CONFIG_H
10407 ac_libobjs=
10408 ac_ltlibobjs=
10409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10410 # 1. Remove the extension, and $U if already installed.
10411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10412 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10414 # will be set to the directory where LIBOBJS objects are built.
10415 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10416 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10417 done
10418 LIBOBJS=$ac_libobjs
10420 LTLIBOBJS=$ac_ltlibobjs
10424 : ${CONFIG_STATUS=./config.status}
10425 ac_write_fail=0
10426 ac_clean_files_save=$ac_clean_files
10427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10430 as_write_fail=0
10431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10432 #! $SHELL
10433 # Generated by $as_me.
10434 # Run this file to recreate the current configuration.
10435 # Compiler output produced by configure, useful for debugging
10436 # configure, is in config.log if it exists.
10438 debug=false
10439 ac_cs_recheck=false
10440 ac_cs_silent=false
10442 SHELL=\${CONFIG_SHELL-$SHELL}
10443 export SHELL
10444 _ASEOF
10445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10446 ## -------------------- ##
10447 ## M4sh Initialization. ##
10448 ## -------------------- ##
10450 # Be more Bourne compatible
10451 DUALCASE=1; export DUALCASE # for MKS sh
10452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10453 emulate sh
10454 NULLCMD=:
10455 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10456 # is contrary to our usage. Disable this feature.
10457 alias -g '${1+"$@"}'='"$@"'
10458 setopt NO_GLOB_SUBST
10459 else
10460 case `(set -o) 2>/dev/null` in #(
10461 *posix*) :
10462 set -o posix ;; #(
10463 *) :
10465 esac
10469 as_nl='
10471 export as_nl
10472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10473 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10476 # Prefer a ksh shell builtin over an external printf program on Solaris,
10477 # but without wasting forks for bash or zsh.
10478 if test -z "$BASH_VERSION$ZSH_VERSION" \
10479 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10480 as_echo='print -r --'
10481 as_echo_n='print -rn --'
10482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10483 as_echo='printf %s\n'
10484 as_echo_n='printf %s'
10485 else
10486 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10487 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10488 as_echo_n='/usr/ucb/echo -n'
10489 else
10490 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10491 as_echo_n_body='eval
10492 arg=$1;
10493 case $arg in #(
10494 *"$as_nl"*)
10495 expr "X$arg" : "X\\(.*\\)$as_nl";
10496 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10497 esac;
10498 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10500 export as_echo_n_body
10501 as_echo_n='sh -c $as_echo_n_body as_echo'
10503 export as_echo_body
10504 as_echo='sh -c $as_echo_body as_echo'
10507 # The user is always right.
10508 if test "${PATH_SEPARATOR+set}" != set; then
10509 PATH_SEPARATOR=:
10510 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10511 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10512 PATH_SEPARATOR=';'
10517 # IFS
10518 # We need space, tab and new line, in precisely that order. Quoting is
10519 # there to prevent editors from complaining about space-tab.
10520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10521 # splitting by setting IFS to empty value.)
10522 IFS=" "" $as_nl"
10524 # Find who we are. Look in the path if we contain no directory separator.
10525 case $0 in #((
10526 *[\\/]* ) as_myself=$0 ;;
10527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10533 done
10534 IFS=$as_save_IFS
10537 esac
10538 # We did not find ourselves, most probably we were run as `sh COMMAND'
10539 # in which case we are not to be found in the path.
10540 if test "x$as_myself" = x; then
10541 as_myself=$0
10543 if test ! -f "$as_myself"; then
10544 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10545 exit 1
10548 # Unset variables that we do not need and which cause bugs (e.g. in
10549 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10550 # suppresses any "Segmentation fault" message there. '((' could
10551 # trigger a bug in pdksh 5.2.14.
10552 for as_var in BASH_ENV ENV MAIL MAILPATH
10553 do eval test x\${$as_var+set} = xset \
10554 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10555 done
10556 PS1='$ '
10557 PS2='> '
10558 PS4='+ '
10560 # NLS nuisances.
10561 LC_ALL=C
10562 export LC_ALL
10563 LANGUAGE=C
10564 export LANGUAGE
10566 # CDPATH.
10567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10570 # as_fn_error ERROR [LINENO LOG_FD]
10571 # ---------------------------------
10572 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10573 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10574 # script with status $?, using 1 if that was 0.
10575 as_fn_error ()
10577 as_status=$?; test $as_status -eq 0 && as_status=1
10578 if test "$3"; then
10579 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10580 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10582 $as_echo "$as_me: error: $1" >&2
10583 as_fn_exit $as_status
10584 } # as_fn_error
10587 # as_fn_set_status STATUS
10588 # -----------------------
10589 # Set $? to STATUS, without forking.
10590 as_fn_set_status ()
10592 return $1
10593 } # as_fn_set_status
10595 # as_fn_exit STATUS
10596 # -----------------
10597 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10598 as_fn_exit ()
10600 set +e
10601 as_fn_set_status $1
10602 exit $1
10603 } # as_fn_exit
10605 # as_fn_unset VAR
10606 # ---------------
10607 # Portably unset VAR.
10608 as_fn_unset ()
10610 { eval $1=; unset $1;}
10612 as_unset=as_fn_unset
10613 # as_fn_append VAR VALUE
10614 # ----------------------
10615 # Append the text in VALUE to the end of the definition contained in VAR. Take
10616 # advantage of any shell optimizations that allow amortized linear growth over
10617 # repeated appends, instead of the typical quadratic growth present in naive
10618 # implementations.
10619 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10620 eval 'as_fn_append ()
10622 eval $1+=\$2
10624 else
10625 as_fn_append ()
10627 eval $1=\$$1\$2
10629 fi # as_fn_append
10631 # as_fn_arith ARG...
10632 # ------------------
10633 # Perform arithmetic evaluation on the ARGs, and store the result in the
10634 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10635 # must be portable across $(()) and expr.
10636 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10637 eval 'as_fn_arith ()
10639 as_val=$(( $* ))
10641 else
10642 as_fn_arith ()
10644 as_val=`expr "$@" || test $? -eq 1`
10646 fi # as_fn_arith
10649 if expr a : '\(a\)' >/dev/null 2>&1 &&
10650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10651 as_expr=expr
10652 else
10653 as_expr=false
10656 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10657 as_basename=basename
10658 else
10659 as_basename=false
10662 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10663 as_dirname=dirname
10664 else
10665 as_dirname=false
10668 as_me=`$as_basename -- "$0" ||
10669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10670 X"$0" : 'X\(//\)$' \| \
10671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10672 $as_echo X/"$0" |
10673 sed '/^.*\/\([^/][^/]*\)\/*$/{
10674 s//\1/
10677 /^X\/\(\/\/\)$/{
10678 s//\1/
10681 /^X\/\(\/\).*/{
10682 s//\1/
10685 s/.*/./; q'`
10687 # Avoid depending upon Character Ranges.
10688 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10689 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10690 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10691 as_cr_digits='0123456789'
10692 as_cr_alnum=$as_cr_Letters$as_cr_digits
10694 ECHO_C= ECHO_N= ECHO_T=
10695 case `echo -n x` in #(((((
10696 -n*)
10697 case `echo 'xy\c'` in
10698 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10699 xy) ECHO_C='\c';;
10700 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10701 ECHO_T=' ';;
10702 esac;;
10704 ECHO_N='-n';;
10705 esac
10707 rm -f conf$$ conf$$.exe conf$$.file
10708 if test -d conf$$.dir; then
10709 rm -f conf$$.dir/conf$$.file
10710 else
10711 rm -f conf$$.dir
10712 mkdir conf$$.dir 2>/dev/null
10714 if (echo >conf$$.file) 2>/dev/null; then
10715 if ln -s conf$$.file conf$$ 2>/dev/null; then
10716 as_ln_s='ln -s'
10717 # ... but there are two gotchas:
10718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10720 # In both cases, we have to default to `cp -p'.
10721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10722 as_ln_s='cp -p'
10723 elif ln conf$$.file conf$$ 2>/dev/null; then
10724 as_ln_s=ln
10725 else
10726 as_ln_s='cp -p'
10728 else
10729 as_ln_s='cp -p'
10731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10732 rmdir conf$$.dir 2>/dev/null
10735 # as_fn_mkdir_p
10736 # -------------
10737 # Create "$as_dir" as a directory, including parents if necessary.
10738 as_fn_mkdir_p ()
10741 case $as_dir in #(
10742 -*) as_dir=./$as_dir;;
10743 esac
10744 test -d "$as_dir" || eval $as_mkdir_p || {
10745 as_dirs=
10746 while :; do
10747 case $as_dir in #(
10748 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10749 *) as_qdir=$as_dir;;
10750 esac
10751 as_dirs="'$as_qdir' $as_dirs"
10752 as_dir=`$as_dirname -- "$as_dir" ||
10753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10754 X"$as_dir" : 'X\(//\)[^/]' \| \
10755 X"$as_dir" : 'X\(//\)$' \| \
10756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10757 $as_echo X"$as_dir" |
10758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10759 s//\1/
10762 /^X\(\/\/\)[^/].*/{
10763 s//\1/
10766 /^X\(\/\/\)$/{
10767 s//\1/
10770 /^X\(\/\).*/{
10771 s//\1/
10774 s/.*/./; q'`
10775 test -d "$as_dir" && break
10776 done
10777 test -z "$as_dirs" || eval "mkdir $as_dirs"
10778 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10781 } # as_fn_mkdir_p
10782 if mkdir -p . 2>/dev/null; then
10783 as_mkdir_p='mkdir -p "$as_dir"'
10784 else
10785 test -d ./-p && rmdir ./-p
10786 as_mkdir_p=false
10789 if test -x / >/dev/null 2>&1; then
10790 as_test_x='test -x'
10791 else
10792 if ls -dL / >/dev/null 2>&1; then
10793 as_ls_L_option=L
10794 else
10795 as_ls_L_option=
10797 as_test_x='
10798 eval sh -c '\''
10799 if test -d "$1"; then
10800 test -d "$1/.";
10801 else
10802 case $1 in #(
10803 -*)set "./$1";;
10804 esac;
10805 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10806 ???[sx]*):;;*)false;;esac;fi
10807 '\'' sh
10810 as_executable_p=$as_test_x
10812 # Sed expression to map a string onto a valid CPP name.
10813 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10815 # Sed expression to map a string onto a valid variable name.
10816 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10819 exec 6>&1
10820 ## ----------------------------------- ##
10821 ## Main body of $CONFIG_STATUS script. ##
10822 ## ----------------------------------- ##
10823 _ASEOF
10824 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10827 # Save the log message, to keep $0 and so on meaningful, and to
10828 # report actual input values of CONFIG_FILES etc. instead of their
10829 # values after options handling.
10830 ac_log="
10831 This file was extended by $as_me, which was
10832 generated by GNU Autoconf 2.64. Invocation command line was
10834 CONFIG_FILES = $CONFIG_FILES
10835 CONFIG_HEADERS = $CONFIG_HEADERS
10836 CONFIG_LINKS = $CONFIG_LINKS
10837 CONFIG_COMMANDS = $CONFIG_COMMANDS
10838 $ $0 $@
10840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10843 _ACEOF
10845 case $ac_config_files in *"
10846 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10847 esac
10849 case $ac_config_headers in *"
10850 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10851 esac
10854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10855 # Files that config.status was made for.
10856 config_files="$ac_config_files"
10857 config_headers="$ac_config_headers"
10858 config_commands="$ac_config_commands"
10860 _ACEOF
10862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10863 ac_cs_usage="\
10864 \`$as_me' instantiates files and other configuration actions
10865 from templates according to the current configuration. Unless the files
10866 and actions are specified as TAGs, all are instantiated by default.
10868 Usage: $0 [OPTION]... [TAG]...
10870 -h, --help print this help, then exit
10871 -V, --version print version number and configuration settings, then exit
10872 -q, --quiet, --silent
10873 do not print progress messages
10874 -d, --debug don't remove temporary files
10875 --recheck update $as_me by reconfiguring in the same conditions
10876 --file=FILE[:TEMPLATE]
10877 instantiate the configuration file FILE
10878 --header=FILE[:TEMPLATE]
10879 instantiate the configuration header FILE
10881 Configuration files:
10882 $config_files
10884 Configuration headers:
10885 $config_headers
10887 Configuration commands:
10888 $config_commands
10890 Report bugs to the package provider."
10892 _ACEOF
10893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10894 ac_cs_version="\\
10895 config.status
10896 configured by $0, generated by GNU Autoconf 2.64,
10897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10899 Copyright (C) 2009 Free Software Foundation, Inc.
10900 This config.status script is free software; the Free Software Foundation
10901 gives unlimited permission to copy, distribute and modify it."
10903 ac_pwd='$ac_pwd'
10904 srcdir='$srcdir'
10905 test -n "\$AWK" || AWK=awk
10906 _ACEOF
10908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10909 # The default lists apply if the user does not specify any file.
10910 ac_need_defaults=:
10911 while test $# != 0
10913 case $1 in
10914 --*=*)
10915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10917 ac_shift=:
10920 ac_option=$1
10921 ac_optarg=$2
10922 ac_shift=shift
10924 esac
10926 case $ac_option in
10927 # Handling of the options.
10928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10929 ac_cs_recheck=: ;;
10930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10931 $as_echo "$ac_cs_version"; exit ;;
10932 --debug | --debu | --deb | --de | --d | -d )
10933 debug=: ;;
10934 --file | --fil | --fi | --f )
10935 $ac_shift
10936 case $ac_optarg in
10937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10938 esac
10939 as_fn_append CONFIG_FILES " '$ac_optarg'"
10940 ac_need_defaults=false;;
10941 --header | --heade | --head | --hea )
10942 $ac_shift
10943 case $ac_optarg in
10944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10945 esac
10946 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10947 ac_need_defaults=false;;
10948 --he | --h)
10949 # Conflict between --help and --header
10950 as_fn_error "ambiguous option: \`$1'
10951 Try \`$0 --help' for more information.";;
10952 --help | --hel | -h )
10953 $as_echo "$ac_cs_usage"; exit ;;
10954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10956 ac_cs_silent=: ;;
10958 # This is an error.
10959 -*) as_fn_error "unrecognized option: \`$1'
10960 Try \`$0 --help' for more information." ;;
10962 *) as_fn_append ac_config_targets " $1"
10963 ac_need_defaults=false ;;
10965 esac
10966 shift
10967 done
10969 ac_configure_extra_args=
10971 if $ac_cs_silent; then
10972 exec 6>/dev/null
10973 ac_configure_extra_args="$ac_configure_extra_args --silent"
10976 _ACEOF
10977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10978 if \$ac_cs_recheck; then
10979 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10980 shift
10981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10982 CONFIG_SHELL='$SHELL'
10983 export CONFIG_SHELL
10984 exec "\$@"
10987 _ACEOF
10988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10989 exec 5>>config.log
10991 echo
10992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10993 ## Running $as_me. ##
10994 _ASBOX
10995 $as_echo "$ac_log"
10996 } >&5
10998 _ACEOF
10999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11001 # INIT-COMMANDS
11004 aros_host_exe_suffix=${aros_host_exe_suffix}
11005 aros_tools_dir=${aros_tools_dir}
11006 aros_target_cpu=${aros_target_cpu}
11007 aros_target_arch=${aros_target_arch}
11008 aros_target_suffix=${aros_target_suffix}
11009 aros_target_nm_ln=${aros_target_nm_ln}
11010 aros_target_as_ln=${aros_target_as_ln}
11011 aros_target_ar_ln=${aros_target_ar_ln}
11012 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11013 aros_target_objdump_ln=${aros_target_objdump_ln}
11014 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11015 aros_target_strip_ln=${aros_target_strip_ln}
11018 aros_scripts_dir=${aros_scripts_dir}
11020 aros_tools_dir=${aros_tools_dir}
11023 _ACEOF
11025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11027 # Handling of arguments.
11028 for ac_config_target in $ac_config_targets
11030 case $ac_config_target in
11031 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11032 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11033 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11034 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11036 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11037 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11038 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11039 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11040 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11041 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11042 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11043 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11044 "${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" ;;
11045 "${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" ;;
11046 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11047 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11048 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11050 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11051 esac
11052 done
11055 # If the user did not use the arguments to specify the items to instantiate,
11056 # then the envvar interface is used. Set only those that are not.
11057 # We use the long form for the default assignment because of an extremely
11058 # bizarre bug on SunOS 4.1.3.
11059 if $ac_need_defaults; then
11060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11065 # Have a temporary directory for convenience. Make it in the build tree
11066 # simply because there is no reason against having it here, and in addition,
11067 # creating and moving files from /tmp can sometimes cause problems.
11068 # Hook for its removal unless debugging.
11069 # Note that there is a small window in which the directory will not be cleaned:
11070 # after its creation but before its name has been assigned to `$tmp'.
11071 $debug ||
11073 tmp=
11074 trap 'exit_status=$?
11075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11077 trap 'as_fn_exit 1' 1 2 13 15
11079 # Create a (secure) tmp directory for tmp files.
11082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11083 test -n "$tmp" && test -d "$tmp"
11084 } ||
11086 tmp=./conf$$-$RANDOM
11087 (umask 077 && mkdir "$tmp")
11088 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11090 # Set up the scripts for CONFIG_FILES section.
11091 # No need to generate them if there are no CONFIG_FILES.
11092 # This happens for instance with `./config.status config.h'.
11093 if test -n "$CONFIG_FILES"; then
11096 ac_cr=`echo X | tr X '\015'`
11097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11098 # But we know of no other shell where ac_cr would be empty at this
11099 # point, so we can use a bashism as a fallback.
11100 if test "x$ac_cr" = x; then
11101 eval ac_cr=\$\'\\r\'
11103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11105 ac_cs_awk_cr='\r'
11106 else
11107 ac_cs_awk_cr=$ac_cr
11110 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11111 _ACEOF
11115 echo "cat >conf$$subs.awk <<_ACEOF" &&
11116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11117 echo "_ACEOF"
11118 } >conf$$subs.sh ||
11119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11121 ac_delim='%!_!# '
11122 for ac_last_try in false false false false false :; do
11123 . ./conf$$subs.sh ||
11124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11127 if test $ac_delim_n = $ac_delim_num; then
11128 break
11129 elif $ac_last_try; then
11130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11131 else
11132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11134 done
11135 rm -f conf$$subs.sh
11137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11139 _ACEOF
11140 sed -n '
11142 s/^/S["/; s/!.*/"]=/
11145 s/^[^!]*!//
11146 :repl
11147 t repl
11148 s/'"$ac_delim"'$//
11149 t delim
11152 s/\(.\{148\}\).*/\1/
11153 t more1
11154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11157 b repl
11158 :more1
11159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11162 s/.\{148\}//
11163 t nl
11164 :delim
11166 s/\(.\{148\}\).*/\1/
11167 t more2
11168 s/["\\]/\\&/g; s/^/"/; s/$/"/
11171 :more2
11172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11175 s/.\{148\}//
11176 t delim
11177 ' <conf$$subs.awk | sed '
11178 /^[^""]/{
11180 s/\n//
11182 ' >>$CONFIG_STATUS || ac_write_fail=1
11183 rm -f conf$$subs.awk
11184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11185 _ACAWK
11186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11187 for (key in S) S_is_set[key] = 1
11188 FS = "\a"
11192 line = $ 0
11193 nfields = split(line, field, "@")
11194 substed = 0
11195 len = length(field[1])
11196 for (i = 2; i < nfields; i++) {
11197 key = field[i]
11198 keylen = length(key)
11199 if (S_is_set[key]) {
11200 value = S[key]
11201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11202 len += length(value) + length(field[++i])
11203 substed = 1
11204 } else
11205 len += 1 + keylen
11208 print line
11211 _ACAWK
11212 _ACEOF
11213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11216 else
11218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11219 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11220 _ACEOF
11222 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11223 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11224 # trailing colons and then remove the whole line if VPATH becomes empty
11225 # (actually we leave an empty line to preserve line numbers).
11226 if test "x$srcdir" = x.; then
11227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11228 s/:*\$(srcdir):*/:/
11229 s/:*\${srcdir}:*/:/
11230 s/:*@srcdir@:*/:/
11231 s/^\([^=]*=[ ]*\):*/\1/
11232 s/:*$//
11233 s/^[^=]*=[ ]*$//
11237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11238 fi # test -n "$CONFIG_FILES"
11240 # Set up the scripts for CONFIG_HEADERS section.
11241 # No need to generate them if there are no CONFIG_HEADERS.
11242 # This happens for instance with `./config.status Makefile'.
11243 if test -n "$CONFIG_HEADERS"; then
11244 cat >"$tmp/defines.awk" <<\_ACAWK ||
11245 BEGIN {
11246 _ACEOF
11248 # Transform confdefs.h into an awk script `defines.awk', embedded as
11249 # here-document in config.status, that substitutes the proper values into
11250 # config.h.in to produce config.h.
11252 # Create a delimiter string that does not exist in confdefs.h, to ease
11253 # handling of long lines.
11254 ac_delim='%!_!# '
11255 for ac_last_try in false false :; do
11256 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11257 if test -z "$ac_t"; then
11258 break
11259 elif $ac_last_try; then
11260 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11261 else
11262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11264 done
11266 # For the awk script, D is an array of macro values keyed by name,
11267 # likewise P contains macro parameters if any. Preserve backslash
11268 # newline sequences.
11270 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11271 sed -n '
11272 s/.\{148\}/&'"$ac_delim"'/g
11273 t rset
11274 :rset
11275 s/^[ ]*#[ ]*define[ ][ ]*/ /
11276 t def
11278 :def
11279 s/\\$//
11280 t bsnl
11281 s/["\\]/\\&/g
11282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11283 D["\1"]=" \3"/p
11284 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11286 :bsnl
11287 s/["\\]/\\&/g
11288 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11289 D["\1"]=" \3\\\\\\n"\\/p
11290 t cont
11291 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11292 t cont
11294 :cont
11296 s/.\{148\}/&'"$ac_delim"'/g
11297 t clear
11298 :clear
11299 s/\\$//
11300 t bsnlc
11301 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11303 :bsnlc
11304 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11305 b cont
11306 ' <confdefs.h | sed '
11307 s/'"$ac_delim"'/"\\\
11308 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11311 for (key in D) D_is_set[key] = 1
11312 FS = "\a"
11314 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11315 line = \$ 0
11316 split(line, arg, " ")
11317 if (arg[1] == "#") {
11318 defundef = arg[2]
11319 mac1 = arg[3]
11320 } else {
11321 defundef = substr(arg[1], 2)
11322 mac1 = arg[2]
11324 split(mac1, mac2, "(") #)
11325 macro = mac2[1]
11326 prefix = substr(line, 1, index(line, defundef) - 1)
11327 if (D_is_set[macro]) {
11328 # Preserve the white space surrounding the "#".
11329 print prefix "define", macro P[macro] D[macro]
11330 next
11331 } else {
11332 # Replace #undef with comments. This is necessary, for example,
11333 # in the case of _POSIX_SOURCE, which is predefined and required
11334 # on some systems where configure will not decide to define it.
11335 if (defundef == "undef") {
11336 print "/*", prefix defundef, macro, "*/"
11337 next
11341 { print }
11342 _ACAWK
11343 _ACEOF
11344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11345 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11346 fi # test -n "$CONFIG_HEADERS"
11349 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11350 shift
11351 for ac_tag
11353 case $ac_tag in
11354 :[FHLC]) ac_mode=$ac_tag; continue;;
11355 esac
11356 case $ac_mode$ac_tag in
11357 :[FHL]*:*);;
11358 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11359 :[FH]-) ac_tag=-:-;;
11360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11361 esac
11362 ac_save_IFS=$IFS
11363 IFS=:
11364 set x $ac_tag
11365 IFS=$ac_save_IFS
11366 shift
11367 ac_file=$1
11368 shift
11370 case $ac_mode in
11371 :L) ac_source=$1;;
11372 :[FH])
11373 ac_file_inputs=
11374 for ac_f
11376 case $ac_f in
11377 -) ac_f="$tmp/stdin";;
11378 *) # Look for the file first in the build tree, then in the source tree
11379 # (if the path is not absolute). The absolute path cannot be DOS-style,
11380 # because $ac_f cannot contain `:'.
11381 test -f "$ac_f" ||
11382 case $ac_f in
11383 [\\/$]*) false;;
11384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11385 esac ||
11386 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11387 esac
11388 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11389 as_fn_append ac_file_inputs " '$ac_f'"
11390 done
11392 # Let's still pretend it is `configure' which instantiates (i.e., don't
11393 # use $as_me), people would be surprised to read:
11394 # /* config.h. Generated by config.status. */
11395 configure_input='Generated from '`
11396 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11397 `' by configure.'
11398 if test x"$ac_file" != x-; then
11399 configure_input="$ac_file. $configure_input"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11401 $as_echo "$as_me: creating $ac_file" >&6;}
11403 # Neutralize special characters interpreted by sed in replacement strings.
11404 case $configure_input in #(
11405 *\&* | *\|* | *\\* )
11406 ac_sed_conf_input=`$as_echo "$configure_input" |
11407 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11408 *) ac_sed_conf_input=$configure_input;;
11409 esac
11411 case $ac_tag in
11412 *:-:* | *:-) cat >"$tmp/stdin" \
11413 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11414 esac
11416 esac
11418 ac_dir=`$as_dirname -- "$ac_file" ||
11419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11420 X"$ac_file" : 'X\(//\)[^/]' \| \
11421 X"$ac_file" : 'X\(//\)$' \| \
11422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11423 $as_echo X"$ac_file" |
11424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11425 s//\1/
11428 /^X\(\/\/\)[^/].*/{
11429 s//\1/
11432 /^X\(\/\/\)$/{
11433 s//\1/
11436 /^X\(\/\).*/{
11437 s//\1/
11440 s/.*/./; q'`
11441 as_dir="$ac_dir"; as_fn_mkdir_p
11442 ac_builddir=.
11444 case "$ac_dir" in
11445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11448 # A ".." for each directory in $ac_dir_suffix.
11449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11450 case $ac_top_builddir_sub in
11451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11453 esac ;;
11454 esac
11455 ac_abs_top_builddir=$ac_pwd
11456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11457 # for backward compatibility:
11458 ac_top_builddir=$ac_top_build_prefix
11460 case $srcdir in
11461 .) # We are building in place.
11462 ac_srcdir=.
11463 ac_top_srcdir=$ac_top_builddir_sub
11464 ac_abs_top_srcdir=$ac_pwd ;;
11465 [\\/]* | ?:[\\/]* ) # Absolute name.
11466 ac_srcdir=$srcdir$ac_dir_suffix;
11467 ac_top_srcdir=$srcdir
11468 ac_abs_top_srcdir=$srcdir ;;
11469 *) # Relative name.
11470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11471 ac_top_srcdir=$ac_top_build_prefix$srcdir
11472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11473 esac
11474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11477 case $ac_mode in
11480 # CONFIG_FILE
11483 _ACEOF
11485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486 # If the template does not know about datarootdir, expand it.
11487 # FIXME: This hack should be removed a few years after 2.60.
11488 ac_datarootdir_hack=; ac_datarootdir_seen=
11489 ac_sed_dataroot='
11490 /datarootdir/ {
11494 /@datadir@/p
11495 /@docdir@/p
11496 /@infodir@/p
11497 /@localedir@/p
11498 /@mandir@/p'
11499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11500 *datarootdir*) ac_datarootdir_seen=yes;;
11501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11504 _ACEOF
11505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11506 ac_datarootdir_hack='
11507 s&@datadir@&$datadir&g
11508 s&@docdir@&$docdir&g
11509 s&@infodir@&$infodir&g
11510 s&@localedir@&$localedir&g
11511 s&@mandir@&$mandir&g
11512 s&\\\${datarootdir}&$datarootdir&g' ;;
11513 esac
11514 _ACEOF
11516 # Neutralize VPATH when `$srcdir' = `.'.
11517 # Shell code in configure.ac might set extrasub.
11518 # FIXME: do we really want to maintain this feature?
11519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11520 ac_sed_extra="$ac_vpsub
11521 $extrasub
11522 _ACEOF
11523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11526 s|@configure_input@|$ac_sed_conf_input|;t t
11527 s&@top_builddir@&$ac_top_builddir_sub&;t t
11528 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11529 s&@srcdir@&$ac_srcdir&;t t
11530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11531 s&@top_srcdir@&$ac_top_srcdir&;t t
11532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11533 s&@builddir@&$ac_builddir&;t t
11534 s&@abs_builddir@&$ac_abs_builddir&;t t
11535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11536 $ac_datarootdir_hack
11538 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11539 || as_fn_error "could not create $ac_file" "$LINENO" 5
11541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11542 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11545 which seems to be undefined. Please make sure it is defined." >&5
11546 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11547 which seems to be undefined. Please make sure it is defined." >&2;}
11549 rm -f "$tmp/stdin"
11550 case $ac_file in
11551 -) cat "$tmp/out" && rm -f "$tmp/out";;
11552 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11553 esac \
11554 || as_fn_error "could not create $ac_file" "$LINENO" 5
11558 # CONFIG_HEADER
11560 if test x"$ac_file" != x-; then
11562 $as_echo "/* $configure_input */" \
11563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11564 } >"$tmp/config.h" \
11565 || as_fn_error "could not create $ac_file" "$LINENO" 5
11566 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11568 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11569 else
11570 rm -f "$ac_file"
11571 mv "$tmp/config.h" "$ac_file" \
11572 || as_fn_error "could not create $ac_file" "$LINENO" 5
11574 else
11575 $as_echo "/* $configure_input */" \
11576 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11577 || as_fn_error "could not create -" "$LINENO" 5
11581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11582 $as_echo "$as_me: executing $ac_file commands" >&6;}
11584 esac
11587 case $ac_file$ac_mode in
11588 "compiler_executable":C)
11589 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11590 mkdir -p $prefix
11591 prefix="${prefix}/${aros_target_cpu}-aros"
11592 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11594 echo ${prefix}
11595 echo ${prefix2}
11596 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11598 ln -sf ${prefix2}-gcc ${prefix}-gcc
11599 ln -sf ${prefix2}-ld ${prefix}-ld
11601 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
11602 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
11603 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
11604 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
11605 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
11606 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
11607 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
11609 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
11610 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
11611 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
11612 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
11613 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
11614 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
11615 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
11617 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11618 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11620 esac
11621 done # for ac_tag
11624 as_fn_exit 0
11625 _ACEOF
11626 ac_clean_files=$ac_clean_files_save
11628 test $ac_write_fail = 0 ||
11629 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11632 # configure is writing to config.log, and then calls config.status.
11633 # config.status does its own redirection, appending to config.log.
11634 # Unfortunately, on DOS this fails, as config.log is still kept open
11635 # by configure, so config.status won't be able to write to it; its
11636 # output is simply discarded. So we exec the FD to /dev/null,
11637 # effectively closing config.log, so it can be properly (re)opened and
11638 # appended to by config.status. When coming back to configure, we
11639 # need to make the FD available again.
11640 if test "$no_create" != yes; then
11641 ac_cs_success=:
11642 ac_config_status_args=
11643 test "$silent" = yes &&
11644 ac_config_status_args="$ac_config_status_args --quiet"
11645 exec 5>/dev/null
11646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11647 exec 5>>config.log
11648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11649 # would make configure fail if this is the last instruction.
11650 $ac_cs_success || as_fn_exit $?
11652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11659 #XXX compatability...
11660 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11662 if test -n "$aros_shared_cflags" ; then
11663 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11664 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg