Support rastport clipping rectangle for layerless rastports
[tangerine.git] / configure
blobe445f9ec5d5f4f208e695e5e35a15d42df90a53a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="mmakefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MMAKE aros_host_ld aros_host_aclocal aros_host_autoconf aros_host_autoheader aros_host_automake aros_host_ar aros_host_ranlib aros_host_strip RM CP MV ECHO MKDIR TOUCH SORT UNIQ NOP CAT BISON FLEX PNGTOPNM PPMTOILBM SED CHMOD PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir FOR IF TEST CMP EGREP LIBOBJS DISTCC CCACHE aros_kernel_cc aros_target_as_ln aros_kernel_ld aros_target_ar_ln aros_target_nm_ln aros_target_objcopy_ln aros_target_objdump_ln aros_target_ranlib_ln aros_target_strip_ln aros_target_nostdinc_cflags aros_target_nostartup_ldflags aros_target_nix_ldflags aros_target_detach_ldflags aros_target_nostdlib_ldflags aros_arch aros_cpu aros_flavour aros_flavour_uc TOPDIR aros_cc_pre aros_host_arch aros_host_cpu aros_host_cc aros_host_make aros_host_cflags aros_host_ldflags aros_host_debug aros_host_mkdep aros_host_mkargs aros_host_exe_suffix aros_host_lib_suffix aros_tools_dir aros_target_arch aros_target_cpu aros_target_variant aros_target_suffix aros_target_incl aros_target_ar aros_target_ranlib aros_kernel_nm aros_target_cc aros_target_as aros_target_ld aros_target_cc_includes aros_target_cc_path aros_target_objdump aros_target_objcopy aros_target_strip aros_target_nm aros_shared_default aros_shared_ld aros_object_format aros_compiler_libs aros_config_cflags aros_config_aflags aros_config_ldflags aros_shared_cflags aros_shared_aflags aros_shared_ldflags aros_kernel_ldflags aros_debug_cflags aros_debug_aflags aros_debug_ldflags aros_target_genmap aros_target_strip_flags aros_gui_libdir aros_gui_ldflags aros_gui_libflags aros_gui_incdir aros_gui_ccflags aros_default_wbwidth aros_default_wbheight aros_default_wbdepth DO_XSHM_SUPPORT DO_VIDMODE_SUPPORT aros_bochs_hack aros_serial_debug aros_palm_debug_hack aros_nesting_supervisor ENABLE_DBUS DBUS_CFLAGS DBUS_LIBFLAGS KERNEL_DBUS_KOBJ KERNEL_DBUS_INCLUDES aros_debug aros_mungwall_debug aros_stack_debug aros_modules_debug ignore_undefined_symbols gcc_target_cpu LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-build-type=TYPE
852 Select the build type. Available types are:
853 personal, nightly, snapshot, milestone, release. Do
854 NOT use this option unless you know what you are
855 doing! (default=personal)
856 --enable-debug=list Enable different types of debug. Commas or
857 whitespaces can be used to separate the items in the
858 list. Available types of debug are: all, none,
859 messages, stack, mungwall, modules, symbols. If no
860 list is provided then "all" is assumed.
861 (default=none)
862 --enable-distcc Use distcc as a front end to the compiler
863 (default=no).
864 --enable-ccache Use ccache as a front end to the compiler
865 (default=no).
866 --enable-target-variant=NAME
867 Enable a specific target variant(default=none)
868 --enable-includes=dir Alternative system include directory
869 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
870 (default=no)
871 --enable-palm-debug-hack
872 Enable palm debug output hack in palm native
873 (default=no)
874 --enable-nesting-supervisor
875 Enable nesting supervisor support in unix
876 (default=no)
877 --enable-xshm-extension Enable X11 MIT-SHM extension (default=yes)
878 --enable-vidmode-extension
879 Enable X11 vidmode extension (default=yes)
880 --enable-dbus Enable DBUS support via dbus.library (default=no)
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-x use the X Window System
886 --with-optimization=FLAGS
887 Use optimization flags FLAGS (default=-O2).
888 --with-resolution=XRESxYRESxDEPTH
889 Default resolution of the initial WorkbenchScreen
890 --with-serial-debug Enable serial debug output in native (default=no)
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CPP C preprocessor
901 Use these variables to override the choices made by `configure' or to help
902 it to find libraries and programs with nonstandard names/locations.
904 _ACEOF
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 cd $ac_popdir
993 done
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
1000 Copyright (C) 2003 Free Software Foundation, Inc.
1001 This configure script is free software; the Free Software Foundation
1002 gives unlimited permission to copy, distribute and modify it.
1003 _ACEOF
1004 exit 0
1006 exec 5>config.log
1007 cat >&5 <<_ACEOF
1008 This file contains any messages produced by compilers while
1009 running configure, to aid debugging if configure makes a mistake.
1011 It was created by $as_me, which was
1012 generated by GNU Autoconf 2.59. Invocation command line was
1014 $ $0 $@
1016 _ACEOF
1018 cat <<_ASUNAME
1019 ## --------- ##
1020 ## Platform. ##
1021 ## --------- ##
1023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040 _ASUNAME
1042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 for as_dir in $PATH
1045 IFS=$as_save_IFS
1046 test -z "$as_dir" && as_dir=.
1047 echo "PATH: $as_dir"
1048 done
1050 } >&5
1052 cat >&5 <<_ACEOF
1055 ## ----------- ##
1056 ## Core tests. ##
1057 ## ----------- ##
1059 _ACEOF
1062 # Keep a trace of the command line.
1063 # Strip out --no-create and --no-recursion so they do not pile up.
1064 # Strip out --silent because we don't want to record it for future runs.
1065 # Also quote any args containing shell meta-characters.
1066 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_configure_args=
1068 ac_configure_args0=
1069 ac_configure_args1=
1070 ac_sep=
1071 ac_must_keep_next=false
1072 for ac_pass in 1 2
1074 for ac_arg
1076 case $ac_arg in
1077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 continue ;;
1081 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083 esac
1084 case $ac_pass in
1085 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088 if test $ac_must_keep_next = true; then
1089 ac_must_keep_next=false # Got value, back to normal.
1090 else
1091 case $ac_arg in
1092 *=* | --config-cache | -C | -disable-* | --disable-* \
1093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095 | -with-* | --with-* | -without-* | --without-* | --x)
1096 case "$ac_configure_args0 " in
1097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098 esac
1100 -* ) ac_must_keep_next=true ;;
1101 esac
1103 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104 # Get rid of the leading space.
1105 ac_sep=" "
1107 esac
1108 done
1109 done
1110 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113 # When interrupted or exit'd, cleanup temporary files, and complete
1114 # config.log. We remove comments because anyway the quotes in there
1115 # would cause problems or look ugly.
1116 # WARNING: Be sure not to use single quotes in there, as some shells,
1117 # such as our DU 5.0 friend, will then `close' the trap.
1118 trap 'exit_status=$?
1119 # Save into config.log some information that might help in debugging.
1121 echo
1123 cat <<\_ASBOX
1124 ## ---------------- ##
1125 ## Cache variables. ##
1126 ## ---------------- ##
1127 _ASBOX
1128 echo
1129 # The following way of writing the cache mishandles newlines in values,
1131 (set) 2>&1 |
1132 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133 *ac_space=\ *)
1134 sed -n \
1135 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 sed -n \
1140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 esac;
1144 echo
1146 cat <<\_ASBOX
1147 ## ----------------- ##
1148 ## Output variables. ##
1149 ## ----------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_vars
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1159 if test -n "$ac_subst_files"; then
1160 cat <<\_ASBOX
1161 ## ------------- ##
1162 ## Output files. ##
1163 ## ------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_files
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1174 if test -s confdefs.h; then
1175 cat <<\_ASBOX
1176 ## ----------- ##
1177 ## confdefs.h. ##
1178 ## ----------- ##
1179 _ASBOX
1180 echo
1181 sed "/^$/d" confdefs.h | sort
1182 echo
1184 test "$ac_signal" != 0 &&
1185 echo "$as_me: caught signal $ac_signal"
1186 echo "$as_me: exit $exit_status"
1187 } >&5
1188 rm -f core *.core &&
1189 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190 exit $exit_status
1192 for ac_signal in 1 2 13 15; do
1193 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 done
1195 ac_signal=0
1197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1198 rm -rf conftest* confdefs.h
1199 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200 echo >confdefs.h
1202 # Predefined preprocessor variables.
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 _ACEOF
1229 # Let the site file select an alternate cache file if it wants to.
1230 # Prefer explicitly selected file to automatically selected ones.
1231 if test -z "$CONFIG_SITE"; then
1232 if test "x$prefix" != xNONE; then
1233 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 else
1235 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 for ac_site_file in $CONFIG_SITE; do
1239 if test -r "$ac_site_file"; then
1240 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241 echo "$as_me: loading site script $ac_site_file" >&6;}
1242 sed 's/^/| /' "$ac_site_file" >&5
1243 . "$ac_site_file"
1245 done
1247 if test -r "$cache_file"; then
1248 # Some versions of bash will fail to source /dev/null (special
1249 # files actually), so we avoid doing that.
1250 if test -f "$cache_file"; then
1251 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252 echo "$as_me: loading cache $cache_file" >&6;}
1253 case $cache_file in
1254 [\\/]* | ?:[\\/]* ) . $cache_file;;
1255 *) . ./$cache_file;;
1256 esac
1258 else
1259 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260 echo "$as_me: creating cache $cache_file" >&6;}
1261 >$cache_file
1264 # Check that the precious variables saved in the cache have kept the same
1265 # value.
1266 ac_cache_corrupted=false
1267 for ac_var in `(set) 2>&1 |
1268 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270 eval ac_new_set=\$ac_env_${ac_var}_set
1271 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272 eval ac_new_val="\$ac_env_${ac_var}_value"
1273 case $ac_old_set,$ac_new_set in
1274 set,)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,set)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,);;
1284 if test "x$ac_old_val" != "x$ac_new_val"; then
1285 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1288 echo "$as_me: former value: $ac_old_val" >&2;}
1289 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1290 echo "$as_me: current value: $ac_new_val" >&2;}
1291 ac_cache_corrupted=:
1292 fi;;
1293 esac
1294 # Pass precious variables to config.status.
1295 if test "$ac_new_set" = set; then
1296 case $ac_new_val in
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 *) ac_arg=$ac_var=$ac_new_val ;;
1300 esac
1301 case " $ac_configure_args " in
1302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1303 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 esac
1306 done
1307 if $ac_cache_corrupted; then
1308 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312 { (exit 1); exit 1; }; }
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_aux_dir=
1341 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366 # Check what host we are running on.
1367 # If a target is not suggested, we use this one.
1368 # Note that what we call a target, Autoconf calls a host.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1395 build=$ac_cv_build
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking host system type" >&5
1402 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1403 if test "${ac_cv_host+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_host_alias=$host_alias
1407 test -z "$ac_cv_host_alias" &&
1408 ac_cv_host_alias=$ac_cv_build_alias
1409 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1416 echo "${ECHO_T}$ac_cv_host" >&6
1417 host=$ac_cv_host
1418 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The AROS target is slightly different to the normal GNU style
1425 # format. We don't have the middle part, and we reverse the order
1426 # of the $(CPU) and $(OS) bits.
1428 # Don't strip the version of the target yet, it might be
1429 # useful on some systems.
1431 echo "$as_me:$LINENO: checking for AROS style target" >&5
1432 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1434 if test "$target" = "NONE" ; then
1435 target=$host_os-$host_cpu
1436 cross_compile=no
1437 else
1438 if test "$target" = "" ; then
1439 target=$host_os-$host_cpu
1440 cross_compile=no
1441 else
1442 cross_compile=yes
1445 echo "$as_me:$LINENO: result: $target" >&5
1446 echo "${ECHO_T}$target" >&6
1448 #don't know where else to put this...
1449 TOPDIR=$PWD
1451 # Parse the target field into something useful.
1453 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1454 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1457 aros_default_wbwidth=800
1458 aros_default_wbheight=600
1459 aros_default_wbdepth=4
1462 # The first step is to find the host binaries.
1463 # Check for a compiler.
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 break 2
1491 done
1492 done
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1507 ac_ct_CC=$CC
1508 # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1529 done
1530 done
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1543 CC=$ac_ct_CC
1544 else
1545 CC="$ac_cv_prog_CC"
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="${ac_tool_prefix}cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1571 done
1572 done
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1586 if test -z "$ac_cv_prog_CC"; then
1587 ac_ct_CC=$CC
1588 # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 CC=$ac_ct_CC
1624 else
1625 CC="$ac_cv_prog_CC"
1629 if test -z "$CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640 ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649 ac_prog_rejected=yes
1650 continue
1652 ac_cv_prog_CC="cc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1659 if test $ac_prog_rejected = yes; then
1660 # We found a bogon in the path, so make sure we never use it.
1661 set dummy $ac_cv_prog_CC
1662 shift
1663 if test $# != 0; then
1664 # We chose a different compiler from the bogus one.
1665 # However, it has the same basename, so the bogon will be chosen
1666 # first if we set CC to just the basename; use the full file name.
1667 shift
1668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 for ac_prog in cl
1687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1708 done
1709 done
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1722 test -n "$CC" && break
1723 done
1725 if test -z "$CC"; then
1726 ac_ct_CC=$CC
1727 for ac_prog in cl
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1750 done
1751 done
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$ac_ct_CC" && break
1765 done
1767 CC=$ac_ct_CC
1773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1774 See \`config.log' for more details." >&5
1775 echo "$as_me: error: no acceptable C compiler found in \$PATH
1776 See \`config.log' for more details." >&2;}
1777 { (exit 1); exit 1; }; }
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781 "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1799 cat >conftest.$ac_ext <<_ACEOF
1800 /* confdefs.h. */
1801 _ACEOF
1802 cat confdefs.h >>conftest.$ac_ext
1803 cat >>conftest.$ac_ext <<_ACEOF
1804 /* end confdefs.h. */
1807 main ()
1811 return 0;
1813 _ACEOF
1814 ac_clean_files_save=$ac_clean_files
1815 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1816 # Try to create an executable without -o first, disregard a.out.
1817 # It will help us diagnose broken compilers, and finding out an intuition
1818 # of exeext.
1819 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1820 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1821 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1823 (eval $ac_link_default) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # Find the output, starting from the most likely. This scheme is
1828 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1829 # resort.
1831 # Be careful to initialize this variable, since it used to be cached.
1832 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1833 ac_cv_exeext=
1834 # b.out is created by i960 compilers.
1835 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837 test -f "$ac_file" || continue
1838 case $ac_file in
1839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841 conftest.$ac_ext )
1842 # This is the source file.
1844 [ab].out )
1845 # We found the default executable, but exeext='' is most
1846 # certainly right.
1847 break;;
1848 *.* )
1849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850 # FIXME: I believe we export ac_cv_exeext for Libtool,
1851 # but it would be cool to find out if it's true. Does anybody
1852 # maintain Libtool? --akim.
1853 export ac_cv_exeext
1854 break;;
1856 break;;
1857 esac
1858 done
1859 else
1860 echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&2;}
1867 { (exit 77); exit 77; }; }
1870 ac_exeext=$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_file" >&5
1872 echo "${ECHO_T}$ac_file" >&6
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879 # If not cross compiling, check that we can run a simple program.
1880 if test "$cross_compiling" != yes; then
1881 if { ac_try='./$ac_file'
1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883 (eval $ac_try) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1887 cross_compiling=no
1888 else
1889 if test "$cross_compiling" = maybe; then
1890 cross_compiling=yes
1891 else
1892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'.
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot run C compiled programs.
1896 If you meant to cross compile, use \`--host'.
1897 See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
1902 echo "$as_me:$LINENO: result: yes" >&5
1903 echo "${ECHO_T}yes" >&6
1905 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1906 ac_clean_files=$ac_clean_files_save
1907 # Check the compiler produces executables we can run. If not, either
1908 # the compiler is broken, or we cross compile.
1909 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1910 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1911 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1912 echo "${ECHO_T}$cross_compiling" >&6
1914 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1915 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1917 (eval $ac_link) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }; then
1921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1922 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1923 # work properly (i.e., refer to `conftest.exe'), while it won't with
1924 # `rm'.
1925 for ac_file in conftest.exe conftest conftest.*; do
1926 test -f "$ac_file" || continue
1927 case $ac_file in
1928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 export ac_cv_exeext
1931 break;;
1932 * ) break;;
1933 esac
1934 done
1935 else
1936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1943 rm -f conftest$ac_cv_exeext
1944 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1945 echo "${ECHO_T}$ac_cv_exeext" >&6
1947 rm -f conftest.$ac_ext
1948 EXEEXT=$ac_cv_exeext
1949 ac_exeext=$EXEEXT
1950 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1952 if test "${ac_cv_objext+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 cat >conftest.$ac_ext <<_ACEOF
1956 /* confdefs.h. */
1957 _ACEOF
1958 cat confdefs.h >>conftest.$ac_ext
1959 cat >>conftest.$ac_ext <<_ACEOF
1960 /* end confdefs.h. */
1963 main ()
1967 return 0;
1969 _ACEOF
1970 rm -f conftest.o conftest.obj
1971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972 (eval $ac_compile) 2>&5
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1980 break;;
1981 esac
1982 done
1983 else
1984 echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1997 echo "${ECHO_T}$ac_cv_objext" >&6
1998 OBJEXT=$ac_cv_objext
1999 ac_objext=$OBJEXT
2000 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2001 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2002 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 cat >conftest.$ac_ext <<_ACEOF
2006 /* confdefs.h. */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2013 main ()
2015 #ifndef __GNUC__
2016 choke me
2017 #endif
2020 return 0;
2022 _ACEOF
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_compiler_gnu=yes
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_compiler_gnu=no
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2058 GCC=`test $ac_compiler_gnu = yes && echo yes`
2059 ac_test_CFLAGS=${CFLAGS+set}
2060 ac_save_CFLAGS=$CFLAGS
2061 CFLAGS="-g"
2062 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2064 if test "${ac_cv_prog_cc_g+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 cat >conftest.$ac_ext <<_ACEOF
2068 /* confdefs.h. */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2075 main ()
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_cv_prog_cc_g=yes
2105 else
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 ac_cv_prog_cc_g=no
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2115 if test "$ac_test_CFLAGS" = set; then
2116 CFLAGS=$ac_save_CFLAGS
2117 elif test $ac_cv_prog_cc_g = yes; then
2118 if test "$GCC" = yes; then
2119 CFLAGS="-g -O2"
2120 else
2121 CFLAGS="-g"
2123 else
2124 if test "$GCC" = yes; then
2125 CFLAGS="-O2"
2126 else
2127 CFLAGS=
2130 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2131 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 ac_cv_prog_cc_stdc=no
2136 ac_save_CC=$CC
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 #include <stdarg.h>
2144 #include <stdio.h>
2145 #include <sys/types.h>
2146 #include <sys/stat.h>
2147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2148 struct buf { int x; };
2149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151 char **p;
2152 int i;
2154 return p[i];
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2158 char *s;
2159 va_list v;
2160 va_start (v,p);
2161 s = g (p, va_arg (v,int));
2162 va_end (v);
2163 return s;
2166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2167 function prototypes and stuff, but not '\xHH' hex character constants.
2168 These don't provoke an error unfortunately, instead are silently treated
2169 as 'x'. The following induces an error, until -std1 is added to get
2170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2171 array size at least. It's necessary to write '\x00'==0 to get something
2172 that's true only with -std1. */
2173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2175 int test (int i, double x);
2176 struct s1 {int (*f) (int a);};
2177 struct s2 {int (*f) (double a);};
2178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2179 int argc;
2180 char **argv;
2182 main ()
2184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186 return 0;
2188 _ACEOF
2189 # Don't try gcc -ansi; that turns off useful extensions and
2190 # breaks some systems' header files.
2191 # AIX -qlanglvl=ansi
2192 # Ultrix and OSF/1 -std1
2193 # HP-UX 10.20 and later -Ae
2194 # HP-UX older versions -Aa -D_HPUX_SOURCE
2195 # SVR4 -Xc -D__EXTENSIONS__
2196 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198 CC="$ac_save_CC $ac_arg"
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2202 ac_status=$?
2203 grep -v '^ *+' conftest.er1 >conftest.err
2204 rm -f conftest.er1
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg
2222 break
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext
2229 done
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2231 CC=$ac_save_CC
2235 case "x$ac_cv_prog_cc_stdc" in
2236 x|xno)
2237 echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;;
2243 esac
2245 # Some people use a C++ compiler to compile C. Since we use `exit',
2246 # in C++ we need to declare it. In case someone uses the same compiler
2247 # for both compiling C and C++ we need to have the C++ compiler decide
2248 # the declaration of exit, since it's the most demanding environment.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #ifndef __cplusplus
2251 choke me
2252 #endif
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 for ac_declaration in \
2277 '' \
2278 'extern "C" void std::exit (int) throw (); using std::exit;' \
2279 'extern "C" void std::exit (int); using std::exit;' \
2280 'extern "C" void exit (int) throw ();' \
2281 'extern "C" void exit (int);' \
2282 'void exit (int);'
2284 cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h. */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2290 $ac_declaration
2291 #include <stdlib.h>
2293 main ()
2295 exit (42);
2297 return 0;
2299 _ACEOF
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>conftest.er1
2303 ac_status=$?
2304 grep -v '^ *+' conftest.er1 >conftest.err
2305 rm -f conftest.er1
2306 cat conftest.err >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); } &&
2309 { ac_try='test -z "$ac_c_werror_flag"
2310 || test ! -s conftest.err'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; } &&
2316 { ac_try='test -s conftest.$ac_objext'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 continue
2329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h. */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2336 $ac_declaration
2338 main ()
2340 exit (42);
2342 return 0;
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 break
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 done
2375 rm -f conftest*
2376 if test -n "$ac_declaration"; then
2377 echo '#ifdef __cplusplus' >>confdefs.h
2378 echo $ac_declaration >>confdefs.h
2379 echo '#endif' >>confdefs.h
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2401 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2402 # On Suns, sometimes $CPP names a directory.
2403 if test -n "$CPP" && test -d "$CPP"; then
2404 CPP=
2406 if test -z "$CPP"; then
2407 if test "${ac_cv_prog_CPP+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 # Double quotes because CPP needs to be expanded
2411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2413 ac_preproc_ok=false
2414 for ac_c_preproc_warn_flag in '' yes
2416 # Use a header file that comes with gcc, so configuring glibc
2417 # with a fresh cross-compiler works.
2418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419 # <limits.h> exists even on freestanding compilers.
2420 # On the NeXT, cc -E runs the code through the compiler's parser,
2421 # not just through cpp. "Syntax error" is here to catch this case.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #ifdef __STDC__
2429 # include <limits.h>
2430 #else
2431 # include <assert.h>
2432 #endif
2433 Syntax error
2434 _ACEOF
2435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2446 else
2447 ac_cpp_err=
2449 else
2450 ac_cpp_err=yes
2452 if test -z "$ac_cpp_err"; then
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2458 # Broken: fails on valid input.
2459 continue
2461 rm -f conftest.err conftest.$ac_ext
2463 # OK, works on sane cases. Now check whether non-existent headers
2464 # can be detected and how.
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 #include <ac_nonexistent.h>
2472 _ACEOF
2473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } >/dev/null; then
2481 if test -s conftest.err; then
2482 ac_cpp_err=$ac_c_preproc_warn_flag
2483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2484 else
2485 ac_cpp_err=
2487 else
2488 ac_cpp_err=yes
2490 if test -z "$ac_cpp_err"; then
2491 # Broken: success on invalid input.
2492 continue
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 # Passes both tests.
2498 ac_preproc_ok=:
2499 break
2501 rm -f conftest.err conftest.$ac_ext
2503 done
2504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2505 rm -f conftest.err conftest.$ac_ext
2506 if $ac_preproc_ok; then
2507 break
2510 done
2511 ac_cv_prog_CPP=$CPP
2514 CPP=$ac_cv_prog_CPP
2515 else
2516 ac_cv_prog_CPP=$CPP
2518 echo "$as_me:$LINENO: result: $CPP" >&5
2519 echo "${ECHO_T}$CPP" >&6
2520 ac_preproc_ok=false
2521 for ac_c_preproc_warn_flag in '' yes
2523 # Use a header file that comes with gcc, so configuring glibc
2524 # with a fresh cross-compiler works.
2525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2526 # <limits.h> exists even on freestanding compilers.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #ifdef __STDC__
2536 # include <limits.h>
2537 #else
2538 # include <assert.h>
2539 #endif
2540 Syntax error
2541 _ACEOF
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2553 else
2554 ac_cpp_err=
2556 else
2557 ac_cpp_err=yes
2559 if test -z "$ac_cpp_err"; then
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Broken: fails on valid input.
2566 continue
2568 rm -f conftest.err conftest.$ac_ext
2570 # OK, works on sane cases. Now check whether non-existent headers
2571 # can be detected and how.
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 #include <ac_nonexistent.h>
2579 _ACEOF
2580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } >/dev/null; then
2588 if test -s conftest.err; then
2589 ac_cpp_err=$ac_c_preproc_warn_flag
2590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2591 else
2592 ac_cpp_err=
2594 else
2595 ac_cpp_err=yes
2597 if test -z "$ac_cpp_err"; then
2598 # Broken: success on invalid input.
2599 continue
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 # Passes both tests.
2605 ac_preproc_ok=:
2606 break
2608 rm -f conftest.err conftest.$ac_ext
2610 done
2611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612 rm -f conftest.err conftest.$ac_ext
2613 if $ac_preproc_ok; then
2615 else
2616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 # Check for a compatible awk
2631 for ac_prog in gawk nawk
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_AWK+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$AWK"; then
2641 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_AWK="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2659 AWK=$ac_cv_prog_AWK
2660 if test -n "$AWK"; then
2661 echo "$as_me:$LINENO: result: $AWK" >&5
2662 echo "${ECHO_T}$AWK" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2668 test -n "$AWK" && break
2669 done
2671 if test "$AWK" = ""; then
2672 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2673 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2674 { (exit 1); exit 1; }; }
2676 # Extract the first word of "mmake", so it can be a program name with args.
2677 set dummy mmake; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_MMAKE+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$MMAKE"; then
2684 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_MMAKE="mmake "
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2702 MMAKE=$ac_cv_prog_MMAKE
2703 if test -n "$MMAKE"; then
2704 echo "$as_me:$LINENO: result: $MMAKE" >&5
2705 echo "${ECHO_T}$MMAKE" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2712 # Perform some default variable assignments. Note all of these will be
2713 # Regenerated from the script, so there is no need to cache them.
2715 aros_host_cc="$CC"
2716 if test "$GCC" = "yes"; then
2717 aros_gcc_ld=`$CC -print-prog-name=ld`
2718 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2719 set dummy `basename $aros_gcc_ld`; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 case $aros_host_ld in
2726 [\\/]* | ?:[\\/]*)
2727 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in `dirname $aros_gcc_ld`
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2745 esac
2747 aros_host_ld=$ac_cv_path_aros_host_ld
2749 if test -n "$aros_host_ld"; then
2750 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2751 echo "${ECHO_T}$aros_host_ld" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2758 if test "$aros_host_ld" = ""; then
2759 # Extract the first word of "ld", so it can be a program name with args.
2760 set dummy ld; ac_word=$2
2761 echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 case $aros_host_ld in
2767 [\\/]* | ?:[\\/]*)
2768 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2786 esac
2788 aros_host_ld=$ac_cv_path_aros_host_ld
2790 if test -n "$aros_host_ld"; then
2791 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2792 echo "${ECHO_T}$aros_host_ld" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2799 if test "$aros_host_ld" = ""; then
2800 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2801 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2802 { (exit 1); exit 1; }; }
2804 aros_host_make="make"
2805 aros_host_cflags=$CFLAGS
2806 aros_host_ldflags=$LDFLAGS
2807 aros_host_debug="-g -O0"
2808 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2809 aros_host_mkargs="--no-print-directory"
2810 aros_host_incl="/usr/include"
2811 aros_host_exe_suffix="$EXEEXT"
2812 aros_host_lib_suffix=""
2814 for ac_prog in aclocal aclocal19
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$aros_host_aclocal"; then
2824 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_aros_host_aclocal="$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2842 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
2843 if test -n "$aros_host_aclocal"; then
2844 echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
2845 echo "${ECHO_T}$aros_host_aclocal" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2851 test -n "$aros_host_aclocal" && break
2852 done
2854 for ac_prog in autoconf autoconf259 autoconf253
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if test -n "$aros_host_autoconf"; then
2864 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_aros_host_autoconf="$ac_prog"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2882 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
2883 if test -n "$aros_host_autoconf"; then
2884 echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
2885 echo "${ECHO_T}$aros_host_autoconf" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2891 test -n "$aros_host_autoconf" && break
2892 done
2894 for ac_prog in autoheader autoheader259 autoheader253
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test -n "$aros_host_autoheader"; then
2904 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_aros_host_autoheader="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2922 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
2923 if test -n "$aros_host_autoheader"; then
2924 echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
2925 echo "${ECHO_T}$aros_host_autoheader" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$aros_host_autoheader" && break
2932 done
2934 for ac_prog in automake automake19
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$aros_host_automake"; then
2944 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_aros_host_automake="$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2962 aros_host_automake=$ac_cv_prog_aros_host_automake
2963 if test -n "$aros_host_automake"; then
2964 echo "$as_me:$LINENO: result: $aros_host_automake" >&5
2965 echo "${ECHO_T}$aros_host_automake" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$aros_host_automake" && break
2972 done
2975 case "$aros_host_cc" in
2976 *gcc*)
2977 aros_host_cc_pipe="-pipe"
2979 icc)
2980 aros_host_cc_pipe=""
2983 aros_host_cc_pipe=""
2985 esac
2987 aros_target_cc_includes=""
2989 # This is the main host configuration section. It is where the host
2990 # can change the values of any variables it needs to change. We do
2991 # not look at anything that compiles to the target yet, we'll get
2992 # to that later.
2994 case "$host_os" in
2995 linux*)
2996 aros_host_arch="linux"
2997 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2998 case "$host_cpu" in
2999 *i?86*)
3000 aros_host_cpu="i386"
3002 *x86_64*)
3003 aros_host_cpu="x86_64"
3005 *m68k*)
3006 aros_host_cpu="m68k"
3008 *powerpc*)
3009 aros_host_cpu="ppc"
3012 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3013 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3014 aros_host_cpu="$host_cpu"
3016 esac
3019 freebsd*)
3020 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3021 aros_host_make="gmake"
3022 aros_host_arch="freebsd"
3023 aros_host_cpu="i386"
3025 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3028 case $host_os in
3029 freebsd[234]*)
3030 aros_object_format="elf_i386"
3034 aros_object_format="elf_i386_fbsd"
3036 esac
3040 darwin*)
3041 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3042 aros_host_arch="darwin"
3043 case "$host_cpu" in
3044 *i?86*)
3045 aros_host_cpu="i386"
3047 *powerpc*)
3048 aros_host_cpu="ppc"
3051 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3052 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3053 aros_host_cpu="$host_cpu"
3055 esac
3057 aros_host_ldflags="$aros_host_ldflags -liconv"
3061 netbsd*)
3062 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3063 aros_host_make="gmake"
3064 aros_host_arch="netbsd"
3065 case "$host_cpu" in
3066 *i?86*)
3067 aros_host_cpu="i386"
3069 *m68k*)
3070 aros_host_cpu="m68k"
3073 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3074 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3075 aros_host_cpu="$host_cpu"
3077 esac
3078 aros_host_lib_suffix=".0.0"
3081 openbsd*)
3082 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3083 aros_host_make="gmake"
3084 aros_host_arch="openbsd"
3085 case "$host_cpu" in
3086 *i?86*)
3087 aros_host_cpu="i386"
3090 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3091 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3092 aros_host_cpu="$host_cpu"
3094 esac
3097 solaris*)
3098 aros_host_arch="solaris"
3099 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3100 case "$host_cpu" in
3101 *sparc*)
3102 aros_host_cpu="sparc"
3105 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3106 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3107 aros_host_cpu="$host_cpu"
3109 esac
3112 morphos*)
3113 aros_host_arch="morphos"
3114 aros_host_cpu="ppc"
3117 amiga*)
3118 aros_host_arch="amiga"
3119 SORT="/gg/bin/sort"
3120 TEST="/gg/bin/test"
3121 UNIQ="/gg/bin/uniq"
3122 FOR="for"
3123 TOUCH="/gg/bin/touch"
3124 case "$host_cpu" in
3125 *m68k*)
3126 aros_host_cpu="m68k"
3128 *powerpc*)
3129 aros_host_cpu="ppc"
3132 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3133 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3134 aros_host_cpu="$host_cpu"
3136 esac
3139 cygwin*)
3140 aros_host_arch="cygwin"
3141 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3142 case "$host_cpu" in
3143 *i?86*)
3144 aros_host_cpu="i386"
3147 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3148 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3149 aros_host_cpu="$host_cpu"
3151 esac
3154 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
3155 echo "$as_me: error: Unsupported host architecture $host" >&2;}
3156 { (exit 1); exit 1; }; }
3158 esac
3160 # Extract the first word of "ar", so it can be a program name with args.
3161 set dummy ar; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$aros_host_ar"; then
3168 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_aros_host_ar="ar cr"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3186 aros_host_ar=$ac_cv_prog_aros_host_ar
3187 if test -n "$aros_host_ar"; then
3188 echo "$as_me:$LINENO: result: $aros_host_ar" >&5
3189 echo "${ECHO_T}$aros_host_ar" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3195 if test "$aros_host_ar" = ""; then
3196 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3197 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3198 { (exit 1); exit 1; }; }
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$aros_host_ranlib"; then
3208 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_aros_host_ranlib="ranlib "
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3226 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
3227 if test -n "$aros_host_ranlib"; then
3228 echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
3229 echo "${ECHO_T}$aros_host_ranlib" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 if test "$aros_host_ranlib" = ""; then
3236 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
3237 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Extract the first word of "strip", so it can be a program name with args.
3241 set dummy strip; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 if test -n "$aros_host_strip"; then
3248 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_aros_host_strip="strip "
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3261 done
3262 done
3266 aros_host_strip=$ac_cv_prog_aros_host_strip
3267 if test -n "$aros_host_strip"; then
3268 echo "$as_me:$LINENO: result: $aros_host_strip" >&5
3269 echo "${ECHO_T}$aros_host_strip" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 if test "$aros_host_strip" = ""; then
3276 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3277 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3278 { (exit 1); exit 1; }; }
3281 # Extract the first word of "rm", so it can be a program name with args.
3282 set dummy rm; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_RM+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$RM"; then
3289 ac_cv_prog_RM="$RM" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_RM="rm -rf"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3307 RM=$ac_cv_prog_RM
3308 if test -n "$RM"; then
3309 echo "$as_me:$LINENO: result: $RM" >&5
3310 echo "${ECHO_T}$RM" >&6
3311 else
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3316 if test "$RM" = ""; then
3317 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3318 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3319 { (exit 1); exit 1; }; }
3321 # Extract the first word of "cp", so it can be a program name with args.
3322 set dummy cp; ac_word=$2
3323 echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_CP+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 if test -n "$CP"; then
3329 ac_cv_prog_CP="$CP" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_CP="cp "
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3347 CP=$ac_cv_prog_CP
3348 if test -n "$CP"; then
3349 echo "$as_me:$LINENO: result: $CP" >&5
3350 echo "${ECHO_T}$CP" >&6
3351 else
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 if test "$CP" = ""; then
3357 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3358 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3359 { (exit 1); exit 1; }; }
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_prog_MV+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if test -n "$MV"; then
3369 ac_cv_prog_MV="$MV" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_MV="mv "
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3387 MV=$ac_cv_prog_MV
3388 if test -n "$MV"; then
3389 echo "$as_me:$LINENO: result: $MV" >&5
3390 echo "${ECHO_T}$MV" >&6
3391 else
3392 echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3396 if test "$MV" = ""; then
3397 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3398 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3399 { (exit 1); exit 1; }; }
3401 # Extract the first word of "echo", so it can be a program name with args.
3402 set dummy echo; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_prog_ECHO+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 if test -n "$ECHO"; then
3409 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ECHO="echo "
3419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3422 done
3423 done
3427 ECHO=$ac_cv_prog_ECHO
3428 if test -n "$ECHO"; then
3429 echo "$as_me:$LINENO: result: $ECHO" >&5
3430 echo "${ECHO_T}$ECHO" >&6
3431 else
3432 echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3436 if test "$ECHO" = ""; then
3437 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3438 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3439 { (exit 1); exit 1; }; }
3441 # Extract the first word of "mkdir", so it can be a program name with args.
3442 set dummy mkdir; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_prog_MKDIR+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 if test -n "$MKDIR"; then
3449 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_MKDIR="mkdir -p"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3467 MKDIR=$ac_cv_prog_MKDIR
3468 if test -n "$MKDIR"; then
3469 echo "$as_me:$LINENO: result: $MKDIR" >&5
3470 echo "${ECHO_T}$MKDIR" >&6
3471 else
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3476 if test "$MKDIR" = ""; then
3477 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3478 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3479 { (exit 1); exit 1; }; }
3481 # Extract the first word of "touch", so it can be a program name with args.
3482 set dummy touch; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_prog_TOUCH+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test -n "$TOUCH"; then
3489 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_TOUCH="touch "
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3507 TOUCH=$ac_cv_prog_TOUCH
3508 if test -n "$TOUCH"; then
3509 echo "$as_me:$LINENO: result: $TOUCH" >&5
3510 echo "${ECHO_T}$TOUCH" >&6
3511 else
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3516 if test "$TOUCH" = ""; then
3517 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3518 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3519 { (exit 1); exit 1; }; }
3521 # Extract the first word of "sort", so it can be a program name with args.
3522 set dummy sort; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_SORT+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 if test -n "$SORT"; then
3529 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_SORT="sort "
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3542 done
3543 done
3547 SORT=$ac_cv_prog_SORT
3548 if test -n "$SORT"; then
3549 echo "$as_me:$LINENO: result: $SORT" >&5
3550 echo "${ECHO_T}$SORT" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3556 if test "$SORT" = ""; then
3557 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3558 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3559 { (exit 1); exit 1; }; }
3561 # Extract the first word of "uniq", so it can be a program name with args.
3562 set dummy uniq; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_prog_UNIQ+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 if test -n "$UNIQ"; then
3569 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_UNIQ="uniq "
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3587 UNIQ=$ac_cv_prog_UNIQ
3588 if test -n "$UNIQ"; then
3589 echo "$as_me:$LINENO: result: $UNIQ" >&5
3590 echo "${ECHO_T}$UNIQ" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3596 if test "$UNIQ" = ""; then
3597 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3598 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3599 { (exit 1); exit 1; }; }
3601 # Extract the first word of "true", so it can be a program name with args.
3602 set dummy true; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_NOP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$NOP"; then
3609 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_NOP="true "
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3627 NOP=$ac_cv_prog_NOP
3628 if test -n "$NOP"; then
3629 echo "$as_me:$LINENO: result: $NOP" >&5
3630 echo "${ECHO_T}$NOP" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3636 if test "$NOP" = ""; then
3637 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3638 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3639 { (exit 1); exit 1; }; }
3641 # Extract the first word of "cat", so it can be a program name with args.
3642 set dummy cat; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_CAT+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test -n "$CAT"; then
3649 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CAT="cat "
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3667 CAT=$ac_cv_prog_CAT
3668 if test -n "$CAT"; then
3669 echo "$as_me:$LINENO: result: $CAT" >&5
3670 echo "${ECHO_T}$CAT" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3676 if test "$CAT" = ""; then
3677 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3678 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3679 { (exit 1); exit 1; }; }
3681 # Extract the first word of "bison", so it can be a program name with args.
3682 set dummy bison; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_BISON+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 if test -n "$BISON"; then
3689 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_BISON="bison "
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3707 BISON=$ac_cv_prog_BISON
3708 if test -n "$BISON"; then
3709 echo "$as_me:$LINENO: result: $BISON" >&5
3710 echo "${ECHO_T}$BISON" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3716 if test "$BISON" = ""; then
3717 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3718 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3719 { (exit 1); exit 1; }; }
3721 # Extract the first word of "flex", so it can be a program name with args.
3722 set dummy flex; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_FLEX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 if test -n "$FLEX"; then
3729 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_FLEX="flex "
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3747 FLEX=$ac_cv_prog_FLEX
3748 if test -n "$FLEX"; then
3749 echo "$as_me:$LINENO: result: $FLEX" >&5
3750 echo "${ECHO_T}$FLEX" >&6
3751 else
3752 echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3756 if test "$FLEX" = ""; then
3757 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
3758 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
3759 { (exit 1); exit 1; }; }
3761 # Extract the first word of "pngtopnm", so it can be a program name with args.
3762 set dummy pngtopnm; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$PNGTOPNM"; then
3769 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_PNGTOPNM="pngtopnm "
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3787 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3788 if test -n "$PNGTOPNM"; then
3789 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3790 echo "${ECHO_T}$PNGTOPNM" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 if test "$PNGTOPNM" = ""; then
3797 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3798 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3799 { (exit 1); exit 1; }; }
3801 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3802 set dummy ppmtoilbm; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 if test -n "$PPMTOILBM"; then
3809 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_PPMTOILBM="ppmtoilbm "
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3822 done
3823 done
3827 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3828 if test -n "$PPMTOILBM"; then
3829 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3830 echo "${ECHO_T}$PPMTOILBM" >&6
3831 else
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3836 if test "$PPMTOILBM" = ""; then
3837 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3838 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3839 { (exit 1); exit 1; }; }
3841 # Extract the first word of "sed", so it can be a program name with args.
3842 set dummy sed; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_SED+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$SED"; then
3849 ac_cv_prog_SED="$SED" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_SED="sed "
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 SED=$ac_cv_prog_SED
3868 if test -n "$SED"; then
3869 echo "$as_me:$LINENO: result: $SED" >&5
3870 echo "${ECHO_T}$SED" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 if test "$SED" = ""; then
3877 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3878 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3879 { (exit 1); exit 1; }; }
3881 # Extract the first word of "chmod", so it can be a program name with args.
3882 set dummy chmod; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_CHMOD+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$CHMOD"; then
3889 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CHMOD="chmod "
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3907 CHMOD=$ac_cv_prog_CHMOD
3908 if test -n "$CHMOD"; then
3909 echo "$as_me:$LINENO: result: $CHMOD" >&5
3910 echo "${ECHO_T}$CHMOD" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 if test "$CHMOD" = ""; then
3917 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3918 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3919 { (exit 1); exit 1; }; }
3926 if test -n "$PYTHON"; then
3927 # If the user set $PYTHON, use it and don't search something else.
3928 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3929 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3930 prog="import sys, string
3931 # split strings by '.' and convert to numeric. Append some zeros
3932 # because we need at least 4 digits for the hex conversion.
3933 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3934 minverhex = 0
3935 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3936 sys.exit(sys.hexversion < minverhex)"
3937 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3938 ($PYTHON -c "$prog") >&5 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 else
3945 { { echo "$as_me:$LINENO: error: too old" >&5
3946 echo "$as_me: error: too old" >&2;}
3947 { (exit 1); exit 1; }; }
3950 else
3951 # Otherwise, try each interpreter until we find one that satisfies
3952 # VERSION.
3953 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3954 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3955 if test "${am_cv_pathless_PYTHON+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3959 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3960 test "$am_cv_pathless_PYTHON" = none && break
3961 prog="import sys, string
3962 # split strings by '.' and convert to numeric. Append some zeros
3963 # because we need at least 4 digits for the hex conversion.
3964 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3965 minverhex = 0
3966 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3967 sys.exit(sys.hexversion < minverhex)"
3968 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3969 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; then
3973 break
3976 done
3978 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3979 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3980 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3981 if test "$am_cv_pathless_PYTHON" = none; then
3982 PYTHON=:
3983 else
3984 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3985 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_path_PYTHON+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 case $PYTHON in
3992 [\\/]* | ?:[\\/]*)
3993 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4011 esac
4013 PYTHON=$ac_cv_path_PYTHON
4015 if test -n "$PYTHON"; then
4016 echo "$as_me:$LINENO: result: $PYTHON" >&5
4017 echo "${ECHO_T}$PYTHON" >&6
4018 else
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4024 am_display_PYTHON=$am_cv_pathless_PYTHON
4028 if test "$PYTHON" = :; then
4029 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4030 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4031 { (exit 1); exit 1; }; }
4032 else
4035 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4036 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
4037 if test "${am_cv_python_version+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4042 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4043 echo "${ECHO_T}$am_cv_python_version" >&6
4044 PYTHON_VERSION=$am_cv_python_version
4048 PYTHON_PREFIX='${prefix}'
4050 PYTHON_EXEC_PREFIX='${exec_prefix}'
4054 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4055 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
4056 if test "${am_cv_python_platform+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4061 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4062 echo "${ECHO_T}$am_cv_python_platform" >&6
4063 PYTHON_PLATFORM=$am_cv_python_platform
4068 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4069 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
4070 if test "${am_cv_python_pythondir+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4074 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4076 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4077 echo "${ECHO_T}$am_cv_python_pythondir" >&6
4078 pythondir=$am_cv_python_pythondir
4082 pkgpythondir=\${pythondir}/$PACKAGE
4085 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4086 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4087 if test "${am_cv_python_pyexecdir+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4091 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4093 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4094 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4095 pyexecdir=$am_cv_python_pyexecdir
4099 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4107 FOR=for
4109 IF=if
4111 TEST=test
4113 CMP=cmp
4117 # Check for some includes for the X11 HIDD and the kernel
4120 echo "$as_me:$LINENO: checking for egrep" >&5
4121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4122 if test "${ac_cv_prog_egrep+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4126 then ac_cv_prog_egrep='grep -E'
4127 else ac_cv_prog_egrep='egrep'
4130 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4131 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4132 EGREP=$ac_cv_prog_egrep
4135 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4136 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4137 if test "${ac_cv_header_stdc+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <stdlib.h>
4147 #include <stdarg.h>
4148 #include <string.h>
4149 #include <float.h>
4152 main ()
4156 return 0;
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag"
4169 || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_header_stdc=yes
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_cv_header_stdc=no
4188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 if test $ac_cv_header_stdc = yes; then
4191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <string.h>
4200 _ACEOF
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202 $EGREP "memchr" >/dev/null 2>&1; then
4204 else
4205 ac_cv_header_stdc=no
4207 rm -f conftest*
4211 if test $ac_cv_header_stdc = yes; then
4212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <stdlib.h>
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "free" >/dev/null 2>&1; then
4225 else
4226 ac_cv_header_stdc=no
4228 rm -f conftest*
4232 if test $ac_cv_header_stdc = yes; then
4233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234 if test "$cross_compiling" = yes; then
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 #include <ctype.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257 main ()
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4263 exit(2);
4264 exit (0);
4266 _ACEOF
4267 rm -f conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4279 else
4280 echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ( exit $ac_status )
4285 ac_cv_header_stdc=no
4287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4293 if test $ac_cv_header_stdc = yes; then
4295 cat >>confdefs.h <<\_ACEOF
4296 #define STDC_HEADERS 1
4297 _ACEOF
4301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312 inttypes.h stdint.h unistd.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4328 #include <$ac_header>
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag"
4340 || test ! -s conftest.err'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 eval "$as_ac_Header=yes"
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 eval "$as_ac_Header=no"
4359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364 cat >>confdefs.h <<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 _ACEOF
4370 done
4382 for ac_header in sys/ipc.h sys/shm.h \
4383 sys/mmap.h sys/mman.h sysexits.h \
4384 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389 echo "$as_me:$LINENO: checking for $ac_header" >&5
4390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4396 else
4397 # Is the header compilable?
4398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407 #include <$ac_header>
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_header_compiler=yes
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_compiler=no
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6
4442 # Is the header present?
4443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <$ac_header>
4452 _ACEOF
4453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } >/dev/null; then
4461 if test -s conftest.err; then
4462 ac_cpp_err=$ac_c_preproc_warn_flag
4463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4464 else
4465 ac_cpp_err=
4467 else
4468 ac_cpp_err=yes
4470 if test -z "$ac_cpp_err"; then
4471 ac_header_preproc=yes
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_header_preproc=no
4478 rm -f conftest.err conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480 echo "${ECHO_T}$ac_header_preproc" >&6
4482 # So? What about this header?
4483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 yes:no: )
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4489 ac_header_preproc=yes
4491 no:yes:* )
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4505 cat <<\_ASBOX
4506 ## ------------------------------------------ ##
4507 ## Report this to the AC_PACKAGE_NAME lists. ##
4508 ## ------------------------------------------ ##
4509 _ASBOX
4511 sed "s/^/$as_me: WARNING: /" >&2
4513 esac
4514 echo "$as_me:$LINENO: checking for $ac_header" >&5
4515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 eval "$as_ac_Header=\$ac_header_preproc"
4521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4526 cat >>confdefs.h <<_ACEOF
4527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4528 _ACEOF
4532 done
4536 for ac_header in sys/mount.h
4538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <sys/param.h>
4552 #include <$ac_header>
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_Header=yes"
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 eval "$as_ac_Header=no"
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4594 done
4602 ac_header_dirent=no
4603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4605 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <sys/types.h>
4617 #include <$ac_hdr>
4620 main ()
4622 if ((DIR *) 0)
4623 return 0;
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_Header=yes"
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 eval "$as_ac_Header=no"
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4662 cat >>confdefs.h <<_ACEOF
4663 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4664 _ACEOF
4666 ac_header_dirent=$ac_hdr; break
4669 done
4670 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4671 if test $ac_header_dirent = dirent.h; then
4672 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4673 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4674 if test "${ac_cv_search_opendir+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 ac_func_search_save_LIBS=$LIBS
4678 ac_cv_search_opendir=no
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char opendir ();
4694 main ()
4696 opendir ();
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_search_opendir="none required"
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 if test "$ac_cv_search_opendir" = no; then
4732 for ac_lib in dir; do
4733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 #ifdef __cplusplus
4743 extern "C"
4744 #endif
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4747 char opendir ();
4749 main ()
4751 opendir ();
4753 return 0;
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_search_opendir="-l$ac_lib"
4779 break
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext \
4786 conftest$ac_exeext conftest.$ac_ext
4787 done
4789 LIBS=$ac_func_search_save_LIBS
4791 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4792 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4793 if test "$ac_cv_search_opendir" != no; then
4794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4798 else
4799 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4800 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4801 if test "${ac_cv_search_opendir+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 ac_func_search_save_LIBS=$LIBS
4805 ac_cv_search_opendir=no
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4813 /* Override any gcc2 internal prototype to avoid an error. */
4814 #ifdef __cplusplus
4815 extern "C"
4816 #endif
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819 char opendir ();
4821 main ()
4823 opendir ();
4825 return 0;
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830 (eval $ac_link) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest$ac_exeext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_search_opendir="none required"
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858 if test "$ac_cv_search_opendir" = no; then
4859 for ac_lib in x; do
4860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 #ifdef __cplusplus
4870 extern "C"
4871 #endif
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char opendir ();
4876 main ()
4878 opendir ();
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest$ac_exeext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_search_opendir="-l$ac_lib"
4906 break
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4912 rm -f conftest.err conftest.$ac_objext \
4913 conftest$ac_exeext conftest.$ac_ext
4914 done
4916 LIBS=$ac_func_search_save_LIBS
4918 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4919 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4920 if test "$ac_cv_search_opendir" != no; then
4921 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4927 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4928 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4929 if test "${ac_cv_header_stat_broken+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h. */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #include <sys/types.h>
4939 #include <sys/stat.h>
4941 #if defined(S_ISBLK) && defined(S_IFDIR)
4942 # if S_ISBLK (S_IFDIR)
4943 You lose.
4944 # endif
4945 #endif
4947 #if defined(S_ISBLK) && defined(S_IFCHR)
4948 # if S_ISBLK (S_IFCHR)
4949 You lose.
4950 # endif
4951 #endif
4953 #if defined(S_ISLNK) && defined(S_IFREG)
4954 # if S_ISLNK (S_IFREG)
4955 You lose.
4956 # endif
4957 #endif
4959 #if defined(S_ISSOCK) && defined(S_IFREG)
4960 # if S_ISSOCK (S_IFREG)
4961 You lose.
4962 # endif
4963 #endif
4965 _ACEOF
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "You lose" >/dev/null 2>&1; then
4968 ac_cv_header_stat_broken=yes
4969 else
4970 ac_cv_header_stat_broken=no
4972 rm -f conftest*
4975 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4976 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4977 if test $ac_cv_header_stat_broken = yes; then
4979 cat >>confdefs.h <<\_ACEOF
4980 #define STAT_MACROS_BROKEN 1
4981 _ACEOF
4985 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4986 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4987 if test "${ac_cv_header_stdc+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <stdlib.h>
4997 #include <stdarg.h>
4998 #include <string.h>
4999 #include <float.h>
5002 main ()
5006 return 0;
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_header_stdc=yes
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_header_stdc=no
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 if test $ac_cv_header_stdc = yes; then
5041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <string.h>
5050 _ACEOF
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "memchr" >/dev/null 2>&1; then
5054 else
5055 ac_cv_header_stdc=no
5057 rm -f conftest*
5061 if test $ac_cv_header_stdc = yes; then
5062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <stdlib.h>
5071 _ACEOF
5072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5073 $EGREP "free" >/dev/null 2>&1; then
5075 else
5076 ac_cv_header_stdc=no
5078 rm -f conftest*
5082 if test $ac_cv_header_stdc = yes; then
5083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5084 if test "$cross_compiling" = yes; then
5086 else
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <ctype.h>
5094 #if ((' ' & 0x0FF) == 0x020)
5095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5097 #else
5098 # define ISLOWER(c) \
5099 (('a' <= (c) && (c) <= 'i') \
5100 || ('j' <= (c) && (c) <= 'r') \
5101 || ('s' <= (c) && (c) <= 'z'))
5102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5103 #endif
5105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5107 main ()
5109 int i;
5110 for (i = 0; i < 256; i++)
5111 if (XOR (islower (i), ISLOWER (i))
5112 || toupper (i) != TOUPPER (i))
5113 exit(2);
5114 exit (0);
5116 _ACEOF
5117 rm -f conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5129 else
5130 echo "$as_me: program exited with status $ac_status" >&5
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ( exit $ac_status )
5135 ac_cv_header_stdc=no
5137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5143 if test $ac_cv_header_stdc = yes; then
5145 cat >>confdefs.h <<\_ACEOF
5146 #define STDC_HEADERS 1
5147 _ACEOF
5151 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <sys/types.h>
5163 #include <sys/wait.h>
5164 #ifndef WEXITSTATUS
5165 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5166 #endif
5167 #ifndef WIFEXITED
5168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5169 #endif
5172 main ()
5174 int s;
5175 wait (&s);
5176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5178 return 0;
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest.$ac_objext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_header_sys_wait_h=yes
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_header_sys_wait_h=no
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5213 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5214 if test $ac_cv_header_sys_wait_h = yes; then
5216 cat >>confdefs.h <<\_ACEOF
5217 #define HAVE_SYS_WAIT_H 1
5218 _ACEOF
5222 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5223 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5224 if test "${ac_cv_header_time+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <sys/types.h>
5234 #include <sys/time.h>
5235 #include <time.h>
5238 main ()
5240 if ((struct tm *) 0)
5241 return 0;
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_cv_header_time=yes
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_cv_header_time=no
5275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5278 echo "${ECHO_T}$ac_cv_header_time" >&6
5279 if test $ac_cv_header_time = yes; then
5281 cat >>confdefs.h <<\_ACEOF
5282 #define TIME_WITH_SYS_TIME 1
5283 _ACEOF
5288 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5289 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5290 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5301 main ()
5303 static struct stat ac_aggr;
5304 if (ac_aggr.st_blksize)
5305 return 0;
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_member_struct_stat_st_blksize=yes
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 $ac_includes_default
5345 main ()
5347 static struct stat ac_aggr;
5348 if (sizeof ac_aggr.st_blksize)
5349 return 0;
5351 return 0;
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_member_struct_stat_st_blksize=yes
5377 else
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_cv_member_struct_stat_st_blksize=no
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5388 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5389 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5393 _ACEOF
5396 cat >>confdefs.h <<\_ACEOF
5397 #define HAVE_ST_BLKSIZE 1
5398 _ACEOF
5403 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5404 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5405 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5416 main ()
5418 static struct stat ac_aggr;
5419 if (ac_aggr.st_blocks)
5420 return 0;
5422 return 0;
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_member_struct_stat_st_blocks=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5460 main ()
5462 static struct stat ac_aggr;
5463 if (sizeof ac_aggr.st_blocks)
5464 return 0;
5466 return 0;
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_member_struct_stat_st_blocks=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_member_struct_stat_st_blocks=no
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5503 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5504 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5508 _ACEOF
5511 cat >>confdefs.h <<\_ACEOF
5512 #define HAVE_ST_BLOCKS 1
5513 _ACEOF
5515 else
5516 case $LIBOBJS in
5517 "fileblocks.$ac_objext" | \
5518 *" fileblocks.$ac_objext" | \
5519 "fileblocks.$ac_objext "* | \
5520 *" fileblocks.$ac_objext "* ) ;;
5521 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5522 esac
5528 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5529 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5530 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 $ac_includes_default
5541 main ()
5543 static struct stat ac_aggr;
5544 if (ac_aggr.st_rdev)
5545 return 0;
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_member_struct_stat_st_rdev=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5585 main ()
5587 static struct stat ac_aggr;
5588 if (sizeof ac_aggr.st_rdev)
5589 return 0;
5591 return 0;
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_member_struct_stat_st_rdev=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_member_struct_stat_st_rdev=no
5623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5628 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5629 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5631 cat >>confdefs.h <<_ACEOF
5632 #define HAVE_STRUCT_STAT_ST_RDEV 1
5633 _ACEOF
5636 cat >>confdefs.h <<\_ACEOF
5637 #define HAVE_ST_RDEV 1
5638 _ACEOF
5643 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5644 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5645 if test "${ac_cv_struct_tm+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 #include <time.h>
5658 main ()
5660 struct tm *tp; tp->tm_sec;
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_struct_tm=time.h
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_struct_tm=sys/time.h
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5697 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5698 if test $ac_cv_struct_tm = sys/time.h; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define TM_IN_SYS_TIME 1
5702 _ACEOF
5706 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5707 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5708 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 #include <$ac_cv_struct_tm>
5722 main ()
5724 static struct tm ac_aggr;
5725 if (ac_aggr.tm_zone)
5726 return 0;
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 ac_cv_member_struct_tm_tm_zone=yes
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 #include <$ac_cv_struct_tm>
5769 main ()
5771 static struct tm ac_aggr;
5772 if (sizeof ac_aggr.tm_zone)
5773 return 0;
5775 return 0;
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_member_struct_tm_tm_zone=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_member_struct_tm_tm_zone=no
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5812 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5813 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816 #define HAVE_STRUCT_TM_TM_ZONE 1
5817 _ACEOF
5822 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5824 cat >>confdefs.h <<\_ACEOF
5825 #define HAVE_TM_ZONE 1
5826 _ACEOF
5828 else
5829 echo "$as_me:$LINENO: checking for tzname" >&5
5830 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5831 if test "${ac_cv_var_tzname+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <time.h>
5841 #ifndef tzname /* For SGI. */
5842 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5843 #endif
5846 main ()
5848 atoi(*tzname);
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_var_tzname=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_var_tzname=no
5882 rm -f conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5886 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5887 if test $ac_cv_var_tzname = yes; then
5889 cat >>confdefs.h <<\_ACEOF
5890 #define HAVE_TZNAME 1
5891 _ACEOF
5896 echo "$as_me:$LINENO: checking for off_t" >&5
5897 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5898 if test "${ac_cv_type_off_t+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 $ac_includes_default
5909 main ()
5911 if ((off_t *) 0)
5912 return 0;
5913 if (sizeof (off_t))
5914 return 0;
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_type_off_t=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_type_off_t=no
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5951 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5952 if test $ac_cv_type_off_t = yes; then
5954 else
5956 cat >>confdefs.h <<_ACEOF
5957 #define off_t long
5958 _ACEOF
5962 echo "$as_me:$LINENO: checking for pid_t" >&5
5963 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5964 if test "${ac_cv_type_pid_t+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5975 main ()
5977 if ((pid_t *) 0)
5978 return 0;
5979 if (sizeof (pid_t))
5980 return 0;
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_type_pid_t=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_type_pid_t=no
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6017 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6018 if test $ac_cv_type_pid_t = yes; then
6020 else
6022 cat >>confdefs.h <<_ACEOF
6023 #define pid_t int
6024 _ACEOF
6028 echo "$as_me:$LINENO: checking for size_t" >&5
6029 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6030 if test "${ac_cv_type_size_t+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 $ac_includes_default
6041 main ()
6043 if ((size_t *) 0)
6044 return 0;
6045 if (sizeof (size_t))
6046 return 0;
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_type_size_t=yes
6074 else
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_type_size_t=no
6080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6083 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6084 if test $ac_cv_type_size_t = yes; then
6086 else
6088 cat >>confdefs.h <<_ACEOF
6089 #define size_t unsigned
6090 _ACEOF
6094 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6095 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6096 if test "${ac_cv_type_uid_t+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "uid_t" >/dev/null 2>&1; then
6110 ac_cv_type_uid_t=yes
6111 else
6112 ac_cv_type_uid_t=no
6114 rm -f conftest*
6117 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6118 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6119 if test $ac_cv_type_uid_t = no; then
6121 cat >>confdefs.h <<\_ACEOF
6122 #define uid_t int
6123 _ACEOF
6126 cat >>confdefs.h <<\_ACEOF
6127 #define gid_t int
6128 _ACEOF
6133 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6134 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6135 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6146 main ()
6148 static struct tm ac_aggr;
6149 if (ac_aggr.tm_gmtoff)
6150 return 0;
6152 return 0;
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_member_struct_tm_tm_gmtoff=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6190 main ()
6192 static struct tm ac_aggr;
6193 if (sizeof ac_aggr.tm_gmtoff)
6194 return 0;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag"
6209 || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_member_struct_tm_tm_gmtoff=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_member_struct_tm_tm_gmtoff=no
6228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6234 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6238 _ACEOF
6244 # Look for some functions
6259 for ac_func in getpagesize kqueue statfs statvfs \
6260 clone kse_create rfork_thread thr_create sa_register \
6261 getcontext makecontext setcontext sigaltstack swapcontext
6263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6264 echo "$as_me:$LINENO: checking for $ac_func" >&5
6265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_var+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6277 #define $ac_func innocuous_$ac_func
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func (); below.
6281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282 <limits.h> exists even on freestanding compilers. */
6284 #ifdef __STDC__
6285 # include <limits.h>
6286 #else
6287 # include <assert.h>
6288 #endif
6290 #undef $ac_func
6292 /* Override any gcc2 internal prototype to avoid an error. */
6293 #ifdef __cplusplus
6294 extern "C"
6296 #endif
6297 /* We use char because int might match the return type of a gcc2
6298 builtin and then its argument prototype would still apply. */
6299 char $ac_func ();
6300 /* The GNU C library defines this for functions which it implements
6301 to always fail with ENOSYS. Some functions are actually named
6302 something starting with __ and the normal name is an alias. */
6303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304 choke me
6305 #else
6306 char (*f) () = $ac_func;
6307 #endif
6308 #ifdef __cplusplus
6310 #endif
6313 main ()
6315 return f != $ac_func;
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 eval "$as_ac_var=yes"
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 eval "$as_ac_var=no"
6349 rm -f conftest.err conftest.$ac_objext \
6350 conftest$ac_exeext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6354 if test `eval echo '${'$as_ac_var'}'` = yes; then
6355 cat >>confdefs.h <<_ACEOF
6356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6357 _ACEOF
6360 done
6365 for ac_header in stdlib.h unistd.h
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 else
6377 # Is the header compilable?
6378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_header_compiler=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_header_compiler=no
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6420 echo "${ECHO_T}$ac_header_compiler" >&6
6422 # Is the header present?
6423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <$ac_header>
6432 _ACEOF
6433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null; then
6441 if test -s conftest.err; then
6442 ac_cpp_err=$ac_c_preproc_warn_flag
6443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6444 else
6445 ac_cpp_err=
6447 else
6448 ac_cpp_err=yes
6450 if test -z "$ac_cpp_err"; then
6451 ac_header_preproc=yes
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_header_preproc=no
6458 rm -f conftest.err conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6460 echo "${ECHO_T}$ac_header_preproc" >&6
6462 # So? What about this header?
6463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6464 yes:no: )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6469 ac_header_preproc=yes
6471 no:yes:* )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6485 cat <<\_ASBOX
6486 ## ------------------------------------------ ##
6487 ## Report this to the AC_PACKAGE_NAME lists. ##
6488 ## ------------------------------------------ ##
6489 _ASBOX
6491 sed "s/^/$as_me: WARNING: /" >&2
6493 esac
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 eval "$as_ac_Header=\$ac_header_preproc"
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6512 done
6515 for ac_func in getpagesize
6517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6518 echo "$as_me:$LINENO: checking for $ac_func" >&5
6519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_var+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6531 #define $ac_func innocuous_$ac_func
6533 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char $ac_func (); below.
6535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536 <limits.h> exists even on freestanding compilers. */
6538 #ifdef __STDC__
6539 # include <limits.h>
6540 #else
6541 # include <assert.h>
6542 #endif
6544 #undef $ac_func
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 #ifdef __cplusplus
6548 extern "C"
6550 #endif
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6553 char $ac_func ();
6554 /* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */
6557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6558 choke me
6559 #else
6560 char (*f) () = $ac_func;
6561 #endif
6562 #ifdef __cplusplus
6564 #endif
6567 main ()
6569 return f != $ac_func;
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 eval "$as_ac_var=yes"
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 eval "$as_ac_var=no"
6603 rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6608 if test `eval echo '${'$as_ac_var'}'` = yes; then
6609 cat >>confdefs.h <<_ACEOF
6610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6611 _ACEOF
6614 done
6616 echo "$as_me:$LINENO: checking for working mmap" >&5
6617 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6618 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 if test "$cross_compiling" = yes; then
6622 ac_cv_func_mmap_fixed_mapped=no
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 $ac_includes_default
6631 /* malloc might have been renamed as rpl_malloc. */
6632 #undef malloc
6634 /* Thanks to Mike Haertel and Jim Avera for this test.
6635 Here is a matrix of mmap possibilities:
6636 mmap private not fixed
6637 mmap private fixed at somewhere currently unmapped
6638 mmap private fixed at somewhere already mapped
6639 mmap shared not fixed
6640 mmap shared fixed at somewhere currently unmapped
6641 mmap shared fixed at somewhere already mapped
6642 For private mappings, we should verify that changes cannot be read()
6643 back from the file, nor mmap's back from the file at a different
6644 address. (There have been systems where private was not correctly
6645 implemented like the infamous i386 svr4.0, and systems where the
6646 VM page cache was not coherent with the file system buffer cache
6647 like early versions of FreeBSD and possibly contemporary NetBSD.)
6648 For shared mappings, we should conversely verify that changes get
6649 propagated back to all the places they're supposed to be.
6651 Grep wants private fixed already mapped.
6652 The main things grep needs to know about mmap are:
6653 * does it exist and is it safe to write into the mmap'd area
6654 * how to use it (BSD variants) */
6656 #include <fcntl.h>
6657 #include <sys/mman.h>
6659 #if !STDC_HEADERS && !HAVE_STDLIB_H
6660 char *malloc ();
6661 #endif
6663 /* This mess was copied from the GNU getpagesize.h. */
6664 #if !HAVE_GETPAGESIZE
6665 /* Assume that all systems that can run configure have sys/param.h. */
6666 # if !HAVE_SYS_PARAM_H
6667 # define HAVE_SYS_PARAM_H 1
6668 # endif
6670 # ifdef _SC_PAGESIZE
6671 # define getpagesize() sysconf(_SC_PAGESIZE)
6672 # else /* no _SC_PAGESIZE */
6673 # if HAVE_SYS_PARAM_H
6674 # include <sys/param.h>
6675 # ifdef EXEC_PAGESIZE
6676 # define getpagesize() EXEC_PAGESIZE
6677 # else /* no EXEC_PAGESIZE */
6678 # ifdef NBPG
6679 # define getpagesize() NBPG * CLSIZE
6680 # ifndef CLSIZE
6681 # define CLSIZE 1
6682 # endif /* no CLSIZE */
6683 # else /* no NBPG */
6684 # ifdef NBPC
6685 # define getpagesize() NBPC
6686 # else /* no NBPC */
6687 # ifdef PAGESIZE
6688 # define getpagesize() PAGESIZE
6689 # endif /* PAGESIZE */
6690 # endif /* no NBPC */
6691 # endif /* no NBPG */
6692 # endif /* no EXEC_PAGESIZE */
6693 # else /* no HAVE_SYS_PARAM_H */
6694 # define getpagesize() 8192 /* punt totally */
6695 # endif /* no HAVE_SYS_PARAM_H */
6696 # endif /* no _SC_PAGESIZE */
6698 #endif /* no HAVE_GETPAGESIZE */
6701 main ()
6703 char *data, *data2, *data3;
6704 int i, pagesize;
6705 int fd;
6707 pagesize = getpagesize ();
6709 /* First, make a file with some known garbage in it. */
6710 data = (char *) malloc (pagesize);
6711 if (!data)
6712 exit (1);
6713 for (i = 0; i < pagesize; ++i)
6714 *(data + i) = rand ();
6715 umask (0);
6716 fd = creat ("conftest.mmap", 0600);
6717 if (fd < 0)
6718 exit (1);
6719 if (write (fd, data, pagesize) != pagesize)
6720 exit (1);
6721 close (fd);
6723 /* Next, try to mmap the file at a fixed address which already has
6724 something else allocated at it. If we can, also make sure that
6725 we see the same garbage. */
6726 fd = open ("conftest.mmap", O_RDWR);
6727 if (fd < 0)
6728 exit (1);
6729 data2 = (char *) malloc (2 * pagesize);
6730 if (!data2)
6731 exit (1);
6732 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6733 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6734 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6735 exit (1);
6736 for (i = 0; i < pagesize; ++i)
6737 if (*(data + i) != *(data2 + i))
6738 exit (1);
6740 /* Finally, make sure that changes to the mapped area do not
6741 percolate back to the file as seen by read(). (This is a bug on
6742 some variants of i386 svr4.0.) */
6743 for (i = 0; i < pagesize; ++i)
6744 *(data2 + i) = *(data2 + i) + 1;
6745 data3 = (char *) malloc (pagesize);
6746 if (!data3)
6747 exit (1);
6748 if (read (fd, data3, pagesize) != pagesize)
6749 exit (1);
6750 for (i = 0; i < pagesize; ++i)
6751 if (*(data + i) != *(data3 + i))
6752 exit (1);
6753 close (fd);
6754 exit (0);
6756 _ACEOF
6757 rm -f conftest$ac_exeext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_func_mmap_fixed_mapped=yes
6769 else
6770 echo "$as_me: program exited with status $ac_status" >&5
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ( exit $ac_status )
6775 ac_cv_func_mmap_fixed_mapped=no
6777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6781 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6782 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_MMAP 1
6786 _ACEOF
6789 rm -f conftest.mmap
6792 # Find X
6793 echo "$as_me:$LINENO: checking for X" >&5
6794 echo $ECHO_N "checking for X... $ECHO_C" >&6
6797 # Check whether --with-x or --without-x was given.
6798 if test "${with_x+set}" = set; then
6799 withval="$with_x"
6802 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6803 if test "x$with_x" = xno; then
6804 # The user explicitly disabled X.
6805 have_x=disabled
6806 else
6807 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6808 # Both variables are already set.
6809 have_x=yes
6810 else
6811 if test "${ac_cv_have_x+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 # One or both of the vars are not set, and there is no cached value.
6815 ac_x_includes=no ac_x_libraries=no
6816 rm -fr conftest.dir
6817 if mkdir conftest.dir; then
6818 cd conftest.dir
6819 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6820 cat >Imakefile <<'_ACEOF'
6821 acfindx:
6822 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6823 _ACEOF
6824 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6826 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6827 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6828 for ac_extension in a so sl; do
6829 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6830 test -f $ac_im_libdir/libX11.$ac_extension; then
6831 ac_im_usrlibdir=$ac_im_libdir; break
6833 done
6834 # Screen out bogus values from the imake configuration. They are
6835 # bogus both because they are the default anyway, and because
6836 # using them would break gcc on systems where it needs fixed includes.
6837 case $ac_im_incroot in
6838 /usr/include) ;;
6839 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6840 esac
6841 case $ac_im_usrlibdir in
6842 /usr/lib | /lib) ;;
6843 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6844 esac
6846 cd ..
6847 rm -fr conftest.dir
6850 # Standard set of common directories for X headers.
6851 # Check X11 before X11Rn because it is often a symlink to the current release.
6852 ac_x_header_dirs='
6853 /usr/X11/include
6854 /usr/X11R6/include
6855 /usr/X11R5/include
6856 /usr/X11R4/include
6858 /usr/include/X11
6859 /usr/include/X11R6
6860 /usr/include/X11R5
6861 /usr/include/X11R4
6863 /usr/local/X11/include
6864 /usr/local/X11R6/include
6865 /usr/local/X11R5/include
6866 /usr/local/X11R4/include
6868 /usr/local/include/X11
6869 /usr/local/include/X11R6
6870 /usr/local/include/X11R5
6871 /usr/local/include/X11R4
6873 /usr/X386/include
6874 /usr/x386/include
6875 /usr/XFree86/include/X11
6877 /usr/include
6878 /usr/local/include
6879 /usr/unsupported/include
6880 /usr/athena/include
6881 /usr/local/x11r5/include
6882 /usr/lpp/Xamples/include
6884 /usr/openwin/include
6885 /usr/openwin/share/include'
6887 if test "$ac_x_includes" = no; then
6888 # Guess where to find include files, by looking for Intrinsic.h.
6889 # First, try using that file with no special directory specified.
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 #include <X11/Intrinsic.h>
6897 _ACEOF
6898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } >/dev/null; then
6906 if test -s conftest.err; then
6907 ac_cpp_err=$ac_c_preproc_warn_flag
6908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6916 # We can compile using X headers with no special include directory.
6917 ac_x_includes=
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 for ac_dir in $ac_x_header_dirs; do
6923 if test -r "$ac_dir/X11/Intrinsic.h"; then
6924 ac_x_includes=$ac_dir
6925 break
6927 done
6929 rm -f conftest.err conftest.$ac_ext
6930 fi # $ac_x_includes = no
6932 if test "$ac_x_libraries" = no; then
6933 # Check for the libraries.
6934 # See if we find them without any special options.
6935 # Don't add to $LIBS permanently.
6936 ac_save_LIBS=$LIBS
6937 LIBS="-lXt $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 #include <X11/Intrinsic.h>
6946 main ()
6948 XtMalloc (0)
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 LIBS=$ac_save_LIBS
6976 # We can link X programs with no special library path.
6977 ac_x_libraries=
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 LIBS=$ac_save_LIBS
6983 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6985 # Don't even attempt the hair of trying to link an X program!
6986 for ac_extension in a so sl; do
6987 if test -r $ac_dir/libXt.$ac_extension; then
6988 ac_x_libraries=$ac_dir
6989 break 2
6991 done
6992 done
6994 rm -f conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
6996 fi # $ac_x_libraries = no
6998 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6999 # Didn't find X anywhere. Cache the known absence of X.
7000 ac_cv_have_x="have_x=no"
7001 else
7002 # Record where we found X for the cache.
7003 ac_cv_have_x="have_x=yes \
7004 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7009 eval "$ac_cv_have_x"
7010 fi # $with_x != no
7012 if test "$have_x" != yes; then
7013 echo "$as_me:$LINENO: result: $have_x" >&5
7014 echo "${ECHO_T}$have_x" >&6
7015 no_x=yes
7016 else
7017 # If each of the values was on the command line, it overrides each guess.
7018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7020 # Update the cache value to reflect the command line values.
7021 ac_cv_have_x="have_x=yes \
7022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7023 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7024 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7030 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7031 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7032 aros_config_ldflags=""
7034 aros_shared_default=yes
7036 aros_shared_cflags="-fPIC"
7037 aros_shared_aflags=""
7038 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7039 aros_kernel_ldflags="-Wl,-rpath,./lib"
7041 aros_target_ar_flags="cr"
7042 aros_target_nm_flags="-C -ul"
7043 aros_target_strip_flags="--strip-unneeded -R.comment"
7045 aros_compiler_libs=
7047 aros_target_genmap="-Wl,-Map -Xlinker"
7049 # Native flavour stuff
7050 aros_bochs_hack="0"
7051 aros_serial_debug="0"
7053 # Palm native flavour stuff
7054 aros_palm_debug_hack="0"
7056 # Unix flavour stuff
7057 aros_nesting_supervisor="0"
7059 # Collect-aros stuff: "-ius" to ignore undefined symbols
7060 ignore_undefined_symbols=""
7062 # X11 Xshm
7063 DO_XSHM_SUPPORT="1"
7064 DO_VIDMODE_SUPPORT="1"
7066 #-----------------------------------------------------------------------------
7068 echo "$as_me:$LINENO: checking for type of build" >&5
7069 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7070 # Check whether --enable-build_type or --disable-build_type was given.
7071 if test "${enable_build_type+set}" = set; then
7072 enableval="$enable_build_type"
7073 build_type=$enableval
7074 else
7075 build_type="personal"
7078 if test "$build_type" = "nightly"; then
7079 build_type_string="NIGHTLY"
7080 elif test "$build_type" = "snapshot"; then
7081 build_type_string="SNAPSHOT"
7082 elif test "$build_type" = "milestone"; then
7083 build_type_string="MILESTONE"
7084 elif test "$build_type" = "release"; then
7085 build_type_string="RELEASE"
7086 else
7087 build_type_string="PERSONAL"
7088 build_type="personal"
7091 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7093 echo "$as_me:$LINENO: result: $build_type" >&5
7094 echo "${ECHO_T}$build_type" >&6
7096 #-----------------------------------------------------------------------------
7097 all_debug_types="messages stack mungwall modules symbols"
7099 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7100 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7101 # Check whether --enable-debug or --disable-debug was given.
7102 if test "${enable_debug+set}" = set; then
7103 enableval="$enable_debug"
7104 debug="$enableval"
7105 else
7106 debug=""
7109 if test "$debug" = "" -o "$debug" = "no"; then
7110 debug="none"
7111 elif test "$debug" = "yes"; then
7112 debug="all"
7115 if test "$debug" = "all" ; then
7116 debug=$all_debug_types
7117 for d in $all_debug_types; do
7118 export aros_${d}_debug="1"
7119 done
7120 else
7121 for d in $all_debug_types; do
7122 export aros_${d}_debug="0"
7123 done
7126 if test "$debug" != "none"; then
7127 debug=`echo $debug | sed s/,/\ /g`
7128 for d in $debug; do
7129 found="0"
7130 for d2 in $all_debug_types; do
7131 if test "$d2" = "$d"; then
7132 found="1"
7133 break
7135 done
7136 if test "$found" = "0"; then
7137 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7138 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7139 { (exit 1); exit 1; }; }
7141 export aros_${d}_debug="1"
7142 done
7143 aros_debug="yes"
7145 echo "$as_me:$LINENO: result: $debug" >&5
7146 echo "${ECHO_T}$debug" >&6
7148 if test "$aros_messages_debug" = "1"; then
7149 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7150 else
7151 aros_messages_debug=""
7153 if test "$aros_symbols_debug" = "1"; then
7154 aros_symbols_debug="-g"
7155 else
7156 aros_symbols_debug=""
7159 # These are the flags to pass when compiling debugged programs
7160 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7161 aros_debug_aflags=""
7162 aros_debug_ldflags="$aros_symbols_debug"
7164 #-----------------------------------------------------------------------------
7165 # Checking for distcc and ccache.
7167 # Always apply the transforms in this particular order. Basically you should
7168 # always run 'ccache distcc compiler' in that order for the best performance.
7170 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7171 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7172 # Check whether --enable-distcc or --disable-distcc was given.
7173 if test "${enable_distcc+set}" = set; then
7174 enableval="$enable_distcc"
7175 distcc="$enableval"
7176 else
7177 distcc="no"
7179 if test "$distcc" != "" -a "$distcc" != "no"; then
7180 # AC_CHECK_PROG will print out the result in this case
7181 # Extract the first word of "distcc", so it can be a program name with args.
7182 set dummy distcc; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_path_DISTCC+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $DISTCC in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7207 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7209 esac
7211 DISTCC=$ac_cv_path_DISTCC
7213 if test -n "$DISTCC"; then
7214 echo "$as_me:$LINENO: result: $DISTCC" >&5
7215 echo "${ECHO_T}$DISTCC" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6
7226 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7227 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7228 # Check whether --enable-ccache or --disable-ccache was given.
7229 if test "${enable_ccache+set}" = set; then
7230 enableval="$enable_ccache"
7231 ccache="$enableval"
7232 else
7233 ccache="no"
7235 if test "$ccache" != "" -a "$ccache" != "no"; then
7236 # AC_CHECK_PROG will print out the result in this case
7237 # Extract the first word of "ccache", so it can be a program name with args.
7238 set dummy ccache; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_CCACHE+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 if test -n "$CCACHE"; then
7245 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_CCACHE="ccache"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7258 done
7259 done
7263 CCACHE=$ac_cv_prog_CCACHE
7264 if test -n "$CCACHE"; then
7265 echo "$as_me:$LINENO: result: $CCACHE" >&5
7266 echo "${ECHO_T}$CCACHE" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 else
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7277 #-----------------------------------------------------------------------------
7278 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7279 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7281 # Check whether --with-optimization or --without-optimization was given.
7282 if test "${with_optimization+set}" = set; then
7283 withval="$with_optimization"
7284 optimization="$withval"
7285 else
7286 optimization="unknown"
7288 if test "$optimization" = "unknown"; then
7289 if test "$debug" != "none"; then
7290 optimization="-O0"
7291 else
7292 optimization="-O2"
7295 aros_config_cflags="$aros_config_cflags $optimization"
7296 echo "$as_me:$LINENO: result: $optimization" >&5
7297 echo "${ECHO_T}$optimization" >&6
7299 #-----------------------------------------------------------------------------
7300 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7301 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7302 # Check whether --enable-target_variant or --disable-target_variant was given.
7303 if test "${enable_target_variant+set}" = set; then
7304 enableval="$enable_target_variant"
7305 target_variant=$enableval
7306 else
7307 target_variant="none"
7309 if test "$target_variant" = "none"; then
7310 aros_target_variant=""
7311 aros_target_suffix=""
7312 else
7313 aros_target_variant="$target_variant"
7314 aros_target_suffix="-$target_variant"
7316 echo "$as_me:$LINENO: result: $enableval" >&5
7317 echo "${ECHO_T}$enableval" >&6
7319 #-----------------------------------------------------------------------------
7320 # This is the target configuration switch.
7321 case "$target_os" in
7322 linux*)
7323 aros_target_arch="linux"
7324 case "$target_cpu" in
7325 *m68k*)
7326 aros_target_cpu="m68k"
7327 aros_object_format="m68kelf"
7328 aros_flavour="emulcompat"
7329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7330 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7331 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7332 gcc_target_cpu="mc68000"
7334 *i?86*)
7335 aros_target_cpu="i386"
7336 aros_object_format="elf_i386"
7337 aros_flavour="emulation"
7338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7339 aros_default_wbdepth=8
7340 gcc_target_cpu="i386"
7342 *x86_64*)
7343 aros_target_cpu="x86_64"
7344 aros_object_format="elf_x86_64"
7345 aros_flavour="emulation"
7346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7347 aros_default_wbdepth=8
7348 gcc_target_cpu="x86_64"
7350 *powerpc*)
7351 aros_target_cpu="ppc"
7352 aros_object_format="elf32ppc"
7353 aros_flavour="emulation"
7354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7355 aros_default_wbdepth=8
7356 gcc_target_cpu="ppc"
7359 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7360 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7361 { (exit 1); exit 1; }; }
7363 esac
7367 aros_target_arch="pc"
7368 aros_shared_default="no"
7369 case "$target_cpu" in
7370 *i?86*)
7371 aros_target_cpu="i386"
7374 if test "$aros_object_format" = "" ; then
7375 aros_object_format="elf_i386"
7377 aros_flavour="standalone"
7378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7379 aros_kernel_ldflags=""
7380 aros_default_wbwidth=640
7381 aros_default_wbheight=480
7382 gcc_target_cpu="i386"
7385 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7386 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7387 { (exit 1); exit 1; }; }
7389 esac
7392 prep)
7393 aros_target_arch="prep"
7394 aros_shared_default="no"
7395 aros_target_cpu="ppc"
7396 aros_object_format="elf32ppc"
7397 aros_flavour="ppcnative"
7398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7399 aros_kernel_ldflags=""
7400 aros_default_wbwidth=640
7401 aros_default_wbheight=480
7402 gcc_target_cpu="ppc"
7403 case "$target_cpu" in
7404 *cross*)
7405 aros_target_cc="ppc-linux-gcc -pipe"
7406 aros_target_ld="ppc-linux-ld"
7407 aros_target_as="ppc-linux-as"
7408 aros_target_ar="ppc-linux-ar"
7409 aros_target_ranlib="ppc-linux-ranlib"
7410 aros_target_nm="ppc-linux-nm"
7411 aros_target_strip="ppc-linux-strip"
7412 aros_target_objcopy="ppc-linux-objcopy"
7413 aros_target_objdump="ppc-linux-objdump"
7414 aros_shared_ld="ppc-linux-ld"
7415 aros_kernel_ld="ppc-linux-ld"
7419 esac
7422 freebsd*)
7423 aros_target_arch="freebsd"
7424 aros_target_cpu="i386"
7425 aros_flavour="emulation"
7426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7427 gcc_target_cpu="i386"
7429 aros_target_strip_flags="-x"
7432 darwin*)
7433 aros_target_arch="darwin"
7434 aros_target_cpu="i386"
7435 aros_flavour="emulation"
7436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7437 gcc_target_cpu="i386"
7439 aros_target_strip_flags="-x"
7442 netbsd*)
7443 aros_target_arch="netbsd"
7444 case "$target_cpu" in
7445 *m68k*)
7446 aros_target_cpu="m68k"
7447 aros_object_format="m68kelf"
7448 aros_flavour="emulcompat"
7449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7450 gcc_target_cpu="mc68000"
7452 *i?86*)
7453 aros_target_cpu="i386"
7454 aros_object_format="elf_i386"
7455 aros_flavour="emulation"
7456 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7457 aros_default_wbdepth=8
7458 gcc_target_cpu="i386"
7461 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7462 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7463 { (exit 1); exit 1; }; }
7465 esac
7466 aros_target_genmap="-Wl,-M -Xlinker >"
7467 aros_flavour="emulation"
7468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7471 openbsd*)
7472 aros_target_arch="openbsd"
7473 case "$target_cpu" in
7474 *i?86*)
7475 aros_target_cpu="i386"
7476 aros_object_format="elf_i386"
7477 aros_flavour="emulation"
7478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7479 gcc_target_cpu="i386"
7482 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7483 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7484 { (exit 1); exit 1; }; }
7486 esac
7487 aros_target_genmap="-Wl,-M -Xlinker >"
7488 aros_target_nm_flags="-u"
7489 aros_flavour="emulation"
7492 solaris*)
7493 aros_target_arch="solaris"
7494 case "$target_cpu" in
7495 *sparc*)
7496 aros_target_cpu="sparc"
7497 aros_object_format="elf_sparc"
7498 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7499 gcc_target_cpu="sparc"
7502 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7503 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7504 { (exit 1); exit 1; }; }
7506 esac
7507 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7508 aros_flavour="emulation"
7511 morphos*)
7512 aros_target_arch="morphos"
7513 aros_shared_default="no"
7514 aros_target_cpu="ppc"
7515 aros_object_format="elf_ppc"
7516 aros_flavour="nativecompat"
7517 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7518 gcc_target_cpu="ppc"
7521 amiga*)
7522 aros_target_arch="amiga"
7523 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7524 aros_shared_default="no"
7526 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7528 case "$target_cpu" in
7529 *m68k*)
7530 aros_target_cpu="m68k"
7531 aros_object_format="m68kelf"
7532 aros_flavour="nativecompat"
7533 gcc_target_cpu="mc68000"
7535 *ppc*)
7536 aros_cpu="ppc"
7537 aros_flavour="native"
7538 gcc_target_cpu="ppc"
7541 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7542 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7543 { (exit 1); exit 1; }; }
7545 esac
7548 cygwin*)
7549 aros_target_arch="cygwin"
7550 aros_shared_default="no"
7551 case "$target_cpu" in
7552 *i?86*)
7553 aros_target_cpu="i386"
7554 aros_object_format="elf_i386"
7555 aros_flavour="emulation"
7556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7557 aros_shared_cflags=""
7558 aros_default_wbdepth=8
7559 gcc_target_cpu="i386"
7562 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7563 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7564 { (exit 1); exit 1; }; }
7566 esac
7568 pp*)
7569 aros_target_arch="pp"
7570 aros_shared_default="no"
7571 case "$target_cpu" in
7572 *m68k*)
7573 aros_target_cpu="m68k"
7574 aros_object_format="m68kelf"
7575 aros_flavour="palmnative"
7576 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7577 aros_kernel_ldflags=""
7578 aros_default_wbwidth=160
7579 aros_default_wbheight=160
7580 aros_default_wbdepth=1
7581 aros_target_cc="m68k-elf-gcc -pipe"
7582 aros_target_ld="$(which m68k-elf-ld)"
7583 aros_target_as="m68k-elf-gcc -pipe"
7584 aros_shared_ld="m68k-elf-gcc"
7585 aros_kernel_ld="m68k-elf-gcc"
7586 aros_target_ar="m68k-elf-ar"
7587 aros_target_ar_flags="cru"
7588 aros_target_ranlib="m68k-elf-ranlib"
7589 aros_target_nm="m68k-elf-nm"
7590 aros_target_objcopy="m68k-elf-objcopy"
7591 aros_target_objdump="m68k-elf-objdump"
7592 aros_compiler_libs="-lgcc1"
7593 aros_shared_default=no
7594 aros_shared_cflags="-fpic"
7595 aros_shared_aflags=""
7596 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7597 aros_kernel_ldflags="-Wl,-rpath,./lib"
7598 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7599 aros_debug_aflags=""
7600 aros_debug_ldflags="$aros_symbols_debug"
7601 aros_mungwall_debug="0"
7602 aros_modules_debug="0"
7603 gcc_target_cpu="mc68000"
7604 ignore_undefined_symbols="-ius"
7607 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7608 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7609 { (exit 1); exit 1; }; }
7611 esac
7614 mac*)
7615 aros_target_arch="mac"
7616 aros_shared_default="no"
7617 case "$target_cpu" in
7618 *m68k*)
7619 aros_target_cpu="m68k"
7620 aros_object_format="m68kelf"
7621 aros_flavour="mac68knative"
7622 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7623 aros_default_wbwidth=512
7624 aros_default_wbheight=384
7625 aros_default_wbdepth=8
7626 aros_target_cc="m68k-elf-gcc -pipe"
7627 aros_target_ld="$(which m68k-elf-ld)"
7628 aros_target_as="m68k-elf-gcc -pipe"
7629 aros_shared_ld="m68k-elf-gcc"
7630 aros_kernel_ld="m68k-elf-gcc"
7631 aros_target_ar="m68k-elf-ar"
7632 aros_target_ar_flags="cru"
7633 aros_target_ranlib="m68k-elf-ranlib"
7634 aros_target_nm="m68k-elf-nm"
7635 aros_target_objcopy="m68k-elf-objcopy"
7636 aros_target_objdump="m68k-elf-objdump"
7637 aros_compiler_libs="-lgcc1"
7638 aros_shared_default=no
7639 aros_shared_cflags="-fpic"
7640 aros_shared_aflags=""
7641 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7642 aros_kernel_ldflags="-Wl,-rpath,./lib"
7643 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7644 aros_debug_aflags=""
7645 aros_debug_ldflags="$aros_symbols_debug"
7646 aros_mungwall_debug="0"
7647 aros_modules_debug="0"
7648 gcc_target_cpu="mc68000"
7649 ignore_undefined_symbols="-ius"
7652 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
7653 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
7654 { (exit 1); exit 1; }; }
7656 esac
7660 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7661 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7662 { (exit 1); exit 1; }; }
7664 esac
7667 # Find out if we are cross-compiling (ie. if we can't use the host compiler
7668 # for target code)
7669 cross_compiling=no
7670 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7671 cross_compiling=yes
7673 if test "$aros_host_arch" == "darwin" ; then
7674 cross_compiling=yes
7677 # Set prefix for target compiler etc. if we're cross-compiling
7678 # (should possibly be earlier but needs to be after AC_PROG_CC)
7679 if test "$cross_compiling" = "yes" ; then
7680 target_tool_prefix=${target_cpu}-elf-
7681 CC=${target_tool_prefix}gcc
7684 # Find all the tools we need to compile. This could be cross-compiling
7685 # though! If that is the case we use the GNU form of the target and
7686 # simply add this to the front of the binary name. This is rather simple,
7687 # but it should work under most circumstances.
7689 # The default tools are to use the same as the host, but only if the
7690 # host and target CPU are the same. With GCC this is normally enough.
7693 aros_cc_pre=""
7694 aros_shared_ld="$aros_host_ld"
7696 aros_target_mkdep="$aros_host_mkdep"
7697 aros_target_incl_def="$aros_host_incl"
7699 # Extract the first word of "$CC", so it can be a program name with args.
7700 set dummy $CC; ac_word=$2
7701 echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 case $aros_kernel_cc in
7707 [\\/]* | ?:[\\/]*)
7708 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7722 done
7723 done
7726 esac
7728 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
7730 if test -n "$aros_kernel_cc"; then
7731 echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
7732 echo "${ECHO_T}$aros_kernel_cc" >&6
7733 else
7734 echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6
7739 # The default tools executables to be linked to.
7741 if test "$cross_compiling" = "yes" ; then
7742 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7743 set dummy ${target_tool_prefix}as; ac_word=$2
7744 echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7746 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 case $aros_target_as_ln in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7765 done
7766 done
7769 esac
7771 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7773 if test -n "$aros_target_as_ln"; then
7774 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7775 echo "${ECHO_T}$aros_target_as_ln" >&6
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7781 else
7782 if test "$GCC" = "yes"; then
7783 aros_gcc_as=`$CC -print-prog-name=as`
7784 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7785 set dummy `basename $aros_gcc_as`; ac_word=$2
7786 echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 case $aros_target_as_ln in
7792 [\\/]* | ?:[\\/]*)
7793 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in `dirname $aros_gcc_as`
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7807 done
7808 done
7811 esac
7813 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7815 if test -n "$aros_target_as_ln"; then
7816 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7817 echo "${ECHO_T}$aros_target_as_ln" >&6
7818 else
7819 echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7824 if test "$aros_target_as_ln" = ""; then
7825 # Extract the first word of "as", so it can be a program name with args.
7826 set dummy as; ac_word=$2
7827 echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 case $aros_target_as_ln in
7833 [\\/]* | ?:[\\/]*)
7834 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7852 esac
7854 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7856 if test -n "$aros_target_as_ln"; then
7857 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7858 echo "${ECHO_T}$aros_target_as_ln" >&6
7859 else
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7867 if test "$aros_target_as_ln" = ""; then
7868 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
7869 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
7870 { (exit 1); exit 1; }; }
7873 if test "$cross_compiling" = "yes" ; then
7874 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7875 set dummy ${target_tool_prefix}ld; ac_word=$2
7876 echo "$as_me:$LINENO: checking for $ac_word" >&5
7877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 case $aros_kernel_ld in
7882 [\\/]* | ?:[\\/]*)
7883 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7901 esac
7903 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7905 if test -n "$aros_kernel_ld"; then
7906 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7907 echo "${ECHO_T}$aros_kernel_ld" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6
7913 else
7914 if test "$GCC" = "yes"; then
7915 aros_gcc_ld=`$CC -print-prog-name=ld`
7916 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7917 set dummy `basename $aros_gcc_ld`; ac_word=$2
7918 echo "$as_me:$LINENO: checking for $ac_word" >&5
7919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7920 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 case $aros_kernel_ld in
7924 [\\/]* | ?:[\\/]*)
7925 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in `dirname $aros_gcc_ld`
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7943 esac
7945 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7947 if test -n "$aros_kernel_ld"; then
7948 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7949 echo "${ECHO_T}$aros_kernel_ld" >&6
7950 else
7951 echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6
7956 if test "$aros_kernel_ld" = ""; then
7957 # Extract the first word of "ld", so it can be a program name with args.
7958 set dummy ld; ac_word=$2
7959 echo "$as_me:$LINENO: checking for $ac_word" >&5
7960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7961 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964 case $aros_kernel_ld in
7965 [\\/]* | ?:[\\/]*)
7966 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7984 esac
7986 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7988 if test -n "$aros_kernel_ld"; then
7989 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7990 echo "${ECHO_T}$aros_kernel_ld" >&6
7991 else
7992 echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6
7999 if test "$aros_kernel_ld" = ""; then
8000 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8001 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8002 { (exit 1); exit 1; }; }
8005 if test "$cross_compiling" = "yes" ; then
8006 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8007 set dummy ${target_tool_prefix}ar; ac_word=$2
8008 echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 case $aros_target_ar_ln in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8033 esac
8035 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8037 if test -n "$aros_target_ar_ln"; then
8038 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8039 echo "${ECHO_T}$aros_target_ar_ln" >&6
8040 else
8041 echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8045 else
8046 if test "$GCC" = "yes"; then
8047 aros_gcc_ar=`$CC -print-prog-name=ar`
8048 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8049 set dummy `basename $aros_gcc_ar`; ac_word=$2
8050 echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8052 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 case $aros_target_ar_ln in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in `dirname $aros_gcc_ar`
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8075 esac
8077 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8079 if test -n "$aros_target_ar_ln"; then
8080 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8081 echo "${ECHO_T}$aros_target_ar_ln" >&6
8082 else
8083 echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8088 if test "$aros_target_ar_ln" = ""; then
8089 # Extract the first word of "ar", so it can be a program name with args.
8090 set dummy ar; ac_word=$2
8091 echo "$as_me:$LINENO: checking for $ac_word" >&5
8092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8093 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096 case $aros_target_ar_ln in
8097 [\\/]* | ?:[\\/]*)
8098 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8112 done
8113 done
8116 esac
8118 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8120 if test -n "$aros_target_ar_ln"; then
8121 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8122 echo "${ECHO_T}$aros_target_ar_ln" >&6
8123 else
8124 echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6
8131 if test "$aros_target_ar_ln" = ""; then
8132 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
8133 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
8134 { (exit 1); exit 1; }; }
8137 if test "$cross_compiling" = "yes" ; then
8138 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8139 set dummy ${target_tool_prefix}nm; ac_word=$2
8140 echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8142 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 case $aros_target_nm_ln in
8146 [\\/]* | ?:[\\/]*)
8147 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8165 esac
8167 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8169 if test -n "$aros_target_nm_ln"; then
8170 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8171 echo "${ECHO_T}$aros_target_nm_ln" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174 echo "${ECHO_T}no" >&6
8177 else
8178 if test "$GCC" = "yes"; then
8179 aros_gcc_nm=`$CC -print-prog-name=nm`
8180 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8181 set dummy `basename $aros_gcc_nm`; ac_word=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 case $aros_target_nm_ln in
8188 [\\/]* | ?:[\\/]*)
8189 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in `dirname $aros_gcc_nm`
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8203 done
8204 done
8207 esac
8209 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8211 if test -n "$aros_target_nm_ln"; then
8212 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8213 echo "${ECHO_T}$aros_target_nm_ln" >&6
8214 else
8215 echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6
8220 if test "$aros_target_nm_ln" = ""; then
8221 # Extract the first word of "nm", so it can be a program name with args.
8222 set dummy nm; ac_word=$2
8223 echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8225 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 case $aros_target_nm_ln in
8229 [\\/]* | ?:[\\/]*)
8230 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8244 done
8245 done
8248 esac
8250 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8252 if test -n "$aros_target_nm_ln"; then
8253 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8254 echo "${ECHO_T}$aros_target_nm_ln" >&6
8255 else
8256 echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6
8263 if test "$aros_target_nm_ln" = ""; then
8264 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
8265 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
8266 { (exit 1); exit 1; }; }
8269 if test "$cross_compiling" = "yes" ; then
8270 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8271 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 case $aros_target_objcopy_ln in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8297 esac
8299 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8301 if test -n "$aros_target_objcopy_ln"; then
8302 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8303 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8304 else
8305 echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8309 else
8310 if test "$GCC" = "yes"; then
8311 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8312 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8313 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8314 echo "$as_me:$LINENO: checking for $ac_word" >&5
8315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8316 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 case $aros_target_objcopy_ln in
8320 [\\/]* | ?:[\\/]*)
8321 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in `dirname $aros_gcc_objcopy`
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8339 esac
8341 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8343 if test -n "$aros_target_objcopy_ln"; then
8344 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8345 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8346 else
8347 echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6
8352 if test "$aros_target_objcopy_ln" = ""; then
8353 # Extract the first word of "objcopy", so it can be a program name with args.
8354 set dummy objcopy; ac_word=$2
8355 echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 case $aros_target_objcopy_ln in
8361 [\\/]* | ?:[\\/]*)
8362 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8380 esac
8382 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8384 if test -n "$aros_target_objcopy_ln"; then
8385 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8386 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8387 else
8388 echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6
8395 if test "$aros_target_objcopy_ln" = ""; then
8396 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
8397 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
8398 { (exit 1); exit 1; }; }
8401 if test "$cross_compiling" = "yes" ; then
8402 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8403 set dummy ${target_tool_prefix}objdump; ac_word=$2
8404 echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8406 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 case $aros_target_objdump_ln in
8410 [\\/]* | ?:[\\/]*)
8411 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8429 esac
8431 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8433 if test -n "$aros_target_objdump_ln"; then
8434 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8435 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8436 else
8437 echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8441 else
8442 if test "$GCC" = "yes"; then
8443 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8444 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8445 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8446 echo "$as_me:$LINENO: checking for $ac_word" >&5
8447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8448 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 case $aros_target_objdump_ln in
8452 [\\/]* | ?:[\\/]*)
8453 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in `dirname $aros_gcc_objdump`
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8467 done
8468 done
8471 esac
8473 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8475 if test -n "$aros_target_objdump_ln"; then
8476 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8477 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8478 else
8479 echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6
8484 if test "$aros_target_objdump_ln" = ""; then
8485 # Extract the first word of "objdump", so it can be a program name with args.
8486 set dummy objdump; ac_word=$2
8487 echo "$as_me:$LINENO: checking for $ac_word" >&5
8488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8489 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 case $aros_target_objdump_ln in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8512 esac
8514 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8516 if test -n "$aros_target_objdump_ln"; then
8517 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8518 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8519 else
8520 echo "$as_me:$LINENO: result: no" >&5
8521 echo "${ECHO_T}no" >&6
8527 if test "$aros_target_objdump_ln" = ""; then
8528 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
8529 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
8530 { (exit 1); exit 1; }; }
8533 if test "$cross_compiling" = "yes" ; then
8534 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8535 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8536 echo "$as_me:$LINENO: checking for $ac_word" >&5
8537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8538 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 case $aros_target_ranlib_ln in
8542 [\\/]* | ?:[\\/]*)
8543 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8561 esac
8563 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8565 if test -n "$aros_target_ranlib_ln"; then
8566 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8567 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8573 else
8574 if test "$GCC" = "yes"; then
8575 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8576 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8577 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8578 echo "$as_me:$LINENO: checking for $ac_word" >&5
8579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8580 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 case $aros_target_ranlib_ln in
8584 [\\/]* | ?:[\\/]*)
8585 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in `dirname $aros_gcc_ranlib`
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8595 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8603 esac
8605 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8607 if test -n "$aros_target_ranlib_ln"; then
8608 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8609 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8610 else
8611 echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6
8616 if test "$aros_target_ranlib_ln" = ""; then
8617 # Extract the first word of "ranlib", so it can be a program name with args.
8618 set dummy ranlib; ac_word=$2
8619 echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 case $aros_target_ranlib_ln in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8640 done
8641 done
8644 esac
8646 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8648 if test -n "$aros_target_ranlib_ln"; then
8649 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8650 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8651 else
8652 echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8659 if test "$aros_target_ranlib_ln" = ""; then
8660 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
8661 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
8662 { (exit 1); exit 1; }; }
8665 if test "$cross_compiling" = "yes" ; then
8666 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8667 set dummy ${target_tool_prefix}strip; ac_word=$2
8668 echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 case $aros_target_strip_ln in
8674 [\\/]* | ?:[\\/]*)
8675 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8689 done
8690 done
8693 esac
8695 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8697 if test -n "$aros_target_strip_ln"; then
8698 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8699 echo "${ECHO_T}$aros_target_strip_ln" >&6
8700 else
8701 echo "$as_me:$LINENO: result: no" >&5
8702 echo "${ECHO_T}no" >&6
8705 else
8706 if test "$GCC" = "yes"; then
8707 aros_gcc_strip=`$CC -print-prog-name=strip`
8708 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8709 set dummy `basename $aros_gcc_strip`; ac_word=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715 case $aros_target_strip_ln in
8716 [\\/]* | ?:[\\/]*)
8717 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in `dirname $aros_gcc_strip`
8723 IFS=$as_save_IFS
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 break 2
8731 done
8732 done
8735 esac
8737 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8739 if test -n "$aros_target_strip_ln"; then
8740 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8741 echo "${ECHO_T}$aros_target_strip_ln" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8748 if test "$aros_target_strip_ln" = ""; then
8749 # Extract the first word of "strip", so it can be a program name with args.
8750 set dummy strip; ac_word=$2
8751 echo "$as_me:$LINENO: checking for $ac_word" >&5
8752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8753 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 case $aros_target_strip_ln in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8776 esac
8778 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8780 if test -n "$aros_target_strip_ln"; then
8781 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8782 echo "${ECHO_T}$aros_target_strip_ln" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8791 if test "$aros_target_strip_ln" = ""; then
8792 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
8793 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
8794 { (exit 1); exit 1; }; }
8797 if test "$GCC" = "yes"; then
8798 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
8801 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8802 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8803 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8804 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8805 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8806 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8807 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8809 # aros_cc_pre is a variable that is added to the front of the compiler name
8810 # in the generated aros-gcc shell script. We need this to enable the cache
8811 # to work across cleaned builds. Also, support DISTCC using the correct
8812 # environment variable.
8815 if test "x${DISTCC}" != "x" ; then
8816 if test "x${CCACHE}" != "x" ; then
8817 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
8818 else
8819 aros_cc_pre="${DISTCC} "
8821 else
8822 if test "x${CCACHE}" != "x" ; then
8823 aros_cc_pre="${CCACHE} "
8827 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8829 aros_target_nostdinc_cflags=-nostdinc
8831 aros_target_nostartup_ldflags=-nostartfiles
8833 aros_target_nix_ldflags=-nix
8835 aros_target_detach_ldflags=-detach
8837 aros_target_nostdlib_ldflags=-nostdlib
8840 # Target tools
8841 aros_target_cc="${prefix}-gcc"
8842 aros_target_as="${prefix}-as"
8843 aros_target_ld="${prefix}-ld"
8844 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
8845 aros_target_objcopy=${prefix}-objcopy
8846 aros_target_objdump=${prefix}-objdump
8847 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
8848 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
8849 aros_kernel_nm="${prefix}-nm"
8850 aros_target_strip=${prefix}-strip
8852 #-----------------------------------------------------------------------------
8853 # See if we can compile SHM support
8854 HAVE_XSHM_SUPPORT=0
8855 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8856 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8857 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8858 if test -z "$x_includes" ; then
8859 CFLAGS=""
8860 else
8861 CFLAGS="-I $x_includes"
8863 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 #include <sys/types.h>
8872 #include <X11/Xlib.h>
8873 #include <X11/Xutil.h>
8874 #include <X11/keysym.h>
8875 #include <X11/cursorfont.h>
8876 #include <sys/ipc.h>
8877 #include <sys/shm.h>
8878 #include <X11/extensions/XShm.h>
8880 main ()
8883 static XShmSegmentInfo shminfo;
8884 static Display *display;
8885 XShmAttach(display, &shminfo);
8886 XSync(display,0);
8887 shmctl(shminfo.shmid, IPC_RMID, 0);
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 HAVE_XSHM_SUPPORT=1
8916 echo "$as_me:$LINENO: result: yes" >&5
8917 echo "${ECHO_T}yes" >&6
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 HAVE_XSHM_SUPPORT=0
8923 echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6
8926 rm -f conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext conftest.$ac_ext
8930 #-----------------------------------------------------------------------------
8931 # See if we can compile VIDMODE support
8932 HAVE_VIDMODE_SUPPORT=0
8933 if [ "x$no_x" != "xyes" ]; then
8934 LIBS=""
8935 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8936 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8937 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char XF86VidModeQueryExtension ();
8957 main ()
8959 XF86VidModeQueryExtension ();
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8993 rm -f conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_lib_save_LIBS
8997 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8998 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8999 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9000 HAVE_VIDMODE_SUPPORT=1
9001 else
9002 HAVE_VIDMODE_SUPPORT=0
9008 # Find the system include path. We can suggest that an alternative is
9009 # used if we don't get it correct. The default is to use /usr/include.
9010 # Which is set in the aros_target_incl_def variable.
9012 # Check whether --enable-includes or --disable-includes was given.
9013 if test "${enable_includes+set}" = set; then
9014 enableval="$enable_includes"
9015 aros_target_incl=$enable_includes
9016 else
9017 aros_target_incl=$aros_target_incl_def
9020 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9021 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
9022 if test "$aros_target_cc_includes" = "" ; then
9023 #try to guess where the directory is
9024 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9025 if ! test -d $aros_target_cc_includes; then
9026 #the directory doesn't exist, we need to do some more work
9027 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9029 #these are the headers we're looling for
9030 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9031 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9032 zutil.h"
9034 dirs=
9035 for h in $headers; do
9036 #which other headers each of the above headers needs?
9037 deps=$(echo "#include <$h>" | \
9038 $aros_host_cc -E -M - 2>/dev/null | \
9039 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9041 #copy all the needed headers to a directory beneath gendir
9042 for d in $deps; do
9043 h=$(basename $d)
9044 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9045 sed -n "s,^.*/include\(/.*\),\1,p")
9046 ! test -d $dir && mkdir -p $dir
9047 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9048 done
9049 done
9052 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9053 echo "${ECHO_T}$aros_target_cc_includes" >&6
9055 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9056 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
9058 # Check whether --with-resolution or --without-resolution was given.
9059 if test "${with_resolution+set}" = set; then
9060 withval="$with_resolution"
9061 resolution=$withval
9062 else
9063 resolution=none
9065 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9066 if test "$resolution" = "yes" ; then
9067 resolution="none"
9069 if test "$resolution" = "no" ; then
9070 resolution="none"
9072 if test "$resolution" != "none" ; then
9073 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9074 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9075 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9077 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9078 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
9079 aros_cv_default_wbwidth=$aros_default_wbwidth
9080 aros_cv_default_wbheight=$aros_default_wbheight
9081 aros_cv_default_wbdepth=$aros_default_wbdepth
9083 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9084 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
9085 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
9086 if test "${enable_bochs_hack+set}" = set; then
9087 enableval="$enable_bochs_hack"
9088 bochs_hack="yes"
9089 else
9090 bochs_hack="no"
9092 if test "$bochs_hack" = "yes" ; then
9093 aros_bochs_hack="1"
9095 echo "$as_me:$LINENO: result: $bochs_hack" >&5
9096 echo "${ECHO_T}$bochs_hack" >&6
9098 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9099 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
9101 # Check whether --with-serial-debug or --without-serial-debug was given.
9102 if test "${with_serial_debug+set}" = set; then
9103 withval="$with_serial_debug"
9104 serial_debug=$withval
9105 else
9106 serial_debug=none
9108 if test "$serial_debug" = "yes" ; then
9109 serial_debug="2"
9111 if test "$serial_debug" = "no" ; then
9112 serial_debug="none"
9114 if test "$serial_debug" != "none" ; then
9115 aros_serial_debug=$serial_debug
9116 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9117 echo "${ECHO_T}on port $serial_debug" >&6
9118 else
9119 echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9123 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9124 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
9125 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
9126 if test "${enable_palm_debug_hack+set}" = set; then
9127 enableval="$enable_palm_debug_hack"
9128 palm_debug_hack="yes"
9129 else
9130 palm_debug_hack="no"
9132 if test "$palm_debug_hack" = "yes" ; then
9133 aros_palm_debug_hack="1"
9135 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9136 echo "${ECHO_T}$palm_debug_hack" >&6
9139 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9140 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
9141 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
9142 if test "${enable_nesting_supervisor+set}" = set; then
9143 enableval="$enable_nesting_supervisor"
9144 nesting_supervisor="yes"
9145 else
9146 nesting_supervisor="no"
9148 if test "$nesting_supervisor" = "yes" ; then
9149 aros_nesting_supervisor="1"
9151 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9152 echo "${ECHO_T}$nesting_supervisor" >&6
9156 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9157 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
9158 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
9159 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
9160 if test "${enable_xshm_extension+set}" = set; then
9161 enableval="$enable_xshm_extension"
9162 xshm_extension="$enableval"
9163 else
9164 xshm_extension="yes"
9166 if test "$xshm_extension" = "no" ; then
9167 DO_XSHM_SUPPORT="0"
9169 echo "$as_me:$LINENO: result: $xshm_extension" >&5
9170 echo "${ECHO_T}$xshm_extension" >&6
9171 else
9172 DO_XSHM_SUPPORT="0"
9175 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
9176 echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
9177 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6
9178 # Check whether --enable-vidmodeextension or --disable-vidmodeextension was given.
9179 if test "${enable_vidmodeextension+set}" = set; then
9180 enableval="$enable_vidmodeextension"
9181 vidmode_extension="$enableval"
9182 else
9183 vidmode_extension="yes"
9185 if test "$vidmode_extension" = "no" ; then
9186 DO_VIDMODE_SUPPORT="0"
9188 echo "$as_me:$LINENO: result: $vidmode_extension" >&5
9189 echo "${ECHO_T}$vidmode_extension" >&6
9190 else
9191 DO_VIDMODE_SUPPORT="0"
9195 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
9196 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
9197 # Check whether --enable-dbus or --disable-dbus was given.
9198 if test "${enable_dbus+set}" = set; then
9199 enableval="$enable_dbus"
9200 dbus="yes"
9201 else
9202 dbus="no"
9204 if test "$dbus" = "yes" ; then
9205 ENABLE_DBUS=1
9206 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
9207 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
9208 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
9209 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
9210 else
9211 ENABLE_DBUS=0
9213 echo "$as_me:$LINENO: result: $dbus" >&5
9214 echo "${ECHO_T}$dbus" >&6
9218 # Generic
9225 # Host related
9248 # Target Related
9287 # Graphics Related
9300 # Native version related
9304 # Palm native version related
9307 # Unix/Hosted version related
9310 # DBUS related
9317 # Debug related
9323 # Collect-aros stuff: "-ius" to ignore undefined symbols
9326 # C compiler related
9329 case "$aros_flavour" in
9330 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
9331 aros_flavour="emulation" ;;
9332 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
9333 aros_flavour="emulation" ;;
9334 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
9335 aros_flavour="standalone";;
9336 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
9337 aros_flavour="native" ;;
9338 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9339 aros_flavour="native" ;;
9340 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
9341 aros_flavour="linklib" ;;
9342 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9343 aros_flavour="palmnative" ;;
9344 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9345 aros_flavour="mac68knative" ;;
9346 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9347 aros_flavour="ppcnative" ;;
9348 esac
9350 if test -z "$aros_gui_basedir" ; then
9351 aros_gui_libdir="$x_libraries"
9352 if test -z "$x_libraries" ; then
9353 aros_gui_ldflags=""
9354 else
9355 aros_gui_ldflags="-L $x_libraries"
9357 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9358 aros_gui_libflags="-lX11 -lXext"
9359 else
9360 aros_gui_libflags="-lX11"
9362 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
9363 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
9366 aros_gui_incdir="$x_includes"
9367 if test -z "$x_includes" ; then
9368 aros_gui_ccflags=""
9369 else
9370 aros_gui_ccflags="-I $x_includes"
9372 else
9373 if test -n "$aros_gui_basedir" ; then
9374 aros_gui_libdir="${aros_gui_basedir}/lib"
9375 aros_gui_incdir="${aros_gui_basedir}/include"
9378 if test -n "$aros_gui_libdir" ; then
9379 aros_gui_ldflags="-L ${aros_gui_libdir}"
9382 if test -n "$aros_gui_incdir" ; then
9383 aros_gui_ccflags="-I ${aros_gui_incdir}"
9384 else
9385 aros_gui_incdir="${aros_sysincludes}"
9386 aros_gui_ccflags=""
9390 if test ! -d ${aros_inc_dir} ; then
9391 ${MKDIR} ${aros_inc_dir}
9393 if test ! -d ${aros_geninc_dir} ; then
9394 ${MKDIR} ${aros_geninc_dir}
9396 if test ! -d ${aros_hostcfg_dir} ; then
9397 ${MKDIR} ${aros_hostcfg_dir}
9399 if test ! -d ${aros_targetcfg_dir} ; then
9400 ${MKDIR} ${aros_targetcfg_dir}
9402 if test ! -d ${aros_tools_dir} ; then
9403 ${MKDIR} ${aros_tools_dir}
9405 if test ! -d ${aros_scripts_dir} ; then
9406 ${MKDIR} ${aros_scripts_dir}
9409 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
9412 ac_config_commands="$ac_config_commands compiler_executable"
9414 ac_config_commands="$ac_config_commands genshared_executable"
9416 ac_config_commands="$ac_config_commands genmf_executable"
9418 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
9421 ac_config_files="$ac_config_files Makefile rom/mmakefile ${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/adflib/myconf.aros tools/collect-aros/env.h"
9424 cat >confcache <<\_ACEOF
9425 # This file is a shell script that caches the results of configure
9426 # tests run on this system so they can be shared between configure
9427 # scripts and configure runs, see configure's option --config-cache.
9428 # It is not useful on other systems. If it contains results you don't
9429 # want to keep, you may remove or edit it.
9431 # config.status only pays attention to the cache file if you give it
9432 # the --recheck option to rerun configure.
9434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9436 # following values.
9438 _ACEOF
9440 # The following way of writing the cache mishandles newlines in values,
9441 # but we know of no workaround that is simple, portable, and efficient.
9442 # So, don't put newlines in cache variables' values.
9443 # Ultrix sh set writes to stderr and can't be redirected directly,
9444 # and sets the high bit in the cache file unless we assign to the vars.
9446 (set) 2>&1 |
9447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9448 *ac_space=\ *)
9449 # `set' does not quote correctly, so add quotes (double-quote
9450 # substitution turns \\\\ into \\, and sed turns \\ into \).
9451 sed -n \
9452 "s/'/'\\\\''/g;
9453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9456 # `set' quotes correctly as required by POSIX, so do not add quotes.
9457 sed -n \
9458 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9460 esac;
9462 sed '
9463 t clear
9464 : clear
9465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9466 t end
9467 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9468 : end' >>confcache
9469 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9470 if test -w $cache_file; then
9471 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9472 cat confcache >$cache_file
9473 else
9474 echo "not updating unwritable cache $cache_file"
9477 rm -f confcache
9479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9480 # Let make expand exec_prefix.
9481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9485 # trailing colons and then remove the whole line if VPATH becomes empty
9486 # (actually we leave an empty line to preserve line numbers).
9487 if test "x$srcdir" = x.; then
9488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9489 s/:*\$(srcdir):*/:/;
9490 s/:*\${srcdir}:*/:/;
9491 s/:*@srcdir@:*/:/;
9492 s/^\([^=]*=[ ]*\):*/\1/;
9493 s/:*$//;
9494 s/^[^=]*=[ ]*$//;
9498 DEFS=-DHAVE_CONFIG_H
9500 ac_libobjs=
9501 ac_ltlibobjs=
9502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9503 # 1. Remove the extension, and $U if already installed.
9504 ac_i=`echo "$ac_i" |
9505 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9506 # 2. Add them.
9507 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9508 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9509 done
9510 LIBOBJS=$ac_libobjs
9512 LTLIBOBJS=$ac_ltlibobjs
9516 : ${CONFIG_STATUS=./config.status}
9517 ac_clean_files_save=$ac_clean_files
9518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9519 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9520 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9521 cat >$CONFIG_STATUS <<_ACEOF
9522 #! $SHELL
9523 # Generated by $as_me.
9524 # Run this file to recreate the current configuration.
9525 # Compiler output produced by configure, useful for debugging
9526 # configure, is in config.log if it exists.
9528 debug=false
9529 ac_cs_recheck=false
9530 ac_cs_silent=false
9531 SHELL=\${CONFIG_SHELL-$SHELL}
9532 _ACEOF
9534 cat >>$CONFIG_STATUS <<\_ACEOF
9535 ## --------------------- ##
9536 ## M4sh Initialization. ##
9537 ## --------------------- ##
9539 # Be Bourne compatible
9540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9541 emulate sh
9542 NULLCMD=:
9543 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9544 # is contrary to our usage. Disable this feature.
9545 alias -g '${1+"$@"}'='"$@"'
9546 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9547 set -o posix
9549 DUALCASE=1; export DUALCASE # for MKS sh
9551 # Support unset when possible.
9552 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9553 as_unset=unset
9554 else
9555 as_unset=false
9559 # Work around bugs in pre-3.0 UWIN ksh.
9560 $as_unset ENV MAIL MAILPATH
9561 PS1='$ '
9562 PS2='> '
9563 PS4='+ '
9565 # NLS nuisances.
9566 for as_var in \
9567 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9568 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9569 LC_TELEPHONE LC_TIME
9571 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9572 eval $as_var=C; export $as_var
9573 else
9574 $as_unset $as_var
9576 done
9578 # Required to use basename.
9579 if expr a : '\(a\)' >/dev/null 2>&1; then
9580 as_expr=expr
9581 else
9582 as_expr=false
9585 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9586 as_basename=basename
9587 else
9588 as_basename=false
9592 # Name of the executable.
9593 as_me=`$as_basename "$0" ||
9594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9595 X"$0" : 'X\(//\)$' \| \
9596 X"$0" : 'X\(/\)$' \| \
9597 . : '\(.\)' 2>/dev/null ||
9598 echo X/"$0" |
9599 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9600 /^X\/\(\/\/\)$/{ s//\1/; q; }
9601 /^X\/\(\/\).*/{ s//\1/; q; }
9602 s/.*/./; q'`
9605 # PATH needs CR, and LINENO needs CR and PATH.
9606 # Avoid depending upon Character Ranges.
9607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9610 as_cr_digits='0123456789'
9611 as_cr_alnum=$as_cr_Letters$as_cr_digits
9613 # The user is always right.
9614 if test "${PATH_SEPARATOR+set}" != set; then
9615 echo "#! /bin/sh" >conf$$.sh
9616 echo "exit 0" >>conf$$.sh
9617 chmod +x conf$$.sh
9618 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9619 PATH_SEPARATOR=';'
9620 else
9621 PATH_SEPARATOR=:
9623 rm -f conf$$.sh
9627 as_lineno_1=$LINENO
9628 as_lineno_2=$LINENO
9629 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9630 test "x$as_lineno_1" != "x$as_lineno_2" &&
9631 test "x$as_lineno_3" = "x$as_lineno_2" || {
9632 # Find who we are. Look in the path if we contain no path at all
9633 # relative or not.
9634 case $0 in
9635 *[\\/]* ) as_myself=$0 ;;
9636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9642 done
9645 esac
9646 # We did not find ourselves, most probably we were run as `sh COMMAND'
9647 # in which case we are not to be found in the path.
9648 if test "x$as_myself" = x; then
9649 as_myself=$0
9651 if test ! -f "$as_myself"; then
9652 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9653 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9654 { (exit 1); exit 1; }; }
9656 case $CONFIG_SHELL in
9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9661 IFS=$as_save_IFS
9662 test -z "$as_dir" && as_dir=.
9663 for as_base in sh bash ksh sh5; do
9664 case $as_dir in
9666 if ("$as_dir/$as_base" -c '
9667 as_lineno_1=$LINENO
9668 as_lineno_2=$LINENO
9669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9670 test "x$as_lineno_1" != "x$as_lineno_2" &&
9671 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9672 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9673 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9674 CONFIG_SHELL=$as_dir/$as_base
9675 export CONFIG_SHELL
9676 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9677 fi;;
9678 esac
9679 done
9680 done
9682 esac
9684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9685 # uniformly replaced by the line number. The first 'sed' inserts a
9686 # line-number line before each line; the second 'sed' does the real
9687 # work. The second script uses 'N' to pair each line-number line
9688 # with the numbered line, and appends trailing '-' during
9689 # substitution so that $LINENO is not a special case at line end.
9690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9691 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9692 sed '=' <$as_myself |
9693 sed '
9695 s,$,-,
9696 : loop
9697 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9698 t loop
9699 s,-$,,
9700 s,^['$as_cr_digits']*\n,,
9701 ' >$as_me.lineno &&
9702 chmod +x $as_me.lineno ||
9703 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9704 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9705 { (exit 1); exit 1; }; }
9707 # Don't try to exec as it changes $[0], causing all sort of problems
9708 # (the dirname of $[0] is not the place where we might find the
9709 # original and so on. Autoconf is especially sensible to this).
9710 . ./$as_me.lineno
9711 # Exit status is that of the last command.
9712 exit
9716 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9717 *c*,-n*) ECHO_N= ECHO_C='
9718 ' ECHO_T=' ' ;;
9719 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9720 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9721 esac
9723 if expr a : '\(a\)' >/dev/null 2>&1; then
9724 as_expr=expr
9725 else
9726 as_expr=false
9729 rm -f conf$$ conf$$.exe conf$$.file
9730 echo >conf$$.file
9731 if ln -s conf$$.file conf$$ 2>/dev/null; then
9732 # We could just check for DJGPP; but this test a) works b) is more generic
9733 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9734 if test -f conf$$.exe; then
9735 # Don't use ln at all; we don't have any links
9736 as_ln_s='cp -p'
9737 else
9738 as_ln_s='ln -s'
9740 elif ln conf$$.file conf$$ 2>/dev/null; then
9741 as_ln_s=ln
9742 else
9743 as_ln_s='cp -p'
9745 rm -f conf$$ conf$$.exe conf$$.file
9747 if mkdir -p . 2>/dev/null; then
9748 as_mkdir_p=:
9749 else
9750 test -d ./-p && rmdir ./-p
9751 as_mkdir_p=false
9754 as_executable_p="test -f"
9756 # Sed expression to map a string onto a valid CPP name.
9757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9759 # Sed expression to map a string onto a valid variable name.
9760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9763 # IFS
9764 # We need space, tab and new line, in precisely that order.
9765 as_nl='
9767 IFS=" $as_nl"
9769 # CDPATH.
9770 $as_unset CDPATH
9772 exec 6>&1
9774 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9775 # report actual input values of CONFIG_FILES etc. instead of their
9776 # values after options handling. Logging --version etc. is OK.
9777 exec 5>>config.log
9779 echo
9780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9781 ## Running $as_me. ##
9782 _ASBOX
9783 } >&5
9784 cat >&5 <<_CSEOF
9786 This file was extended by $as_me, which was
9787 generated by GNU Autoconf 2.59. Invocation command line was
9789 CONFIG_FILES = $CONFIG_FILES
9790 CONFIG_HEADERS = $CONFIG_HEADERS
9791 CONFIG_LINKS = $CONFIG_LINKS
9792 CONFIG_COMMANDS = $CONFIG_COMMANDS
9793 $ $0 $@
9795 _CSEOF
9796 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9797 echo >&5
9798 _ACEOF
9800 # Files that config.status was made for.
9801 if test -n "$ac_config_files"; then
9802 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9805 if test -n "$ac_config_headers"; then
9806 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9809 if test -n "$ac_config_links"; then
9810 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9813 if test -n "$ac_config_commands"; then
9814 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9817 cat >>$CONFIG_STATUS <<\_ACEOF
9819 ac_cs_usage="\
9820 \`$as_me' instantiates files from templates according to the
9821 current configuration.
9823 Usage: $0 [OPTIONS] [FILE]...
9825 -h, --help print this help, then exit
9826 -V, --version print version number, then exit
9827 -q, --quiet do not print progress messages
9828 -d, --debug don't remove temporary files
9829 --recheck update $as_me by reconfiguring in the same conditions
9830 --file=FILE[:TEMPLATE]
9831 instantiate the configuration file FILE
9832 --header=FILE[:TEMPLATE]
9833 instantiate the configuration header FILE
9835 Configuration files:
9836 $config_files
9838 Configuration headers:
9839 $config_headers
9841 Configuration commands:
9842 $config_commands
9844 Report bugs to <bug-autoconf@gnu.org>."
9845 _ACEOF
9847 cat >>$CONFIG_STATUS <<_ACEOF
9848 ac_cs_version="\\
9849 config.status
9850 configured by $0, generated by GNU Autoconf 2.59,
9851 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9853 Copyright (C) 2003 Free Software Foundation, Inc.
9854 This config.status script is free software; the Free Software Foundation
9855 gives unlimited permission to copy, distribute and modify it."
9856 srcdir=$srcdir
9857 _ACEOF
9859 cat >>$CONFIG_STATUS <<\_ACEOF
9860 # If no file are specified by the user, then we need to provide default
9861 # value. By we need to know if files were specified by the user.
9862 ac_need_defaults=:
9863 while test $# != 0
9865 case $1 in
9866 --*=*)
9867 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9868 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9869 ac_shift=:
9872 ac_option=$1
9873 ac_optarg=$2
9874 ac_shift=shift
9876 *) # This is not an option, so the user has probably given explicit
9877 # arguments.
9878 ac_option=$1
9879 ac_need_defaults=false;;
9880 esac
9882 case $ac_option in
9883 # Handling of the options.
9884 _ACEOF
9885 cat >>$CONFIG_STATUS <<\_ACEOF
9886 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9887 ac_cs_recheck=: ;;
9888 --version | --vers* | -V )
9889 echo "$ac_cs_version"; exit 0 ;;
9890 --he | --h)
9891 # Conflict between --help and --header
9892 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9893 Try \`$0 --help' for more information." >&5
9894 echo "$as_me: error: ambiguous option: $1
9895 Try \`$0 --help' for more information." >&2;}
9896 { (exit 1); exit 1; }; };;
9897 --help | --hel | -h )
9898 echo "$ac_cs_usage"; exit 0 ;;
9899 --debug | --d* | -d )
9900 debug=: ;;
9901 --file | --fil | --fi | --f )
9902 $ac_shift
9903 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9904 ac_need_defaults=false;;
9905 --header | --heade | --head | --hea )
9906 $ac_shift
9907 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9908 ac_need_defaults=false;;
9909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9911 ac_cs_silent=: ;;
9913 # This is an error.
9914 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9915 Try \`$0 --help' for more information." >&5
9916 echo "$as_me: error: unrecognized option: $1
9917 Try \`$0 --help' for more information." >&2;}
9918 { (exit 1); exit 1; }; } ;;
9920 *) ac_config_targets="$ac_config_targets $1" ;;
9922 esac
9923 shift
9924 done
9926 ac_configure_extra_args=
9928 if $ac_cs_silent; then
9929 exec 6>/dev/null
9930 ac_configure_extra_args="$ac_configure_extra_args --silent"
9933 _ACEOF
9934 cat >>$CONFIG_STATUS <<_ACEOF
9935 if \$ac_cs_recheck; then
9936 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9937 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9940 _ACEOF
9942 cat >>$CONFIG_STATUS <<_ACEOF
9944 # INIT-COMMANDS section.
9948 aros_tools_dir=${aros_tools_dir}
9949 aros_target_cpu=${aros_target_cpu}
9950 aros_target_arch=${aros_target_arch}
9951 aros_target_suffix=${aros_target_suffix}
9952 aros_target_nm_ln=${aros_target_nm_ln}
9953 aros_target_as_ln=${aros_target_as_ln}
9954 aros_target_ar_ln=${aros_target_ar_ln}
9955 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9956 aros_target_objdump_ln=${aros_target_objdump_ln}
9957 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9958 aros_target_strip_ln=${aros_target_strip_ln}
9961 aros_scripts_dir=${aros_scripts_dir}
9963 aros_tools_dir=${aros_tools_dir}
9966 _ACEOF
9970 cat >>$CONFIG_STATUS <<\_ACEOF
9971 for ac_config_target in $ac_config_targets
9973 case "$ac_config_target" in
9974 # Handling of arguments.
9975 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9976 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9977 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9978 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9979 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9980 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9981 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9982 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9983 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9984 "${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" ;;
9985 "${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" ;;
9986 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9987 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9988 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9989 "tools/collect-aros/env.h" ) CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
9990 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9991 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9992 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9993 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9994 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9995 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9996 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9997 { (exit 1); exit 1; }; };;
9998 esac
9999 done
10001 # If the user did not use the arguments to specify the items to instantiate,
10002 # then the envvar interface is used. Set only those that are not.
10003 # We use the long form for the default assignment because of an extremely
10004 # bizarre bug on SunOS 4.1.3.
10005 if $ac_need_defaults; then
10006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10011 # Have a temporary directory for convenience. Make it in the build tree
10012 # simply because there is no reason to put it here, and in addition,
10013 # creating and moving files from /tmp can sometimes cause problems.
10014 # Create a temporary directory, and hook for its removal unless debugging.
10015 $debug ||
10017 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10018 trap '{ (exit 1); exit 1; }' 1 2 13 15
10021 # Create a (secure) tmp directory for tmp files.
10024 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10025 test -n "$tmp" && test -d "$tmp"
10026 } ||
10028 tmp=./confstat$$-$RANDOM
10029 (umask 077 && mkdir $tmp)
10030 } ||
10032 echo "$me: cannot create a temporary directory in ." >&2
10033 { (exit 1); exit 1; }
10036 _ACEOF
10038 cat >>$CONFIG_STATUS <<_ACEOF
10041 # CONFIG_FILES section.
10044 # No need to generate the scripts if there are no CONFIG_FILES.
10045 # This happens for instance when ./config.status config.h
10046 if test -n "\$CONFIG_FILES"; then
10047 # Protect against being on the right side of a sed subst in config.status.
10048 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10049 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10050 s,@SHELL@,$SHELL,;t t
10051 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10052 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10053 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10054 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10055 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10056 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10057 s,@exec_prefix@,$exec_prefix,;t t
10058 s,@prefix@,$prefix,;t t
10059 s,@program_transform_name@,$program_transform_name,;t t
10060 s,@bindir@,$bindir,;t t
10061 s,@sbindir@,$sbindir,;t t
10062 s,@libexecdir@,$libexecdir,;t t
10063 s,@datadir@,$datadir,;t t
10064 s,@sysconfdir@,$sysconfdir,;t t
10065 s,@sharedstatedir@,$sharedstatedir,;t t
10066 s,@localstatedir@,$localstatedir,;t t
10067 s,@libdir@,$libdir,;t t
10068 s,@includedir@,$includedir,;t t
10069 s,@oldincludedir@,$oldincludedir,;t t
10070 s,@infodir@,$infodir,;t t
10071 s,@mandir@,$mandir,;t t
10072 s,@build_alias@,$build_alias,;t t
10073 s,@host_alias@,$host_alias,;t t
10074 s,@target_alias@,$target_alias,;t t
10075 s,@DEFS@,$DEFS,;t t
10076 s,@ECHO_C@,$ECHO_C,;t t
10077 s,@ECHO_N@,$ECHO_N,;t t
10078 s,@ECHO_T@,$ECHO_T,;t t
10079 s,@LIBS@,$LIBS,;t t
10080 s,@build@,$build,;t t
10081 s,@build_cpu@,$build_cpu,;t t
10082 s,@build_vendor@,$build_vendor,;t t
10083 s,@build_os@,$build_os,;t t
10084 s,@host@,$host,;t t
10085 s,@host_cpu@,$host_cpu,;t t
10086 s,@host_vendor@,$host_vendor,;t t
10087 s,@host_os@,$host_os,;t t
10088 s,@CC@,$CC,;t t
10089 s,@CFLAGS@,$CFLAGS,;t t
10090 s,@LDFLAGS@,$LDFLAGS,;t t
10091 s,@CPPFLAGS@,$CPPFLAGS,;t t
10092 s,@ac_ct_CC@,$ac_ct_CC,;t t
10093 s,@EXEEXT@,$EXEEXT,;t t
10094 s,@OBJEXT@,$OBJEXT,;t t
10095 s,@CPP@,$CPP,;t t
10096 s,@AWK@,$AWK,;t t
10097 s,@MMAKE@,$MMAKE,;t t
10098 s,@aros_host_ld@,$aros_host_ld,;t t
10099 s,@aros_host_aclocal@,$aros_host_aclocal,;t t
10100 s,@aros_host_autoconf@,$aros_host_autoconf,;t t
10101 s,@aros_host_autoheader@,$aros_host_autoheader,;t t
10102 s,@aros_host_automake@,$aros_host_automake,;t t
10103 s,@aros_host_ar@,$aros_host_ar,;t t
10104 s,@aros_host_ranlib@,$aros_host_ranlib,;t t
10105 s,@aros_host_strip@,$aros_host_strip,;t t
10106 s,@RM@,$RM,;t t
10107 s,@CP@,$CP,;t t
10108 s,@MV@,$MV,;t t
10109 s,@ECHO@,$ECHO,;t t
10110 s,@MKDIR@,$MKDIR,;t t
10111 s,@TOUCH@,$TOUCH,;t t
10112 s,@SORT@,$SORT,;t t
10113 s,@UNIQ@,$UNIQ,;t t
10114 s,@NOP@,$NOP,;t t
10115 s,@CAT@,$CAT,;t t
10116 s,@BISON@,$BISON,;t t
10117 s,@FLEX@,$FLEX,;t t
10118 s,@PNGTOPNM@,$PNGTOPNM,;t t
10119 s,@PPMTOILBM@,$PPMTOILBM,;t t
10120 s,@SED@,$SED,;t t
10121 s,@CHMOD@,$CHMOD,;t t
10122 s,@PYTHON@,$PYTHON,;t t
10123 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
10124 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
10125 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
10126 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
10127 s,@pythondir@,$pythondir,;t t
10128 s,@pkgpythondir@,$pkgpythondir,;t t
10129 s,@pyexecdir@,$pyexecdir,;t t
10130 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
10131 s,@FOR@,$FOR,;t t
10132 s,@IF@,$IF,;t t
10133 s,@TEST@,$TEST,;t t
10134 s,@CMP@,$CMP,;t t
10135 s,@EGREP@,$EGREP,;t t
10136 s,@LIBOBJS@,$LIBOBJS,;t t
10137 s,@DISTCC@,$DISTCC,;t t
10138 s,@CCACHE@,$CCACHE,;t t
10139 s,@aros_kernel_cc@,$aros_kernel_cc,;t t
10140 s,@aros_target_as_ln@,$aros_target_as_ln,;t t
10141 s,@aros_kernel_ld@,$aros_kernel_ld,;t t
10142 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
10143 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
10144 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
10145 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
10146 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
10147 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
10148 s,@aros_target_nostdinc_cflags@,$aros_target_nostdinc_cflags,;t t
10149 s,@aros_target_nostartup_ldflags@,$aros_target_nostartup_ldflags,;t t
10150 s,@aros_target_nix_ldflags@,$aros_target_nix_ldflags,;t t
10151 s,@aros_target_detach_ldflags@,$aros_target_detach_ldflags,;t t
10152 s,@aros_target_nostdlib_ldflags@,$aros_target_nostdlib_ldflags,;t t
10153 s,@aros_arch@,$aros_arch,;t t
10154 s,@aros_cpu@,$aros_cpu,;t t
10155 s,@aros_flavour@,$aros_flavour,;t t
10156 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
10157 s,@TOPDIR@,$TOPDIR,;t t
10158 s,@aros_cc_pre@,$aros_cc_pre,;t t
10159 s,@aros_host_arch@,$aros_host_arch,;t t
10160 s,@aros_host_cpu@,$aros_host_cpu,;t t
10161 s,@aros_host_cc@,$aros_host_cc,;t t
10162 s,@aros_host_make@,$aros_host_make,;t t
10163 s,@aros_host_cflags@,$aros_host_cflags,;t t
10164 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
10165 s,@aros_host_debug@,$aros_host_debug,;t t
10166 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
10167 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
10168 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
10169 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
10170 s,@aros_tools_dir@,$aros_tools_dir,;t t
10171 s,@aros_target_arch@,$aros_target_arch,;t t
10172 s,@aros_target_cpu@,$aros_target_cpu,;t t
10173 s,@aros_target_variant@,$aros_target_variant,;t t
10174 s,@aros_target_suffix@,$aros_target_suffix,;t t
10175 s,@aros_target_incl@,$aros_target_incl,;t t
10176 s,@aros_target_ar@,$aros_target_ar,;t t
10177 s,@aros_target_ranlib@,$aros_target_ranlib,;t t
10178 s,@aros_kernel_nm@,$aros_kernel_nm,;t t
10179 s,@aros_target_cc@,$aros_target_cc,;t t
10180 s,@aros_target_as@,$aros_target_as,;t t
10181 s,@aros_target_ld@,$aros_target_ld,;t t
10182 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
10183 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
10184 s,@aros_target_objdump@,$aros_target_objdump,;t t
10185 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
10186 s,@aros_target_strip@,$aros_target_strip,;t t
10187 s,@aros_target_nm@,$aros_target_nm,;t t
10188 s,@aros_shared_default@,$aros_shared_default,;t t
10189 s,@aros_shared_ld@,$aros_shared_ld,;t t
10190 s,@aros_object_format@,$aros_object_format,;t t
10191 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
10192 s,@aros_config_cflags@,$aros_config_cflags,;t t
10193 s,@aros_config_aflags@,$aros_config_aflags,;t t
10194 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
10195 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
10196 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
10197 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
10198 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
10199 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
10200 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
10201 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
10202 s,@aros_target_genmap@,$aros_target_genmap,;t t
10203 s,@aros_target_strip_flags@,$aros_target_strip_flags,;t t
10204 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
10205 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
10206 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
10207 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
10208 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
10209 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
10210 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
10211 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
10212 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
10213 s,@DO_VIDMODE_SUPPORT@,$DO_VIDMODE_SUPPORT,;t t
10214 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
10215 s,@aros_serial_debug@,$aros_serial_debug,;t t
10216 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
10217 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
10218 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
10219 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
10220 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
10221 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
10222 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
10223 s,@aros_debug@,$aros_debug,;t t
10224 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
10225 s,@aros_stack_debug@,$aros_stack_debug,;t t
10226 s,@aros_modules_debug@,$aros_modules_debug,;t t
10227 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
10228 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
10229 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10230 CEOF
10232 _ACEOF
10234 cat >>$CONFIG_STATUS <<\_ACEOF
10235 # Split the substitutions into bite-sized pieces for seds with
10236 # small command number limits, like on Digital OSF/1 and HP-UX.
10237 ac_max_sed_lines=48
10238 ac_sed_frag=1 # Number of current file.
10239 ac_beg=1 # First line for current file.
10240 ac_end=$ac_max_sed_lines # Line after last line for current file.
10241 ac_more_lines=:
10242 ac_sed_cmds=
10243 while $ac_more_lines; do
10244 if test $ac_beg -gt 1; then
10245 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10246 else
10247 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10249 if test ! -s $tmp/subs.frag; then
10250 ac_more_lines=false
10251 else
10252 # The purpose of the label and of the branching condition is to
10253 # speed up the sed processing (if there are no `@' at all, there
10254 # is no need to browse any of the substitutions).
10255 # These are the two extra sed commands mentioned above.
10256 (echo ':t
10257 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10258 if test -z "$ac_sed_cmds"; then
10259 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10260 else
10261 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10263 ac_sed_frag=`expr $ac_sed_frag + 1`
10264 ac_beg=$ac_end
10265 ac_end=`expr $ac_end + $ac_max_sed_lines`
10267 done
10268 if test -z "$ac_sed_cmds"; then
10269 ac_sed_cmds=cat
10271 fi # test -n "$CONFIG_FILES"
10273 _ACEOF
10274 cat >>$CONFIG_STATUS <<\_ACEOF
10275 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10277 case $ac_file in
10278 - | *:- | *:-:* ) # input from stdin
10279 cat >$tmp/stdin
10280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10284 * ) ac_file_in=$ac_file.in ;;
10285 esac
10287 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10288 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10290 X"$ac_file" : 'X\(//\)[^/]' \| \
10291 X"$ac_file" : 'X\(//\)$' \| \
10292 X"$ac_file" : 'X\(/\)' \| \
10293 . : '\(.\)' 2>/dev/null ||
10294 echo X"$ac_file" |
10295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10297 /^X\(\/\/\)$/{ s//\1/; q; }
10298 /^X\(\/\).*/{ s//\1/; q; }
10299 s/.*/./; q'`
10300 { if $as_mkdir_p; then
10301 mkdir -p "$ac_dir"
10302 else
10303 as_dir="$ac_dir"
10304 as_dirs=
10305 while test ! -d "$as_dir"; do
10306 as_dirs="$as_dir $as_dirs"
10307 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10309 X"$as_dir" : 'X\(//\)[^/]' \| \
10310 X"$as_dir" : 'X\(//\)$' \| \
10311 X"$as_dir" : 'X\(/\)' \| \
10312 . : '\(.\)' 2>/dev/null ||
10313 echo X"$as_dir" |
10314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10316 /^X\(\/\/\)$/{ s//\1/; q; }
10317 /^X\(\/\).*/{ s//\1/; q; }
10318 s/.*/./; q'`
10319 done
10320 test ! -n "$as_dirs" || mkdir $as_dirs
10321 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10323 { (exit 1); exit 1; }; }; }
10325 ac_builddir=.
10327 if test "$ac_dir" != .; then
10328 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10329 # A "../" for each directory in $ac_dir_suffix.
10330 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10331 else
10332 ac_dir_suffix= ac_top_builddir=
10335 case $srcdir in
10336 .) # No --srcdir option. We are building in place.
10337 ac_srcdir=.
10338 if test -z "$ac_top_builddir"; then
10339 ac_top_srcdir=.
10340 else
10341 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10342 fi ;;
10343 [\\/]* | ?:[\\/]* ) # Absolute path.
10344 ac_srcdir=$srcdir$ac_dir_suffix;
10345 ac_top_srcdir=$srcdir ;;
10346 *) # Relative path.
10347 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10348 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10349 esac
10351 # Do not use `cd foo && pwd` to compute absolute paths, because
10352 # the directories may not exist.
10353 case `pwd` in
10354 .) ac_abs_builddir="$ac_dir";;
10356 case "$ac_dir" in
10357 .) ac_abs_builddir=`pwd`;;
10358 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10359 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10360 esac;;
10361 esac
10362 case $ac_abs_builddir in
10363 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10365 case ${ac_top_builddir}. in
10366 .) ac_abs_top_builddir=$ac_abs_builddir;;
10367 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10368 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10369 esac;;
10370 esac
10371 case $ac_abs_builddir in
10372 .) ac_abs_srcdir=$ac_srcdir;;
10374 case $ac_srcdir in
10375 .) ac_abs_srcdir=$ac_abs_builddir;;
10376 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10377 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10378 esac;;
10379 esac
10380 case $ac_abs_builddir in
10381 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10383 case $ac_top_srcdir in
10384 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10385 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10386 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10387 esac;;
10388 esac
10392 if test x"$ac_file" != x-; then
10393 { echo "$as_me:$LINENO: creating $ac_file" >&5
10394 echo "$as_me: creating $ac_file" >&6;}
10395 rm -f "$ac_file"
10397 # Let's still pretend it is `configure' which instantiates (i.e., don't
10398 # use $as_me), people would be surprised to read:
10399 # /* config.h. Generated by config.status. */
10400 if test x"$ac_file" = x-; then
10401 configure_input=
10402 else
10403 configure_input="$ac_file. "
10405 configure_input=$configure_input"Generated from `echo $ac_file_in |
10406 sed 's,.*/,,'` by configure."
10408 # First look for the input files in the build tree, otherwise in the
10409 # src tree.
10410 ac_file_inputs=`IFS=:
10411 for f in $ac_file_in; do
10412 case $f in
10413 -) echo $tmp/stdin ;;
10414 [\\/$]*)
10415 # Absolute (can't be DOS-style, as IFS=:)
10416 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10417 echo "$as_me: error: cannot find input file: $f" >&2;}
10418 { (exit 1); exit 1; }; }
10419 echo "$f";;
10420 *) # Relative
10421 if test -f "$f"; then
10422 # Build tree
10423 echo "$f"
10424 elif test -f "$srcdir/$f"; then
10425 # Source tree
10426 echo "$srcdir/$f"
10427 else
10428 # /dev/null tree
10429 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10430 echo "$as_me: error: cannot find input file: $f" >&2;}
10431 { (exit 1); exit 1; }; }
10432 fi;;
10433 esac
10434 done` || { (exit 1); exit 1; }
10435 _ACEOF
10436 cat >>$CONFIG_STATUS <<_ACEOF
10437 sed "$ac_vpsub
10438 $extrasub
10439 _ACEOF
10440 cat >>$CONFIG_STATUS <<\_ACEOF
10442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10443 s,@configure_input@,$configure_input,;t t
10444 s,@srcdir@,$ac_srcdir,;t t
10445 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10446 s,@top_srcdir@,$ac_top_srcdir,;t t
10447 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10448 s,@builddir@,$ac_builddir,;t t
10449 s,@abs_builddir@,$ac_abs_builddir,;t t
10450 s,@top_builddir@,$ac_top_builddir,;t t
10451 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10453 rm -f $tmp/stdin
10454 if test x"$ac_file" != x-; then
10455 mv $tmp/out $ac_file
10456 else
10457 cat $tmp/out
10458 rm -f $tmp/out
10461 done
10462 _ACEOF
10463 cat >>$CONFIG_STATUS <<\_ACEOF
10466 # CONFIG_HEADER section.
10469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10472 # ac_d sets the value in "#define NAME VALUE" lines.
10473 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10474 ac_dB='[ ].*$,\1#\2'
10475 ac_dC=' '
10476 ac_dD=',;t'
10477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10478 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10479 ac_uB='$,\1#\2define\3'
10480 ac_uC=' '
10481 ac_uD=',;t'
10483 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10485 case $ac_file in
10486 - | *:- | *:-:* ) # input from stdin
10487 cat >$tmp/stdin
10488 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10489 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10490 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10491 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10492 * ) ac_file_in=$ac_file.in ;;
10493 esac
10495 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10496 echo "$as_me: creating $ac_file" >&6;}
10498 # First look for the input files in the build tree, otherwise in the
10499 # src tree.
10500 ac_file_inputs=`IFS=:
10501 for f in $ac_file_in; do
10502 case $f in
10503 -) echo $tmp/stdin ;;
10504 [\\/$]*)
10505 # Absolute (can't be DOS-style, as IFS=:)
10506 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10507 echo "$as_me: error: cannot find input file: $f" >&2;}
10508 { (exit 1); exit 1; }; }
10509 # Do quote $f, to prevent DOS paths from being IFS'd.
10510 echo "$f";;
10511 *) # Relative
10512 if test -f "$f"; then
10513 # Build tree
10514 echo "$f"
10515 elif test -f "$srcdir/$f"; then
10516 # Source tree
10517 echo "$srcdir/$f"
10518 else
10519 # /dev/null tree
10520 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10521 echo "$as_me: error: cannot find input file: $f" >&2;}
10522 { (exit 1); exit 1; }; }
10523 fi;;
10524 esac
10525 done` || { (exit 1); exit 1; }
10526 # Remove the trailing spaces.
10527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10529 _ACEOF
10531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10532 # `conftest.undefs', that substitutes the proper values into
10533 # config.h.in to produce config.h. The first handles `#define'
10534 # templates, and the second `#undef' templates.
10535 # And first: Protect against being on the right side of a sed subst in
10536 # config.status. Protect against being in an unquoted here document
10537 # in config.status.
10538 rm -f conftest.defines conftest.undefs
10539 # Using a here document instead of a string reduces the quoting nightmare.
10540 # Putting comments in sed scripts is not portable.
10542 # `end' is used to avoid that the second main sed command (meant for
10543 # 0-ary CPP macros) applies to n-ary macro definitions.
10544 # See the Autoconf documentation for `clear'.
10545 cat >confdef2sed.sed <<\_ACEOF
10546 s/[\\&,]/\\&/g
10547 s,[\\$`],\\&,g
10548 t clear
10549 : clear
10550 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10551 t end
10552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10553 : end
10554 _ACEOF
10555 # If some macros were called several times there might be several times
10556 # the same #defines, which is useless. Nevertheless, we may not want to
10557 # sort them, since we want the *last* AC-DEFINE to be honored.
10558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10560 rm -f confdef2sed.sed
10562 # This sed command replaces #undef with comments. This is necessary, for
10563 # example, in the case of _POSIX_SOURCE, which is predefined and required
10564 # on some systems where configure will not decide to define it.
10565 cat >>conftest.undefs <<\_ACEOF
10566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10567 _ACEOF
10569 # Break up conftest.defines because some shells have a limit on the size
10570 # of here documents, and old seds have small limits too (100 cmds).
10571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10572 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10574 echo ' :' >>$CONFIG_STATUS
10575 rm -f conftest.tail
10576 while grep . conftest.defines >/dev/null
10578 # Write a limited-size here document to $tmp/defines.sed.
10579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10580 # Speed up: don't consider the non `#define' lines.
10581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10582 # Work around the forget-to-reset-the-flag bug.
10583 echo 't clr' >>$CONFIG_STATUS
10584 echo ': clr' >>$CONFIG_STATUS
10585 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10586 echo 'CEOF
10587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10588 rm -f $tmp/in
10589 mv $tmp/out $tmp/in
10590 ' >>$CONFIG_STATUS
10591 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10592 rm -f conftest.defines
10593 mv conftest.tail conftest.defines
10594 done
10595 rm -f conftest.defines
10596 echo ' fi # grep' >>$CONFIG_STATUS
10597 echo >>$CONFIG_STATUS
10599 # Break up conftest.undefs because some shells have a limit on the size
10600 # of here documents, and old seds have small limits too (100 cmds).
10601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10602 rm -f conftest.tail
10603 while grep . conftest.undefs >/dev/null
10605 # Write a limited-size here document to $tmp/undefs.sed.
10606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10607 # Speed up: don't consider the non `#undef'
10608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10609 # Work around the forget-to-reset-the-flag bug.
10610 echo 't clr' >>$CONFIG_STATUS
10611 echo ': clr' >>$CONFIG_STATUS
10612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10613 echo 'CEOF
10614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10615 rm -f $tmp/in
10616 mv $tmp/out $tmp/in
10617 ' >>$CONFIG_STATUS
10618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10619 rm -f conftest.undefs
10620 mv conftest.tail conftest.undefs
10621 done
10622 rm -f conftest.undefs
10624 cat >>$CONFIG_STATUS <<\_ACEOF
10625 # Let's still pretend it is `configure' which instantiates (i.e., don't
10626 # use $as_me), people would be surprised to read:
10627 # /* config.h. Generated by config.status. */
10628 if test x"$ac_file" = x-; then
10629 echo "/* Generated by configure. */" >$tmp/config.h
10630 else
10631 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10633 cat $tmp/in >>$tmp/config.h
10634 rm -f $tmp/in
10635 if test x"$ac_file" != x-; then
10636 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10637 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10638 echo "$as_me: $ac_file is unchanged" >&6;}
10639 else
10640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10642 X"$ac_file" : 'X\(//\)[^/]' \| \
10643 X"$ac_file" : 'X\(//\)$' \| \
10644 X"$ac_file" : 'X\(/\)' \| \
10645 . : '\(.\)' 2>/dev/null ||
10646 echo X"$ac_file" |
10647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10649 /^X\(\/\/\)$/{ s//\1/; q; }
10650 /^X\(\/\).*/{ s//\1/; q; }
10651 s/.*/./; q'`
10652 { if $as_mkdir_p; then
10653 mkdir -p "$ac_dir"
10654 else
10655 as_dir="$ac_dir"
10656 as_dirs=
10657 while test ! -d "$as_dir"; do
10658 as_dirs="$as_dir $as_dirs"
10659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10661 X"$as_dir" : 'X\(//\)[^/]' \| \
10662 X"$as_dir" : 'X\(//\)$' \| \
10663 X"$as_dir" : 'X\(/\)' \| \
10664 . : '\(.\)' 2>/dev/null ||
10665 echo X"$as_dir" |
10666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10668 /^X\(\/\/\)$/{ s//\1/; q; }
10669 /^X\(\/\).*/{ s//\1/; q; }
10670 s/.*/./; q'`
10671 done
10672 test ! -n "$as_dirs" || mkdir $as_dirs
10673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10675 { (exit 1); exit 1; }; }; }
10677 rm -f $ac_file
10678 mv $tmp/config.h $ac_file
10680 else
10681 cat $tmp/config.h
10682 rm -f $tmp/config.h
10684 done
10685 _ACEOF
10686 cat >>$CONFIG_STATUS <<\_ACEOF
10689 # CONFIG_COMMANDS section.
10691 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10692 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10693 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10694 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10696 X"$ac_dest" : 'X\(//\)[^/]' \| \
10697 X"$ac_dest" : 'X\(//\)$' \| \
10698 X"$ac_dest" : 'X\(/\)' \| \
10699 . : '\(.\)' 2>/dev/null ||
10700 echo X"$ac_dest" |
10701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10703 /^X\(\/\/\)$/{ s//\1/; q; }
10704 /^X\(\/\).*/{ s//\1/; q; }
10705 s/.*/./; q'`
10706 { if $as_mkdir_p; then
10707 mkdir -p "$ac_dir"
10708 else
10709 as_dir="$ac_dir"
10710 as_dirs=
10711 while test ! -d "$as_dir"; do
10712 as_dirs="$as_dir $as_dirs"
10713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10715 X"$as_dir" : 'X\(//\)[^/]' \| \
10716 X"$as_dir" : 'X\(//\)$' \| \
10717 X"$as_dir" : 'X\(/\)' \| \
10718 . : '\(.\)' 2>/dev/null ||
10719 echo X"$as_dir" |
10720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10722 /^X\(\/\/\)$/{ s//\1/; q; }
10723 /^X\(\/\).*/{ s//\1/; q; }
10724 s/.*/./; q'`
10725 done
10726 test ! -n "$as_dirs" || mkdir $as_dirs
10727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10729 { (exit 1); exit 1; }; }; }
10731 ac_builddir=.
10733 if test "$ac_dir" != .; then
10734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10735 # A "../" for each directory in $ac_dir_suffix.
10736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10737 else
10738 ac_dir_suffix= ac_top_builddir=
10741 case $srcdir in
10742 .) # No --srcdir option. We are building in place.
10743 ac_srcdir=.
10744 if test -z "$ac_top_builddir"; then
10745 ac_top_srcdir=.
10746 else
10747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10748 fi ;;
10749 [\\/]* | ?:[\\/]* ) # Absolute path.
10750 ac_srcdir=$srcdir$ac_dir_suffix;
10751 ac_top_srcdir=$srcdir ;;
10752 *) # Relative path.
10753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10755 esac
10757 # Do not use `cd foo && pwd` to compute absolute paths, because
10758 # the directories may not exist.
10759 case `pwd` in
10760 .) ac_abs_builddir="$ac_dir";;
10762 case "$ac_dir" in
10763 .) ac_abs_builddir=`pwd`;;
10764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10766 esac;;
10767 esac
10768 case $ac_abs_builddir in
10769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10771 case ${ac_top_builddir}. in
10772 .) ac_abs_top_builddir=$ac_abs_builddir;;
10773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10775 esac;;
10776 esac
10777 case $ac_abs_builddir in
10778 .) ac_abs_srcdir=$ac_srcdir;;
10780 case $ac_srcdir in
10781 .) ac_abs_srcdir=$ac_abs_builddir;;
10782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10784 esac;;
10785 esac
10786 case $ac_abs_builddir in
10787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10789 case $ac_top_srcdir in
10790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10793 esac;;
10794 esac
10797 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10798 echo "$as_me: executing $ac_dest commands" >&6;}
10799 case $ac_dest in
10800 compiler_executable )
10801 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
10802 mkdir -p $prefix
10803 prefix="${prefix}/${aros_target_cpu}-aros"
10804 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
10806 echo ${prefix}
10807 echo ${prefix2}
10808 chmod a+x ${prefix2}-gcc ${prefix2}-ld
10810 ln -sf ${prefix2}-gcc ${prefix}-gcc
10811 ln -sf ${prefix2}-ld ${prefix}-ld
10813 ln -sf $aros_target_as_ln ${prefix}-as
10814 ln -sf $aros_target_nm_ln ${prefix}-nm
10815 ln -sf $aros_target_ar_ln ${prefix}-ar
10816 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
10817 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
10818 ln -sf $aros_target_objdump_ln ${prefix}-objdump
10819 ln -sf $aros_target_strip_ln ${prefix}-strip
10821 ln -sf $aros_target_as_ln ${prefix2}-as
10822 ln -sf $aros_target_nm_ln ${prefix2}-nm
10823 ln -sf $aros_target_ar_ln ${prefix2}-ar
10824 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
10825 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
10826 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
10827 ln -sf $aros_target_strip_ln ${prefix2}-strip
10829 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
10830 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
10831 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
10833 esac
10834 done
10835 _ACEOF
10837 cat >>$CONFIG_STATUS <<\_ACEOF
10839 { (exit 0); exit 0; }
10840 _ACEOF
10841 chmod +x $CONFIG_STATUS
10842 ac_clean_files=$ac_clean_files_save
10845 # configure is writing to config.log, and then calls config.status.
10846 # config.status does its own redirection, appending to config.log.
10847 # Unfortunately, on DOS this fails, as config.log is still kept open
10848 # by configure, so config.status won't be able to write to it; its
10849 # output is simply discarded. So we exec the FD to /dev/null,
10850 # effectively closing config.log, so it can be properly (re)opened and
10851 # appended to by config.status. When coming back to configure, we
10852 # need to make the FD available again.
10853 if test "$no_create" != yes; then
10854 ac_cs_success=:
10855 ac_config_status_args=
10856 test "$silent" = yes &&
10857 ac_config_status_args="$ac_config_status_args --quiet"
10858 exec 5>/dev/null
10859 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10860 exec 5>>config.log
10861 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10862 # would make configure fail if this is the last instruction.
10863 $ac_cs_success || { (exit 1); exit 1; }
10868 #XXX compatability...
10869 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
10871 if test -n "$aros_shared_cflags" ; then
10872 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10873 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg