Localization, French catalog and Icon by Olivier Adam.
[cake.git] / configure
blobfef73a07561b052ae29df647da086eee8ab8f0ec
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"
3021 aros_host_make="gmake"
3022 aros_host_arch="freebsd"
3023 aros_host_cpu="i386"
3026 case $host_os in
3027 freebsd[234]*)
3028 aros_object_format="elf_i386"
3032 aros_object_format="elf_i386_fbsd"
3034 esac
3038 darwin*)
3039 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3040 aros_host_arch="darwin"
3041 case "$host_cpu" in
3042 *i?86*)
3043 aros_host_cpu="i386"
3045 *powerpc*)
3046 aros_host_cpu="ppc"
3049 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3050 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3051 aros_host_cpu="$host_cpu"
3053 esac
3055 aros_host_ldflags="$aros_host_ldflags -liconv"
3059 netbsd*)
3060 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3061 aros_host_make="gmake"
3062 aros_host_arch="netbsd"
3063 case "$host_cpu" in
3064 *i?86*)
3065 aros_host_cpu="i386"
3067 *m68k*)
3068 aros_host_cpu="m68k"
3071 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3072 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3073 aros_host_cpu="$host_cpu"
3075 esac
3076 aros_host_lib_suffix=".0.0"
3079 openbsd*)
3080 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3081 aros_host_make="gmake"
3082 aros_host_arch="openbsd"
3083 case "$host_cpu" in
3084 *i?86*)
3085 aros_host_cpu="i386"
3088 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3089 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3090 aros_host_cpu="$host_cpu"
3092 esac
3095 solaris*)
3096 aros_host_arch="solaris"
3097 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3098 case "$host_cpu" in
3099 *sparc*)
3100 aros_host_cpu="sparc"
3103 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3104 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3105 aros_host_cpu="$host_cpu"
3107 esac
3110 morphos*)
3111 aros_host_arch="morphos"
3112 aros_host_cpu="ppc"
3115 amiga*)
3116 aros_host_arch="amiga"
3117 SORT="/gg/bin/sort"
3118 TEST="/gg/bin/test"
3119 UNIQ="/gg/bin/uniq"
3120 FOR="for"
3121 TOUCH="/gg/bin/touch"
3122 case "$host_cpu" in
3123 *m68k*)
3124 aros_host_cpu="m68k"
3126 *powerpc*)
3127 aros_host_cpu="ppc"
3130 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3131 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3132 aros_host_cpu="$host_cpu"
3134 esac
3137 cygwin*)
3138 aros_host_arch="cygwin"
3139 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3140 case "$host_cpu" in
3141 *i?86*)
3142 aros_host_cpu="i386"
3145 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3146 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3147 aros_host_cpu="$host_cpu"
3149 esac
3152 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
3153 echo "$as_me: error: Unsupported host architecture $host" >&2;}
3154 { (exit 1); exit 1; }; }
3156 esac
3158 # Extract the first word of "ar", so it can be a program name with args.
3159 set dummy ar; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 if test -n "$aros_host_ar"; then
3166 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_aros_host_ar="ar cr"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3184 aros_host_ar=$ac_cv_prog_aros_host_ar
3185 if test -n "$aros_host_ar"; then
3186 echo "$as_me:$LINENO: result: $aros_host_ar" >&5
3187 echo "${ECHO_T}$aros_host_ar" >&6
3188 else
3189 echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3193 if test "$aros_host_ar" = ""; then
3194 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3195 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3196 { (exit 1); exit 1; }; }
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$aros_host_ranlib"; then
3206 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_aros_host_ranlib="ranlib "
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3224 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
3225 if test -n "$aros_host_ranlib"; then
3226 echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
3227 echo "${ECHO_T}$aros_host_ranlib" >&6
3228 else
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3233 if test "$aros_host_ranlib" = ""; then
3234 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
3235 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
3236 { (exit 1); exit 1; }; }
3238 # Extract the first word of "strip", so it can be a program name with args.
3239 set dummy strip; ac_word=$2
3240 echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 if test -n "$aros_host_strip"; then
3246 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_aros_host_strip="strip "
3256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3264 aros_host_strip=$ac_cv_prog_aros_host_strip
3265 if test -n "$aros_host_strip"; then
3266 echo "$as_me:$LINENO: result: $aros_host_strip" >&5
3267 echo "${ECHO_T}$aros_host_strip" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3273 if test "$aros_host_strip" = ""; then
3274 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3275 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3276 { (exit 1); exit 1; }; }
3279 # Extract the first word of "rm", so it can be a program name with args.
3280 set dummy rm; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_RM+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 if test -n "$RM"; then
3287 ac_cv_prog_RM="$RM" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_RM="rm -rf"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3300 done
3301 done
3305 RM=$ac_cv_prog_RM
3306 if test -n "$RM"; then
3307 echo "$as_me:$LINENO: result: $RM" >&5
3308 echo "${ECHO_T}$RM" >&6
3309 else
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 if test "$RM" = ""; then
3315 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3316 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3317 { (exit 1); exit 1; }; }
3319 # Extract the first word of "cp", so it can be a program name with args.
3320 set dummy cp; ac_word=$2
3321 echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_CP+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if test -n "$CP"; then
3327 ac_cv_prog_CP="$CP" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CP="cp "
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3345 CP=$ac_cv_prog_CP
3346 if test -n "$CP"; then
3347 echo "$as_me:$LINENO: result: $CP" >&5
3348 echo "${ECHO_T}$CP" >&6
3349 else
3350 echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3354 if test "$CP" = ""; then
3355 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3356 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3357 { (exit 1); exit 1; }; }
3359 # Extract the first word of "mv", so it can be a program name with args.
3360 set dummy mv; ac_word=$2
3361 echo "$as_me:$LINENO: checking for $ac_word" >&5
3362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363 if test "${ac_cv_prog_MV+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 if test -n "$MV"; then
3367 ac_cv_prog_MV="$MV" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_MV="mv "
3377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3380 done
3381 done
3385 MV=$ac_cv_prog_MV
3386 if test -n "$MV"; then
3387 echo "$as_me:$LINENO: result: $MV" >&5
3388 echo "${ECHO_T}$MV" >&6
3389 else
3390 echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3394 if test "$MV" = ""; then
3395 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3396 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3397 { (exit 1); exit 1; }; }
3399 # Extract the first word of "echo", so it can be a program name with args.
3400 set dummy echo; ac_word=$2
3401 echo "$as_me:$LINENO: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403 if test "${ac_cv_prog_ECHO+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 if test -n "$ECHO"; then
3407 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_ECHO="echo "
3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3420 done
3421 done
3425 ECHO=$ac_cv_prog_ECHO
3426 if test -n "$ECHO"; then
3427 echo "$as_me:$LINENO: result: $ECHO" >&5
3428 echo "${ECHO_T}$ECHO" >&6
3429 else
3430 echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3434 if test "$ECHO" = ""; then
3435 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3436 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3437 { (exit 1); exit 1; }; }
3439 # Extract the first word of "mkdir", so it can be a program name with args.
3440 set dummy mkdir; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_MKDIR+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -n "$MKDIR"; then
3447 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_MKDIR="mkdir -p"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3465 MKDIR=$ac_cv_prog_MKDIR
3466 if test -n "$MKDIR"; then
3467 echo "$as_me:$LINENO: result: $MKDIR" >&5
3468 echo "${ECHO_T}$MKDIR" >&6
3469 else
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3474 if test "$MKDIR" = ""; then
3475 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3476 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3477 { (exit 1); exit 1; }; }
3479 # Extract the first word of "touch", so it can be a program name with args.
3480 set dummy touch; ac_word=$2
3481 echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3483 if test "${ac_cv_prog_TOUCH+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 if test -n "$TOUCH"; then
3487 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_prog_TOUCH="touch "
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3505 TOUCH=$ac_cv_prog_TOUCH
3506 if test -n "$TOUCH"; then
3507 echo "$as_me:$LINENO: result: $TOUCH" >&5
3508 echo "${ECHO_T}$TOUCH" >&6
3509 else
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3514 if test "$TOUCH" = ""; then
3515 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3516 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3517 { (exit 1); exit 1; }; }
3519 # Extract the first word of "sort", so it can be a program name with args.
3520 set dummy sort; ac_word=$2
3521 echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_prog_SORT+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 if test -n "$SORT"; then
3527 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_SORT="sort "
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3545 SORT=$ac_cv_prog_SORT
3546 if test -n "$SORT"; then
3547 echo "$as_me:$LINENO: result: $SORT" >&5
3548 echo "${ECHO_T}$SORT" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 if test "$SORT" = ""; then
3555 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3556 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3557 { (exit 1); exit 1; }; }
3559 # Extract the first word of "uniq", so it can be a program name with args.
3560 set dummy uniq; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_prog_UNIQ+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 if test -n "$UNIQ"; then
3567 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_UNIQ="uniq "
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3585 UNIQ=$ac_cv_prog_UNIQ
3586 if test -n "$UNIQ"; then
3587 echo "$as_me:$LINENO: result: $UNIQ" >&5
3588 echo "${ECHO_T}$UNIQ" >&6
3589 else
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 if test "$UNIQ" = ""; then
3595 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3596 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3597 { (exit 1); exit 1; }; }
3599 # Extract the first word of "true", so it can be a program name with args.
3600 set dummy true; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_prog_NOP+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$NOP"; then
3607 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_NOP="true "
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3625 NOP=$ac_cv_prog_NOP
3626 if test -n "$NOP"; then
3627 echo "$as_me:$LINENO: result: $NOP" >&5
3628 echo "${ECHO_T}$NOP" >&6
3629 else
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3634 if test "$NOP" = ""; then
3635 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3636 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3637 { (exit 1); exit 1; }; }
3639 # Extract the first word of "cat", so it can be a program name with args.
3640 set dummy cat; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_CAT+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 if test -n "$CAT"; then
3647 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_CAT="cat "
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3660 done
3661 done
3665 CAT=$ac_cv_prog_CAT
3666 if test -n "$CAT"; then
3667 echo "$as_me:$LINENO: result: $CAT" >&5
3668 echo "${ECHO_T}$CAT" >&6
3669 else
3670 echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3674 if test "$CAT" = ""; then
3675 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3676 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3677 { (exit 1); exit 1; }; }
3679 # Extract the first word of "bison", so it can be a program name with args.
3680 set dummy bison; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_BISON+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if test -n "$BISON"; then
3687 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_BISON="bison "
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3700 done
3701 done
3705 BISON=$ac_cv_prog_BISON
3706 if test -n "$BISON"; then
3707 echo "$as_me:$LINENO: result: $BISON" >&5
3708 echo "${ECHO_T}$BISON" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3714 if test "$BISON" = ""; then
3715 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3716 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3717 { (exit 1); exit 1; }; }
3719 # Extract the first word of "flex", so it can be a program name with args.
3720 set dummy flex; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_FLEX+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$FLEX"; then
3727 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_FLEX="flex "
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3745 FLEX=$ac_cv_prog_FLEX
3746 if test -n "$FLEX"; then
3747 echo "$as_me:$LINENO: result: $FLEX" >&5
3748 echo "${ECHO_T}$FLEX" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 if test "$FLEX" = ""; then
3755 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
3756 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
3757 { (exit 1); exit 1; }; }
3759 # Extract the first word of "pngtopnm", so it can be a program name with args.
3760 set dummy pngtopnm; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 if test -n "$PNGTOPNM"; then
3767 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_PNGTOPNM="pngtopnm "
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3785 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3786 if test -n "$PNGTOPNM"; then
3787 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3788 echo "${ECHO_T}$PNGTOPNM" >&6
3789 else
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3794 if test "$PNGTOPNM" = ""; then
3795 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3796 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3797 { (exit 1); exit 1; }; }
3799 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3800 set dummy ppmtoilbm; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806 if test -n "$PPMTOILBM"; then
3807 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_PPMTOILBM="ppmtoilbm "
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3825 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3826 if test -n "$PPMTOILBM"; then
3827 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3828 echo "${ECHO_T}$PPMTOILBM" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 if test "$PPMTOILBM" = ""; then
3835 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3836 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3837 { (exit 1); exit 1; }; }
3839 # Extract the first word of "sed", so it can be a program name with args.
3840 set dummy sed; ac_word=$2
3841 echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3843 if test "${ac_cv_prog_SED+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 if test -n "$SED"; then
3847 ac_cv_prog_SED="$SED" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_SED="sed "
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3865 SED=$ac_cv_prog_SED
3866 if test -n "$SED"; then
3867 echo "$as_me:$LINENO: result: $SED" >&5
3868 echo "${ECHO_T}$SED" >&6
3869 else
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3874 if test "$SED" = ""; then
3875 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3876 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3877 { (exit 1); exit 1; }; }
3879 # Extract the first word of "chmod", so it can be a program name with args.
3880 set dummy chmod; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_CHMOD+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 if test -n "$CHMOD"; then
3887 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CHMOD="chmod "
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3905 CHMOD=$ac_cv_prog_CHMOD
3906 if test -n "$CHMOD"; then
3907 echo "$as_me:$LINENO: result: $CHMOD" >&5
3908 echo "${ECHO_T}$CHMOD" >&6
3909 else
3910 echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 if test "$CHMOD" = ""; then
3915 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3916 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3917 { (exit 1); exit 1; }; }
3924 if test -n "$PYTHON"; then
3925 # If the user set $PYTHON, use it and don't search something else.
3926 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3927 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3928 prog="import sys, string
3929 # split strings by '.' and convert to numeric. Append some zeros
3930 # because we need at least 4 digits for the hex conversion.
3931 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3932 minverhex = 0
3933 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3934 sys.exit(sys.hexversion < minverhex)"
3935 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3936 ($PYTHON -c "$prog") >&5 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; then
3940 echo "$as_me:$LINENO: result: yes" >&5
3941 echo "${ECHO_T}yes" >&6
3942 else
3943 { { echo "$as_me:$LINENO: error: too old" >&5
3944 echo "$as_me: error: too old" >&2;}
3945 { (exit 1); exit 1; }; }
3948 else
3949 # Otherwise, try each interpreter until we find one that satisfies
3950 # VERSION.
3951 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3952 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3953 if test "${am_cv_pathless_PYTHON+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3957 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3958 test "$am_cv_pathless_PYTHON" = none && break
3959 prog="import sys, string
3960 # split strings by '.' and convert to numeric. Append some zeros
3961 # because we need at least 4 digits for the hex conversion.
3962 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3963 minverhex = 0
3964 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3965 sys.exit(sys.hexversion < minverhex)"
3966 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3967 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; then
3971 break
3974 done
3976 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3977 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3978 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3979 if test "$am_cv_pathless_PYTHON" = none; then
3980 PYTHON=:
3981 else
3982 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3983 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_path_PYTHON+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989 case $PYTHON in
3990 [\\/]* | ?:[\\/]*)
3991 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4009 esac
4011 PYTHON=$ac_cv_path_PYTHON
4013 if test -n "$PYTHON"; then
4014 echo "$as_me:$LINENO: result: $PYTHON" >&5
4015 echo "${ECHO_T}$PYTHON" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4022 am_display_PYTHON=$am_cv_pathless_PYTHON
4026 if test "$PYTHON" = :; then
4027 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4028 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4029 { (exit 1); exit 1; }; }
4030 else
4033 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4034 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
4035 if test "${am_cv_python_version+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4040 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4041 echo "${ECHO_T}$am_cv_python_version" >&6
4042 PYTHON_VERSION=$am_cv_python_version
4046 PYTHON_PREFIX='${prefix}'
4048 PYTHON_EXEC_PREFIX='${exec_prefix}'
4052 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4053 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
4054 if test "${am_cv_python_platform+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4059 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4060 echo "${ECHO_T}$am_cv_python_platform" >&6
4061 PYTHON_PLATFORM=$am_cv_python_platform
4066 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4067 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
4068 if test "${am_cv_python_pythondir+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4072 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4074 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4075 echo "${ECHO_T}$am_cv_python_pythondir" >&6
4076 pythondir=$am_cv_python_pythondir
4080 pkgpythondir=\${pythondir}/$PACKAGE
4083 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4084 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4085 if test "${am_cv_python_pyexecdir+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4089 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4091 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4092 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4093 pyexecdir=$am_cv_python_pyexecdir
4097 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4105 FOR=for
4107 IF=if
4109 TEST=test
4111 CMP=cmp
4115 # Check for some includes for the X11 HIDD and the kernel
4118 echo "$as_me:$LINENO: checking for egrep" >&5
4119 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4120 if test "${ac_cv_prog_egrep+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4124 then ac_cv_prog_egrep='grep -E'
4125 else ac_cv_prog_egrep='egrep'
4128 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4129 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4130 EGREP=$ac_cv_prog_egrep
4133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4134 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4135 if test "${ac_cv_header_stdc+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <stdlib.h>
4145 #include <stdarg.h>
4146 #include <string.h>
4147 #include <float.h>
4150 main ()
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_header_stdc=yes
4180 else
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_header_stdc=no
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <string.h>
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "memchr" >/dev/null 2>&1; then
4202 else
4203 ac_cv_header_stdc=no
4205 rm -f conftest*
4209 if test $ac_cv_header_stdc = yes; then
4210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <stdlib.h>
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "free" >/dev/null 2>&1; then
4223 else
4224 ac_cv_header_stdc=no
4226 rm -f conftest*
4230 if test $ac_cv_header_stdc = yes; then
4231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232 if test "$cross_compiling" = yes; then
4234 else
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ctype.h>
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 #else
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #endif
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 main ()
4257 int i;
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4261 exit(2);
4262 exit (0);
4264 _ACEOF
4265 rm -f conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4277 else
4278 echo "$as_me: program exited with status $ac_status" >&5
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ( exit $ac_status )
4283 ac_cv_header_stdc=no
4285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4290 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4291 if test $ac_cv_header_stdc = yes; then
4293 cat >>confdefs.h <<\_ACEOF
4294 #define STDC_HEADERS 1
4295 _ACEOF
4299 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4310 inttypes.h stdint.h unistd.h
4312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 echo "$as_me:$LINENO: checking for $ac_header" >&5
4314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4326 #include <$ac_header>
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag"
4338 || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest.$ac_objext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 eval "$as_ac_Header=yes"
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 eval "$as_ac_Header=no"
4357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4362 cat >>confdefs.h <<_ACEOF
4363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4364 _ACEOF
4368 done
4380 for ac_header in sys/ipc.h sys/shm.h \
4381 sys/mmap.h sys/mman.h sysexits.h \
4382 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4394 else
4395 # Is the header compilable?
4396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4405 #include <$ac_header>
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_header_compiler=yes
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_header_compiler=no
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4438 echo "${ECHO_T}$ac_header_compiler" >&6
4440 # Is the header present?
4441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 #include <$ac_header>
4450 _ACEOF
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4462 else
4463 ac_cpp_err=
4465 else
4466 ac_cpp_err=yes
4468 if test -z "$ac_cpp_err"; then
4469 ac_header_preproc=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_header_preproc=no
4476 rm -f conftest.err conftest.$ac_ext
4477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4478 echo "${ECHO_T}$ac_header_preproc" >&6
4480 # So? What about this header?
4481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4482 yes:no: )
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4487 ac_header_preproc=yes
4489 no:yes:* )
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4503 cat <<\_ASBOX
4504 ## ------------------------------------------ ##
4505 ## Report this to the AC_PACKAGE_NAME lists. ##
4506 ## ------------------------------------------ ##
4507 _ASBOX
4509 sed "s/^/$as_me: WARNING: /" >&2
4511 esac
4512 echo "$as_me:$LINENO: checking for $ac_header" >&5
4513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 eval "$as_ac_Header=\$ac_header_preproc"
4519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4524 cat >>confdefs.h <<_ACEOF
4525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4526 _ACEOF
4530 done
4534 for ac_header in sys/mount.h
4536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <sys/param.h>
4550 #include <$ac_header>
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try='test -z "$ac_c_werror_flag"
4562 || test ! -s conftest.err'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 (eval $ac_try) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; } &&
4568 { ac_try='test -s conftest.$ac_objext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 eval "$as_ac_Header=yes"
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 eval "$as_ac_Header=no"
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4592 done
4600 ac_header_dirent=no
4601 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4602 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4603 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4604 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 #include <sys/types.h>
4615 #include <$ac_hdr>
4618 main ()
4620 if ((DIR *) 0)
4621 return 0;
4623 return 0;
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -z "$ac_c_werror_flag"
4636 || test ! -s conftest.err'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 eval "$as_ac_Header=yes"
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 eval "$as_ac_Header=no"
4655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4660 cat >>confdefs.h <<_ACEOF
4661 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4662 _ACEOF
4664 ac_header_dirent=$ac_hdr; break
4667 done
4668 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4669 if test $ac_header_dirent = dirent.h; then
4670 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4672 if test "${ac_cv_search_opendir+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 ac_func_search_save_LIBS=$LIBS
4676 ac_cv_search_opendir=no
4677 cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 #ifdef __cplusplus
4686 extern "C"
4687 #endif
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4690 char opendir ();
4692 main ()
4694 opendir ();
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_search_opendir="none required"
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 if test "$ac_cv_search_opendir" = no; then
4730 for ac_lib in dir; do
4731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 #ifdef __cplusplus
4741 extern "C"
4742 #endif
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char opendir ();
4747 main ()
4749 opendir ();
4751 return 0;
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756 (eval $ac_link) 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest$ac_exeext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_search_opendir="-l$ac_lib"
4777 break
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 done
4787 LIBS=$ac_func_search_save_LIBS
4789 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4790 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4791 if test "$ac_cv_search_opendir" != no; then
4792 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4796 else
4797 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4799 if test "${ac_cv_search_opendir+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 ac_func_search_save_LIBS=$LIBS
4803 ac_cv_search_opendir=no
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 /* Override any gcc2 internal prototype to avoid an error. */
4812 #ifdef __cplusplus
4813 extern "C"
4814 #endif
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4817 char opendir ();
4819 main ()
4821 opendir ();
4823 return 0;
4825 _ACEOF
4826 rm -f conftest.$ac_objext conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -z "$ac_c_werror_flag"
4836 || test ! -s conftest.err'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest$ac_exeext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_cv_search_opendir="none required"
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4854 rm -f conftest.err conftest.$ac_objext \
4855 conftest$ac_exeext conftest.$ac_ext
4856 if test "$ac_cv_search_opendir" = no; then
4857 for ac_lib in x; do
4858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char opendir ();
4874 main ()
4876 opendir ();
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_search_opendir="-l$ac_lib"
4904 break
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f conftest.err conftest.$ac_objext \
4911 conftest$ac_exeext conftest.$ac_ext
4912 done
4914 LIBS=$ac_func_search_save_LIBS
4916 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4917 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4918 if test "$ac_cv_search_opendir" != no; then
4919 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4925 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4926 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4927 if test "${ac_cv_header_stat_broken+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <sys/types.h>
4937 #include <sys/stat.h>
4939 #if defined(S_ISBLK) && defined(S_IFDIR)
4940 # if S_ISBLK (S_IFDIR)
4941 You lose.
4942 # endif
4943 #endif
4945 #if defined(S_ISBLK) && defined(S_IFCHR)
4946 # if S_ISBLK (S_IFCHR)
4947 You lose.
4948 # endif
4949 #endif
4951 #if defined(S_ISLNK) && defined(S_IFREG)
4952 # if S_ISLNK (S_IFREG)
4953 You lose.
4954 # endif
4955 #endif
4957 #if defined(S_ISSOCK) && defined(S_IFREG)
4958 # if S_ISSOCK (S_IFREG)
4959 You lose.
4960 # endif
4961 #endif
4963 _ACEOF
4964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965 $EGREP "You lose" >/dev/null 2>&1; then
4966 ac_cv_header_stat_broken=yes
4967 else
4968 ac_cv_header_stat_broken=no
4970 rm -f conftest*
4973 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4974 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4975 if test $ac_cv_header_stat_broken = yes; then
4977 cat >>confdefs.h <<\_ACEOF
4978 #define STAT_MACROS_BROKEN 1
4979 _ACEOF
4983 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4985 if test "${ac_cv_header_stdc+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <stdlib.h>
4995 #include <stdarg.h>
4996 #include <string.h>
4997 #include <float.h>
5000 main ()
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5010 ac_status=$?
5011 grep -v '^ *+' conftest.er1 >conftest.err
5012 rm -f conftest.er1
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 (eval $ac_try) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_cv_header_stdc=yes
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_cv_header_stdc=no
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038 if test $ac_cv_header_stdc = yes; then
5039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5040 cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h. */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <string.h>
5048 _ACEOF
5049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5050 $EGREP "memchr" >/dev/null 2>&1; then
5052 else
5053 ac_cv_header_stdc=no
5055 rm -f conftest*
5059 if test $ac_cv_header_stdc = yes; then
5060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 #include <stdlib.h>
5069 _ACEOF
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 $EGREP "free" >/dev/null 2>&1; then
5073 else
5074 ac_cv_header_stdc=no
5076 rm -f conftest*
5080 if test $ac_cv_header_stdc = yes; then
5081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5082 if test "$cross_compiling" = yes; then
5084 else
5085 cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #include <ctype.h>
5092 #if ((' ' & 0x0FF) == 0x020)
5093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5095 #else
5096 # define ISLOWER(c) \
5097 (('a' <= (c) && (c) <= 'i') \
5098 || ('j' <= (c) && (c) <= 'r') \
5099 || ('s' <= (c) && (c) <= 'z'))
5100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5101 #endif
5103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5105 main ()
5107 int i;
5108 for (i = 0; i < 256; i++)
5109 if (XOR (islower (i), ISLOWER (i))
5110 || toupper (i) != TOUPPER (i))
5111 exit(2);
5112 exit (0);
5114 _ACEOF
5115 rm -f conftest$ac_exeext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5117 (eval $ac_link) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5127 else
5128 echo "$as_me: program exited with status $ac_status" >&5
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ( exit $ac_status )
5133 ac_cv_header_stdc=no
5135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5140 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5141 if test $ac_cv_header_stdc = yes; then
5143 cat >>confdefs.h <<\_ACEOF
5144 #define STDC_HEADERS 1
5145 _ACEOF
5149 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5150 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h. */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 #include <sys/wait.h>
5162 #ifndef WEXITSTATUS
5163 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5164 #endif
5165 #ifndef WIFEXITED
5166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5167 #endif
5170 main ()
5172 int s;
5173 wait (&s);
5174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5176 return 0;
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_header_sys_wait_h=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_cv_header_sys_wait_h=no
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5210 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5212 if test $ac_cv_header_sys_wait_h = yes; then
5214 cat >>confdefs.h <<\_ACEOF
5215 #define HAVE_SYS_WAIT_H 1
5216 _ACEOF
5220 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5222 if test "${ac_cv_header_time+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 #include <sys/time.h>
5233 #include <time.h>
5236 main ()
5238 if ((struct tm *) 0)
5239 return 0;
5241 return 0;
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -z "$ac_c_werror_flag"
5254 || test ! -s conftest.err'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; } &&
5260 { ac_try='test -s conftest.$ac_objext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 (eval $ac_try) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_header_time=yes
5267 else
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 ac_cv_header_time=no
5273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5276 echo "${ECHO_T}$ac_cv_header_time" >&6
5277 if test $ac_cv_header_time = yes; then
5279 cat >>confdefs.h <<\_ACEOF
5280 #define TIME_WITH_SYS_TIME 1
5281 _ACEOF
5286 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5287 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5288 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5299 main ()
5301 static struct stat ac_aggr;
5302 if (ac_aggr.st_blksize)
5303 return 0;
5305 return 0;
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5311 ac_status=$?
5312 grep -v '^ *+' conftest.er1 >conftest.err
5313 rm -f conftest.er1
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_c_werror_flag"
5318 || test ! -s conftest.err'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 (eval $ac_try) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 ac_cv_member_struct_stat_st_blksize=yes
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 cat >conftest.$ac_ext <<_ACEOF
5336 /* confdefs.h. */
5337 _ACEOF
5338 cat confdefs.h >>conftest.$ac_ext
5339 cat >>conftest.$ac_ext <<_ACEOF
5340 /* end confdefs.h. */
5341 $ac_includes_default
5343 main ()
5345 static struct stat ac_aggr;
5346 if (sizeof ac_aggr.st_blksize)
5347 return 0;
5349 return 0;
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -z "$ac_c_werror_flag"
5362 || test ! -s conftest.err'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 (eval $ac_try) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; } &&
5368 { ac_try='test -s conftest.$ac_objext'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_cv_member_struct_stat_st_blksize=yes
5375 else
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ac_cv_member_struct_stat_st_blksize=no
5381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5386 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5387 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5391 _ACEOF
5394 cat >>confdefs.h <<\_ACEOF
5395 #define HAVE_ST_BLKSIZE 1
5396 _ACEOF
5401 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5402 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5403 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5414 main ()
5416 static struct stat ac_aggr;
5417 if (ac_aggr.st_blocks)
5418 return 0;
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_member_struct_stat_st_blocks=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5458 main ()
5460 static struct stat ac_aggr;
5461 if (sizeof ac_aggr.st_blocks)
5462 return 0;
5464 return 0;
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -z "$ac_c_werror_flag"
5477 || test ! -s conftest.err'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; } &&
5483 { ac_try='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 (eval $ac_try) 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_member_struct_stat_st_blocks=yes
5490 else
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 ac_cv_member_struct_stat_st_blocks=no
5496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5501 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5502 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5504 cat >>confdefs.h <<_ACEOF
5505 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5506 _ACEOF
5509 cat >>confdefs.h <<\_ACEOF
5510 #define HAVE_ST_BLOCKS 1
5511 _ACEOF
5513 else
5514 case $LIBOBJS in
5515 "fileblocks.$ac_objext" | \
5516 *" fileblocks.$ac_objext" | \
5517 "fileblocks.$ac_objext "* | \
5518 *" fileblocks.$ac_objext "* ) ;;
5519 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5520 esac
5526 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5527 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5528 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 $ac_includes_default
5539 main ()
5541 static struct stat ac_aggr;
5542 if (ac_aggr.st_rdev)
5543 return 0;
5545 return 0;
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550 (eval $ac_compile) 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -z "$ac_c_werror_flag"
5558 || test ! -s conftest.err'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; } &&
5564 { ac_try='test -s conftest.$ac_objext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 (eval $ac_try) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_member_struct_stat_st_rdev=yes
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5583 main ()
5585 static struct stat ac_aggr;
5586 if (sizeof ac_aggr.st_rdev)
5587 return 0;
5589 return 0;
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_member_struct_stat_st_rdev=yes
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ac_cv_member_struct_stat_st_rdev=no
5621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5626 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5627 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_STRUCT_STAT_ST_RDEV 1
5631 _ACEOF
5634 cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_ST_RDEV 1
5636 _ACEOF
5641 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5642 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5643 if test "${ac_cv_struct_tm+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <sys/types.h>
5653 #include <time.h>
5656 main ()
5658 struct tm *tp; tp->tm_sec;
5660 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_struct_tm=time.h
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_cv_struct_tm=sys/time.h
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5695 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5696 if test $ac_cv_struct_tm = sys/time.h; then
5698 cat >>confdefs.h <<\_ACEOF
5699 #define TM_IN_SYS_TIME 1
5700 _ACEOF
5704 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5705 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5706 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 #include <$ac_cv_struct_tm>
5720 main ()
5722 static struct tm ac_aggr;
5723 if (ac_aggr.tm_zone)
5724 return 0;
5726 return 0;
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_member_struct_tm_tm_zone=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 #include <$ac_cv_struct_tm>
5767 main ()
5769 static struct tm ac_aggr;
5770 if (sizeof ac_aggr.tm_zone)
5771 return 0;
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_member_struct_tm_tm_zone=yes
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 ac_cv_member_struct_tm_tm_zone=no
5805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5810 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5811 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_STRUCT_TM_TM_ZONE 1
5815 _ACEOF
5820 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_TM_ZONE 1
5824 _ACEOF
5826 else
5827 echo "$as_me:$LINENO: checking for tzname" >&5
5828 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5829 if test "${ac_cv_var_tzname+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #include <time.h>
5839 #ifndef tzname /* For SGI. */
5840 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5841 #endif
5844 main ()
5846 atoi(*tzname);
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_var_tzname=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_cv_var_tzname=no
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5884 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5885 if test $ac_cv_var_tzname = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_TZNAME 1
5889 _ACEOF
5894 echo "$as_me:$LINENO: checking for off_t" >&5
5895 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5896 if test "${ac_cv_type_off_t+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5907 main ()
5909 if ((off_t *) 0)
5910 return 0;
5911 if (sizeof (off_t))
5912 return 0;
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_type_off_t=yes
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ac_cv_type_off_t=no
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5949 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5950 if test $ac_cv_type_off_t = yes; then
5952 else
5954 cat >>confdefs.h <<_ACEOF
5955 #define off_t long
5956 _ACEOF
5960 echo "$as_me:$LINENO: checking for pid_t" >&5
5961 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5962 if test "${ac_cv_type_pid_t+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5973 main ()
5975 if ((pid_t *) 0)
5976 return 0;
5977 if (sizeof (pid_t))
5978 return 0;
5980 return 0;
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_type_pid_t=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_type_pid_t=no
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6016 if test $ac_cv_type_pid_t = yes; then
6018 else
6020 cat >>confdefs.h <<_ACEOF
6021 #define pid_t int
6022 _ACEOF
6026 echo "$as_me:$LINENO: checking for size_t" >&5
6027 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6028 if test "${ac_cv_type_size_t+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 $ac_includes_default
6039 main ()
6041 if ((size_t *) 0)
6042 return 0;
6043 if (sizeof (size_t))
6044 return 0;
6046 return 0;
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } &&
6058 { ac_try='test -z "$ac_c_werror_flag"
6059 || test ! -s conftest.err'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_type_size_t=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_type_size_t=no
6078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6081 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6082 if test $ac_cv_type_size_t = yes; then
6084 else
6086 cat >>confdefs.h <<_ACEOF
6087 #define size_t unsigned
6088 _ACEOF
6092 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6093 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6094 if test "${ac_cv_type_uid_t+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #include <sys/types.h>
6105 _ACEOF
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "uid_t" >/dev/null 2>&1; then
6108 ac_cv_type_uid_t=yes
6109 else
6110 ac_cv_type_uid_t=no
6112 rm -f conftest*
6115 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6116 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6117 if test $ac_cv_type_uid_t = no; then
6119 cat >>confdefs.h <<\_ACEOF
6120 #define uid_t int
6121 _ACEOF
6124 cat >>confdefs.h <<\_ACEOF
6125 #define gid_t int
6126 _ACEOF
6131 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6132 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6133 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6144 main ()
6146 static struct tm ac_aggr;
6147 if (ac_aggr.tm_gmtoff)
6148 return 0;
6150 return 0;
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155 (eval $ac_compile) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -z "$ac_c_werror_flag"
6163 || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_member_struct_tm_tm_gmtoff=yes
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h. */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 $ac_includes_default
6188 main ()
6190 static struct tm ac_aggr;
6191 if (sizeof ac_aggr.tm_gmtoff)
6192 return 0;
6194 return 0;
6196 _ACEOF
6197 rm -f conftest.$ac_objext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -z "$ac_c_werror_flag"
6207 || test ! -s conftest.err'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_member_struct_tm_tm_gmtoff=yes
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_member_struct_tm_tm_gmtoff=no
6226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6231 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6232 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6236 _ACEOF
6242 # Look for some functions
6257 for ac_func in getpagesize kqueue statfs statvfs \
6258 clone kse_create rfork_thread thr_create sa_register \
6259 getcontext makecontext setcontext sigaltstack swapcontext
6261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_func" >&5
6263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_var+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6275 #define $ac_func innocuous_$ac_func
6277 /* System header to define __stub macros and hopefully few prototypes,
6278 which can conflict with char $ac_func (); below.
6279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 <limits.h> exists even on freestanding compilers. */
6282 #ifdef __STDC__
6283 # include <limits.h>
6284 #else
6285 # include <assert.h>
6286 #endif
6288 #undef $ac_func
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 #ifdef __cplusplus
6292 extern "C"
6294 #endif
6295 /* We use char because int might match the return type of a gcc2
6296 builtin and then its argument prototype would still apply. */
6297 char $ac_func ();
6298 /* The GNU C library defines this for functions which it implements
6299 to always fail with ENOSYS. Some functions are actually named
6300 something starting with __ and the normal name is an alias. */
6301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6302 choke me
6303 #else
6304 char (*f) () = $ac_func;
6305 #endif
6306 #ifdef __cplusplus
6308 #endif
6311 main ()
6313 return f != $ac_func;
6315 return 0;
6317 _ACEOF
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 eval "$as_ac_var=yes"
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 eval "$as_ac_var=no"
6347 rm -f conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6352 if test `eval echo '${'$as_ac_var'}'` = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6355 _ACEOF
6358 done
6363 for ac_header in stdlib.h unistd.h
6365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374 else
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_header_compiler=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_header_compiler=no
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <$ac_header>
6430 _ACEOF
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null; then
6439 if test -s conftest.err; then
6440 ac_cpp_err=$ac_c_preproc_warn_flag
6441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6442 else
6443 ac_cpp_err=
6445 else
6446 ac_cpp_err=yes
6448 if test -z "$ac_cpp_err"; then
6449 ac_header_preproc=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_header_preproc=no
6456 rm -f conftest.err conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 yes:no: )
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc=yes
6469 no:yes:* )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6483 cat <<\_ASBOX
6484 ## ------------------------------------------ ##
6485 ## Report this to the AC_PACKAGE_NAME lists. ##
6486 ## ------------------------------------------ ##
6487 _ASBOX
6489 sed "s/^/$as_me: WARNING: /" >&2
6491 esac
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 eval "$as_ac_Header=\$ac_header_preproc"
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504 cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 _ACEOF
6510 done
6513 for ac_func in getpagesize
6515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6516 echo "$as_me:$LINENO: checking for $ac_func" >&5
6517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_var+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6529 #define $ac_func innocuous_$ac_func
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char $ac_func (); below.
6533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6534 <limits.h> exists even on freestanding compilers. */
6536 #ifdef __STDC__
6537 # include <limits.h>
6538 #else
6539 # include <assert.h>
6540 #endif
6542 #undef $ac_func
6544 /* Override any gcc2 internal prototype to avoid an error. */
6545 #ifdef __cplusplus
6546 extern "C"
6548 #endif
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6551 char $ac_func ();
6552 /* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6556 choke me
6557 #else
6558 char (*f) () = $ac_func;
6559 #endif
6560 #ifdef __cplusplus
6562 #endif
6565 main ()
6567 return f != $ac_func;
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6575 ac_status=$?
6576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 eval "$as_ac_var=yes"
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 eval "$as_ac_var=no"
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6606 if test `eval echo '${'$as_ac_var'}'` = yes; then
6607 cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6609 _ACEOF
6612 done
6614 echo "$as_me:$LINENO: checking for working mmap" >&5
6615 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6616 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 if test "$cross_compiling" = yes; then
6620 ac_cv_func_mmap_fixed_mapped=no
6621 else
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6629 /* malloc might have been renamed as rpl_malloc. */
6630 #undef malloc
6632 /* Thanks to Mike Haertel and Jim Avera for this test.
6633 Here is a matrix of mmap possibilities:
6634 mmap private not fixed
6635 mmap private fixed at somewhere currently unmapped
6636 mmap private fixed at somewhere already mapped
6637 mmap shared not fixed
6638 mmap shared fixed at somewhere currently unmapped
6639 mmap shared fixed at somewhere already mapped
6640 For private mappings, we should verify that changes cannot be read()
6641 back from the file, nor mmap's back from the file at a different
6642 address. (There have been systems where private was not correctly
6643 implemented like the infamous i386 svr4.0, and systems where the
6644 VM page cache was not coherent with the file system buffer cache
6645 like early versions of FreeBSD and possibly contemporary NetBSD.)
6646 For shared mappings, we should conversely verify that changes get
6647 propagated back to all the places they're supposed to be.
6649 Grep wants private fixed already mapped.
6650 The main things grep needs to know about mmap are:
6651 * does it exist and is it safe to write into the mmap'd area
6652 * how to use it (BSD variants) */
6654 #include <fcntl.h>
6655 #include <sys/mman.h>
6657 #if !STDC_HEADERS && !HAVE_STDLIB_H
6658 char *malloc ();
6659 #endif
6661 /* This mess was copied from the GNU getpagesize.h. */
6662 #if !HAVE_GETPAGESIZE
6663 /* Assume that all systems that can run configure have sys/param.h. */
6664 # if !HAVE_SYS_PARAM_H
6665 # define HAVE_SYS_PARAM_H 1
6666 # endif
6668 # ifdef _SC_PAGESIZE
6669 # define getpagesize() sysconf(_SC_PAGESIZE)
6670 # else /* no _SC_PAGESIZE */
6671 # if HAVE_SYS_PARAM_H
6672 # include <sys/param.h>
6673 # ifdef EXEC_PAGESIZE
6674 # define getpagesize() EXEC_PAGESIZE
6675 # else /* no EXEC_PAGESIZE */
6676 # ifdef NBPG
6677 # define getpagesize() NBPG * CLSIZE
6678 # ifndef CLSIZE
6679 # define CLSIZE 1
6680 # endif /* no CLSIZE */
6681 # else /* no NBPG */
6682 # ifdef NBPC
6683 # define getpagesize() NBPC
6684 # else /* no NBPC */
6685 # ifdef PAGESIZE
6686 # define getpagesize() PAGESIZE
6687 # endif /* PAGESIZE */
6688 # endif /* no NBPC */
6689 # endif /* no NBPG */
6690 # endif /* no EXEC_PAGESIZE */
6691 # else /* no HAVE_SYS_PARAM_H */
6692 # define getpagesize() 8192 /* punt totally */
6693 # endif /* no HAVE_SYS_PARAM_H */
6694 # endif /* no _SC_PAGESIZE */
6696 #endif /* no HAVE_GETPAGESIZE */
6699 main ()
6701 char *data, *data2, *data3;
6702 int i, pagesize;
6703 int fd;
6705 pagesize = getpagesize ();
6707 /* First, make a file with some known garbage in it. */
6708 data = (char *) malloc (pagesize);
6709 if (!data)
6710 exit (1);
6711 for (i = 0; i < pagesize; ++i)
6712 *(data + i) = rand ();
6713 umask (0);
6714 fd = creat ("conftest.mmap", 0600);
6715 if (fd < 0)
6716 exit (1);
6717 if (write (fd, data, pagesize) != pagesize)
6718 exit (1);
6719 close (fd);
6721 /* Next, try to mmap the file at a fixed address which already has
6722 something else allocated at it. If we can, also make sure that
6723 we see the same garbage. */
6724 fd = open ("conftest.mmap", O_RDWR);
6725 if (fd < 0)
6726 exit (1);
6727 data2 = (char *) malloc (2 * pagesize);
6728 if (!data2)
6729 exit (1);
6730 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6731 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6732 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6733 exit (1);
6734 for (i = 0; i < pagesize; ++i)
6735 if (*(data + i) != *(data2 + i))
6736 exit (1);
6738 /* Finally, make sure that changes to the mapped area do not
6739 percolate back to the file as seen by read(). (This is a bug on
6740 some variants of i386 svr4.0.) */
6741 for (i = 0; i < pagesize; ++i)
6742 *(data2 + i) = *(data2 + i) + 1;
6743 data3 = (char *) malloc (pagesize);
6744 if (!data3)
6745 exit (1);
6746 if (read (fd, data3, pagesize) != pagesize)
6747 exit (1);
6748 for (i = 0; i < pagesize; ++i)
6749 if (*(data + i) != *(data3 + i))
6750 exit (1);
6751 close (fd);
6752 exit (0);
6754 _ACEOF
6755 rm -f conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_cv_func_mmap_fixed_mapped=yes
6767 else
6768 echo "$as_me: program exited with status $ac_status" >&5
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 ( exit $ac_status )
6773 ac_cv_func_mmap_fixed_mapped=no
6775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_MMAP 1
6784 _ACEOF
6787 rm -f conftest.mmap
6790 # Find X
6791 echo "$as_me:$LINENO: checking for X" >&5
6792 echo $ECHO_N "checking for X... $ECHO_C" >&6
6795 # Check whether --with-x or --without-x was given.
6796 if test "${with_x+set}" = set; then
6797 withval="$with_x"
6800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6801 if test "x$with_x" = xno; then
6802 # The user explicitly disabled X.
6803 have_x=disabled
6804 else
6805 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6806 # Both variables are already set.
6807 have_x=yes
6808 else
6809 if test "${ac_cv_have_x+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 # One or both of the vars are not set, and there is no cached value.
6813 ac_x_includes=no ac_x_libraries=no
6814 rm -fr conftest.dir
6815 if mkdir conftest.dir; then
6816 cd conftest.dir
6817 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6818 cat >Imakefile <<'_ACEOF'
6819 acfindx:
6820 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6821 _ACEOF
6822 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6824 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6825 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6826 for ac_extension in a so sl; do
6827 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6828 test -f $ac_im_libdir/libX11.$ac_extension; then
6829 ac_im_usrlibdir=$ac_im_libdir; break
6831 done
6832 # Screen out bogus values from the imake configuration. They are
6833 # bogus both because they are the default anyway, and because
6834 # using them would break gcc on systems where it needs fixed includes.
6835 case $ac_im_incroot in
6836 /usr/include) ;;
6837 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6838 esac
6839 case $ac_im_usrlibdir in
6840 /usr/lib | /lib) ;;
6841 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6842 esac
6844 cd ..
6845 rm -fr conftest.dir
6848 # Standard set of common directories for X headers.
6849 # Check X11 before X11Rn because it is often a symlink to the current release.
6850 ac_x_header_dirs='
6851 /usr/X11/include
6852 /usr/X11R6/include
6853 /usr/X11R5/include
6854 /usr/X11R4/include
6856 /usr/include/X11
6857 /usr/include/X11R6
6858 /usr/include/X11R5
6859 /usr/include/X11R4
6861 /usr/local/X11/include
6862 /usr/local/X11R6/include
6863 /usr/local/X11R5/include
6864 /usr/local/X11R4/include
6866 /usr/local/include/X11
6867 /usr/local/include/X11R6
6868 /usr/local/include/X11R5
6869 /usr/local/include/X11R4
6871 /usr/X386/include
6872 /usr/x386/include
6873 /usr/XFree86/include/X11
6875 /usr/include
6876 /usr/local/include
6877 /usr/unsupported/include
6878 /usr/athena/include
6879 /usr/local/x11r5/include
6880 /usr/lpp/Xamples/include
6882 /usr/openwin/include
6883 /usr/openwin/share/include'
6885 if test "$ac_x_includes" = no; then
6886 # Guess where to find include files, by looking for Intrinsic.h.
6887 # First, try using that file with no special directory specified.
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <X11/Intrinsic.h>
6895 _ACEOF
6896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } >/dev/null; then
6904 if test -s conftest.err; then
6905 ac_cpp_err=$ac_c_preproc_warn_flag
6906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6907 else
6908 ac_cpp_err=
6910 else
6911 ac_cpp_err=yes
6913 if test -z "$ac_cpp_err"; then
6914 # We can compile using X headers with no special include directory.
6915 ac_x_includes=
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 for ac_dir in $ac_x_header_dirs; do
6921 if test -r "$ac_dir/X11/Intrinsic.h"; then
6922 ac_x_includes=$ac_dir
6923 break
6925 done
6927 rm -f conftest.err conftest.$ac_ext
6928 fi # $ac_x_includes = no
6930 if test "$ac_x_libraries" = no; then
6931 # Check for the libraries.
6932 # See if we find them without any special options.
6933 # Don't add to $LIBS permanently.
6934 ac_save_LIBS=$LIBS
6935 LIBS="-lXt $LIBS"
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <X11/Intrinsic.h>
6944 main ()
6946 XtMalloc (0)
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag"
6961 || test ! -s conftest.err'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; } &&
6967 { ac_try='test -s conftest$ac_exeext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 (eval $ac_try) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6973 LIBS=$ac_save_LIBS
6974 # We can link X programs with no special library path.
6975 ac_x_libraries=
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 LIBS=$ac_save_LIBS
6981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6983 # Don't even attempt the hair of trying to link an X program!
6984 for ac_extension in a so sl; do
6985 if test -r $ac_dir/libXt.$ac_extension; then
6986 ac_x_libraries=$ac_dir
6987 break 2
6989 done
6990 done
6992 rm -f conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994 fi # $ac_x_libraries = no
6996 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6997 # Didn't find X anywhere. Cache the known absence of X.
6998 ac_cv_have_x="have_x=no"
6999 else
7000 # Record where we found X for the cache.
7001 ac_cv_have_x="have_x=yes \
7002 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7007 eval "$ac_cv_have_x"
7008 fi # $with_x != no
7010 if test "$have_x" != yes; then
7011 echo "$as_me:$LINENO: result: $have_x" >&5
7012 echo "${ECHO_T}$have_x" >&6
7013 no_x=yes
7014 else
7015 # If each of the values was on the command line, it overrides each guess.
7016 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7017 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7018 # Update the cache value to reflect the command line values.
7019 ac_cv_have_x="have_x=yes \
7020 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7021 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7022 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7028 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7029 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7030 aros_config_ldflags=""
7032 aros_shared_default=yes
7034 aros_shared_cflags="-fPIC"
7035 aros_shared_aflags=""
7036 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7037 aros_kernel_ldflags="-Wl,-rpath,./lib"
7039 aros_target_ar_flags="cr"
7040 aros_target_nm_flags="-C -ul"
7041 aros_target_strip_flags="--strip-unneeded -R.comment"
7043 aros_compiler_libs=
7045 aros_target_genmap="-Wl,-Map -Xlinker"
7047 # Native flavour stuff
7048 aros_bochs_hack="0"
7049 aros_serial_debug="0"
7051 # Palm native flavour stuff
7052 aros_palm_debug_hack="0"
7054 # Unix flavour stuff
7055 aros_nesting_supervisor="0"
7057 # Collect-aros stuff: "-ius" to ignore undefined symbols
7058 ignore_undefined_symbols=""
7060 # X11 Xshm
7061 DO_XSHM_SUPPORT="1"
7062 DO_VIDMODE_SUPPORT="1"
7064 #-----------------------------------------------------------------------------
7066 echo "$as_me:$LINENO: checking for type of build" >&5
7067 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7068 # Check whether --enable-build_type or --disable-build_type was given.
7069 if test "${enable_build_type+set}" = set; then
7070 enableval="$enable_build_type"
7071 build_type=$enableval
7072 else
7073 build_type="personal"
7076 if test "$build_type" = "nightly"; then
7077 build_type_string="NIGHTLY"
7078 elif test "$build_type" = "snapshot"; then
7079 build_type_string="SNAPSHOT"
7080 elif test "$build_type" = "milestone"; then
7081 build_type_string="MILESTONE"
7082 elif test "$build_type" = "release"; then
7083 build_type_string="RELEASE"
7084 else
7085 build_type_string="PERSONAL"
7086 build_type="personal"
7089 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7091 echo "$as_me:$LINENO: result: $build_type" >&5
7092 echo "${ECHO_T}$build_type" >&6
7094 #-----------------------------------------------------------------------------
7095 all_debug_types="messages stack mungwall modules symbols"
7097 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7098 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7099 # Check whether --enable-debug or --disable-debug was given.
7100 if test "${enable_debug+set}" = set; then
7101 enableval="$enable_debug"
7102 debug="$enableval"
7103 else
7104 debug=""
7107 if test "$debug" = "" -o "$debug" = "no"; then
7108 debug="none"
7109 elif test "$debug" = "yes"; then
7110 debug="all"
7113 if test "$debug" = "all" ; then
7114 debug=$all_debug_types
7115 for d in $all_debug_types; do
7116 export aros_${d}_debug="1"
7117 done
7118 else
7119 for d in $all_debug_types; do
7120 export aros_${d}_debug="0"
7121 done
7124 if test "$debug" != "none"; then
7125 debug=`echo $debug | sed s/,/\ /g`
7126 for d in $debug; do
7127 found="0"
7128 for d2 in $all_debug_types; do
7129 if test "$d2" = "$d"; then
7130 found="1"
7131 break
7133 done
7134 if test "$found" = "0"; then
7135 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7136 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7137 { (exit 1); exit 1; }; }
7139 export aros_${d}_debug="1"
7140 done
7141 aros_debug="yes"
7143 echo "$as_me:$LINENO: result: $debug" >&5
7144 echo "${ECHO_T}$debug" >&6
7146 if test "$aros_messages_debug" = "1"; then
7147 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7148 else
7149 aros_messages_debug=""
7151 if test "$aros_symbols_debug" = "1"; then
7152 aros_symbols_debug="-g"
7153 else
7154 aros_symbols_debug=""
7157 # These are the flags to pass when compiling debugged programs
7158 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7159 aros_debug_aflags=""
7160 aros_debug_ldflags="$aros_symbols_debug"
7162 #-----------------------------------------------------------------------------
7163 # Checking for distcc and ccache.
7165 # Always apply the transforms in this particular order. Basically you should
7166 # always run 'ccache distcc compiler' in that order for the best performance.
7168 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7169 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7170 # Check whether --enable-distcc or --disable-distcc was given.
7171 if test "${enable_distcc+set}" = set; then
7172 enableval="$enable_distcc"
7173 distcc="$enableval"
7174 else
7175 distcc="no"
7177 if test "$distcc" != "" -a "$distcc" != "no"; then
7178 # AC_CHECK_PROG will print out the result in this case
7179 # Extract the first word of "distcc", so it can be a program name with args.
7180 set dummy distcc; ac_word=$2
7181 echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183 if test "${ac_cv_path_DISTCC+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 case $DISTCC in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7202 done
7203 done
7205 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7207 esac
7209 DISTCC=$ac_cv_path_DISTCC
7211 if test -n "$DISTCC"; then
7212 echo "$as_me:$LINENO: result: $DISTCC" >&5
7213 echo "${ECHO_T}$DISTCC" >&6
7214 else
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7224 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7225 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7226 # Check whether --enable-ccache or --disable-ccache was given.
7227 if test "${enable_ccache+set}" = set; then
7228 enableval="$enable_ccache"
7229 ccache="$enableval"
7230 else
7231 ccache="no"
7233 if test "$ccache" != "" -a "$ccache" != "no"; then
7234 # AC_CHECK_PROG will print out the result in this case
7235 # Extract the first word of "ccache", so it can be a program name with args.
7236 set dummy ccache; ac_word=$2
7237 echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239 if test "${ac_cv_prog_CCACHE+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 if test -n "$CCACHE"; then
7243 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_CCACHE="ccache"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7256 done
7257 done
7261 CCACHE=$ac_cv_prog_CCACHE
7262 if test -n "$CCACHE"; then
7263 echo "$as_me:$LINENO: result: $CCACHE" >&5
7264 echo "${ECHO_T}$CCACHE" >&6
7265 else
7266 echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7270 else
7271 echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6
7275 #-----------------------------------------------------------------------------
7276 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7277 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7279 # Check whether --with-optimization or --without-optimization was given.
7280 if test "${with_optimization+set}" = set; then
7281 withval="$with_optimization"
7282 optimization="$withval"
7283 else
7284 optimization="unknown"
7286 if test "$optimization" = "unknown"; then
7287 if test "$debug" != "none"; then
7288 optimization="-O0"
7289 else
7290 optimization="-O2"
7293 aros_config_cflags="$aros_config_cflags $optimization"
7294 echo "$as_me:$LINENO: result: $optimization" >&5
7295 echo "${ECHO_T}$optimization" >&6
7297 #-----------------------------------------------------------------------------
7298 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7299 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7300 # Check whether --enable-target_variant or --disable-target_variant was given.
7301 if test "${enable_target_variant+set}" = set; then
7302 enableval="$enable_target_variant"
7303 target_variant=$enableval
7304 else
7305 target_variant="none"
7307 if test "$target_variant" = "none"; then
7308 aros_target_variant=""
7309 aros_target_suffix=""
7310 else
7311 aros_target_variant="$target_variant"
7312 aros_target_suffix="-$target_variant"
7314 echo "$as_me:$LINENO: result: $enableval" >&5
7315 echo "${ECHO_T}$enableval" >&6
7317 #-----------------------------------------------------------------------------
7318 # This is the target configuration switch.
7319 case "$target_os" in
7320 linux*)
7321 aros_target_arch="linux"
7322 case "$target_cpu" in
7323 *m68k*)
7324 aros_target_cpu="m68k"
7325 aros_object_format="m68kelf"
7326 aros_flavour="emulcompat"
7327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7328 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7329 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7330 gcc_target_cpu="mc68000"
7332 *i?86*)
7333 aros_target_cpu="i386"
7334 aros_object_format="elf_i386"
7335 aros_flavour="emulation"
7336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7337 aros_default_wbdepth=8
7338 gcc_target_cpu="i386"
7340 *x86_64*)
7341 aros_target_cpu="x86_64"
7342 aros_object_format="elf_x86_64"
7343 aros_flavour="emulation"
7344 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7345 aros_default_wbdepth=8
7346 gcc_target_cpu="x86_64"
7348 *powerpc*)
7349 aros_target_cpu="ppc"
7350 aros_object_format="elf32ppc"
7351 aros_flavour="emulation"
7352 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7353 aros_default_wbdepth=8
7354 aros_compiler_libs="-lgcc"
7355 gcc_target_cpu="ppc"
7358 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7359 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7360 { (exit 1); exit 1; }; }
7362 esac
7366 aros_target_arch="pc"
7367 aros_shared_default="no"
7368 case "$target_cpu" in
7369 *i?86*)
7370 aros_target_cpu="i386"
7373 if test "$aros_object_format" = "" ; then
7374 aros_object_format="elf_i386"
7376 aros_flavour="standalone"
7377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7378 aros_kernel_ldflags=""
7379 aros_default_wbwidth=640
7380 aros_default_wbheight=480
7381 gcc_target_cpu="i386"
7384 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7385 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7386 { (exit 1); exit 1; }; }
7388 esac
7391 prep)
7392 aros_target_arch="prep"
7393 aros_shared_default="no"
7394 aros_target_cpu="ppc"
7395 aros_object_format="elf32ppc"
7396 aros_flavour="ppcnative"
7397 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7398 aros_kernel_ldflags=""
7399 aros_default_wbwidth=640
7400 aros_default_wbheight=480
7401 gcc_target_cpu="ppc"
7402 case "$target_cpu" in
7403 *cross*)
7404 aros_target_cc="ppc-linux-gcc -pipe"
7405 aros_target_ld="ppc-linux-ld"
7406 aros_target_as="ppc-linux-as"
7407 aros_target_ar="ppc-linux-ar"
7408 aros_target_ranlib="ppc-linux-ranlib"
7409 aros_target_nm="ppc-linux-nm"
7410 aros_target_strip="ppc-linux-strip"
7411 aros_target_objcopy="ppc-linux-objcopy"
7412 aros_target_objdump="ppc-linux-objdump"
7413 aros_shared_ld="ppc-linux-ld"
7414 aros_kernel_ld="ppc-linux-ld"
7418 esac
7421 freebsd*)
7422 aros_target_arch="freebsd"
7423 aros_target_cpu="i386"
7424 aros_flavour="emulation"
7425 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7426 gcc_target_cpu="i386"
7428 aros_target_strip_flags="-x"
7431 darwin*)
7432 aros_target_arch="darwin"
7433 aros_target_cpu="i386"
7434 aros_flavour="emulation"
7435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7436 gcc_target_cpu="i386"
7438 aros_target_strip_flags="-x"
7441 netbsd*)
7442 aros_target_arch="netbsd"
7443 case "$target_cpu" in
7444 *m68k*)
7445 aros_target_cpu="m68k"
7446 aros_object_format="m68kelf"
7447 aros_flavour="emulcompat"
7448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7449 gcc_target_cpu="mc68000"
7451 *i?86*)
7452 aros_target_cpu="i386"
7453 aros_object_format="elf_i386"
7454 aros_flavour="emulation"
7455 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7456 aros_default_wbdepth=8
7457 gcc_target_cpu="i386"
7460 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7461 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7462 { (exit 1); exit 1; }; }
7464 esac
7465 aros_target_genmap="-Wl,-M -Xlinker >"
7466 aros_flavour="emulation"
7467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7470 openbsd*)
7471 aros_target_arch="openbsd"
7472 case "$target_cpu" in
7473 *i?86*)
7474 aros_target_cpu="i386"
7475 aros_object_format="elf_i386"
7476 aros_flavour="emulation"
7477 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7478 gcc_target_cpu="i386"
7481 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7482 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7483 { (exit 1); exit 1; }; }
7485 esac
7486 aros_target_genmap="-Wl,-M -Xlinker >"
7487 aros_target_nm_flags="-u"
7488 aros_flavour="emulation"
7491 solaris*)
7492 aros_target_arch="solaris"
7493 case "$target_cpu" in
7494 *sparc*)
7495 aros_target_cpu="sparc"
7496 aros_object_format="elf_sparc"
7497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7498 gcc_target_cpu="sparc"
7501 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7502 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7503 { (exit 1); exit 1; }; }
7505 esac
7506 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7507 aros_flavour="emulation"
7510 morphos*)
7511 aros_target_arch="morphos"
7512 aros_shared_default="no"
7513 aros_target_cpu="ppc"
7514 aros_object_format="elf_ppc"
7515 aros_flavour="nativecompat"
7516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7517 gcc_target_cpu="ppc"
7520 amiga*)
7521 aros_target_arch="amiga"
7522 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7523 aros_shared_default="no"
7525 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7527 case "$target_cpu" in
7528 *m68k*)
7529 aros_target_cpu="m68k"
7530 aros_object_format="m68kelf"
7531 aros_flavour="nativecompat"
7532 gcc_target_cpu="mc68000"
7534 *ppc*)
7535 aros_cpu="ppc"
7536 aros_flavour="native"
7537 gcc_target_cpu="ppc"
7540 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7541 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7542 { (exit 1); exit 1; }; }
7544 esac
7547 cygwin*)
7548 aros_target_arch="cygwin"
7549 aros_shared_default="no"
7550 case "$target_cpu" in
7551 *i?86*)
7552 aros_target_cpu="i386"
7553 aros_object_format="elf_i386"
7554 aros_flavour="emulation"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7556 aros_shared_cflags=""
7557 aros_default_wbdepth=8
7558 gcc_target_cpu="i386"
7561 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7562 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7563 { (exit 1); exit 1; }; }
7565 esac
7567 pp*)
7568 aros_target_arch="pp"
7569 aros_shared_default="no"
7570 case "$target_cpu" in
7571 *m68k*)
7572 aros_target_cpu="m68k"
7573 aros_object_format="m68kelf"
7574 aros_flavour="palmnative"
7575 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7576 aros_kernel_ldflags=""
7577 aros_default_wbwidth=160
7578 aros_default_wbheight=160
7579 aros_default_wbdepth=1
7580 aros_target_cc="m68k-elf-gcc -pipe"
7581 aros_target_ld="$(which m68k-elf-ld)"
7582 aros_target_as="m68k-elf-gcc -pipe"
7583 aros_shared_ld="m68k-elf-gcc"
7584 aros_kernel_ld="m68k-elf-gcc"
7585 aros_target_ar="m68k-elf-ar"
7586 aros_target_ar_flags="cru"
7587 aros_target_ranlib="m68k-elf-ranlib"
7588 aros_target_nm="m68k-elf-nm"
7589 aros_target_objcopy="m68k-elf-objcopy"
7590 aros_target_objdump="m68k-elf-objdump"
7591 aros_compiler_libs="-lgcc1"
7592 aros_shared_default=no
7593 aros_shared_cflags="-fpic"
7594 aros_shared_aflags=""
7595 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7596 aros_kernel_ldflags="-Wl,-rpath,./lib"
7597 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7598 aros_debug_aflags=""
7599 aros_debug_ldflags="$aros_symbols_debug"
7600 aros_mungwall_debug="0"
7601 aros_modules_debug="0"
7602 gcc_target_cpu="mc68000"
7603 ignore_undefined_symbols="-ius"
7606 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7607 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7608 { (exit 1); exit 1; }; }
7610 esac
7613 mac*)
7614 aros_target_arch="mac"
7615 aros_shared_default="no"
7616 case "$target_cpu" in
7617 *m68k*)
7618 aros_target_cpu="m68k"
7619 aros_object_format="m68kelf"
7620 aros_flavour="mac68knative"
7621 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7622 aros_default_wbwidth=512
7623 aros_default_wbheight=384
7624 aros_default_wbdepth=8
7625 aros_target_cc="m68k-elf-gcc -pipe"
7626 aros_target_ld="$(which m68k-elf-ld)"
7627 aros_target_as="m68k-elf-gcc -pipe"
7628 aros_shared_ld="m68k-elf-gcc"
7629 aros_kernel_ld="m68k-elf-gcc"
7630 aros_target_ar="m68k-elf-ar"
7631 aros_target_ar_flags="cru"
7632 aros_target_ranlib="m68k-elf-ranlib"
7633 aros_target_nm="m68k-elf-nm"
7634 aros_target_objcopy="m68k-elf-objcopy"
7635 aros_target_objdump="m68k-elf-objdump"
7636 aros_compiler_libs="-lgcc1"
7637 aros_shared_default=no
7638 aros_shared_cflags="-fpic"
7639 aros_shared_aflags=""
7640 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7641 aros_kernel_ldflags="-Wl,-rpath,./lib"
7642 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7643 aros_debug_aflags=""
7644 aros_debug_ldflags="$aros_symbols_debug"
7645 aros_mungwall_debug="0"
7646 aros_modules_debug="0"
7647 gcc_target_cpu="mc68000"
7648 ignore_undefined_symbols="-ius"
7651 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
7652 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
7653 { (exit 1); exit 1; }; }
7655 esac
7659 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7660 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7661 { (exit 1); exit 1; }; }
7663 esac
7666 # Find out if we are cross-compiling (ie. if we can't use the host compiler
7667 # for target code)
7668 cross_compiling=no
7669 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7670 cross_compiling=yes
7672 if test "$aros_host_arch" == "darwin" ; then
7673 cross_compiling=yes
7676 # Set prefix for target compiler etc. if we're cross-compiling
7677 # (should possibly be earlier but needs to be after AC_PROG_CC)
7678 if test "$cross_compiling" = "yes" ; then
7679 target_tool_prefix=${target_cpu}-elf-
7680 CC=${target_tool_prefix}gcc
7683 # Find all the tools we need to compile. This could be cross-compiling
7684 # though! If that is the case we use the GNU form of the target and
7685 # simply add this to the front of the binary name. This is rather simple,
7686 # but it should work under most circumstances.
7688 # The default tools are to use the same as the host, but only if the
7689 # host and target CPU are the same. With GCC this is normally enough.
7692 aros_cc_pre=""
7693 aros_shared_ld="$aros_host_ld"
7695 aros_target_mkdep="$aros_host_mkdep"
7696 aros_target_incl_def="$aros_host_incl"
7698 # Extract the first word of "$CC", so it can be a program name with args.
7699 set dummy $CC; ac_word=$2
7700 echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 case $aros_kernel_cc in
7706 [\\/]* | ?:[\\/]*)
7707 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7721 done
7722 done
7725 esac
7727 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
7729 if test -n "$aros_kernel_cc"; then
7730 echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
7731 echo "${ECHO_T}$aros_kernel_cc" >&6
7732 else
7733 echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6
7738 # The default tools executables to be linked to.
7740 if test "$cross_compiling" = "yes" ; then
7741 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7742 set dummy ${target_tool_prefix}as; ac_word=$2
7743 echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 case $aros_target_as_ln in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7768 esac
7770 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7772 if test -n "$aros_target_as_ln"; then
7773 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7774 echo "${ECHO_T}$aros_target_as_ln" >&6
7775 else
7776 echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6
7780 else
7781 if test "$GCC" = "yes"; then
7782 aros_gcc_as=`$CC -print-prog-name=as`
7783 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7784 set dummy `basename $aros_gcc_as`; ac_word=$2
7785 echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 case $aros_target_as_ln in
7791 [\\/]* | ?:[\\/]*)
7792 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in `dirname $aros_gcc_as`
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7810 esac
7812 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7814 if test -n "$aros_target_as_ln"; then
7815 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7816 echo "${ECHO_T}$aros_target_as_ln" >&6
7817 else
7818 echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7823 if test "$aros_target_as_ln" = ""; then
7824 # Extract the first word of "as", so it can be a program name with args.
7825 set dummy as; ac_word=$2
7826 echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7828 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 case $aros_target_as_ln in
7832 [\\/]* | ?:[\\/]*)
7833 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7851 esac
7853 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7855 if test -n "$aros_target_as_ln"; then
7856 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7857 echo "${ECHO_T}$aros_target_as_ln" >&6
7858 else
7859 echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7866 if test "$aros_target_as_ln" = ""; then
7867 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
7868 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
7869 { (exit 1); exit 1; }; }
7872 if test "$cross_compiling" = "yes" ; then
7873 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7874 set dummy ${target_tool_prefix}ld; ac_word=$2
7875 echo "$as_me:$LINENO: checking for $ac_word" >&5
7876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 case $aros_kernel_ld in
7881 [\\/]* | ?:[\\/]*)
7882 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7900 esac
7902 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7904 if test -n "$aros_kernel_ld"; then
7905 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7906 echo "${ECHO_T}$aros_kernel_ld" >&6
7907 else
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7912 else
7913 if test "$GCC" = "yes"; then
7914 aros_gcc_ld=`$CC -print-prog-name=ld`
7915 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7916 set dummy `basename $aros_gcc_ld`; ac_word=$2
7917 echo "$as_me:$LINENO: checking for $ac_word" >&5
7918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7919 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 case $aros_kernel_ld in
7923 [\\/]* | ?:[\\/]*)
7924 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in `dirname $aros_gcc_ld`
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7938 done
7939 done
7942 esac
7944 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7946 if test -n "$aros_kernel_ld"; then
7947 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7948 echo "${ECHO_T}$aros_kernel_ld" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951 echo "${ECHO_T}no" >&6
7955 if test "$aros_kernel_ld" = ""; then
7956 # Extract the first word of "ld", so it can be a program name with args.
7957 set dummy ld; ac_word=$2
7958 echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 case $aros_kernel_ld in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7983 esac
7985 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7987 if test -n "$aros_kernel_ld"; then
7988 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7989 echo "${ECHO_T}$aros_kernel_ld" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7998 if test "$aros_kernel_ld" = ""; then
7999 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8000 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8001 { (exit 1); exit 1; }; }
8004 if test "$cross_compiling" = "yes" ; then
8005 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8006 set dummy ${target_tool_prefix}ar; ac_word=$2
8007 echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8009 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 case $aros_target_ar_ln in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8028 done
8029 done
8032 esac
8034 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8036 if test -n "$aros_target_ar_ln"; then
8037 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8038 echo "${ECHO_T}$aros_target_ar_ln" >&6
8039 else
8040 echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6
8044 else
8045 if test "$GCC" = "yes"; then
8046 aros_gcc_ar=`$CC -print-prog-name=ar`
8047 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8048 set dummy `basename $aros_gcc_ar`; ac_word=$2
8049 echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 case $aros_target_ar_ln in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in `dirname $aros_gcc_ar`
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8074 esac
8076 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8078 if test -n "$aros_target_ar_ln"; then
8079 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8080 echo "${ECHO_T}$aros_target_ar_ln" >&6
8081 else
8082 echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6
8087 if test "$aros_target_ar_ln" = ""; then
8088 # Extract the first word of "ar", so it can be a program name with args.
8089 set dummy ar; ac_word=$2
8090 echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8092 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 case $aros_target_ar_ln in
8096 [\\/]* | ?:[\\/]*)
8097 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8115 esac
8117 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8119 if test -n "$aros_target_ar_ln"; then
8120 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8121 echo "${ECHO_T}$aros_target_ar_ln" >&6
8122 else
8123 echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8130 if test "$aros_target_ar_ln" = ""; then
8131 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
8132 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
8133 { (exit 1); exit 1; }; }
8136 if test "$cross_compiling" = "yes" ; then
8137 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8138 set dummy ${target_tool_prefix}nm; ac_word=$2
8139 echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8141 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 case $aros_target_nm_ln in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8160 done
8161 done
8164 esac
8166 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8168 if test -n "$aros_target_nm_ln"; then
8169 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8170 echo "${ECHO_T}$aros_target_nm_ln" >&6
8171 else
8172 echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6
8176 else
8177 if test "$GCC" = "yes"; then
8178 aros_gcc_nm=`$CC -print-prog-name=nm`
8179 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8180 set dummy `basename $aros_gcc_nm`; ac_word=$2
8181 echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8183 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 case $aros_target_nm_ln in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in `dirname $aros_gcc_nm`
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8202 done
8203 done
8206 esac
8208 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8210 if test -n "$aros_target_nm_ln"; then
8211 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8212 echo "${ECHO_T}$aros_target_nm_ln" >&6
8213 else
8214 echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6
8219 if test "$aros_target_nm_ln" = ""; then
8220 # Extract the first word of "nm", so it can be a program name with args.
8221 set dummy nm; ac_word=$2
8222 echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8224 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227 case $aros_target_nm_ln in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8247 esac
8249 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8251 if test -n "$aros_target_nm_ln"; then
8252 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8253 echo "${ECHO_T}$aros_target_nm_ln" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8262 if test "$aros_target_nm_ln" = ""; then
8263 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
8264 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
8265 { (exit 1); exit 1; }; }
8268 if test "$cross_compiling" = "yes" ; then
8269 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8270 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8271 echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8273 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 case $aros_target_objcopy_ln in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8296 esac
8298 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8300 if test -n "$aros_target_objcopy_ln"; then
8301 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8302 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8303 else
8304 echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6
8308 else
8309 if test "$GCC" = "yes"; then
8310 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8311 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8312 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8313 echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 case $aros_target_objcopy_ln in
8319 [\\/]* | ?:[\\/]*)
8320 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in `dirname $aros_gcc_objcopy`
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8338 esac
8340 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8342 if test -n "$aros_target_objcopy_ln"; then
8343 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8344 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8345 else
8346 echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8351 if test "$aros_target_objcopy_ln" = ""; then
8352 # Extract the first word of "objcopy", so it can be a program name with args.
8353 set dummy objcopy; ac_word=$2
8354 echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8356 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359 case $aros_target_objcopy_ln in
8360 [\\/]* | ?:[\\/]*)
8361 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8379 esac
8381 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8383 if test -n "$aros_target_objcopy_ln"; then
8384 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8385 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8386 else
8387 echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6
8394 if test "$aros_target_objcopy_ln" = ""; then
8395 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
8396 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
8397 { (exit 1); exit 1; }; }
8400 if test "$cross_compiling" = "yes" ; then
8401 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8402 set dummy ${target_tool_prefix}objdump; ac_word=$2
8403 echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8405 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 case $aros_target_objdump_ln in
8409 [\\/]* | ?:[\\/]*)
8410 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8424 done
8425 done
8428 esac
8430 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8432 if test -n "$aros_target_objdump_ln"; then
8433 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8434 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8440 else
8441 if test "$GCC" = "yes"; then
8442 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8443 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8444 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8445 echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8447 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 case $aros_target_objdump_ln in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in `dirname $aros_gcc_objdump`
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8470 esac
8472 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8474 if test -n "$aros_target_objdump_ln"; then
8475 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8476 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8477 else
8478 echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8483 if test "$aros_target_objdump_ln" = ""; then
8484 # Extract the first word of "objdump", so it can be a program name with args.
8485 set dummy objdump; ac_word=$2
8486 echo "$as_me:$LINENO: checking for $ac_word" >&5
8487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8488 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491 case $aros_target_objdump_ln in
8492 [\\/]* | ?:[\\/]*)
8493 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8507 done
8508 done
8511 esac
8513 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8515 if test -n "$aros_target_objdump_ln"; then
8516 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8517 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8518 else
8519 echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8526 if test "$aros_target_objdump_ln" = ""; then
8527 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
8528 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
8529 { (exit 1); exit 1; }; }
8532 if test "$cross_compiling" = "yes" ; then
8533 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8534 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8535 echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8537 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 case $aros_target_ranlib_ln in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8560 esac
8562 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8564 if test -n "$aros_target_ranlib_ln"; then
8565 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8566 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6
8572 else
8573 if test "$GCC" = "yes"; then
8574 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8575 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8576 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8577 echo "$as_me:$LINENO: checking for $ac_word" >&5
8578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8579 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 case $aros_target_ranlib_ln in
8583 [\\/]* | ?:[\\/]*)
8584 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in `dirname $aros_gcc_ranlib`
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8602 esac
8604 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8606 if test -n "$aros_target_ranlib_ln"; then
8607 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8608 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611 echo "${ECHO_T}no" >&6
8615 if test "$aros_target_ranlib_ln" = ""; then
8616 # Extract the first word of "ranlib", so it can be a program name with args.
8617 set dummy ranlib; ac_word=$2
8618 echo "$as_me:$LINENO: checking for $ac_word" >&5
8619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 case $aros_target_ranlib_ln in
8624 [\\/]* | ?:[\\/]*)
8625 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8639 done
8640 done
8643 esac
8645 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8647 if test -n "$aros_target_ranlib_ln"; then
8648 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8649 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8658 if test "$aros_target_ranlib_ln" = ""; then
8659 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
8660 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
8661 { (exit 1); exit 1; }; }
8664 if test "$cross_compiling" = "yes" ; then
8665 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8666 set dummy ${target_tool_prefix}strip; ac_word=$2
8667 echo "$as_me:$LINENO: checking for $ac_word" >&5
8668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8669 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672 case $aros_target_strip_ln in
8673 [\\/]* | ?:[\\/]*)
8674 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 break 2
8688 done
8689 done
8692 esac
8694 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8696 if test -n "$aros_target_strip_ln"; then
8697 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8698 echo "${ECHO_T}$aros_target_strip_ln" >&6
8699 else
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6
8704 else
8705 if test "$GCC" = "yes"; then
8706 aros_gcc_strip=`$CC -print-prog-name=strip`
8707 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8708 set dummy `basename $aros_gcc_strip`; ac_word=$2
8709 echo "$as_me:$LINENO: checking for $ac_word" >&5
8710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8711 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 case $aros_target_strip_ln in
8715 [\\/]* | ?:[\\/]*)
8716 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in `dirname $aros_gcc_strip`
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8734 esac
8736 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8738 if test -n "$aros_target_strip_ln"; then
8739 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8740 echo "${ECHO_T}$aros_target_strip_ln" >&6
8741 else
8742 echo "$as_me:$LINENO: result: no" >&5
8743 echo "${ECHO_T}no" >&6
8747 if test "$aros_target_strip_ln" = ""; then
8748 # Extract the first word of "strip", so it can be a program name with args.
8749 set dummy strip; ac_word=$2
8750 echo "$as_me:$LINENO: checking for $ac_word" >&5
8751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 case $aros_target_strip_ln in
8756 [\\/]* | ?:[\\/]*)
8757 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8771 done
8772 done
8775 esac
8777 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8779 if test -n "$aros_target_strip_ln"; then
8780 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8781 echo "${ECHO_T}$aros_target_strip_ln" >&6
8782 else
8783 echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6
8790 if test "$aros_target_strip_ln" = ""; then
8791 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
8792 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
8793 { (exit 1); exit 1; }; }
8796 if test "$GCC" = "yes"; then
8797 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
8800 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8801 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8802 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8803 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8804 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8805 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8806 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8808 # aros_cc_pre is a variable that is added to the front of the compiler name
8809 # in the generated aros-gcc shell script. We need this to enable the cache
8810 # to work across cleaned builds. Also, support DISTCC using the correct
8811 # environment variable.
8814 if test "x${DISTCC}" != "x" ; then
8815 if test "x${CCACHE}" != "x" ; then
8816 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
8817 else
8818 aros_cc_pre="${DISTCC} "
8820 else
8821 if test "x${CCACHE}" != "x" ; then
8822 aros_cc_pre="${CCACHE} "
8826 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8828 aros_target_nostdinc_cflags=-nostdinc
8830 aros_target_nostartup_ldflags=-nostartfiles
8832 aros_target_nix_ldflags=-nix
8834 aros_target_detach_ldflags=-detach
8836 aros_target_nostdlib_ldflags=-nostdlib
8839 # Target tools
8840 aros_target_cc="${prefix}-gcc"
8841 aros_target_as="${prefix}-as"
8842 aros_target_ld="${prefix}-ld"
8843 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
8844 aros_target_objcopy=${prefix}-objcopy
8845 aros_target_objdump=${prefix}-objdump
8846 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
8847 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
8848 aros_kernel_nm="${prefix}-nm"
8849 aros_target_strip=${prefix}-strip
8851 #-----------------------------------------------------------------------------
8852 # See if we can compile SHM support
8853 HAVE_XSHM_SUPPORT=0
8854 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8855 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8856 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8857 if test -z "$x_includes" ; then
8858 CFLAGS=""
8859 else
8860 CFLAGS="-I $x_includes"
8862 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8870 #include <sys/types.h>
8871 #include <X11/Xlib.h>
8872 #include <X11/Xutil.h>
8873 #include <X11/keysym.h>
8874 #include <X11/cursorfont.h>
8875 #include <sys/ipc.h>
8876 #include <sys/shm.h>
8877 #include <X11/extensions/XShm.h>
8879 main ()
8882 static XShmSegmentInfo shminfo;
8883 static Display *display;
8884 XShmAttach(display, &shminfo);
8885 XSync(display,0);
8886 shmctl(shminfo.shmid, IPC_RMID, 0);
8889 return 0;
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894 (eval $ac_link) 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag"
8902 || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 HAVE_XSHM_SUPPORT=1
8915 echo "$as_me:$LINENO: result: yes" >&5
8916 echo "${ECHO_T}yes" >&6
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 HAVE_XSHM_SUPPORT=0
8922 echo "$as_me:$LINENO: result: no" >&5
8923 echo "${ECHO_T}no" >&6
8925 rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8929 #-----------------------------------------------------------------------------
8930 # See if we can compile VIDMODE support
8931 HAVE_VIDMODE_SUPPORT=0
8932 if [ "x$no_x" != "xyes" ]; then
8933 LIBS=""
8934 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8935 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8936 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 /* Override any gcc2 internal prototype to avoid an error. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953 builtin and then its argument prototype would still apply. */
8954 char XF86VidModeQueryExtension ();
8956 main ()
8958 XF86VidModeQueryExtension ();
8960 return 0;
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag"
8973 || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8992 rm -f conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8997 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8998 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8999 HAVE_VIDMODE_SUPPORT=1
9000 else
9001 HAVE_VIDMODE_SUPPORT=0
9007 # Find the system include path. We can suggest that an alternative is
9008 # used if we don't get it correct. The default is to use /usr/include.
9009 # Which is set in the aros_target_incl_def variable.
9011 # Check whether --enable-includes or --disable-includes was given.
9012 if test "${enable_includes+set}" = set; then
9013 enableval="$enable_includes"
9014 aros_target_incl=$enable_includes
9015 else
9016 aros_target_incl=$aros_target_incl_def
9019 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9020 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
9021 if test "$aros_target_cc_includes" = "" ; then
9022 #try to guess where the directory is
9023 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9024 if ! test -d $aros_target_cc_includes; then
9025 #the directory doesn't exist, we need to do some more work
9026 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9028 #these are the headers we're looling for
9029 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9030 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9031 zutil.h"
9033 dirs=
9034 for h in $headers; do
9035 #which other headers each of the above headers needs?
9036 deps=$(echo "#include <$h>" | \
9037 $aros_host_cc -E -M - 2>/dev/null | \
9038 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9040 #copy all the needed headers to a directory beneath gendir
9041 for d in $deps; do
9042 h=$(basename $d)
9043 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9044 sed -n "s,^.*/include\(/.*\),\1,p")
9045 ! test -d $dir && mkdir -p $dir
9046 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9047 done
9048 done
9051 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9052 echo "${ECHO_T}$aros_target_cc_includes" >&6
9054 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9055 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
9057 # Check whether --with-resolution or --without-resolution was given.
9058 if test "${with_resolution+set}" = set; then
9059 withval="$with_resolution"
9060 resolution=$withval
9061 else
9062 resolution=none
9064 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9065 if test "$resolution" = "yes" ; then
9066 resolution="none"
9068 if test "$resolution" = "no" ; then
9069 resolution="none"
9071 if test "$resolution" != "none" ; then
9072 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9073 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9074 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9076 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9077 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
9078 aros_cv_default_wbwidth=$aros_default_wbwidth
9079 aros_cv_default_wbheight=$aros_default_wbheight
9080 aros_cv_default_wbdepth=$aros_default_wbdepth
9082 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9083 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
9084 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
9085 if test "${enable_bochs_hack+set}" = set; then
9086 enableval="$enable_bochs_hack"
9087 bochs_hack="yes"
9088 else
9089 bochs_hack="no"
9091 if test "$bochs_hack" = "yes" ; then
9092 aros_bochs_hack="1"
9094 echo "$as_me:$LINENO: result: $bochs_hack" >&5
9095 echo "${ECHO_T}$bochs_hack" >&6
9097 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9098 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
9100 # Check whether --with-serial-debug or --without-serial-debug was given.
9101 if test "${with_serial_debug+set}" = set; then
9102 withval="$with_serial_debug"
9103 serial_debug=$withval
9104 else
9105 serial_debug=none
9107 if test "$serial_debug" = "yes" ; then
9108 serial_debug="2"
9110 if test "$serial_debug" = "no" ; then
9111 serial_debug="none"
9113 if test "$serial_debug" != "none" ; then
9114 aros_serial_debug=$serial_debug
9115 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9116 echo "${ECHO_T}on port $serial_debug" >&6
9117 else
9118 echo "$as_me:$LINENO: result: no" >&5
9119 echo "${ECHO_T}no" >&6
9122 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9123 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
9124 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
9125 if test "${enable_palm_debug_hack+set}" = set; then
9126 enableval="$enable_palm_debug_hack"
9127 palm_debug_hack="yes"
9128 else
9129 palm_debug_hack="no"
9131 if test "$palm_debug_hack" = "yes" ; then
9132 aros_palm_debug_hack="1"
9134 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9135 echo "${ECHO_T}$palm_debug_hack" >&6
9138 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9139 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
9140 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
9141 if test "${enable_nesting_supervisor+set}" = set; then
9142 enableval="$enable_nesting_supervisor"
9143 nesting_supervisor="yes"
9144 else
9145 nesting_supervisor="no"
9147 if test "$nesting_supervisor" = "yes" ; then
9148 aros_nesting_supervisor="1"
9150 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9151 echo "${ECHO_T}$nesting_supervisor" >&6
9155 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9156 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
9157 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
9158 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
9159 if test "${enable_xshm_extension+set}" = set; then
9160 enableval="$enable_xshm_extension"
9161 xshm_extension="$enableval"
9162 else
9163 xshm_extension="yes"
9165 if test "$xshm_extension" = "no" ; then
9166 DO_XSHM_SUPPORT="0"
9168 echo "$as_me:$LINENO: result: $xshm_extension" >&5
9169 echo "${ECHO_T}$xshm_extension" >&6
9170 else
9171 DO_XSHM_SUPPORT="0"
9174 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
9175 echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
9176 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6
9177 # Check whether --enable-vidmodeextension or --disable-vidmodeextension was given.
9178 if test "${enable_vidmodeextension+set}" = set; then
9179 enableval="$enable_vidmodeextension"
9180 vidmode_extension="$enableval"
9181 else
9182 vidmode_extension="yes"
9184 if test "$vidmode_extension" = "no" ; then
9185 DO_VIDMODE_SUPPORT="0"
9187 echo "$as_me:$LINENO: result: $vidmode_extension" >&5
9188 echo "${ECHO_T}$vidmode_extension" >&6
9189 else
9190 DO_VIDMODE_SUPPORT="0"
9194 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
9195 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
9196 # Check whether --enable-dbus or --disable-dbus was given.
9197 if test "${enable_dbus+set}" = set; then
9198 enableval="$enable_dbus"
9199 dbus="yes"
9200 else
9201 dbus="no"
9203 if test "$dbus" = "yes" ; then
9204 ENABLE_DBUS=1
9205 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
9206 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
9207 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
9208 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
9209 else
9210 ENABLE_DBUS=0
9212 echo "$as_me:$LINENO: result: $dbus" >&5
9213 echo "${ECHO_T}$dbus" >&6
9217 # Generic
9224 # Host related
9247 # Target Related
9286 # Graphics Related
9299 # Native version related
9303 # Palm native version related
9306 # Unix/Hosted version related
9309 # DBUS related
9316 # Debug related
9322 # Collect-aros stuff: "-ius" to ignore undefined symbols
9325 # C compiler related
9328 case "$aros_flavour" in
9329 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
9330 aros_flavour="emulation" ;;
9331 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
9332 aros_flavour="emulation" ;;
9333 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
9334 aros_flavour="standalone";;
9335 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
9336 aros_flavour="native" ;;
9337 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9338 aros_flavour="native" ;;
9339 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
9340 aros_flavour="linklib" ;;
9341 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9342 aros_flavour="palmnative" ;;
9343 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9344 aros_flavour="mac68knative" ;;
9345 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9346 aros_flavour="ppcnative" ;;
9347 esac
9349 if test -z "$aros_gui_basedir" ; then
9350 aros_gui_libdir="$x_libraries"
9351 if test -z "$x_libraries" ; then
9352 aros_gui_ldflags=""
9353 else
9354 aros_gui_ldflags="-L $x_libraries"
9356 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9357 aros_gui_libflags="-lX11 -lXext"
9358 else
9359 aros_gui_libflags="-lX11"
9361 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
9362 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
9365 aros_gui_incdir="$x_includes"
9366 if test -z "$x_includes" ; then
9367 aros_gui_ccflags=""
9368 else
9369 aros_gui_ccflags="-I $x_includes"
9371 else
9372 if test -n "$aros_gui_basedir" ; then
9373 aros_gui_libdir="${aros_gui_basedir}/lib"
9374 aros_gui_incdir="${aros_gui_basedir}/include"
9377 if test -n "$aros_gui_libdir" ; then
9378 aros_gui_ldflags="-L ${aros_gui_libdir}"
9381 if test -n "$aros_gui_incdir" ; then
9382 aros_gui_ccflags="-I ${aros_gui_incdir}"
9383 else
9384 aros_gui_incdir="${aros_sysincludes}"
9385 aros_gui_ccflags=""
9389 if test ! -d ${aros_inc_dir} ; then
9390 ${MKDIR} ${aros_inc_dir}
9392 if test ! -d ${aros_geninc_dir} ; then
9393 ${MKDIR} ${aros_geninc_dir}
9395 if test ! -d ${aros_hostcfg_dir} ; then
9396 ${MKDIR} ${aros_hostcfg_dir}
9398 if test ! -d ${aros_targetcfg_dir} ; then
9399 ${MKDIR} ${aros_targetcfg_dir}
9401 if test ! -d ${aros_tools_dir} ; then
9402 ${MKDIR} ${aros_tools_dir}
9404 if test ! -d ${aros_scripts_dir} ; then
9405 ${MKDIR} ${aros_scripts_dir}
9408 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
9411 ac_config_commands="$ac_config_commands compiler_executable"
9413 ac_config_commands="$ac_config_commands genshared_executable"
9415 ac_config_commands="$ac_config_commands genmf_executable"
9417 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
9420 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"
9423 cat >confcache <<\_ACEOF
9424 # This file is a shell script that caches the results of configure
9425 # tests run on this system so they can be shared between configure
9426 # scripts and configure runs, see configure's option --config-cache.
9427 # It is not useful on other systems. If it contains results you don't
9428 # want to keep, you may remove or edit it.
9430 # config.status only pays attention to the cache file if you give it
9431 # the --recheck option to rerun configure.
9433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9435 # following values.
9437 _ACEOF
9439 # The following way of writing the cache mishandles newlines in values,
9440 # but we know of no workaround that is simple, portable, and efficient.
9441 # So, don't put newlines in cache variables' values.
9442 # Ultrix sh set writes to stderr and can't be redirected directly,
9443 # and sets the high bit in the cache file unless we assign to the vars.
9445 (set) 2>&1 |
9446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9447 *ac_space=\ *)
9448 # `set' does not quote correctly, so add quotes (double-quote
9449 # substitution turns \\\\ into \\, and sed turns \\ into \).
9450 sed -n \
9451 "s/'/'\\\\''/g;
9452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9455 # `set' quotes correctly as required by POSIX, so do not add quotes.
9456 sed -n \
9457 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9459 esac;
9461 sed '
9462 t clear
9463 : clear
9464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9465 t end
9466 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9467 : end' >>confcache
9468 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9469 if test -w $cache_file; then
9470 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9471 cat confcache >$cache_file
9472 else
9473 echo "not updating unwritable cache $cache_file"
9476 rm -f confcache
9478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9479 # Let make expand exec_prefix.
9480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9484 # trailing colons and then remove the whole line if VPATH becomes empty
9485 # (actually we leave an empty line to preserve line numbers).
9486 if test "x$srcdir" = x.; then
9487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9488 s/:*\$(srcdir):*/:/;
9489 s/:*\${srcdir}:*/:/;
9490 s/:*@srcdir@:*/:/;
9491 s/^\([^=]*=[ ]*\):*/\1/;
9492 s/:*$//;
9493 s/^[^=]*=[ ]*$//;
9497 DEFS=-DHAVE_CONFIG_H
9499 ac_libobjs=
9500 ac_ltlibobjs=
9501 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9502 # 1. Remove the extension, and $U if already installed.
9503 ac_i=`echo "$ac_i" |
9504 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9505 # 2. Add them.
9506 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9507 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9508 done
9509 LIBOBJS=$ac_libobjs
9511 LTLIBOBJS=$ac_ltlibobjs
9515 : ${CONFIG_STATUS=./config.status}
9516 ac_clean_files_save=$ac_clean_files
9517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9518 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9519 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9520 cat >$CONFIG_STATUS <<_ACEOF
9521 #! $SHELL
9522 # Generated by $as_me.
9523 # Run this file to recreate the current configuration.
9524 # Compiler output produced by configure, useful for debugging
9525 # configure, is in config.log if it exists.
9527 debug=false
9528 ac_cs_recheck=false
9529 ac_cs_silent=false
9530 SHELL=\${CONFIG_SHELL-$SHELL}
9531 _ACEOF
9533 cat >>$CONFIG_STATUS <<\_ACEOF
9534 ## --------------------- ##
9535 ## M4sh Initialization. ##
9536 ## --------------------- ##
9538 # Be Bourne compatible
9539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9540 emulate sh
9541 NULLCMD=:
9542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9543 # is contrary to our usage. Disable this feature.
9544 alias -g '${1+"$@"}'='"$@"'
9545 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9546 set -o posix
9548 DUALCASE=1; export DUALCASE # for MKS sh
9550 # Support unset when possible.
9551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9552 as_unset=unset
9553 else
9554 as_unset=false
9558 # Work around bugs in pre-3.0 UWIN ksh.
9559 $as_unset ENV MAIL MAILPATH
9560 PS1='$ '
9561 PS2='> '
9562 PS4='+ '
9564 # NLS nuisances.
9565 for as_var in \
9566 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9567 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9568 LC_TELEPHONE LC_TIME
9570 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9571 eval $as_var=C; export $as_var
9572 else
9573 $as_unset $as_var
9575 done
9577 # Required to use basename.
9578 if expr a : '\(a\)' >/dev/null 2>&1; then
9579 as_expr=expr
9580 else
9581 as_expr=false
9584 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9585 as_basename=basename
9586 else
9587 as_basename=false
9591 # Name of the executable.
9592 as_me=`$as_basename "$0" ||
9593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9594 X"$0" : 'X\(//\)$' \| \
9595 X"$0" : 'X\(/\)$' \| \
9596 . : '\(.\)' 2>/dev/null ||
9597 echo X/"$0" |
9598 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9599 /^X\/\(\/\/\)$/{ s//\1/; q; }
9600 /^X\/\(\/\).*/{ s//\1/; q; }
9601 s/.*/./; q'`
9604 # PATH needs CR, and LINENO needs CR and PATH.
9605 # Avoid depending upon Character Ranges.
9606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9609 as_cr_digits='0123456789'
9610 as_cr_alnum=$as_cr_Letters$as_cr_digits
9612 # The user is always right.
9613 if test "${PATH_SEPARATOR+set}" != set; then
9614 echo "#! /bin/sh" >conf$$.sh
9615 echo "exit 0" >>conf$$.sh
9616 chmod +x conf$$.sh
9617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9618 PATH_SEPARATOR=';'
9619 else
9620 PATH_SEPARATOR=:
9622 rm -f conf$$.sh
9626 as_lineno_1=$LINENO
9627 as_lineno_2=$LINENO
9628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9629 test "x$as_lineno_1" != "x$as_lineno_2" &&
9630 test "x$as_lineno_3" = "x$as_lineno_2" || {
9631 # Find who we are. Look in the path if we contain no path at all
9632 # relative or not.
9633 case $0 in
9634 *[\\/]* ) as_myself=$0 ;;
9635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9641 done
9644 esac
9645 # We did not find ourselves, most probably we were run as `sh COMMAND'
9646 # in which case we are not to be found in the path.
9647 if test "x$as_myself" = x; then
9648 as_myself=$0
9650 if test ! -f "$as_myself"; then
9651 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9652 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9653 { (exit 1); exit 1; }; }
9655 case $CONFIG_SHELL in
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for as_base in sh bash ksh sh5; do
9663 case $as_dir in
9665 if ("$as_dir/$as_base" -c '
9666 as_lineno_1=$LINENO
9667 as_lineno_2=$LINENO
9668 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9669 test "x$as_lineno_1" != "x$as_lineno_2" &&
9670 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9671 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9672 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9673 CONFIG_SHELL=$as_dir/$as_base
9674 export CONFIG_SHELL
9675 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9676 fi;;
9677 esac
9678 done
9679 done
9681 esac
9683 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9684 # uniformly replaced by the line number. The first 'sed' inserts a
9685 # line-number line before each line; the second 'sed' does the real
9686 # work. The second script uses 'N' to pair each line-number line
9687 # with the numbered line, and appends trailing '-' during
9688 # substitution so that $LINENO is not a special case at line end.
9689 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9690 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9691 sed '=' <$as_myself |
9692 sed '
9694 s,$,-,
9695 : loop
9696 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9697 t loop
9698 s,-$,,
9699 s,^['$as_cr_digits']*\n,,
9700 ' >$as_me.lineno &&
9701 chmod +x $as_me.lineno ||
9702 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9703 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9704 { (exit 1); exit 1; }; }
9706 # Don't try to exec as it changes $[0], causing all sort of problems
9707 # (the dirname of $[0] is not the place where we might find the
9708 # original and so on. Autoconf is especially sensible to this).
9709 . ./$as_me.lineno
9710 # Exit status is that of the last command.
9711 exit
9715 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9716 *c*,-n*) ECHO_N= ECHO_C='
9717 ' ECHO_T=' ' ;;
9718 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9719 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9720 esac
9722 if expr a : '\(a\)' >/dev/null 2>&1; then
9723 as_expr=expr
9724 else
9725 as_expr=false
9728 rm -f conf$$ conf$$.exe conf$$.file
9729 echo >conf$$.file
9730 if ln -s conf$$.file conf$$ 2>/dev/null; then
9731 # We could just check for DJGPP; but this test a) works b) is more generic
9732 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9733 if test -f conf$$.exe; then
9734 # Don't use ln at all; we don't have any links
9735 as_ln_s='cp -p'
9736 else
9737 as_ln_s='ln -s'
9739 elif ln conf$$.file conf$$ 2>/dev/null; then
9740 as_ln_s=ln
9741 else
9742 as_ln_s='cp -p'
9744 rm -f conf$$ conf$$.exe conf$$.file
9746 if mkdir -p . 2>/dev/null; then
9747 as_mkdir_p=:
9748 else
9749 test -d ./-p && rmdir ./-p
9750 as_mkdir_p=false
9753 as_executable_p="test -f"
9755 # Sed expression to map a string onto a valid CPP name.
9756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9758 # Sed expression to map a string onto a valid variable name.
9759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9762 # IFS
9763 # We need space, tab and new line, in precisely that order.
9764 as_nl='
9766 IFS=" $as_nl"
9768 # CDPATH.
9769 $as_unset CDPATH
9771 exec 6>&1
9773 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9774 # report actual input values of CONFIG_FILES etc. instead of their
9775 # values after options handling. Logging --version etc. is OK.
9776 exec 5>>config.log
9778 echo
9779 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9780 ## Running $as_me. ##
9781 _ASBOX
9782 } >&5
9783 cat >&5 <<_CSEOF
9785 This file was extended by $as_me, which was
9786 generated by GNU Autoconf 2.59. Invocation command line was
9788 CONFIG_FILES = $CONFIG_FILES
9789 CONFIG_HEADERS = $CONFIG_HEADERS
9790 CONFIG_LINKS = $CONFIG_LINKS
9791 CONFIG_COMMANDS = $CONFIG_COMMANDS
9792 $ $0 $@
9794 _CSEOF
9795 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9796 echo >&5
9797 _ACEOF
9799 # Files that config.status was made for.
9800 if test -n "$ac_config_files"; then
9801 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9804 if test -n "$ac_config_headers"; then
9805 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9808 if test -n "$ac_config_links"; then
9809 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9812 if test -n "$ac_config_commands"; then
9813 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9816 cat >>$CONFIG_STATUS <<\_ACEOF
9818 ac_cs_usage="\
9819 \`$as_me' instantiates files from templates according to the
9820 current configuration.
9822 Usage: $0 [OPTIONS] [FILE]...
9824 -h, --help print this help, then exit
9825 -V, --version print version number, then exit
9826 -q, --quiet do not print progress messages
9827 -d, --debug don't remove temporary files
9828 --recheck update $as_me by reconfiguring in the same conditions
9829 --file=FILE[:TEMPLATE]
9830 instantiate the configuration file FILE
9831 --header=FILE[:TEMPLATE]
9832 instantiate the configuration header FILE
9834 Configuration files:
9835 $config_files
9837 Configuration headers:
9838 $config_headers
9840 Configuration commands:
9841 $config_commands
9843 Report bugs to <bug-autoconf@gnu.org>."
9844 _ACEOF
9846 cat >>$CONFIG_STATUS <<_ACEOF
9847 ac_cs_version="\\
9848 config.status
9849 configured by $0, generated by GNU Autoconf 2.59,
9850 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9852 Copyright (C) 2003 Free Software Foundation, Inc.
9853 This config.status script is free software; the Free Software Foundation
9854 gives unlimited permission to copy, distribute and modify it."
9855 srcdir=$srcdir
9856 _ACEOF
9858 cat >>$CONFIG_STATUS <<\_ACEOF
9859 # If no file are specified by the user, then we need to provide default
9860 # value. By we need to know if files were specified by the user.
9861 ac_need_defaults=:
9862 while test $# != 0
9864 case $1 in
9865 --*=*)
9866 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9867 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9868 ac_shift=:
9871 ac_option=$1
9872 ac_optarg=$2
9873 ac_shift=shift
9875 *) # This is not an option, so the user has probably given explicit
9876 # arguments.
9877 ac_option=$1
9878 ac_need_defaults=false;;
9879 esac
9881 case $ac_option in
9882 # Handling of the options.
9883 _ACEOF
9884 cat >>$CONFIG_STATUS <<\_ACEOF
9885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9886 ac_cs_recheck=: ;;
9887 --version | --vers* | -V )
9888 echo "$ac_cs_version"; exit 0 ;;
9889 --he | --h)
9890 # Conflict between --help and --header
9891 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9892 Try \`$0 --help' for more information." >&5
9893 echo "$as_me: error: ambiguous option: $1
9894 Try \`$0 --help' for more information." >&2;}
9895 { (exit 1); exit 1; }; };;
9896 --help | --hel | -h )
9897 echo "$ac_cs_usage"; exit 0 ;;
9898 --debug | --d* | -d )
9899 debug=: ;;
9900 --file | --fil | --fi | --f )
9901 $ac_shift
9902 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9903 ac_need_defaults=false;;
9904 --header | --heade | --head | --hea )
9905 $ac_shift
9906 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9907 ac_need_defaults=false;;
9908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9910 ac_cs_silent=: ;;
9912 # This is an error.
9913 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9914 Try \`$0 --help' for more information." >&5
9915 echo "$as_me: error: unrecognized option: $1
9916 Try \`$0 --help' for more information." >&2;}
9917 { (exit 1); exit 1; }; } ;;
9919 *) ac_config_targets="$ac_config_targets $1" ;;
9921 esac
9922 shift
9923 done
9925 ac_configure_extra_args=
9927 if $ac_cs_silent; then
9928 exec 6>/dev/null
9929 ac_configure_extra_args="$ac_configure_extra_args --silent"
9932 _ACEOF
9933 cat >>$CONFIG_STATUS <<_ACEOF
9934 if \$ac_cs_recheck; then
9935 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9936 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9939 _ACEOF
9941 cat >>$CONFIG_STATUS <<_ACEOF
9943 # INIT-COMMANDS section.
9947 aros_tools_dir=${aros_tools_dir}
9948 aros_target_cpu=${aros_target_cpu}
9949 aros_target_arch=${aros_target_arch}
9950 aros_target_suffix=${aros_target_suffix}
9951 aros_target_nm_ln=${aros_target_nm_ln}
9952 aros_target_as_ln=${aros_target_as_ln}
9953 aros_target_ar_ln=${aros_target_ar_ln}
9954 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9955 aros_target_objdump_ln=${aros_target_objdump_ln}
9956 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9957 aros_target_strip_ln=${aros_target_strip_ln}
9960 aros_scripts_dir=${aros_scripts_dir}
9962 aros_tools_dir=${aros_tools_dir}
9965 _ACEOF
9969 cat >>$CONFIG_STATUS <<\_ACEOF
9970 for ac_config_target in $ac_config_targets
9972 case "$ac_config_target" in
9973 # Handling of arguments.
9974 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9975 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9976 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9977 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9978 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9979 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9980 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9981 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9982 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9983 "${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" ;;
9984 "${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" ;;
9985 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9986 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9987 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9988 "tools/collect-aros/env.h" ) CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
9989 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9990 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9991 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9992 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9993 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9996 { (exit 1); exit 1; }; };;
9997 esac
9998 done
10000 # If the user did not use the arguments to specify the items to instantiate,
10001 # then the envvar interface is used. Set only those that are not.
10002 # We use the long form for the default assignment because of an extremely
10003 # bizarre bug on SunOS 4.1.3.
10004 if $ac_need_defaults; then
10005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10010 # Have a temporary directory for convenience. Make it in the build tree
10011 # simply because there is no reason to put it here, and in addition,
10012 # creating and moving files from /tmp can sometimes cause problems.
10013 # Create a temporary directory, and hook for its removal unless debugging.
10014 $debug ||
10016 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10017 trap '{ (exit 1); exit 1; }' 1 2 13 15
10020 # Create a (secure) tmp directory for tmp files.
10023 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10024 test -n "$tmp" && test -d "$tmp"
10025 } ||
10027 tmp=./confstat$$-$RANDOM
10028 (umask 077 && mkdir $tmp)
10029 } ||
10031 echo "$me: cannot create a temporary directory in ." >&2
10032 { (exit 1); exit 1; }
10035 _ACEOF
10037 cat >>$CONFIG_STATUS <<_ACEOF
10040 # CONFIG_FILES section.
10043 # No need to generate the scripts if there are no CONFIG_FILES.
10044 # This happens for instance when ./config.status config.h
10045 if test -n "\$CONFIG_FILES"; then
10046 # Protect against being on the right side of a sed subst in config.status.
10047 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10048 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10049 s,@SHELL@,$SHELL,;t t
10050 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10051 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10052 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10053 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10054 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10055 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10056 s,@exec_prefix@,$exec_prefix,;t t
10057 s,@prefix@,$prefix,;t t
10058 s,@program_transform_name@,$program_transform_name,;t t
10059 s,@bindir@,$bindir,;t t
10060 s,@sbindir@,$sbindir,;t t
10061 s,@libexecdir@,$libexecdir,;t t
10062 s,@datadir@,$datadir,;t t
10063 s,@sysconfdir@,$sysconfdir,;t t
10064 s,@sharedstatedir@,$sharedstatedir,;t t
10065 s,@localstatedir@,$localstatedir,;t t
10066 s,@libdir@,$libdir,;t t
10067 s,@includedir@,$includedir,;t t
10068 s,@oldincludedir@,$oldincludedir,;t t
10069 s,@infodir@,$infodir,;t t
10070 s,@mandir@,$mandir,;t t
10071 s,@build_alias@,$build_alias,;t t
10072 s,@host_alias@,$host_alias,;t t
10073 s,@target_alias@,$target_alias,;t t
10074 s,@DEFS@,$DEFS,;t t
10075 s,@ECHO_C@,$ECHO_C,;t t
10076 s,@ECHO_N@,$ECHO_N,;t t
10077 s,@ECHO_T@,$ECHO_T,;t t
10078 s,@LIBS@,$LIBS,;t t
10079 s,@build@,$build,;t t
10080 s,@build_cpu@,$build_cpu,;t t
10081 s,@build_vendor@,$build_vendor,;t t
10082 s,@build_os@,$build_os,;t t
10083 s,@host@,$host,;t t
10084 s,@host_cpu@,$host_cpu,;t t
10085 s,@host_vendor@,$host_vendor,;t t
10086 s,@host_os@,$host_os,;t t
10087 s,@CC@,$CC,;t t
10088 s,@CFLAGS@,$CFLAGS,;t t
10089 s,@LDFLAGS@,$LDFLAGS,;t t
10090 s,@CPPFLAGS@,$CPPFLAGS,;t t
10091 s,@ac_ct_CC@,$ac_ct_CC,;t t
10092 s,@EXEEXT@,$EXEEXT,;t t
10093 s,@OBJEXT@,$OBJEXT,;t t
10094 s,@CPP@,$CPP,;t t
10095 s,@AWK@,$AWK,;t t
10096 s,@MMAKE@,$MMAKE,;t t
10097 s,@aros_host_ld@,$aros_host_ld,;t t
10098 s,@aros_host_aclocal@,$aros_host_aclocal,;t t
10099 s,@aros_host_autoconf@,$aros_host_autoconf,;t t
10100 s,@aros_host_autoheader@,$aros_host_autoheader,;t t
10101 s,@aros_host_automake@,$aros_host_automake,;t t
10102 s,@aros_host_ar@,$aros_host_ar,;t t
10103 s,@aros_host_ranlib@,$aros_host_ranlib,;t t
10104 s,@aros_host_strip@,$aros_host_strip,;t t
10105 s,@RM@,$RM,;t t
10106 s,@CP@,$CP,;t t
10107 s,@MV@,$MV,;t t
10108 s,@ECHO@,$ECHO,;t t
10109 s,@MKDIR@,$MKDIR,;t t
10110 s,@TOUCH@,$TOUCH,;t t
10111 s,@SORT@,$SORT,;t t
10112 s,@UNIQ@,$UNIQ,;t t
10113 s,@NOP@,$NOP,;t t
10114 s,@CAT@,$CAT,;t t
10115 s,@BISON@,$BISON,;t t
10116 s,@FLEX@,$FLEX,;t t
10117 s,@PNGTOPNM@,$PNGTOPNM,;t t
10118 s,@PPMTOILBM@,$PPMTOILBM,;t t
10119 s,@SED@,$SED,;t t
10120 s,@CHMOD@,$CHMOD,;t t
10121 s,@PYTHON@,$PYTHON,;t t
10122 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
10123 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
10124 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
10125 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
10126 s,@pythondir@,$pythondir,;t t
10127 s,@pkgpythondir@,$pkgpythondir,;t t
10128 s,@pyexecdir@,$pyexecdir,;t t
10129 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
10130 s,@FOR@,$FOR,;t t
10131 s,@IF@,$IF,;t t
10132 s,@TEST@,$TEST,;t t
10133 s,@CMP@,$CMP,;t t
10134 s,@EGREP@,$EGREP,;t t
10135 s,@LIBOBJS@,$LIBOBJS,;t t
10136 s,@DISTCC@,$DISTCC,;t t
10137 s,@CCACHE@,$CCACHE,;t t
10138 s,@aros_kernel_cc@,$aros_kernel_cc,;t t
10139 s,@aros_target_as_ln@,$aros_target_as_ln,;t t
10140 s,@aros_kernel_ld@,$aros_kernel_ld,;t t
10141 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
10142 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
10143 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
10144 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
10145 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
10146 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
10147 s,@aros_target_nostdinc_cflags@,$aros_target_nostdinc_cflags,;t t
10148 s,@aros_target_nostartup_ldflags@,$aros_target_nostartup_ldflags,;t t
10149 s,@aros_target_nix_ldflags@,$aros_target_nix_ldflags,;t t
10150 s,@aros_target_detach_ldflags@,$aros_target_detach_ldflags,;t t
10151 s,@aros_target_nostdlib_ldflags@,$aros_target_nostdlib_ldflags,;t t
10152 s,@aros_arch@,$aros_arch,;t t
10153 s,@aros_cpu@,$aros_cpu,;t t
10154 s,@aros_flavour@,$aros_flavour,;t t
10155 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
10156 s,@TOPDIR@,$TOPDIR,;t t
10157 s,@aros_cc_pre@,$aros_cc_pre,;t t
10158 s,@aros_host_arch@,$aros_host_arch,;t t
10159 s,@aros_host_cpu@,$aros_host_cpu,;t t
10160 s,@aros_host_cc@,$aros_host_cc,;t t
10161 s,@aros_host_make@,$aros_host_make,;t t
10162 s,@aros_host_cflags@,$aros_host_cflags,;t t
10163 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
10164 s,@aros_host_debug@,$aros_host_debug,;t t
10165 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
10166 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
10167 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
10168 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
10169 s,@aros_tools_dir@,$aros_tools_dir,;t t
10170 s,@aros_target_arch@,$aros_target_arch,;t t
10171 s,@aros_target_cpu@,$aros_target_cpu,;t t
10172 s,@aros_target_variant@,$aros_target_variant,;t t
10173 s,@aros_target_suffix@,$aros_target_suffix,;t t
10174 s,@aros_target_incl@,$aros_target_incl,;t t
10175 s,@aros_target_ar@,$aros_target_ar,;t t
10176 s,@aros_target_ranlib@,$aros_target_ranlib,;t t
10177 s,@aros_kernel_nm@,$aros_kernel_nm,;t t
10178 s,@aros_target_cc@,$aros_target_cc,;t t
10179 s,@aros_target_as@,$aros_target_as,;t t
10180 s,@aros_target_ld@,$aros_target_ld,;t t
10181 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
10182 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
10183 s,@aros_target_objdump@,$aros_target_objdump,;t t
10184 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
10185 s,@aros_target_strip@,$aros_target_strip,;t t
10186 s,@aros_target_nm@,$aros_target_nm,;t t
10187 s,@aros_shared_default@,$aros_shared_default,;t t
10188 s,@aros_shared_ld@,$aros_shared_ld,;t t
10189 s,@aros_object_format@,$aros_object_format,;t t
10190 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
10191 s,@aros_config_cflags@,$aros_config_cflags,;t t
10192 s,@aros_config_aflags@,$aros_config_aflags,;t t
10193 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
10194 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
10195 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
10196 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
10197 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
10198 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
10199 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
10200 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
10201 s,@aros_target_genmap@,$aros_target_genmap,;t t
10202 s,@aros_target_strip_flags@,$aros_target_strip_flags,;t t
10203 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
10204 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
10205 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
10206 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
10207 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
10208 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
10209 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
10210 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
10211 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
10212 s,@DO_VIDMODE_SUPPORT@,$DO_VIDMODE_SUPPORT,;t t
10213 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
10214 s,@aros_serial_debug@,$aros_serial_debug,;t t
10215 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
10216 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
10217 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
10218 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
10219 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
10220 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
10221 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
10222 s,@aros_debug@,$aros_debug,;t t
10223 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
10224 s,@aros_stack_debug@,$aros_stack_debug,;t t
10225 s,@aros_modules_debug@,$aros_modules_debug,;t t
10226 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
10227 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
10228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10229 CEOF
10231 _ACEOF
10233 cat >>$CONFIG_STATUS <<\_ACEOF
10234 # Split the substitutions into bite-sized pieces for seds with
10235 # small command number limits, like on Digital OSF/1 and HP-UX.
10236 ac_max_sed_lines=48
10237 ac_sed_frag=1 # Number of current file.
10238 ac_beg=1 # First line for current file.
10239 ac_end=$ac_max_sed_lines # Line after last line for current file.
10240 ac_more_lines=:
10241 ac_sed_cmds=
10242 while $ac_more_lines; do
10243 if test $ac_beg -gt 1; then
10244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10245 else
10246 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10248 if test ! -s $tmp/subs.frag; then
10249 ac_more_lines=false
10250 else
10251 # The purpose of the label and of the branching condition is to
10252 # speed up the sed processing (if there are no `@' at all, there
10253 # is no need to browse any of the substitutions).
10254 # These are the two extra sed commands mentioned above.
10255 (echo ':t
10256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10257 if test -z "$ac_sed_cmds"; then
10258 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10259 else
10260 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10262 ac_sed_frag=`expr $ac_sed_frag + 1`
10263 ac_beg=$ac_end
10264 ac_end=`expr $ac_end + $ac_max_sed_lines`
10266 done
10267 if test -z "$ac_sed_cmds"; then
10268 ac_sed_cmds=cat
10270 fi # test -n "$CONFIG_FILES"
10272 _ACEOF
10273 cat >>$CONFIG_STATUS <<\_ACEOF
10274 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10276 case $ac_file in
10277 - | *:- | *:-:* ) # input from stdin
10278 cat >$tmp/stdin
10279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10283 * ) ac_file_in=$ac_file.in ;;
10284 esac
10286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10289 X"$ac_file" : 'X\(//\)[^/]' \| \
10290 X"$ac_file" : 'X\(//\)$' \| \
10291 X"$ac_file" : 'X\(/\)' \| \
10292 . : '\(.\)' 2>/dev/null ||
10293 echo X"$ac_file" |
10294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10296 /^X\(\/\/\)$/{ s//\1/; q; }
10297 /^X\(\/\).*/{ s//\1/; q; }
10298 s/.*/./; q'`
10299 { if $as_mkdir_p; then
10300 mkdir -p "$ac_dir"
10301 else
10302 as_dir="$ac_dir"
10303 as_dirs=
10304 while test ! -d "$as_dir"; do
10305 as_dirs="$as_dir $as_dirs"
10306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10308 X"$as_dir" : 'X\(//\)[^/]' \| \
10309 X"$as_dir" : 'X\(//\)$' \| \
10310 X"$as_dir" : 'X\(/\)' \| \
10311 . : '\(.\)' 2>/dev/null ||
10312 echo X"$as_dir" |
10313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10315 /^X\(\/\/\)$/{ s//\1/; q; }
10316 /^X\(\/\).*/{ s//\1/; q; }
10317 s/.*/./; q'`
10318 done
10319 test ! -n "$as_dirs" || mkdir $as_dirs
10320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10322 { (exit 1); exit 1; }; }; }
10324 ac_builddir=.
10326 if test "$ac_dir" != .; then
10327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10328 # A "../" for each directory in $ac_dir_suffix.
10329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10330 else
10331 ac_dir_suffix= ac_top_builddir=
10334 case $srcdir in
10335 .) # No --srcdir option. We are building in place.
10336 ac_srcdir=.
10337 if test -z "$ac_top_builddir"; then
10338 ac_top_srcdir=.
10339 else
10340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10341 fi ;;
10342 [\\/]* | ?:[\\/]* ) # Absolute path.
10343 ac_srcdir=$srcdir$ac_dir_suffix;
10344 ac_top_srcdir=$srcdir ;;
10345 *) # Relative path.
10346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10348 esac
10350 # Do not use `cd foo && pwd` to compute absolute paths, because
10351 # the directories may not exist.
10352 case `pwd` in
10353 .) ac_abs_builddir="$ac_dir";;
10355 case "$ac_dir" in
10356 .) ac_abs_builddir=`pwd`;;
10357 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10358 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10359 esac;;
10360 esac
10361 case $ac_abs_builddir in
10362 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10364 case ${ac_top_builddir}. in
10365 .) ac_abs_top_builddir=$ac_abs_builddir;;
10366 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10367 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10368 esac;;
10369 esac
10370 case $ac_abs_builddir in
10371 .) ac_abs_srcdir=$ac_srcdir;;
10373 case $ac_srcdir in
10374 .) ac_abs_srcdir=$ac_abs_builddir;;
10375 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10376 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10377 esac;;
10378 esac
10379 case $ac_abs_builddir in
10380 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10382 case $ac_top_srcdir in
10383 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10384 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10385 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10386 esac;;
10387 esac
10391 if test x"$ac_file" != x-; then
10392 { echo "$as_me:$LINENO: creating $ac_file" >&5
10393 echo "$as_me: creating $ac_file" >&6;}
10394 rm -f "$ac_file"
10396 # Let's still pretend it is `configure' which instantiates (i.e., don't
10397 # use $as_me), people would be surprised to read:
10398 # /* config.h. Generated by config.status. */
10399 if test x"$ac_file" = x-; then
10400 configure_input=
10401 else
10402 configure_input="$ac_file. "
10404 configure_input=$configure_input"Generated from `echo $ac_file_in |
10405 sed 's,.*/,,'` by configure."
10407 # First look for the input files in the build tree, otherwise in the
10408 # src tree.
10409 ac_file_inputs=`IFS=:
10410 for f in $ac_file_in; do
10411 case $f in
10412 -) echo $tmp/stdin ;;
10413 [\\/$]*)
10414 # Absolute (can't be DOS-style, as IFS=:)
10415 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10416 echo "$as_me: error: cannot find input file: $f" >&2;}
10417 { (exit 1); exit 1; }; }
10418 echo "$f";;
10419 *) # Relative
10420 if test -f "$f"; then
10421 # Build tree
10422 echo "$f"
10423 elif test -f "$srcdir/$f"; then
10424 # Source tree
10425 echo "$srcdir/$f"
10426 else
10427 # /dev/null tree
10428 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10429 echo "$as_me: error: cannot find input file: $f" >&2;}
10430 { (exit 1); exit 1; }; }
10431 fi;;
10432 esac
10433 done` || { (exit 1); exit 1; }
10434 _ACEOF
10435 cat >>$CONFIG_STATUS <<_ACEOF
10436 sed "$ac_vpsub
10437 $extrasub
10438 _ACEOF
10439 cat >>$CONFIG_STATUS <<\_ACEOF
10441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10442 s,@configure_input@,$configure_input,;t t
10443 s,@srcdir@,$ac_srcdir,;t t
10444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10445 s,@top_srcdir@,$ac_top_srcdir,;t t
10446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10447 s,@builddir@,$ac_builddir,;t t
10448 s,@abs_builddir@,$ac_abs_builddir,;t t
10449 s,@top_builddir@,$ac_top_builddir,;t t
10450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10451 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10452 rm -f $tmp/stdin
10453 if test x"$ac_file" != x-; then
10454 mv $tmp/out $ac_file
10455 else
10456 cat $tmp/out
10457 rm -f $tmp/out
10460 done
10461 _ACEOF
10462 cat >>$CONFIG_STATUS <<\_ACEOF
10465 # CONFIG_HEADER section.
10468 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10469 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10471 # ac_d sets the value in "#define NAME VALUE" lines.
10472 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10473 ac_dB='[ ].*$,\1#\2'
10474 ac_dC=' '
10475 ac_dD=',;t'
10476 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10477 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10478 ac_uB='$,\1#\2define\3'
10479 ac_uC=' '
10480 ac_uD=',;t'
10482 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10483 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10484 case $ac_file in
10485 - | *:- | *:-:* ) # input from stdin
10486 cat >$tmp/stdin
10487 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10488 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10489 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10491 * ) ac_file_in=$ac_file.in ;;
10492 esac
10494 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10495 echo "$as_me: creating $ac_file" >&6;}
10497 # First look for the input files in the build tree, otherwise in the
10498 # src tree.
10499 ac_file_inputs=`IFS=:
10500 for f in $ac_file_in; do
10501 case $f in
10502 -) echo $tmp/stdin ;;
10503 [\\/$]*)
10504 # Absolute (can't be DOS-style, as IFS=:)
10505 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10506 echo "$as_me: error: cannot find input file: $f" >&2;}
10507 { (exit 1); exit 1; }; }
10508 # Do quote $f, to prevent DOS paths from being IFS'd.
10509 echo "$f";;
10510 *) # Relative
10511 if test -f "$f"; then
10512 # Build tree
10513 echo "$f"
10514 elif test -f "$srcdir/$f"; then
10515 # Source tree
10516 echo "$srcdir/$f"
10517 else
10518 # /dev/null tree
10519 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10520 echo "$as_me: error: cannot find input file: $f" >&2;}
10521 { (exit 1); exit 1; }; }
10522 fi;;
10523 esac
10524 done` || { (exit 1); exit 1; }
10525 # Remove the trailing spaces.
10526 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10528 _ACEOF
10530 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10531 # `conftest.undefs', that substitutes the proper values into
10532 # config.h.in to produce config.h. The first handles `#define'
10533 # templates, and the second `#undef' templates.
10534 # And first: Protect against being on the right side of a sed subst in
10535 # config.status. Protect against being in an unquoted here document
10536 # in config.status.
10537 rm -f conftest.defines conftest.undefs
10538 # Using a here document instead of a string reduces the quoting nightmare.
10539 # Putting comments in sed scripts is not portable.
10541 # `end' is used to avoid that the second main sed command (meant for
10542 # 0-ary CPP macros) applies to n-ary macro definitions.
10543 # See the Autoconf documentation for `clear'.
10544 cat >confdef2sed.sed <<\_ACEOF
10545 s/[\\&,]/\\&/g
10546 s,[\\$`],\\&,g
10547 t clear
10548 : clear
10549 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10550 t end
10551 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10552 : end
10553 _ACEOF
10554 # If some macros were called several times there might be several times
10555 # the same #defines, which is useless. Nevertheless, we may not want to
10556 # sort them, since we want the *last* AC-DEFINE to be honored.
10557 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10558 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10559 rm -f confdef2sed.sed
10561 # This sed command replaces #undef with comments. This is necessary, for
10562 # example, in the case of _POSIX_SOURCE, which is predefined and required
10563 # on some systems where configure will not decide to define it.
10564 cat >>conftest.undefs <<\_ACEOF
10565 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10566 _ACEOF
10568 # Break up conftest.defines because some shells have a limit on the size
10569 # of here documents, and old seds have small limits too (100 cmds).
10570 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10571 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10572 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10573 echo ' :' >>$CONFIG_STATUS
10574 rm -f conftest.tail
10575 while grep . conftest.defines >/dev/null
10577 # Write a limited-size here document to $tmp/defines.sed.
10578 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10579 # Speed up: don't consider the non `#define' lines.
10580 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10581 # Work around the forget-to-reset-the-flag bug.
10582 echo 't clr' >>$CONFIG_STATUS
10583 echo ': clr' >>$CONFIG_STATUS
10584 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10585 echo 'CEOF
10586 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10587 rm -f $tmp/in
10588 mv $tmp/out $tmp/in
10589 ' >>$CONFIG_STATUS
10590 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10591 rm -f conftest.defines
10592 mv conftest.tail conftest.defines
10593 done
10594 rm -f conftest.defines
10595 echo ' fi # grep' >>$CONFIG_STATUS
10596 echo >>$CONFIG_STATUS
10598 # Break up conftest.undefs because some shells have a limit on the size
10599 # of here documents, and old seds have small limits too (100 cmds).
10600 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10601 rm -f conftest.tail
10602 while grep . conftest.undefs >/dev/null
10604 # Write a limited-size here document to $tmp/undefs.sed.
10605 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10606 # Speed up: don't consider the non `#undef'
10607 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10608 # Work around the forget-to-reset-the-flag bug.
10609 echo 't clr' >>$CONFIG_STATUS
10610 echo ': clr' >>$CONFIG_STATUS
10611 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10612 echo 'CEOF
10613 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10614 rm -f $tmp/in
10615 mv $tmp/out $tmp/in
10616 ' >>$CONFIG_STATUS
10617 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10618 rm -f conftest.undefs
10619 mv conftest.tail conftest.undefs
10620 done
10621 rm -f conftest.undefs
10623 cat >>$CONFIG_STATUS <<\_ACEOF
10624 # Let's still pretend it is `configure' which instantiates (i.e., don't
10625 # use $as_me), people would be surprised to read:
10626 # /* config.h. Generated by config.status. */
10627 if test x"$ac_file" = x-; then
10628 echo "/* Generated by configure. */" >$tmp/config.h
10629 else
10630 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10632 cat $tmp/in >>$tmp/config.h
10633 rm -f $tmp/in
10634 if test x"$ac_file" != x-; then
10635 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10636 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10637 echo "$as_me: $ac_file is unchanged" >&6;}
10638 else
10639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10641 X"$ac_file" : 'X\(//\)[^/]' \| \
10642 X"$ac_file" : 'X\(//\)$' \| \
10643 X"$ac_file" : 'X\(/\)' \| \
10644 . : '\(.\)' 2>/dev/null ||
10645 echo X"$ac_file" |
10646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10648 /^X\(\/\/\)$/{ s//\1/; q; }
10649 /^X\(\/\).*/{ s//\1/; q; }
10650 s/.*/./; q'`
10651 { if $as_mkdir_p; then
10652 mkdir -p "$ac_dir"
10653 else
10654 as_dir="$ac_dir"
10655 as_dirs=
10656 while test ! -d "$as_dir"; do
10657 as_dirs="$as_dir $as_dirs"
10658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10660 X"$as_dir" : 'X\(//\)[^/]' \| \
10661 X"$as_dir" : 'X\(//\)$' \| \
10662 X"$as_dir" : 'X\(/\)' \| \
10663 . : '\(.\)' 2>/dev/null ||
10664 echo X"$as_dir" |
10665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10667 /^X\(\/\/\)$/{ s//\1/; q; }
10668 /^X\(\/\).*/{ s//\1/; q; }
10669 s/.*/./; q'`
10670 done
10671 test ! -n "$as_dirs" || mkdir $as_dirs
10672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10674 { (exit 1); exit 1; }; }; }
10676 rm -f $ac_file
10677 mv $tmp/config.h $ac_file
10679 else
10680 cat $tmp/config.h
10681 rm -f $tmp/config.h
10683 done
10684 _ACEOF
10685 cat >>$CONFIG_STATUS <<\_ACEOF
10688 # CONFIG_COMMANDS section.
10690 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10691 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10692 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10693 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10694 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10695 X"$ac_dest" : 'X\(//\)[^/]' \| \
10696 X"$ac_dest" : 'X\(//\)$' \| \
10697 X"$ac_dest" : 'X\(/\)' \| \
10698 . : '\(.\)' 2>/dev/null ||
10699 echo X"$ac_dest" |
10700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10702 /^X\(\/\/\)$/{ s//\1/; q; }
10703 /^X\(\/\).*/{ s//\1/; q; }
10704 s/.*/./; q'`
10705 { if $as_mkdir_p; then
10706 mkdir -p "$ac_dir"
10707 else
10708 as_dir="$ac_dir"
10709 as_dirs=
10710 while test ! -d "$as_dir"; do
10711 as_dirs="$as_dir $as_dirs"
10712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10714 X"$as_dir" : 'X\(//\)[^/]' \| \
10715 X"$as_dir" : 'X\(//\)$' \| \
10716 X"$as_dir" : 'X\(/\)' \| \
10717 . : '\(.\)' 2>/dev/null ||
10718 echo X"$as_dir" |
10719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10721 /^X\(\/\/\)$/{ s//\1/; q; }
10722 /^X\(\/\).*/{ s//\1/; q; }
10723 s/.*/./; q'`
10724 done
10725 test ! -n "$as_dirs" || mkdir $as_dirs
10726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10728 { (exit 1); exit 1; }; }; }
10730 ac_builddir=.
10732 if test "$ac_dir" != .; then
10733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10734 # A "../" for each directory in $ac_dir_suffix.
10735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10736 else
10737 ac_dir_suffix= ac_top_builddir=
10740 case $srcdir in
10741 .) # No --srcdir option. We are building in place.
10742 ac_srcdir=.
10743 if test -z "$ac_top_builddir"; then
10744 ac_top_srcdir=.
10745 else
10746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10747 fi ;;
10748 [\\/]* | ?:[\\/]* ) # Absolute path.
10749 ac_srcdir=$srcdir$ac_dir_suffix;
10750 ac_top_srcdir=$srcdir ;;
10751 *) # Relative path.
10752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10754 esac
10756 # Do not use `cd foo && pwd` to compute absolute paths, because
10757 # the directories may not exist.
10758 case `pwd` in
10759 .) ac_abs_builddir="$ac_dir";;
10761 case "$ac_dir" in
10762 .) ac_abs_builddir=`pwd`;;
10763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10764 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10765 esac;;
10766 esac
10767 case $ac_abs_builddir in
10768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10770 case ${ac_top_builddir}. in
10771 .) ac_abs_top_builddir=$ac_abs_builddir;;
10772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10774 esac;;
10775 esac
10776 case $ac_abs_builddir in
10777 .) ac_abs_srcdir=$ac_srcdir;;
10779 case $ac_srcdir in
10780 .) ac_abs_srcdir=$ac_abs_builddir;;
10781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10783 esac;;
10784 esac
10785 case $ac_abs_builddir in
10786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10788 case $ac_top_srcdir in
10789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10792 esac;;
10793 esac
10796 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10797 echo "$as_me: executing $ac_dest commands" >&6;}
10798 case $ac_dest in
10799 compiler_executable )
10800 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
10801 mkdir -p $prefix
10802 prefix="${prefix}/${aros_target_cpu}-aros"
10803 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
10805 echo ${prefix}
10806 echo ${prefix2}
10807 chmod a+x ${prefix2}-gcc ${prefix2}-ld
10809 ln -sf ${prefix2}-gcc ${prefix}-gcc
10810 ln -sf ${prefix2}-ld ${prefix}-ld
10812 ln -sf $aros_target_as_ln ${prefix}-as
10813 ln -sf $aros_target_nm_ln ${prefix}-nm
10814 ln -sf $aros_target_ar_ln ${prefix}-ar
10815 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
10816 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
10817 ln -sf $aros_target_objdump_ln ${prefix}-objdump
10818 ln -sf $aros_target_strip_ln ${prefix}-strip
10820 ln -sf $aros_target_as_ln ${prefix2}-as
10821 ln -sf $aros_target_nm_ln ${prefix2}-nm
10822 ln -sf $aros_target_ar_ln ${prefix2}-ar
10823 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
10824 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
10825 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
10826 ln -sf $aros_target_strip_ln ${prefix2}-strip
10828 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
10829 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
10830 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
10832 esac
10833 done
10834 _ACEOF
10836 cat >>$CONFIG_STATUS <<\_ACEOF
10838 { (exit 0); exit 0; }
10839 _ACEOF
10840 chmod +x $CONFIG_STATUS
10841 ac_clean_files=$ac_clean_files_save
10844 # configure is writing to config.log, and then calls config.status.
10845 # config.status does its own redirection, appending to config.log.
10846 # Unfortunately, on DOS this fails, as config.log is still kept open
10847 # by configure, so config.status won't be able to write to it; its
10848 # output is simply discarded. So we exec the FD to /dev/null,
10849 # effectively closing config.log, so it can be properly (re)opened and
10850 # appended to by config.status. When coming back to configure, we
10851 # need to make the FD available again.
10852 if test "$no_create" != yes; then
10853 ac_cs_success=:
10854 ac_config_status_args=
10855 test "$silent" = yes &&
10856 ac_config_status_args="$ac_config_status_args --quiet"
10857 exec 5>/dev/null
10858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10859 exec 5>>config.log
10860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10861 # would make configure fail if this is the last instruction.
10862 $ac_cs_success || { (exit 1); exit 1; }
10867 #XXX compatability...
10868 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
10870 if test -n "$aros_shared_cflags" ; then
10871 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10872 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg