serial.device is now built with the build_module mmake macro.
[AROS.git] / configure
blobfcc78e06404309db280efb056986ffaa425624b6
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 HOST_AR HOST_RANLIB RM CP MV ECHO MKDIR TOUCH SORT UNIQ NOP CAT BISON PNGTOPNM PPMTOILBM STRIP SED CHMOD PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir FOR IF TEST EGREP LIBOBJS aros_target_ar_ln aros_target_nm_ln aros_target_objcopy_ln aros_target_objdump_ln aros_target_ranlib_ln aros_target_strip_ln DISTCC CCACHE SHARED_LD KERNEL_LD TARGET_CC TARGET_AS TARGET_LD NOSTDINC_CFLAGS NOSTARTUP_LDFLAGS NIX_LDFLAGS DETACH_LDFLAGS NOSTDLIB_LDFLAGS aros_cc_pre AR RANLIB NM NM_PLAIN OBJDUMP OBJCOPY aros_arch aros_cpu aros_flavour aros_flavour_uc TOPDIR 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_cc aros_target_cc_includes aros_target_cc_path aros_target_objdump aros_target_objcopy aros_target_strip aros_target_as aros_target_nm aros_shared_default aros_object_format aros_compiler_libs aros_config_cflags aros_config_aflags aros_target_ld 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_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 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 (default=no)
870 --enable-palm-debug-hack Enable palm debug output hack in palm native (default=no)
871 --enable-nesting-supervisor Enable nesting supervisor support in unix (default=no)
872 --enable-xshm-extension Enable X11 MIT-SHM extension default=yes
873 --enable-dbus Enable DBUS support via dbus.library (default=no)
875 Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-x use the X Window System
879 --with-optimization=FLAGS
880 Use optimization flags FLAGS (default=-O2).
881 --with-resolution=XRESxYRESxDEPTH Default resolution of the initial WorkbenchScreen
882 --with-serial-debug Enable serial debug output in native (default=no)
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967 esac
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 cd $ac_popdir
985 done
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 ac_aux_dir=
1333 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1334 if test -f $ac_dir/install-sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 break
1338 elif test -f $ac_dir/install.sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 break
1342 elif test -f $ac_dir/shtool; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 break
1347 done
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Check what host we are running on.
1359 # If a target is not suggested, we use this one.
1360 # Make sure we can run config.sub.
1361 $ac_config_sub sun4 >/dev/null 2>&1 ||
1362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1363 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: checking build system type" >&5
1367 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368 if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 ac_cv_build_alias=$build_alias
1372 test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374 test -z "$ac_cv_build_alias" &&
1375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1381 { (exit 1); exit 1; }; }
1384 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1385 echo "${ECHO_T}$ac_cv_build" >&6
1386 build=$ac_cv_build
1387 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392 echo "$as_me:$LINENO: checking host system type" >&5
1393 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394 if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397 ac_cv_host_alias=$host_alias
1398 test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1407 echo "${ECHO_T}$ac_cv_host" >&6
1408 host=$ac_cv_host
1409 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415 # The AROS target is slightly different to the normal GNU style
1416 # format. We don't have the middle part, and we reverse the order
1417 # of the $(CPU) and $(OS) bits.
1419 # Don't strip the version of the target yet, it might be
1420 # useful on some systems.
1422 echo "$as_me:$LINENO: checking for AROS style target" >&5
1423 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1425 if test "$target" = "NONE" ; then
1426 target=$host_os-$host_cpu
1427 cross_compile=no
1428 else
1429 if test "$target" = "" ; then
1430 target=$host_os-$host_cpu
1431 cross_compile=no
1432 else
1433 cross_compile=yes
1436 echo "$as_me:$LINENO: result: $target" >&5
1437 echo "${ECHO_T}$target" >&6
1439 #don't know where else to put this...
1440 TOPDIR=$PWD
1442 # Parse the target field into something useful.
1444 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1445 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1448 aros_default_wbwidth=800
1449 aros_default_wbheight=600
1450 aros_default_wbdepth=4
1453 # The first step is to find the host binaries.
1454 # Check for a compiler.
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1482 done
1483 done
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1497 if test -z "$ac_cv_prog_CC"; then
1498 ac_ct_CC=$CC
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1520 done
1521 done
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1529 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1534 CC=$ac_ct_CC
1535 else
1536 CC="$ac_cv_prog_CC"
1539 if test -z "$CC"; then
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1562 done
1563 done
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1577 if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1600 done
1601 done
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1614 CC=$ac_ct_CC
1615 else
1616 CC="$ac_cv_prog_CC"
1620 if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 else
1631 ac_prog_rejected=no
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640 ac_prog_rejected=yes
1641 continue
1643 ac_cv_prog_CC="cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1647 done
1648 done
1650 if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1653 shift
1654 if test $# != 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1658 shift
1659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1664 CC=$ac_cv_prog_CC
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1668 else
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1674 if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1676 for ac_prog in cl
1678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1699 done
1700 done
1704 CC=$ac_cv_prog_CC
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$CC" && break
1714 done
1716 if test -z "$CC"; then
1717 ac_ct_CC=$CC
1718 for ac_prog in cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if test -n "$ac_ct_CC"; then
1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749 echo "${ECHO_T}$ac_ct_CC" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$ac_ct_CC" && break
1756 done
1758 CC=$ac_ct_CC
1764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&5
1766 echo "$as_me: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&2;}
1768 { (exit 1); exit 1; }; }
1770 # Provide some information about the compiler.
1771 echo "$as_me:$LINENO:" \
1772 "checking for C compiler version" >&5
1773 ac_compiler=`set X $ac_compile; echo $2`
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1775 (eval $ac_compiler --version </dev/null >&5) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1780 (eval $ac_compiler -v </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1785 (eval $ac_compiler -V </dev/null >&5) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1790 cat >conftest.$ac_ext <<_ACEOF
1791 /* confdefs.h. */
1792 _ACEOF
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
1798 main ()
1802 return 0;
1804 _ACEOF
1805 ac_clean_files_save=$ac_clean_files
1806 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1807 # Try to create an executable without -o first, disregard a.out.
1808 # It will help us diagnose broken compilers, and finding out an intuition
1809 # of exeext.
1810 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1811 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1812 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1813 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1814 (eval $ac_link_default) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 # Find the output, starting from the most likely. This scheme is
1819 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1820 # resort.
1822 # Be careful to initialize this variable, since it used to be cached.
1823 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1824 ac_cv_exeext=
1825 # b.out is created by i960 compilers.
1826 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832 conftest.$ac_ext )
1833 # This is the source file.
1835 [ab].out )
1836 # We found the default executable, but exeext='' is most
1837 # certainly right.
1838 break;;
1839 *.* )
1840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 # FIXME: I believe we export ac_cv_exeext for Libtool,
1842 # but it would be cool to find out if it's true. Does anybody
1843 # maintain Libtool? --akim.
1844 export ac_cv_exeext
1845 break;;
1847 break;;
1848 esac
1849 done
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1855 See \`config.log' for more details." >&5
1856 echo "$as_me: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&2;}
1858 { (exit 77); exit 77; }; }
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1878 cross_compiling=no
1879 else
1880 if test "$cross_compiling" = maybe; then
1881 cross_compiling=yes
1882 else
1883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'.
1885 See \`config.log' for more details." >&5
1886 echo "$as_me: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1893 echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6
1896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1897 ac_clean_files=$ac_clean_files_save
1898 # Check the compiler produces executables we can run. If not, either
1899 # the compiler is broken, or we cross compile.
1900 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1902 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1903 echo "${ECHO_T}$cross_compiling" >&6
1905 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1908 (eval $ac_link) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; then
1912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1914 # work properly (i.e., refer to `conftest.exe'), while it won't with
1915 # `rm'.
1916 for ac_file in conftest.exe conftest conftest.*; do
1917 test -f "$ac_file" || continue
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 export ac_cv_exeext
1922 break;;
1923 * ) break;;
1924 esac
1925 done
1926 else
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }
1934 rm -f conftest$ac_cv_exeext
1935 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1936 echo "${ECHO_T}$ac_cv_exeext" >&6
1938 rm -f conftest.$ac_ext
1939 EXEEXT=$ac_cv_exeext
1940 ac_exeext=$EXEEXT
1941 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1943 if test "${ac_cv_objext+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1954 main ()
1958 return 0;
1960 _ACEOF
1961 rm -f conftest.o conftest.obj
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1968 case $ac_file in
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1971 break;;
1972 esac
1973 done
1974 else
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1978 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1979 See \`config.log' for more details." >&5
1980 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&2;}
1982 { (exit 1); exit 1; }; }
1985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1987 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1988 echo "${ECHO_T}$ac_cv_objext" >&6
1989 OBJEXT=$ac_cv_objext
1990 ac_objext=$OBJEXT
1991 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1992 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1993 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 cat >conftest.$ac_ext <<_ACEOF
1997 /* confdefs.h. */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2004 main ()
2006 #ifndef __GNUC__
2007 choke me
2008 #endif
2011 return 0;
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
2017 ac_status=$?
2018 grep -v '^ *+' conftest.er1 >conftest.err
2019 rm -f conftest.er1
2020 cat conftest.err >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -z "$ac_c_werror_flag"
2024 || test ! -s conftest.err'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; } &&
2030 { ac_try='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 ac_compiler_gnu=yes
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_compiler_gnu=no
2043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2048 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2049 GCC=`test $ac_compiler_gnu = yes && echo yes`
2050 ac_test_CFLAGS=${CFLAGS+set}
2051 ac_save_CFLAGS=$CFLAGS
2052 CFLAGS="-g"
2053 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2054 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2055 if test "${ac_cv_prog_cc_g+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 cat >conftest.$ac_ext <<_ACEOF
2059 /* confdefs.h. */
2060 _ACEOF
2061 cat confdefs.h >>conftest.$ac_ext
2062 cat >>conftest.$ac_ext <<_ACEOF
2063 /* end confdefs.h. */
2066 main ()
2070 return 0;
2072 _ACEOF
2073 rm -f conftest.$ac_objext
2074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>conftest.er1
2076 ac_status=$?
2077 grep -v '^ *+' conftest.er1 >conftest.err
2078 rm -f conftest.er1
2079 cat conftest.err >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } &&
2082 { ac_try='test -z "$ac_c_werror_flag"
2083 || test ! -s conftest.err'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 ac_cv_prog_cc_g=yes
2096 else
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 ac_cv_prog_cc_g=no
2102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2106 if test "$ac_test_CFLAGS" = set; then
2107 CFLAGS=$ac_save_CFLAGS
2108 elif test $ac_cv_prog_cc_g = yes; then
2109 if test "$GCC" = yes; then
2110 CFLAGS="-g -O2"
2111 else
2112 CFLAGS="-g"
2114 else
2115 if test "$GCC" = yes; then
2116 CFLAGS="-O2"
2117 else
2118 CFLAGS=
2121 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2122 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_cv_prog_cc_stdc=no
2127 ac_save_CC=$CC
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2134 #include <stdarg.h>
2135 #include <stdio.h>
2136 #include <sys/types.h>
2137 #include <sys/stat.h>
2138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2139 struct buf { int x; };
2140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2141 static char *e (p, i)
2142 char **p;
2143 int i;
2145 return p[i];
2147 static char *f (char * (*g) (char **, int), char **p, ...)
2149 char *s;
2150 va_list v;
2151 va_start (v,p);
2152 s = g (p, va_arg (v,int));
2153 va_end (v);
2154 return s;
2157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2158 function prototypes and stuff, but not '\xHH' hex character constants.
2159 These don't provoke an error unfortunately, instead are silently treated
2160 as 'x'. The following induces an error, until -std1 is added to get
2161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2162 array size at least. It's necessary to write '\x00'==0 to get something
2163 that's true only with -std1. */
2164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166 int test (int i, double x);
2167 struct s1 {int (*f) (int a);};
2168 struct s2 {int (*f) (double a);};
2169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 int argc;
2171 char **argv;
2173 main ()
2175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 return 0;
2179 _ACEOF
2180 # Don't try gcc -ansi; that turns off useful extensions and
2181 # breaks some systems' header files.
2182 # AIX -qlanglvl=ansi
2183 # Ultrix and OSF/1 -std1
2184 # HP-UX 10.20 and later -Ae
2185 # HP-UX older versions -Aa -D_HPUX_SOURCE
2186 # SVR4 -Xc -D__EXTENSIONS__
2187 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 CC="$ac_save_CC $ac_arg"
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc=$ac_arg
2213 break
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2219 rm -f conftest.err conftest.$ac_objext
2220 done
2221 rm -f conftest.$ac_ext conftest.$ac_objext
2222 CC=$ac_save_CC
2226 case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229 echo "${ECHO_T}none needed" >&6 ;;
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234 esac
2236 # Some people use a C++ compiler to compile C. Since we use `exit',
2237 # in C++ we need to declare it. In case someone uses the same compiler
2238 # for both compiling C and C++ we need to have the C++ compiler decide
2239 # the declaration of exit, since it's the most demanding environment.
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #ifndef __cplusplus
2242 choke me
2243 #endif
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 for ac_declaration in \
2268 '' \
2269 'extern "C" void std::exit (int) throw (); using std::exit;' \
2270 'extern "C" void std::exit (int); using std::exit;' \
2271 'extern "C" void exit (int) throw ();' \
2272 'extern "C" void exit (int);' \
2273 'void exit (int);'
2275 cat >conftest.$ac_ext <<_ACEOF
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2281 $ac_declaration
2282 #include <stdlib.h>
2284 main ()
2286 exit (42);
2288 return 0;
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2294 ac_status=$?
2295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag"
2301 || test ! -s conftest.err'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 continue
2320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327 $ac_declaration
2329 main ()
2331 exit (42);
2333 return 0;
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2339 ac_status=$?
2340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 break
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 done
2366 rm -f conftest*
2367 if test -n "$ac_declaration"; then
2368 echo '#ifdef __cplusplus' >>confdefs.h
2369 echo $ac_declaration >>confdefs.h
2370 echo '#endif' >>confdefs.h
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2393 # On Suns, sometimes $CPP names a directory.
2394 if test -n "$CPP" && test -d "$CPP"; then
2395 CPP=
2397 if test -z "$CPP"; then
2398 if test "${ac_cv_prog_CPP+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 # Double quotes because CPP needs to be expanded
2402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2404 ac_preproc_ok=false
2405 for ac_c_preproc_warn_flag in '' yes
2407 # Use a header file that comes with gcc, so configuring glibc
2408 # with a fresh cross-compiler works.
2409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2410 # <limits.h> exists even on freestanding compilers.
2411 # On the NeXT, cc -E runs the code through the compiler's parser,
2412 # not just through cpp. "Syntax error" is here to catch this case.
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2419 #ifdef __STDC__
2420 # include <limits.h>
2421 #else
2422 # include <assert.h>
2423 #endif
2424 Syntax error
2425 _ACEOF
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev/null; then
2434 if test -s conftest.err; then
2435 ac_cpp_err=$ac_c_preproc_warn_flag
2436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2437 else
2438 ac_cpp_err=
2440 else
2441 ac_cpp_err=yes
2443 if test -z "$ac_cpp_err"; then
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 # Broken: fails on valid input.
2450 continue
2452 rm -f conftest.err conftest.$ac_ext
2454 # OK, works on sane cases. Now check whether non-existent headers
2455 # can be detected and how.
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <ac_nonexistent.h>
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2478 else
2479 ac_cpp_err=yes
2481 if test -z "$ac_cpp_err"; then
2482 # Broken: success on invalid input.
2483 continue
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 # Passes both tests.
2489 ac_preproc_ok=:
2490 break
2492 rm -f conftest.err conftest.$ac_ext
2494 done
2495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2496 rm -f conftest.err conftest.$ac_ext
2497 if $ac_preproc_ok; then
2498 break
2501 done
2502 ac_cv_prog_CPP=$CPP
2505 CPP=$ac_cv_prog_CPP
2506 else
2507 ac_cv_prog_CPP=$CPP
2509 echo "$as_me:$LINENO: result: $CPP" >&5
2510 echo "${ECHO_T}$CPP" >&6
2511 ac_preproc_ok=false
2512 for ac_c_preproc_warn_flag in '' yes
2514 # Use a header file that comes with gcc, so configuring glibc
2515 # with a fresh cross-compiler works.
2516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2517 # <limits.h> exists even on freestanding compilers.
2518 # On the NeXT, cc -E runs the code through the compiler's parser,
2519 # not just through cpp. "Syntax error" is here to catch this case.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #ifdef __STDC__
2527 # include <limits.h>
2528 #else
2529 # include <assert.h>
2530 #endif
2531 Syntax error
2532 _ACEOF
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } >/dev/null; then
2541 if test -s conftest.err; then
2542 ac_cpp_err=$ac_c_preproc_warn_flag
2543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2544 else
2545 ac_cpp_err=
2547 else
2548 ac_cpp_err=yes
2550 if test -z "$ac_cpp_err"; then
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 # Broken: fails on valid input.
2557 continue
2559 rm -f conftest.err conftest.$ac_ext
2561 # OK, works on sane cases. Now check whether non-existent headers
2562 # can be detected and how.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #include <ac_nonexistent.h>
2570 _ACEOF
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } >/dev/null; then
2579 if test -s conftest.err; then
2580 ac_cpp_err=$ac_c_preproc_warn_flag
2581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 else
2583 ac_cpp_err=
2585 else
2586 ac_cpp_err=yes
2588 if test -z "$ac_cpp_err"; then
2589 # Broken: success on invalid input.
2590 continue
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 # Passes both tests.
2596 ac_preproc_ok=:
2597 break
2599 rm -f conftest.err conftest.$ac_ext
2601 done
2602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2603 rm -f conftest.err conftest.$ac_ext
2604 if $ac_preproc_ok; then
2606 else
2607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 # We don't yet support cross-compiling, but we may later on.
2623 case $host_os in
2624 *cygwin* ) CYGWIN=yes;;
2625 * ) CYGWIN=no;;
2626 esac
2631 # Check for gawk and mmake.
2632 for ac_prog in gawk nawk
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_AWK+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$AWK"; then
2642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_AWK="$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2660 AWK=$ac_cv_prog_AWK
2661 if test -n "$AWK"; then
2662 echo "$as_me:$LINENO: result: $AWK" >&5
2663 echo "${ECHO_T}$AWK" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 test -n "$AWK" && break
2670 done
2673 if test "$AWK" = ""; then
2674 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2675 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2676 { (exit 1); exit 1; }; }
2678 # Extract the first word of "mmake", so it can be a program name with args.
2679 set dummy mmake; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_MMAKE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$MMAKE"; then
2686 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_MMAKE="mmake"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2704 MMAKE=$ac_cv_prog_MMAKE
2705 if test -n "$MMAKE"; then
2706 echo "$as_me:$LINENO: result: $MMAKE" >&5
2707 echo "${ECHO_T}$MMAKE" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2716 # Perform some default variable assignments. Note all of these will be
2717 # Regenerated from the script, so there is no need to cache them.
2719 aros_host_cc="$CC"
2720 if test "$GCC" = "yes"; then
2721 aros_gcc_ld=`$CC -print-prog-name=ld`
2722 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2723 set dummy `basename $aros_gcc_ld`; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 case $aros_host_ld in
2730 [\\/]* | ?:[\\/]*)
2731 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in `dirname $aros_gcc_ld`
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2749 esac
2751 aros_host_ld=$ac_cv_path_aros_host_ld
2753 if test -n "$aros_host_ld"; then
2754 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2755 echo "${ECHO_T}$aros_host_ld" >&6
2756 else
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2762 if test "$aros_host_ld" = ""; then
2763 # Extract the first word of "ld", so it can be a program name with args.
2764 set dummy ld; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 case $aros_host_ld in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2790 esac
2792 aros_host_ld=$ac_cv_path_aros_host_ld
2794 if test -n "$aros_host_ld"; then
2795 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2796 echo "${ECHO_T}$aros_host_ld" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test "$aros_host_ld" = ""; then
2804 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2805 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2806 { (exit 1); exit 1; }; }
2808 aros_host_make="make"
2809 aros_host_cflags=$CFLAGS
2810 aros_host_ldflags=$LDFLAGS
2811 aros_host_debug="-g -O0"
2812 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2813 aros_host_mkargs="--no-print-directory"
2814 aros_host_incl="/usr/include"
2815 aros_host_exe_suffix="$EXEEXT"
2816 aros_host_lib_suffix=""
2818 case "$CC" in
2819 *gcc*)
2820 aros_host_cc_pipe="-pipe"
2822 icc)
2823 aros_host_cc_pipe=""
2826 aros_host_cc_pipe=""
2828 esac
2830 aros_target_cc_includes=""
2832 # This is the main host configuration section. It is where the host
2833 # can change the values of any variables it needs to change. We do
2834 # not look at anything that compiles to the target yet, we'll get
2835 # to that later.
2837 case "$host_os" in
2838 linux*)
2839 aros_host_arch="linux"
2840 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2841 case "$host_cpu" in
2842 *i?86*)
2843 aros_host_cpu="i386"
2845 *m68k*)
2846 aros_host_cpu="m68k"
2848 *powerpc*)
2849 aros_host_cpu="ppc"
2852 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2853 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2854 aros_host_cpu="$host_cpu"
2856 esac
2859 freebsd*)
2860 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2861 aros_host_make="gmake"
2862 aros_host_arch="freebsd"
2863 aros_host_cpu="i386"
2865 aros_target_cc_includes="/usr/include"
2867 case $host_os in
2868 freebsd5*)
2869 aros_object_format="elf_i386_fbsd"
2873 aros_object_format="elf_i386"
2874 esac
2878 netbsd*)
2879 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2880 aros_host_make="gmake"
2881 aros_host_arch="netbsd"
2882 case "$host_cpu" in
2883 *i?86*)
2884 aros_host_cpu="i386"
2886 *m68k*)
2887 aros_host_cpu="m68k"
2890 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2891 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2892 aros_host_cpu="$host_cpu"
2894 esac
2895 aros_host_lib_suffix=".0.0"
2898 openbsd*)
2899 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2900 aros_host_make="gmake"
2901 aros_host_arch="openbsd"
2902 case "$host_cpu" in
2903 *i?86*)
2904 aros_host_cpu="i386"
2907 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2908 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2909 aros_host_cpu="$host_cpu"
2911 esac
2914 solaris*)
2915 aros_host_arch="solaris"
2916 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2917 case "$host_cpu" in
2918 *sparc*)
2919 aros_host_cpu="sparc"
2922 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2923 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2924 aros_host_cpu="$host_cpu"
2926 esac
2929 morphos*)
2930 aros_host_cc="$aros_host_cc"
2931 aros_host_arch="morphos"
2932 aros_host_cpu="ppc"
2935 amiga*)
2936 aros_host_arch="amiga"
2937 SORT="/gg/bin/sort"
2938 TEST="/gg/bin/test"
2939 UNIQ="/gg/bin/uniq"
2940 FOR="for"
2941 TOUCH="/gg/bin/touch"
2942 case "$host_cpu" in
2943 *m68k*)
2944 aros_host_cpu="m68k"
2946 *powerpc*)
2947 aros_host_cpu="ppc"
2950 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2951 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2952 aros_host_cpu="$host_cpu"
2954 esac
2957 cygwin*)
2958 aros_host_arch="cygwin"
2959 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2960 case "$host_cpu" in
2961 *i?86*)
2962 aros_host_cpu="i386"
2965 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2966 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2967 aros_host_cpu="$host_cpu"
2969 esac
2972 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
2973 echo "$as_me: error: Unsupported host architecture $host" >&2;}
2974 { (exit 1); exit 1; }; }
2976 esac
2978 # Extract the first word of "ar", so it can be a program name with args.
2979 set dummy ar; ac_word=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_HOST_AR+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 if test -n "$HOST_AR"; then
2986 ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_HOST_AR="ar"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2999 done
3000 done
3004 HOST_AR=$ac_cv_prog_HOST_AR
3005 if test -n "$HOST_AR"; then
3006 echo "$as_me:$LINENO: result: $HOST_AR" >&5
3007 echo "${ECHO_T}$HOST_AR" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 HOST_AR="$HOST_AR cr"
3015 if test "$HOST_AR" = ""; then
3016 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3017 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3018 { (exit 1); exit 1; }; }
3020 # Extract the first word of "ranlib", so it can be a program name with args.
3021 set dummy ranlib; ac_word=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_HOST_RANLIB+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$HOST_RANLIB"; then
3028 ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_HOST_RANLIB="ranlib"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3046 HOST_RANLIB=$ac_cv_prog_HOST_RANLIB
3047 if test -n "$HOST_RANLIB"; then
3048 echo "$as_me:$LINENO: result: $HOST_RANLIB" >&5
3049 echo "${ECHO_T}$HOST_RANLIB" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3058 # Extract the first word of "rm", so it can be a program name with args.
3059 set dummy rm; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_RM+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$RM"; then
3066 ac_cv_prog_RM="$RM" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_RM="rm"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 RM=$ac_cv_prog_RM
3085 if test -n "$RM"; then
3086 echo "$as_me:$LINENO: result: $RM" >&5
3087 echo "${ECHO_T}$RM" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3093 RM="$RM -rf"
3095 if test "$RM" = ""; then
3096 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3097 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3098 { (exit 1); exit 1; }; }
3100 # Extract the first word of "cp", so it can be a program name with args.
3101 set dummy cp; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_CP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$CP"; then
3108 ac_cv_prog_CP="$CP" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CP="cp"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3126 CP=$ac_cv_prog_CP
3127 if test -n "$CP"; then
3128 echo "$as_me:$LINENO: result: $CP" >&5
3129 echo "${ECHO_T}$CP" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3137 if test "$CP" = ""; then
3138 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3139 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3140 { (exit 1); exit 1; }; }
3142 # Extract the first word of "mv", so it can be a program name with args.
3143 set dummy mv; ac_word=$2
3144 echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146 if test "${ac_cv_prog_MV+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test -n "$MV"; then
3150 ac_cv_prog_MV="$MV" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_MV="mv"
3160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3163 done
3164 done
3168 MV=$ac_cv_prog_MV
3169 if test -n "$MV"; then
3170 echo "$as_me:$LINENO: result: $MV" >&5
3171 echo "${ECHO_T}$MV" >&6
3172 else
3173 echo "$as_me:$LINENO: result: no" >&5
3174 echo "${ECHO_T}no" >&6
3179 if test "$MV" = ""; then
3180 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3181 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3182 { (exit 1); exit 1; }; }
3184 # Extract the first word of "echo", so it can be a program name with args.
3185 set dummy echo; ac_word=$2
3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188 if test "${ac_cv_prog_ECHO+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 if test -n "$ECHO"; then
3192 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3201 ac_cv_prog_ECHO="echo"
3202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3210 ECHO=$ac_cv_prog_ECHO
3211 if test -n "$ECHO"; then
3212 echo "$as_me:$LINENO: result: $ECHO" >&5
3213 echo "${ECHO_T}$ECHO" >&6
3214 else
3215 echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3221 if test "$ECHO" = ""; then
3222 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3223 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3224 { (exit 1); exit 1; }; }
3226 # Extract the first word of "mkdir", so it can be a program name with args.
3227 set dummy mkdir; ac_word=$2
3228 echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3230 if test "${ac_cv_prog_MKDIR+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 if test -n "$MKDIR"; then
3234 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_MKDIR="mkdir"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3252 MKDIR=$ac_cv_prog_MKDIR
3253 if test -n "$MKDIR"; then
3254 echo "$as_me:$LINENO: result: $MKDIR" >&5
3255 echo "${ECHO_T}$MKDIR" >&6
3256 else
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 MKDIR="$MKDIR -p"
3263 if test "$MKDIR" = ""; then
3264 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3265 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3266 { (exit 1); exit 1; }; }
3268 # Extract the first word of "touch", so it can be a program name with args.
3269 set dummy touch; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_prog_TOUCH+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$TOUCH"; then
3276 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_TOUCH="touch"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3294 TOUCH=$ac_cv_prog_TOUCH
3295 if test -n "$TOUCH"; then
3296 echo "$as_me:$LINENO: result: $TOUCH" >&5
3297 echo "${ECHO_T}$TOUCH" >&6
3298 else
3299 echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6
3305 if test "$TOUCH" = ""; then
3306 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3307 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3308 { (exit 1); exit 1; }; }
3310 # Extract the first word of "sort", so it can be a program name with args.
3311 set dummy sort; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_SORT+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 if test -n "$SORT"; then
3318 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_SORT="sort"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3336 SORT=$ac_cv_prog_SORT
3337 if test -n "$SORT"; then
3338 echo "$as_me:$LINENO: result: $SORT" >&5
3339 echo "${ECHO_T}$SORT" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3347 if test "$SORT" = ""; then
3348 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3349 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3350 { (exit 1); exit 1; }; }
3352 # Extract the first word of "uniq", so it can be a program name with args.
3353 set dummy uniq; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_UNIQ+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$UNIQ"; then
3360 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_UNIQ="uniq"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 UNIQ=$ac_cv_prog_UNIQ
3379 if test -n "$UNIQ"; then
3380 echo "$as_me:$LINENO: result: $UNIQ" >&5
3381 echo "${ECHO_T}$UNIQ" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3389 if test "$UNIQ" = ""; then
3390 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3391 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3392 { (exit 1); exit 1; }; }
3394 # Extract the first word of "true", so it can be a program name with args.
3395 set dummy true; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_NOP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$NOP"; then
3402 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_NOP="true"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3420 NOP=$ac_cv_prog_NOP
3421 if test -n "$NOP"; then
3422 echo "$as_me:$LINENO: result: $NOP" >&5
3423 echo "${ECHO_T}$NOP" >&6
3424 else
3425 echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3431 if test "$NOP" = ""; then
3432 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3433 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3434 { (exit 1); exit 1; }; }
3436 # Extract the first word of "cat", so it can be a program name with args.
3437 set dummy cat; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CAT+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$CAT"; then
3444 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 ac_cv_prog_CAT="cat"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3462 CAT=$ac_cv_prog_CAT
3463 if test -n "$CAT"; then
3464 echo "$as_me:$LINENO: result: $CAT" >&5
3465 echo "${ECHO_T}$CAT" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3473 if test "$CAT" = ""; then
3474 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3475 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3476 { (exit 1); exit 1; }; }
3478 # Extract the first word of "bison", so it can be a program name with args.
3479 set dummy bison; ac_word=$2
3480 echo "$as_me:$LINENO: checking for $ac_word" >&5
3481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482 if test "${ac_cv_prog_BISON+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485 if test -n "$BISON"; then
3486 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_BISON="bison"
3496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3504 BISON=$ac_cv_prog_BISON
3505 if test -n "$BISON"; then
3506 echo "$as_me:$LINENO: result: $BISON" >&5
3507 echo "${ECHO_T}$BISON" >&6
3508 else
3509 echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3515 if test "$BISON" = ""; then
3516 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3517 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3518 { (exit 1); exit 1; }; }
3520 # Extract the first word of "pngtopnm", so it can be a program name with args.
3521 set dummy pngtopnm; ac_word=$2
3522 echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test -n "$PNGTOPNM"; then
3528 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_PNGTOPNM="pngtopnm"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3541 done
3542 done
3546 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3547 if test -n "$PNGTOPNM"; then
3548 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3549 echo "${ECHO_T}$PNGTOPNM" >&6
3550 else
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3557 if test "$PNGTOPNM" = ""; then
3558 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3559 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3560 { (exit 1); exit 1; }; }
3562 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3563 set dummy ppmtoilbm; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 if test -n "$PPMTOILBM"; then
3570 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_PPMTOILBM="ppmtoilbm"
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3583 done
3584 done
3588 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3589 if test -n "$PPMTOILBM"; then
3590 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3591 echo "${ECHO_T}$PPMTOILBM" >&6
3592 else
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3599 if test "$PPMTOILBM" = ""; then
3600 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3601 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3602 { (exit 1); exit 1; }; }
3604 # Extract the first word of "strip", so it can be a program name with args.
3605 set dummy strip; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_STRIP+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 if test -n "$STRIP"; then
3612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_STRIP="strip"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3630 STRIP=$ac_cv_prog_STRIP
3631 if test -n "$STRIP"; then
3632 echo "$as_me:$LINENO: result: $STRIP" >&5
3633 echo "${ECHO_T}$STRIP" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3641 if test "$STRIP" = ""; then
3642 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3643 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3644 { (exit 1); exit 1; }; }
3646 # Extract the first word of "sed", so it can be a program name with args.
3647 set dummy sed; ac_word=$2
3648 echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_SED+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 if test -n "$SED"; then
3654 ac_cv_prog_SED="$SED" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_SED="sed"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3672 SED=$ac_cv_prog_SED
3673 if test -n "$SED"; then
3674 echo "$as_me:$LINENO: result: $SED" >&5
3675 echo "${ECHO_T}$SED" >&6
3676 else
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3683 if test "$SED" = ""; then
3684 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3685 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3686 { (exit 1); exit 1; }; }
3688 # Extract the first word of "chmod", so it can be a program name with args.
3689 set dummy chmod; ac_word=$2
3690 echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3692 if test "${ac_cv_prog_CHMOD+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 if test -n "$CHMOD"; then
3696 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_CHMOD="chmod"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3714 CHMOD=$ac_cv_prog_CHMOD
3715 if test -n "$CHMOD"; then
3716 echo "$as_me:$LINENO: result: $CHMOD" >&5
3717 echo "${ECHO_T}$CHMOD" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3725 if test "$CHMOD" = ""; then
3726 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3727 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3728 { (exit 1); exit 1; }; }
3735 if test -n "$PYTHON"; then
3736 # If the user set $PYTHON, use it and don't search something else.
3737 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3738 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3739 prog="import sys, string
3740 # split strings by '.' and convert to numeric. Append some zeros
3741 # because we need at least 4 digits for the hex conversion.
3742 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3743 minverhex = 0
3744 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3745 sys.exit(sys.hexversion < minverhex)"
3746 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3747 ($PYTHON -c "$prog") >&5 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6
3753 else
3754 { { echo "$as_me:$LINENO: error: too old" >&5
3755 echo "$as_me: error: too old" >&2;}
3756 { (exit 1); exit 1; }; }
3759 else
3760 # Otherwise, try each interpreter until we find one that satisfies
3761 # VERSION.
3762 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3763 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3764 if test "${am_cv_pathless_PYTHON+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3768 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3769 test "$am_cv_pathless_PYTHON" = none && break
3770 prog="import sys, string
3771 # split strings by '.' and convert to numeric. Append some zeros
3772 # because we need at least 4 digits for the hex conversion.
3773 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3774 minverhex = 0
3775 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3776 sys.exit(sys.hexversion < minverhex)"
3777 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3778 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 break
3785 done
3787 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3788 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3789 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3790 if test "$am_cv_pathless_PYTHON" = none; then
3791 PYTHON=:
3792 else
3793 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3794 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_path_PYTHON+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 case $PYTHON in
3801 [\\/]* | ?:[\\/]*)
3802 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3820 esac
3822 PYTHON=$ac_cv_path_PYTHON
3824 if test -n "$PYTHON"; then
3825 echo "$as_me:$LINENO: result: $PYTHON" >&5
3826 echo "${ECHO_T}$PYTHON" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3833 am_display_PYTHON=$am_cv_pathless_PYTHON
3837 if test "$PYTHON" = :; then
3838 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3839 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3840 { (exit 1); exit 1; }; }
3841 else
3844 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3845 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3846 if test "${am_cv_python_version+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3851 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3852 echo "${ECHO_T}$am_cv_python_version" >&6
3853 PYTHON_VERSION=$am_cv_python_version
3857 PYTHON_PREFIX='${prefix}'
3859 PYTHON_EXEC_PREFIX='${exec_prefix}'
3863 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3864 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3865 if test "${am_cv_python_platform+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3870 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3871 echo "${ECHO_T}$am_cv_python_platform" >&6
3872 PYTHON_PLATFORM=$am_cv_python_platform
3877 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3878 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3879 if test "${am_cv_python_pythondir+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3883 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3885 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3886 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3887 pythondir=$am_cv_python_pythondir
3891 pkgpythondir=\${pythondir}/$PACKAGE
3894 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
3895 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
3896 if test "${am_cv_python_pyexecdir+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
3900 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
3902 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
3903 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
3904 pyexecdir=$am_cv_python_pyexecdir
3908 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3916 FOR=for
3917 IF=if
3918 TEST=test
3924 # Check for some includes for the X11 HIDD and the kernel
3927 echo "$as_me:$LINENO: checking for egrep" >&5
3928 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3929 if test "${ac_cv_prog_egrep+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3933 then ac_cv_prog_egrep='grep -E'
3934 else ac_cv_prog_egrep='egrep'
3937 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3938 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3939 EGREP=$ac_cv_prog_egrep
3942 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3943 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3944 if test "${ac_cv_header_stdc+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <stdlib.h>
3954 #include <stdarg.h>
3955 #include <string.h>
3956 #include <float.h>
3959 main ()
3963 return 0;
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3969 ac_status=$?
3970 grep -v '^ *+' conftest.er1 >conftest.err
3971 rm -f conftest.er1
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try='test -z "$ac_c_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 (eval $ac_try) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_cv_header_stdc=yes
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_cv_header_stdc=no
3995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997 if test $ac_cv_header_stdc = yes; then
3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <string.h>
4007 _ACEOF
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009 $EGREP "memchr" >/dev/null 2>&1; then
4011 else
4012 ac_cv_header_stdc=no
4014 rm -f conftest*
4018 if test $ac_cv_header_stdc = yes; then
4019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <stdlib.h>
4028 _ACEOF
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 $EGREP "free" >/dev/null 2>&1; then
4032 else
4033 ac_cv_header_stdc=no
4035 rm -f conftest*
4039 if test $ac_cv_header_stdc = yes; then
4040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4041 if test "$cross_compiling" = yes; then
4043 else
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <ctype.h>
4051 #if ((' ' & 0x0FF) == 0x020)
4052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054 #else
4055 # define ISLOWER(c) \
4056 (('a' <= (c) && (c) <= 'i') \
4057 || ('j' <= (c) && (c) <= 'r') \
4058 || ('s' <= (c) && (c) <= 'z'))
4059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4060 #endif
4062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4064 main ()
4066 int i;
4067 for (i = 0; i < 256; i++)
4068 if (XOR (islower (i), ISLOWER (i))
4069 || toupper (i) != TOUPPER (i))
4070 exit(2);
4071 exit (0);
4073 _ACEOF
4074 rm -f conftest$ac_exeext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4076 (eval $ac_link) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4086 else
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ( exit $ac_status )
4092 ac_cv_header_stdc=no
4094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4099 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4100 if test $ac_cv_header_stdc = yes; then
4102 cat >>confdefs.h <<\_ACEOF
4103 #define STDC_HEADERS 1
4104 _ACEOF
4108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4119 inttypes.h stdint.h unistd.h
4121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4122 echo "$as_me:$LINENO: checking for $ac_header" >&5
4123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 $ac_includes_default
4135 #include <$ac_header>
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 eval "$as_ac_Header=yes"
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 eval "$as_ac_Header=no"
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4171 cat >>confdefs.h <<_ACEOF
4172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 _ACEOF
4177 done
4189 for ac_header in sys/ipc.h sys/shm.h \
4190 sys/mmap.h sys/mman.h sysexits.h \
4191 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203 else
4204 # Is the header compilable?
4205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 $ac_includes_default
4214 #include <$ac_header>
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_header_compiler=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_header_compiler=no
4245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247 echo "${ECHO_T}$ac_header_compiler" >&6
4249 # Is the header present?
4250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <$ac_header>
4259 _ACEOF
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null; then
4268 if test -s conftest.err; then
4269 ac_cpp_err=$ac_c_preproc_warn_flag
4270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4271 else
4272 ac_cpp_err=
4274 else
4275 ac_cpp_err=yes
4277 if test -z "$ac_cpp_err"; then
4278 ac_header_preproc=yes
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_header_preproc=no
4285 rm -f conftest.err conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4287 echo "${ECHO_T}$ac_header_preproc" >&6
4289 # So? What about this header?
4290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4291 yes:no: )
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4296 ac_header_preproc=yes
4298 no:yes:* )
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4312 cat <<\_ASBOX
4313 ## ------------------------------------------ ##
4314 ## Report this to the AC_PACKAGE_NAME lists. ##
4315 ## ------------------------------------------ ##
4316 _ASBOX
4318 sed "s/^/$as_me: WARNING: /" >&2
4320 esac
4321 echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 eval "$as_ac_Header=\$ac_header_preproc"
4328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 _ACEOF
4339 done
4343 for ac_header in sys/mount.h
4345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4346 echo "$as_me:$LINENO: checking for $ac_header" >&5
4347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <sys/param.h>
4359 #include <$ac_header>
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 eval "$as_ac_Header=yes"
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 eval "$as_ac_Header=no"
4390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 _ACEOF
4401 done
4409 ac_header_dirent=no
4410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4411 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4412 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4413 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 #include <$ac_hdr>
4427 main ()
4429 if ((DIR *) 0)
4430 return 0;
4432 return 0;
4434 _ACEOF
4435 rm -f conftest.$ac_objext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -z "$ac_c_werror_flag"
4445 || test ! -s conftest.err'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 eval "$as_ac_Header=yes"
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 eval "$as_ac_Header=no"
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4469 cat >>confdefs.h <<_ACEOF
4470 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4471 _ACEOF
4473 ac_header_dirent=$ac_hdr; break
4476 done
4477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4478 if test $ac_header_dirent = dirent.h; then
4479 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4480 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4481 if test "${ac_cv_search_opendir+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 ac_func_search_save_LIBS=$LIBS
4485 ac_cv_search_opendir=no
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4493 /* Override any gcc2 internal prototype to avoid an error. */
4494 #ifdef __cplusplus
4495 extern "C"
4496 #endif
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4499 char opendir ();
4501 main ()
4503 opendir ();
4505 return 0;
4507 _ACEOF
4508 rm -f conftest.$ac_objext conftest$ac_exeext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510 (eval $ac_link) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest$ac_exeext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_cv_search_opendir="none required"
4531 else
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4536 rm -f conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext conftest.$ac_ext
4538 if test "$ac_cv_search_opendir" = no; then
4539 for ac_lib in dir; do
4540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h. */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4548 /* Override any gcc2 internal prototype to avoid an error. */
4549 #ifdef __cplusplus
4550 extern "C"
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char opendir ();
4556 main ()
4558 opendir ();
4560 return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_search_opendir="-l$ac_lib"
4586 break
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4592 rm -f conftest.err conftest.$ac_objext \
4593 conftest$ac_exeext conftest.$ac_ext
4594 done
4596 LIBS=$ac_func_search_save_LIBS
4598 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4599 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4600 if test "$ac_cv_search_opendir" != no; then
4601 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4605 else
4606 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4607 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4608 if test "${ac_cv_search_opendir+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 ac_func_search_save_LIBS=$LIBS
4612 ac_cv_search_opendir=no
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h. */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 #ifdef __cplusplus
4622 extern "C"
4623 #endif
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char opendir ();
4628 main ()
4630 opendir ();
4632 return 0;
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_search_opendir="none required"
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext conftest.$ac_ext
4665 if test "$ac_cv_search_opendir" = no; then
4666 for ac_lib in x; do
4667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 #ifdef __cplusplus
4677 extern "C"
4678 #endif
4679 /* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4681 char opendir ();
4683 main ()
4685 opendir ();
4687 return 0;
4689 _ACEOF
4690 rm -f conftest.$ac_objext conftest$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_search_opendir="-l$ac_lib"
4713 break
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4719 rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721 done
4723 LIBS=$ac_func_search_save_LIBS
4725 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4726 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4727 if test "$ac_cv_search_opendir" != no; then
4728 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4734 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4735 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4736 if test "${ac_cv_header_stat_broken+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <sys/types.h>
4746 #include <sys/stat.h>
4748 #if defined(S_ISBLK) && defined(S_IFDIR)
4749 # if S_ISBLK (S_IFDIR)
4750 You lose.
4751 # endif
4752 #endif
4754 #if defined(S_ISBLK) && defined(S_IFCHR)
4755 # if S_ISBLK (S_IFCHR)
4756 You lose.
4757 # endif
4758 #endif
4760 #if defined(S_ISLNK) && defined(S_IFREG)
4761 # if S_ISLNK (S_IFREG)
4762 You lose.
4763 # endif
4764 #endif
4766 #if defined(S_ISSOCK) && defined(S_IFREG)
4767 # if S_ISSOCK (S_IFREG)
4768 You lose.
4769 # endif
4770 #endif
4772 _ACEOF
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "You lose" >/dev/null 2>&1; then
4775 ac_cv_header_stat_broken=yes
4776 else
4777 ac_cv_header_stat_broken=no
4779 rm -f conftest*
4782 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4783 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4784 if test $ac_cv_header_stat_broken = yes; then
4786 cat >>confdefs.h <<\_ACEOF
4787 #define STAT_MACROS_BROKEN 1
4788 _ACEOF
4792 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4794 if test "${ac_cv_header_stdc+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <stdlib.h>
4804 #include <stdarg.h>
4805 #include <string.h>
4806 #include <float.h>
4809 main ()
4813 return 0;
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_header_stdc=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_header_stdc=no
4845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847 if test $ac_cv_header_stdc = yes; then
4848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #include <string.h>
4857 _ACEOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 $EGREP "memchr" >/dev/null 2>&1; then
4861 else
4862 ac_cv_header_stdc=no
4864 rm -f conftest*
4868 if test $ac_cv_header_stdc = yes; then
4869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <stdlib.h>
4878 _ACEOF
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "free" >/dev/null 2>&1; then
4882 else
4883 ac_cv_header_stdc=no
4885 rm -f conftest*
4889 if test $ac_cv_header_stdc = yes; then
4890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4891 if test "$cross_compiling" = yes; then
4893 else
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <ctype.h>
4901 #if ((' ' & 0x0FF) == 0x020)
4902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4904 #else
4905 # define ISLOWER(c) \
4906 (('a' <= (c) && (c) <= 'i') \
4907 || ('j' <= (c) && (c) <= 'r') \
4908 || ('s' <= (c) && (c) <= 'z'))
4909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4910 #endif
4912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4914 main ()
4916 int i;
4917 for (i = 0; i < 256; i++)
4918 if (XOR (islower (i), ISLOWER (i))
4919 || toupper (i) != TOUPPER (i))
4920 exit(2);
4921 exit (0);
4923 _ACEOF
4924 rm -f conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4936 else
4937 echo "$as_me: program exited with status $ac_status" >&5
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 ( exit $ac_status )
4942 ac_cv_header_stdc=no
4944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4950 if test $ac_cv_header_stdc = yes; then
4952 cat >>confdefs.h <<\_ACEOF
4953 #define STDC_HEADERS 1
4954 _ACEOF
4958 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4959 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4960 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <sys/types.h>
4970 #include <sys/wait.h>
4971 #ifndef WEXITSTATUS
4972 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4973 #endif
4974 #ifndef WIFEXITED
4975 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4976 #endif
4979 main ()
4981 int s;
4982 wait (&s);
4983 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4985 return 0;
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -z "$ac_c_werror_flag"
4998 || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest.$ac_objext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_header_sys_wait_h=yes
5011 else
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 ac_cv_header_sys_wait_h=no
5017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5020 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5021 if test $ac_cv_header_sys_wait_h = yes; then
5023 cat >>confdefs.h <<\_ACEOF
5024 #define HAVE_SYS_WAIT_H 1
5025 _ACEOF
5029 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5030 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5031 if test "${ac_cv_header_time+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <sys/types.h>
5041 #include <sys/time.h>
5042 #include <time.h>
5045 main ()
5047 if ((struct tm *) 0)
5048 return 0;
5050 return 0;
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -z "$ac_c_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_cv_header_time=yes
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_cv_header_time=no
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5085 echo "${ECHO_T}$ac_cv_header_time" >&6
5086 if test $ac_cv_header_time = yes; then
5088 cat >>confdefs.h <<\_ACEOF
5089 #define TIME_WITH_SYS_TIME 1
5090 _ACEOF
5095 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5096 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5097 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 $ac_includes_default
5108 main ()
5110 static struct stat ac_aggr;
5111 if (ac_aggr.st_blksize)
5112 return 0;
5114 return 0;
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119 (eval $ac_compile) 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_member_struct_stat_st_blksize=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5152 main ()
5154 static struct stat ac_aggr;
5155 if (sizeof ac_aggr.st_blksize)
5156 return 0;
5158 return 0;
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>conftest.er1
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -z "$ac_c_werror_flag"
5171 || test ! -s conftest.err'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_member_struct_stat_st_blksize=yes
5184 else
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ac_cv_member_struct_stat_st_blksize=no
5190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5196 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5198 cat >>confdefs.h <<_ACEOF
5199 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5200 _ACEOF
5203 cat >>confdefs.h <<\_ACEOF
5204 #define HAVE_ST_BLKSIZE 1
5205 _ACEOF
5210 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5211 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5212 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 $ac_includes_default
5223 main ()
5225 static struct stat ac_aggr;
5226 if (ac_aggr.st_blocks)
5227 return 0;
5229 return 0;
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_member_struct_stat_st_blocks=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h. */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 $ac_includes_default
5267 main ()
5269 static struct stat ac_aggr;
5270 if (sizeof ac_aggr.st_blocks)
5271 return 0;
5273 return 0;
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>conftest.er1
5279 ac_status=$?
5280 grep -v '^ *+' conftest.er1 >conftest.err
5281 rm -f conftest.er1
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -z "$ac_c_werror_flag"
5286 || test ! -s conftest.err'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest.$ac_objext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_member_struct_stat_st_blocks=yes
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 ac_cv_member_struct_stat_st_blocks=no
5305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5310 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5311 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5313 cat >>confdefs.h <<_ACEOF
5314 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5315 _ACEOF
5318 cat >>confdefs.h <<\_ACEOF
5319 #define HAVE_ST_BLOCKS 1
5320 _ACEOF
5322 else
5323 case $LIBOBJS in
5324 "fileblocks.$ac_objext" | \
5325 *" fileblocks.$ac_objext" | \
5326 "fileblocks.$ac_objext "* | \
5327 *" fileblocks.$ac_objext "* ) ;;
5328 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5329 esac
5335 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5336 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5337 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5348 main ()
5350 static struct stat ac_aggr;
5351 if (ac_aggr.st_rdev)
5352 return 0;
5354 return 0;
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_member_struct_stat_st_rdev=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5392 main ()
5394 static struct stat ac_aggr;
5395 if (sizeof ac_aggr.st_rdev)
5396 return 0;
5398 return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_member_struct_stat_st_rdev=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_member_struct_stat_st_rdev=no
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5435 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5436 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define HAVE_STRUCT_STAT_ST_RDEV 1
5440 _ACEOF
5443 cat >>confdefs.h <<\_ACEOF
5444 #define HAVE_ST_RDEV 1
5445 _ACEOF
5450 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5451 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5452 if test "${ac_cv_struct_tm+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <time.h>
5465 main ()
5467 struct tm *tp; tp->tm_sec;
5469 return 0;
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -z "$ac_c_werror_flag"
5482 || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_struct_tm=time.h
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_cv_struct_tm=sys/time.h
5501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5504 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5505 if test $ac_cv_struct_tm = sys/time.h; then
5507 cat >>confdefs.h <<\_ACEOF
5508 #define TM_IN_SYS_TIME 1
5509 _ACEOF
5513 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5514 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5515 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <sys/types.h>
5525 #include <$ac_cv_struct_tm>
5529 main ()
5531 static struct tm ac_aggr;
5532 if (ac_aggr.tm_zone)
5533 return 0;
5535 return 0;
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag"
5548 || test ! -s conftest.err'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; } &&
5554 { ac_try='test -s conftest.$ac_objext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_member_struct_tm_tm_zone=yes
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 #include <$ac_cv_struct_tm>
5576 main ()
5578 static struct tm ac_aggr;
5579 if (sizeof ac_aggr.tm_zone)
5580 return 0;
5582 return 0;
5584 _ACEOF
5585 rm -f conftest.$ac_objext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag"
5595 || test ! -s conftest.err'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest.$ac_objext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_member_struct_tm_tm_zone=yes
5608 else
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ac_cv_member_struct_tm_tm_zone=no
5614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5619 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5620 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_STRUCT_TM_TM_ZONE 1
5624 _ACEOF
5629 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5631 cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_TM_ZONE 1
5633 _ACEOF
5635 else
5636 echo "$as_me:$LINENO: checking for tzname" >&5
5637 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5638 if test "${ac_cv_var_tzname+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <time.h>
5648 #ifndef tzname /* For SGI. */
5649 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5650 #endif
5653 main ()
5655 atoi(*tzname);
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest$ac_exeext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_var_tzname=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_cv_var_tzname=no
5689 rm -f conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5692 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5693 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5694 if test $ac_cv_var_tzname = yes; then
5696 cat >>confdefs.h <<\_ACEOF
5697 #define HAVE_TZNAME 1
5698 _ACEOF
5703 echo "$as_me:$LINENO: checking for off_t" >&5
5704 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5705 if test "${ac_cv_type_off_t+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5716 main ()
5718 if ((off_t *) 0)
5719 return 0;
5720 if (sizeof (off_t))
5721 return 0;
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_type_off_t=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ac_cv_type_off_t=no
5755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5758 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5759 if test $ac_cv_type_off_t = yes; then
5761 else
5763 cat >>confdefs.h <<_ACEOF
5764 #define off_t long
5765 _ACEOF
5769 echo "$as_me:$LINENO: checking for pid_t" >&5
5770 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5771 if test "${ac_cv_type_pid_t+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5782 main ()
5784 if ((pid_t *) 0)
5785 return 0;
5786 if (sizeof (pid_t))
5787 return 0;
5789 return 0;
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag"
5802 || test ! -s conftest.err'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_cv_type_pid_t=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_cv_type_pid_t=no
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5824 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5825 if test $ac_cv_type_pid_t = yes; then
5827 else
5829 cat >>confdefs.h <<_ACEOF
5830 #define pid_t int
5831 _ACEOF
5835 echo "$as_me:$LINENO: checking for size_t" >&5
5836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5837 if test "${ac_cv_type_size_t+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 $ac_includes_default
5848 main ()
5850 if ((size_t *) 0)
5851 return 0;
5852 if (sizeof (size_t))
5853 return 0;
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_type_size_t=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_type_size_t=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5890 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5891 if test $ac_cv_type_size_t = yes; then
5893 else
5895 cat >>confdefs.h <<_ACEOF
5896 #define size_t unsigned
5897 _ACEOF
5901 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5902 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5903 if test "${ac_cv_type_uid_t+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #include <sys/types.h>
5914 _ACEOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "uid_t" >/dev/null 2>&1; then
5917 ac_cv_type_uid_t=yes
5918 else
5919 ac_cv_type_uid_t=no
5921 rm -f conftest*
5924 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5925 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5926 if test $ac_cv_type_uid_t = no; then
5928 cat >>confdefs.h <<\_ACEOF
5929 #define uid_t int
5930 _ACEOF
5933 cat >>confdefs.h <<\_ACEOF
5934 #define gid_t int
5935 _ACEOF
5940 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5941 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5942 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5953 main ()
5955 static struct tm ac_aggr;
5956 if (ac_aggr.tm_gmtoff)
5957 return 0;
5959 return 0;
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_member_struct_tm_tm_gmtoff=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5997 main ()
5999 static struct tm ac_aggr;
6000 if (sizeof ac_aggr.tm_gmtoff)
6001 return 0;
6003 return 0;
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008 (eval $ac_compile) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag"
6016 || test ! -s conftest.err'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_member_struct_tm_tm_gmtoff=yes
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 ac_cv_member_struct_tm_tm_gmtoff=no
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6040 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6041 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6045 _ACEOF
6051 # Look for some functions
6066 for ac_func in getpagesize kqueue statfs statvfs \
6067 clone kse_create rfork_thread thr_create sa_register \
6068 getcontext makecontext setcontext sigaltstack swapcontext
6070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6071 echo "$as_me:$LINENO: checking for $ac_func" >&5
6072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6073 if eval "test \"\${$as_ac_var+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6084 #define $ac_func innocuous_$ac_func
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char $ac_func (); below.
6088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 <limits.h> exists even on freestanding compilers. */
6091 #ifdef __STDC__
6092 # include <limits.h>
6093 #else
6094 # include <assert.h>
6095 #endif
6097 #undef $ac_func
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 #ifdef __cplusplus
6101 extern "C"
6103 #endif
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6106 char $ac_func ();
6107 /* The GNU C library defines this for functions which it implements
6108 to always fail with ENOSYS. Some functions are actually named
6109 something starting with __ and the normal name is an alias. */
6110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 choke me
6112 #else
6113 char (*f) () = $ac_func;
6114 #endif
6115 #ifdef __cplusplus
6117 #endif
6120 main ()
6122 return f != $ac_func;
6124 return 0;
6126 _ACEOF
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6129 (eval $ac_link) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest$ac_exeext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 eval "$as_ac_var=yes"
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 eval "$as_ac_var=no"
6156 rm -f conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6161 if test `eval echo '${'$as_ac_var'}'` = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6164 _ACEOF
6167 done
6172 for ac_header in stdlib.h unistd.h
6174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6176 echo "$as_me:$LINENO: checking for $ac_header" >&5
6177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183 else
6184 # Is the header compilable?
6185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6194 #include <$ac_header>
6195 _ACEOF
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_header_compiler=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_header_compiler=no
6225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6227 echo "${ECHO_T}$ac_header_compiler" >&6
6229 # Is the header present?
6230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <$ac_header>
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251 else
6252 ac_cpp_err=
6254 else
6255 ac_cpp_err=yes
6257 if test -z "$ac_cpp_err"; then
6258 ac_header_preproc=yes
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_header_preproc=no
6265 rm -f conftest.err conftest.$ac_ext
6266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6267 echo "${ECHO_T}$ac_header_preproc" >&6
6269 # So? What about this header?
6270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 yes:no: )
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6276 ac_header_preproc=yes
6278 no:yes:* )
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6292 cat <<\_ASBOX
6293 ## ------------------------------------------ ##
6294 ## Report this to the AC_PACKAGE_NAME lists. ##
6295 ## ------------------------------------------ ##
6296 _ASBOX
6298 sed "s/^/$as_me: WARNING: /" >&2
6300 esac
6301 echo "$as_me:$LINENO: checking for $ac_header" >&5
6302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 eval "$as_ac_Header=\$ac_header_preproc"
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6315 _ACEOF
6319 done
6322 for ac_func in getpagesize
6324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6327 if eval "test \"\${$as_ac_var+set}\" = set"; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6338 #define $ac_func innocuous_$ac_func
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func (); below.
6342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 <limits.h> exists even on freestanding compilers. */
6345 #ifdef __STDC__
6346 # include <limits.h>
6347 #else
6348 # include <assert.h>
6349 #endif
6351 #undef $ac_func
6353 /* Override any gcc2 internal prototype to avoid an error. */
6354 #ifdef __cplusplus
6355 extern "C"
6357 #endif
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char $ac_func ();
6361 /* The GNU C library defines this for functions which it implements
6362 to always fail with ENOSYS. Some functions are actually named
6363 something starting with __ and the normal name is an alias. */
6364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365 choke me
6366 #else
6367 char (*f) () = $ac_func;
6368 #endif
6369 #ifdef __cplusplus
6371 #endif
6374 main ()
6376 return f != $ac_func;
6378 return 0;
6380 _ACEOF
6381 rm -f conftest.$ac_objext conftest$ac_exeext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383 (eval $ac_link) 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -z "$ac_c_werror_flag"
6391 || test ! -s conftest.err'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; } &&
6397 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6403 eval "$as_ac_var=yes"
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 eval "$as_ac_var=no"
6410 rm -f conftest.err conftest.$ac_objext \
6411 conftest$ac_exeext conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6415 if test `eval echo '${'$as_ac_var'}'` = yes; then
6416 cat >>confdefs.h <<_ACEOF
6417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6418 _ACEOF
6421 done
6423 echo "$as_me:$LINENO: checking for working mmap" >&5
6424 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6425 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 if test "$cross_compiling" = yes; then
6429 ac_cv_func_mmap_fixed_mapped=no
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 $ac_includes_default
6438 /* malloc might have been renamed as rpl_malloc. */
6439 #undef malloc
6441 /* Thanks to Mike Haertel and Jim Avera for this test.
6442 Here is a matrix of mmap possibilities:
6443 mmap private not fixed
6444 mmap private fixed at somewhere currently unmapped
6445 mmap private fixed at somewhere already mapped
6446 mmap shared not fixed
6447 mmap shared fixed at somewhere currently unmapped
6448 mmap shared fixed at somewhere already mapped
6449 For private mappings, we should verify that changes cannot be read()
6450 back from the file, nor mmap's back from the file at a different
6451 address. (There have been systems where private was not correctly
6452 implemented like the infamous i386 svr4.0, and systems where the
6453 VM page cache was not coherent with the file system buffer cache
6454 like early versions of FreeBSD and possibly contemporary NetBSD.)
6455 For shared mappings, we should conversely verify that changes get
6456 propagated back to all the places they're supposed to be.
6458 Grep wants private fixed already mapped.
6459 The main things grep needs to know about mmap are:
6460 * does it exist and is it safe to write into the mmap'd area
6461 * how to use it (BSD variants) */
6463 #include <fcntl.h>
6464 #include <sys/mman.h>
6466 #if !STDC_HEADERS && !HAVE_STDLIB_H
6467 char *malloc ();
6468 #endif
6470 /* This mess was copied from the GNU getpagesize.h. */
6471 #if !HAVE_GETPAGESIZE
6472 /* Assume that all systems that can run configure have sys/param.h. */
6473 # if !HAVE_SYS_PARAM_H
6474 # define HAVE_SYS_PARAM_H 1
6475 # endif
6477 # ifdef _SC_PAGESIZE
6478 # define getpagesize() sysconf(_SC_PAGESIZE)
6479 # else /* no _SC_PAGESIZE */
6480 # if HAVE_SYS_PARAM_H
6481 # include <sys/param.h>
6482 # ifdef EXEC_PAGESIZE
6483 # define getpagesize() EXEC_PAGESIZE
6484 # else /* no EXEC_PAGESIZE */
6485 # ifdef NBPG
6486 # define getpagesize() NBPG * CLSIZE
6487 # ifndef CLSIZE
6488 # define CLSIZE 1
6489 # endif /* no CLSIZE */
6490 # else /* no NBPG */
6491 # ifdef NBPC
6492 # define getpagesize() NBPC
6493 # else /* no NBPC */
6494 # ifdef PAGESIZE
6495 # define getpagesize() PAGESIZE
6496 # endif /* PAGESIZE */
6497 # endif /* no NBPC */
6498 # endif /* no NBPG */
6499 # endif /* no EXEC_PAGESIZE */
6500 # else /* no HAVE_SYS_PARAM_H */
6501 # define getpagesize() 8192 /* punt totally */
6502 # endif /* no HAVE_SYS_PARAM_H */
6503 # endif /* no _SC_PAGESIZE */
6505 #endif /* no HAVE_GETPAGESIZE */
6508 main ()
6510 char *data, *data2, *data3;
6511 int i, pagesize;
6512 int fd;
6514 pagesize = getpagesize ();
6516 /* First, make a file with some known garbage in it. */
6517 data = (char *) malloc (pagesize);
6518 if (!data)
6519 exit (1);
6520 for (i = 0; i < pagesize; ++i)
6521 *(data + i) = rand ();
6522 umask (0);
6523 fd = creat ("conftest.mmap", 0600);
6524 if (fd < 0)
6525 exit (1);
6526 if (write (fd, data, pagesize) != pagesize)
6527 exit (1);
6528 close (fd);
6530 /* Next, try to mmap the file at a fixed address which already has
6531 something else allocated at it. If we can, also make sure that
6532 we see the same garbage. */
6533 fd = open ("conftest.mmap", O_RDWR);
6534 if (fd < 0)
6535 exit (1);
6536 data2 = (char *) malloc (2 * pagesize);
6537 if (!data2)
6538 exit (1);
6539 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6540 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6541 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6542 exit (1);
6543 for (i = 0; i < pagesize; ++i)
6544 if (*(data + i) != *(data2 + i))
6545 exit (1);
6547 /* Finally, make sure that changes to the mapped area do not
6548 percolate back to the file as seen by read(). (This is a bug on
6549 some variants of i386 svr4.0.) */
6550 for (i = 0; i < pagesize; ++i)
6551 *(data2 + i) = *(data2 + i) + 1;
6552 data3 = (char *) malloc (pagesize);
6553 if (!data3)
6554 exit (1);
6555 if (read (fd, data3, pagesize) != pagesize)
6556 exit (1);
6557 for (i = 0; i < pagesize; ++i)
6558 if (*(data + i) != *(data3 + i))
6559 exit (1);
6560 close (fd);
6561 exit (0);
6563 _ACEOF
6564 rm -f conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_cv_func_mmap_fixed_mapped=yes
6576 else
6577 echo "$as_me: program exited with status $ac_status" >&5
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ( exit $ac_status )
6582 ac_cv_func_mmap_fixed_mapped=no
6584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6587 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6588 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6589 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6591 cat >>confdefs.h <<\_ACEOF
6592 #define HAVE_MMAP 1
6593 _ACEOF
6596 rm -f conftest.mmap
6599 # Find X
6600 echo "$as_me:$LINENO: checking for X" >&5
6601 echo $ECHO_N "checking for X... $ECHO_C" >&6
6604 # Check whether --with-x or --without-x was given.
6605 if test "${with_x+set}" = set; then
6606 withval="$with_x"
6609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6610 if test "x$with_x" = xno; then
6611 # The user explicitly disabled X.
6612 have_x=disabled
6613 else
6614 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6615 # Both variables are already set.
6616 have_x=yes
6617 else
6618 if test "${ac_cv_have_x+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 # One or both of the vars are not set, and there is no cached value.
6622 ac_x_includes=no ac_x_libraries=no
6623 rm -fr conftest.dir
6624 if mkdir conftest.dir; then
6625 cd conftest.dir
6626 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6627 cat >Imakefile <<'_ACEOF'
6628 acfindx:
6629 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6630 _ACEOF
6631 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6633 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6634 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6635 for ac_extension in a so sl; do
6636 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6637 test -f $ac_im_libdir/libX11.$ac_extension; then
6638 ac_im_usrlibdir=$ac_im_libdir; break
6640 done
6641 # Screen out bogus values from the imake configuration. They are
6642 # bogus both because they are the default anyway, and because
6643 # using them would break gcc on systems where it needs fixed includes.
6644 case $ac_im_incroot in
6645 /usr/include) ;;
6646 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6647 esac
6648 case $ac_im_usrlibdir in
6649 /usr/lib | /lib) ;;
6650 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6651 esac
6653 cd ..
6654 rm -fr conftest.dir
6657 # Standard set of common directories for X headers.
6658 # Check X11 before X11Rn because it is often a symlink to the current release.
6659 ac_x_header_dirs='
6660 /usr/X11/include
6661 /usr/X11R6/include
6662 /usr/X11R5/include
6663 /usr/X11R4/include
6665 /usr/include/X11
6666 /usr/include/X11R6
6667 /usr/include/X11R5
6668 /usr/include/X11R4
6670 /usr/local/X11/include
6671 /usr/local/X11R6/include
6672 /usr/local/X11R5/include
6673 /usr/local/X11R4/include
6675 /usr/local/include/X11
6676 /usr/local/include/X11R6
6677 /usr/local/include/X11R5
6678 /usr/local/include/X11R4
6680 /usr/X386/include
6681 /usr/x386/include
6682 /usr/XFree86/include/X11
6684 /usr/include
6685 /usr/local/include
6686 /usr/unsupported/include
6687 /usr/athena/include
6688 /usr/local/x11r5/include
6689 /usr/lpp/Xamples/include
6691 /usr/openwin/include
6692 /usr/openwin/share/include'
6694 if test "$ac_x_includes" = no; then
6695 # Guess where to find include files, by looking for Intrinsic.h.
6696 # First, try using that file with no special directory specified.
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <X11/Intrinsic.h>
6704 _ACEOF
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } >/dev/null; then
6713 if test -s conftest.err; then
6714 ac_cpp_err=$ac_c_preproc_warn_flag
6715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6716 else
6717 ac_cpp_err=
6719 else
6720 ac_cpp_err=yes
6722 if test -z "$ac_cpp_err"; then
6723 # We can compile using X headers with no special include directory.
6724 ac_x_includes=
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 for ac_dir in $ac_x_header_dirs; do
6730 if test -r "$ac_dir/X11/Intrinsic.h"; then
6731 ac_x_includes=$ac_dir
6732 break
6734 done
6736 rm -f conftest.err conftest.$ac_ext
6737 fi # $ac_x_includes = no
6739 if test "$ac_x_libraries" = no; then
6740 # Check for the libraries.
6741 # See if we find them without any special options.
6742 # Don't add to $LIBS permanently.
6743 ac_save_LIBS=$LIBS
6744 LIBS="-lXt $LIBS"
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <X11/Intrinsic.h>
6753 main ()
6755 XtMalloc (0)
6757 return 0;
6759 _ACEOF
6760 rm -f conftest.$ac_objext conftest$ac_exeext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6762 (eval $ac_link) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag"
6770 || test ! -s conftest.err'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 LIBS=$ac_save_LIBS
6783 # We can link X programs with no special library path.
6784 ac_x_libraries=
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 LIBS=$ac_save_LIBS
6790 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6792 # Don't even attempt the hair of trying to link an X program!
6793 for ac_extension in a so sl; do
6794 if test -r $ac_dir/libXt.$ac_extension; then
6795 ac_x_libraries=$ac_dir
6796 break 2
6798 done
6799 done
6801 rm -f conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 fi # $ac_x_libraries = no
6805 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6806 # Didn't find X anywhere. Cache the known absence of X.
6807 ac_cv_have_x="have_x=no"
6808 else
6809 # Record where we found X for the cache.
6810 ac_cv_have_x="have_x=yes \
6811 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6816 eval "$ac_cv_have_x"
6817 fi # $with_x != no
6819 if test "$have_x" != yes; then
6820 echo "$as_me:$LINENO: result: $have_x" >&5
6821 echo "${ECHO_T}$have_x" >&6
6822 no_x=yes
6823 else
6824 # If each of the values was on the command line, it overrides each guess.
6825 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6826 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6827 # Update the cache value to reflect the command line values.
6828 ac_cv_have_x="have_x=yes \
6829 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6830 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6831 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6837 # Find all the tools we need to compile. This could be cross-compiling
6838 # though! If that is the case we use the GNU form of the target and
6839 # simply add this to the front of the binary name. This is rather simple,
6840 # but it should work under most circumstances.
6842 # The default tools are to use the same as the host, but only if the
6843 # host and target CPU are the same. With GCC this is normally enough.
6846 aros_cc_pre=""
6847 aros_target_cc="$aros_host_cc"
6848 aros_target_as="$aros_host_cc"
6849 aros_shared_ld="$aros_host_ld"
6850 aros_kernel_ld="$aros_host_ld"
6851 aros_target_ld="$aros_host_ld"
6853 aros_target_mkdep="$aros_host_mkdep"
6854 aros_target_incl_def="$aros_host_incl"
6856 # The default tools executables to be linked at.
6857 if test "$GCC" = "yes"; then
6858 aros_gcc_ar=`$CC -print-prog-name=ar`
6859 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
6860 set dummy `basename $aros_gcc_ar`; ac_word=$2
6861 echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 case $aros_target_ar_ln in
6867 [\\/]* | ?:[\\/]*)
6868 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in `dirname $aros_gcc_ar`
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6882 done
6883 done
6886 esac
6888 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
6890 if test -n "$aros_target_ar_ln"; then
6891 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6892 echo "${ECHO_T}$aros_target_ar_ln" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6
6899 if test "$aros_target_ar_ln" = ""; then
6900 # Extract the first word of "ar", so it can be a program name with args.
6901 set dummy ar; ac_word=$2
6902 echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6904 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 case $aros_target_ar_ln in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6923 done
6924 done
6927 esac
6929 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
6931 if test -n "$aros_target_ar_ln"; then
6932 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6933 echo "${ECHO_T}$aros_target_ar_ln" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6
6940 if test "$aros_target_ar_ln" = ""; then
6941 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
6942 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
6943 { (exit 1); exit 1; }; }
6945 if test "$GCC" = "yes"; then
6946 aros_gcc_nm=`$CC -print-prog-name=nm`
6947 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
6948 set dummy `basename $aros_gcc_nm`; ac_word=$2
6949 echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 case $aros_target_nm_ln in
6955 [\\/]* | ?:[\\/]*)
6956 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in `dirname $aros_gcc_nm`
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6970 done
6971 done
6974 esac
6976 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
6978 if test -n "$aros_target_nm_ln"; then
6979 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
6980 echo "${ECHO_T}$aros_target_nm_ln" >&6
6981 else
6982 echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6
6987 if test "$aros_target_nm_ln" = ""; then
6988 # Extract the first word of "nm", so it can be a program name with args.
6989 set dummy nm; ac_word=$2
6990 echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 case $aros_target_nm_ln in
6996 [\\/]* | ?:[\\/]*)
6997 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7011 done
7012 done
7015 esac
7017 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
7019 if test -n "$aros_target_nm_ln"; then
7020 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
7021 echo "${ECHO_T}$aros_target_nm_ln" >&6
7022 else
7023 echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6
7028 if test "$aros_target_nm_ln" = ""; then
7029 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
7030 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
7031 { (exit 1); exit 1; }; }
7033 if test "$GCC" = "yes"; then
7034 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
7035 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
7036 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
7037 echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7039 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 case $aros_target_objcopy_ln in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in `dirname $aros_gcc_objcopy`
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7058 done
7059 done
7062 esac
7064 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7066 if test -n "$aros_target_objcopy_ln"; then
7067 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7068 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7069 else
7070 echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7075 if test "$aros_target_objcopy_ln" = ""; then
7076 # Extract the first word of "objcopy", so it can be a program name with args.
7077 set dummy objcopy; ac_word=$2
7078 echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7080 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 case $aros_target_objcopy_ln in
7084 [\\/]* | ?:[\\/]*)
7085 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7103 esac
7105 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7107 if test -n "$aros_target_objcopy_ln"; then
7108 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7109 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7110 else
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7116 if test "$aros_target_objcopy_ln" = ""; then
7117 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
7118 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
7119 { (exit 1); exit 1; }; }
7121 if test "$GCC" = "yes"; then
7122 aros_gcc_objdump=`$CC -print-prog-name=objdump`
7123 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
7124 set dummy `basename $aros_gcc_objdump`; ac_word=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 case $aros_target_objdump_ln in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in `dirname $aros_gcc_objdump`
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7150 esac
7152 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7154 if test -n "$aros_target_objdump_ln"; then
7155 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7156 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7157 else
7158 echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6
7163 if test "$aros_target_objdump_ln" = ""; then
7164 # Extract the first word of "objdump", so it can be a program name with args.
7165 set dummy objdump; ac_word=$2
7166 echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7168 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 case $aros_target_objdump_ln in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7191 esac
7193 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7195 if test -n "$aros_target_objdump_ln"; then
7196 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7197 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7198 else
7199 echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7204 if test "$aros_target_objdump_ln" = ""; then
7205 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
7206 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
7207 { (exit 1); exit 1; }; }
7209 if test "$GCC" = "yes"; then
7210 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
7211 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
7212 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
7213 echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 case $aros_target_ranlib_ln in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in `dirname $aros_gcc_ranlib`
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7238 esac
7240 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7242 if test -n "$aros_target_ranlib_ln"; then
7243 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7244 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6
7251 if test "$aros_target_ranlib_ln" = ""; then
7252 # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 case $aros_target_ranlib_ln in
7260 [\\/]* | ?:[\\/]*)
7261 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7275 done
7276 done
7279 esac
7281 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7283 if test -n "$aros_target_ranlib_ln"; then
7284 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7285 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7286 else
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7292 if test "$aros_target_ranlib_ln" = ""; then
7293 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
7294 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
7295 { (exit 1); exit 1; }; }
7297 if test "$GCC" = "yes"; then
7298 aros_gcc_strip=`$CC -print-prog-name=strip`
7299 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
7300 set dummy `basename $aros_gcc_strip`; ac_word=$2
7301 echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7303 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 case $aros_target_strip_ln in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in `dirname $aros_gcc_strip`
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7322 done
7323 done
7326 esac
7328 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7330 if test -n "$aros_target_strip_ln"; then
7331 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7332 echo "${ECHO_T}$aros_target_strip_ln" >&6
7333 else
7334 echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7339 if test "$aros_target_strip_ln" = ""; then
7340 # Extract the first word of "strip", so it can be a program name with args.
7341 set dummy strip; ac_word=$2
7342 echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 case $aros_target_strip_ln in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7363 done
7364 done
7367 esac
7369 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7371 if test -n "$aros_target_strip_ln"; then
7372 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7373 echo "${ECHO_T}$aros_target_strip_ln" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7380 if test "$aros_target_strip_ln" = ""; then
7381 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
7382 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
7383 { (exit 1); exit 1; }; }
7386 if test "$GCC" = "yes"; then
7387 aros_target_cc_path=`$CC -print-search-dirs | grep "programs: =" | cut -c 12-`
7390 # It is necessary to clear the include and link paths for target
7391 # commands. This should help clear up problems when cross compiling.
7392 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7393 aros_config_aflags="-Wall -x assembler-with-cpp"
7394 aros_config_ldflags=""
7396 aros_shared_default=yes
7398 aros_shared_cflags="-fPIC"
7399 aros_shared_aflags=""
7400 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7401 aros_kernel_ldflags="-Wl,-rpath,./lib"
7403 aros_compiler_libs=
7405 aros_target_genmap="-Wl,-Map -Xlinker"
7407 # Native flavour stuff
7408 aros_bochs_hack="0"
7409 aros_serial_debug="0"
7411 # Palm native flavour stuff
7412 aros_palm_debug_hack="0"
7414 # Unix flavour stuff
7415 aros_nesting_supervisor="0"
7417 # Collect-aros stuff: "-ius" to ignore undefined symbols
7418 ignore_undefined_symbols=""
7420 # X11 Xshm
7421 DO_XSHM_SUPPORT="1"
7424 #-----------------------------------------------------------------------------
7426 echo "$as_me:$LINENO: checking for type of build" >&5
7427 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7428 # Check whether --enable-build_type or --disable-build_type was given.
7429 if test "${enable_build_type+set}" = set; then
7430 enableval="$enable_build_type"
7431 build_type=$enableval
7432 else
7433 build_type="personal"
7436 if test "$build_type" = "nightly"; then
7437 build_type_string="NIGHTLY"
7438 elif test "$build_type" = "snapshot"; then
7439 build_type_string="SNAPSHOT"
7440 elif test "$build_type" = "milestone"; then
7441 build_type_string="MILESTONE"
7442 elif test "$build_type" = "release"; then
7443 build_type_string="RELEASE"
7444 else
7445 build_type_string="PERSONAL"
7446 build_type="personal"
7449 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7451 echo "$as_me:$LINENO: result: $build_type" >&5
7452 echo "${ECHO_T}$build_type" >&6
7454 #-----------------------------------------------------------------------------
7455 all_debug_types="messages stack mungwall modules symbols"
7457 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7458 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7459 # Check whether --enable-debug or --disable-debug was given.
7460 if test "${enable_debug+set}" = set; then
7461 enableval="$enable_debug"
7462 debug="$enableval"
7463 else
7464 debug=""
7467 if test "$debug" = "" -o "$debug" = "no"; then
7468 debug="none"
7469 elif test "$debug" = "yes"; then
7470 debug="all"
7473 if test "$debug" = "all" ; then
7474 debug=$all_debug_types
7475 for d in $all_debug_types; do
7476 export aros_${d}_debug="1"
7477 done
7478 else
7479 for d in $all_debug_types; do
7480 export aros_${d}_debug="0"
7481 done
7484 if test "$debug" != "none"; then
7485 debug=`echo $debug | sed s/,/\ /g`
7486 for d in $debug; do
7487 found="0"
7488 for d2 in $all_debug_types; do
7489 if test "$d2" = "$d"; then
7490 found="1"
7491 break
7493 done
7494 if test "$found" = "0"; then
7495 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7496 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7497 { (exit 1); exit 1; }; }
7499 export aros_${d}_debug="1"
7500 done
7501 aros_debug="yes"
7503 echo "$as_me:$LINENO: result: $debug" >&5
7504 echo "${ECHO_T}$debug" >&6
7506 if test "$aros_messages_debug" = "1"; then
7507 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7508 else
7509 aros_messages_debug=""
7511 if test "$aros_symbols_debug" = "1"; then
7512 aros_symbols_debug="-g"
7513 else
7514 aros_symbols_debug=""
7517 # These are the flags to pass when compiling debugged programs
7518 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7519 aros_debug_aflags=""
7520 aros_debug_ldflags="$aros_symbols_debug"
7522 #-----------------------------------------------------------------------------
7523 # Checking for distcc and ccache.
7525 # Always apply the transforms in this particular order. Basically you should
7526 # always run 'ccache distcc compiler' in that order for the best performance.
7528 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7529 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7530 # Check whether --enable-distcc or --disable-distcc was given.
7531 if test "${enable_distcc+set}" = set; then
7532 enableval="$enable_distcc"
7533 distcc="$enableval"
7534 else
7535 distcc="no"
7537 if test "$distcc" != "" -a "$distcc" != "no"; then
7538 # AC_CHECK_PROG will print out the result in this case
7539 # Extract the first word of "distcc", so it can be a program name with args.
7540 set dummy distcc; ac_word=$2
7541 echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543 if test "${ac_cv_path_DISTCC+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 case $DISTCC in
7547 [\\/]* | ?:[\\/]*)
7548 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in no
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7562 done
7563 done
7565 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7567 esac
7569 DISTCC=$ac_cv_path_DISTCC
7571 if test -n "$DISTCC"; then
7572 echo "$as_me:$LINENO: result: $DISTCC" >&5
7573 echo "${ECHO_T}$DISTCC" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7579 else
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7584 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7585 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7586 # Check whether --enable-ccache or --disable-ccache was given.
7587 if test "${enable_ccache+set}" = set; then
7588 enableval="$enable_ccache"
7589 ccache="$enableval"
7590 else
7591 ccache="no"
7593 if test "$ccache" != "" -a "$ccache" != "no"; then
7594 # AC_CHECK_PROG will print out the result in this case
7595 # Extract the first word of "ccache", so it can be a program name with args.
7596 set dummy ccache; ac_word=$2
7597 echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599 if test "${ac_cv_prog_CCACHE+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 if test -n "$CCACHE"; then
7603 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_CCACHE="ccache"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7619 test -z "$ac_cv_prog_CCACHE" && ac_cv_prog_CCACHE="no"
7622 CCACHE=$ac_cv_prog_CCACHE
7623 if test -n "$CCACHE"; then
7624 echo "$as_me:$LINENO: result: $CCACHE" >&5
7625 echo "${ECHO_T}$CCACHE" >&6
7626 else
7627 echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7636 #-----------------------------------------------------------------------------
7637 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7638 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7640 # Check whether --with-optimization or --without-optimization was given.
7641 if test "${with_optimization+set}" = set; then
7642 withval="$with_optimization"
7643 optimization="$withval"
7644 else
7645 optimization="unknown"
7647 if test "$optimization" = "unknown"; then
7648 if test "$debug" != "none"; then
7649 optimization="-O0"
7650 else
7651 optimization="-O2"
7654 aros_config_cflags="$aros_config_cflags $optimization"
7655 echo "$as_me:$LINENO: result: $optimization" >&5
7656 echo "${ECHO_T}$optimization" >&6
7658 #-----------------------------------------------------------------------------
7659 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7660 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7661 # Check whether --enable-target_variant or --disable-target_variant was given.
7662 if test "${enable_target_variant+set}" = set; then
7663 enableval="$enable_target_variant"
7664 target_variant=$enableval
7665 else
7666 target_variant="none"
7668 if test "$target_variant" = "none"; then
7669 aros_target_variant=""
7670 aros_target_suffix=""
7671 else
7672 aros_target_variant="$target_variant"
7673 aros_target_suffix="-$target_variant"
7675 echo "$as_me:$LINENO: result: $enableval" >&5
7676 echo "${ECHO_T}$enableval" >&6
7678 #-----------------------------------------------------------------------------
7679 # This is the target configuration switch.
7680 case "$target_os" in
7681 linux*)
7682 aros_target_arch="linux"
7683 case "$target_cpu" in
7684 *m68k*)
7685 aros_target_cpu="m68k"
7686 aros_object_format="m68kelf"
7687 aros_flavour="emulcompat"
7688 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7689 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7690 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7691 gcc_target_cpu="mc68000"
7693 *i?86*)
7694 aros_target_cpu="i386"
7695 aros_object_format="elf_i386"
7696 aros_flavour="emulation"
7697 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7698 aros_default_wbdepth=8
7699 gcc_target_cpu="i386"
7701 *powerpc*)
7702 aros_target_cpu="ppc"
7703 aros_object_format="elf32ppc"
7704 aros_flavour="emulation"
7705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7706 aros_default_wbdepth=8
7707 aros_compiler_libs="-lgcc"
7708 gcc_target_cpu="ppc"
7711 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7712 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7713 { (exit 1); exit 1; }; }
7715 esac
7719 aros_target_arch="pc"
7720 aros_shared_default="no"
7721 case "$target_cpu" in
7722 *i?86*)
7723 aros_target_cpu="i386"
7726 if test "$aros_object_format" = "" ; then
7727 aros_object_format="elf_i386"
7729 aros_flavour="standalone"
7730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7731 aros_kernel_ldflags=""
7732 aros_default_wbwidth=640
7733 aros_default_wbheight=480
7734 gcc_target_cpu="i386"
7737 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7738 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7739 { (exit 1); exit 1; }; }
7741 esac
7744 prep)
7745 aros_target_arch="prep"
7746 aros_shared_default="no"
7747 aros_target_cpu="ppc"
7748 aros_object_format="elf32ppc"
7749 aros_flavour="ppcnative"
7750 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7751 aros_kernel_ldflags=""
7752 aros_default_wbwidth=640
7753 aros_default_wbheight=480
7754 gcc_target_cpu="ppc"
7755 case "$target_cpu" in
7756 *cross*)
7757 aros_target_cc="ppc-linux-gcc -pipe"
7758 aros_target_ld="ppc-linux-ld"
7759 aros_target_as="ppc-linux-as"
7760 aros_target_ar="ppc-linux-ar"
7761 aros_target_ranlib="ppc-linux-ranlib"
7762 aros_target_nm="ppc-linux-nm"
7763 aros_target_strip="ppc-linux-strip"
7764 aros_target_objcopy="ppc-linux-objcopy"
7765 aros_target_objdump="ppc-linux-objdump"
7766 aros_shared_ld="ppc-linux-ld"
7767 aros_kernel_ld="ppc-linux-ld"
7771 esac
7774 freebsd*)
7775 aros_target_arch="freebsd"
7776 aros_target_cpu="i386"
7777 aros_flavour="emulation"
7778 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7779 gcc_target_cpu="i386"
7781 strip_args="-x"
7784 netbsd*)
7785 aros_target_arch="netbsd"
7786 case "$target_cpu" in
7787 *m68k*)
7788 aros_target_cpu="m68k"
7789 aros_object_format="m68kelf"
7790 aros_flavour="emulcompat"
7791 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7792 gcc_target_cpu="mc68000"
7794 *i?86*)
7795 aros_target_cpu="i386"
7796 aros_object_format="elf_i386"
7797 aros_flavour="emulation"
7798 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7799 aros_default_wbdepth=8
7800 gcc_target_cpu="i386"
7803 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7804 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7805 { (exit 1); exit 1; }; }
7807 esac
7808 aros_target_genmap="-Wl,-M -Xlinker >"
7809 aros_flavour="emulation"
7810 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7813 openbsd*)
7814 aros_target_arch="openbsd"
7815 case "$target_cpu" in
7816 *i?86*)
7817 aros_target_cpu="i386"
7818 aros_object_format="elf_i386"
7819 aros_flavour="emulation"
7820 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7821 gcc_target_cpu="i386"
7824 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7825 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7826 { (exit 1); exit 1; }; }
7828 esac
7829 aros_target_genmap="-Wl,-M -Xlinker >"
7830 aros_target_nm_flags="-u"
7831 aros_flavour="emulation"
7834 solaris*)
7835 aros_target_arch="solaris"
7836 case "$target_cpu" in
7837 *sparc*)
7838 aros_target_cpu="sparc"
7839 aros_object_format="elf_sparc"
7840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7841 gcc_target_cpu="sparc"
7844 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7845 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7846 { (exit 1); exit 1; }; }
7848 esac
7849 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7850 aros_flavour="emulation"
7853 morphos*)
7854 aros_target_arch="morphos"
7855 aros_shared_default="no"
7856 aros_target_cpu="ppc"
7857 aros_object_format="elf_ppc"
7858 aros_flavour="nativecompat"
7859 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7860 gcc_target_cpu="ppc"
7863 amiga*)
7864 aros_target_arch="amiga"
7865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7866 aros_shared_default="no"
7868 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7870 case "$target_cpu" in
7871 *m68k*)
7872 aros_target_cpu="m68k"
7873 aros_object_format="m68kelf"
7874 aros_flavour="nativecompat"
7875 gcc_target_cpu="mc68000"
7877 *ppc*)
7878 aros_cpu="ppc"
7879 aros_flavour="native"
7880 gcc_target_cpu="ppc"
7883 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7884 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7885 { (exit 1); exit 1; }; }
7887 esac
7890 cygwin*)
7891 aros_target_arch="cygwin"
7892 aros_shared_default="no"
7893 case "$target_cpu" in
7894 *i?86*)
7895 aros_target_cpu="i386"
7896 aros_object_format="elf_i386"
7897 aros_flavour="emulation"
7898 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7899 aros_shared_cflags=""
7900 aros_default_wbdepth=8
7901 gcc_target_cpu="i386"
7904 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7905 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7906 { (exit 1); exit 1; }; }
7908 esac
7910 pp*)
7911 aros_target_arch="pp"
7912 aros_shared_default="no"
7913 case "$target_cpu" in
7914 *m68k*)
7915 aros_target_cpu="m68k"
7916 aros_object_format="m68kelf"
7917 aros_flavour="palmnative"
7918 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7919 aros_kernel_ldflags=""
7920 aros_default_wbwidth=160
7921 aros_default_wbheight=160
7922 aros_default_wbdepth=1
7923 aros_target_cc="m68k-elf-gcc -pipe"
7924 aros_target_ld="$(which m68k-elf-ld)"
7925 aros_target_as="m68k-elf-gcc -pipe"
7926 aros_shared_ld="m68k-elf-gcc"
7927 aros_kernel_ld="m68k-elf-gcc"
7928 aros_target_ar="m68k-elf-ar"
7929 aros_target_ar_flags="cru"
7930 aros_target_ranlib="m68k-elf-ranlib"
7931 aros_target_nm="m68k-elf-nm"
7932 aros_target_objcopy="m68k-elf-objcopy"
7933 aros_target_objdump="m68k-elf-objdump"
7934 aros_compiler_libs="-lgcc1"
7935 aros_shared_default=no
7936 aros_shared_cflags="-fpic"
7937 aros_shared_aflags=""
7938 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7939 aros_kernel_ldflags="-Wl,-rpath,./lib"
7940 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7941 aros_debug_aflags=""
7942 aros_debug_ldflags="$aros_symbols_debug"
7943 aros_mungwall_debug="0"
7944 aros_modules_debug="0"
7945 gcc_target_cpu="mc68000"
7946 ignore_undefined_symbols="-ius"
7949 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7950 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7951 { (exit 1); exit 1; }; }
7953 esac
7957 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7958 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7959 { (exit 1); exit 1; }; }
7961 esac
7963 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
7964 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
7965 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
7966 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
7967 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
7968 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
7970 # aros_cc_pre is a variable that is added to the front of the compiler name
7971 # in the generated aros-gcc shell script. We need this to enable the cache
7972 # to work across cleaned builds. Also, support DISTCC using the correct
7973 # environment variable.
7976 if test "x${DISTCC}" != "x" ; then
7977 if test "x${CCACHE}" != "x" ; then
7978 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
7979 else
7980 aros_cc_pre="${DISTCC} "
7982 else
7983 if test "x${CCACHE}" != "x" ; then
7984 aros_cc_pre="${CCACHE} "
7988 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
7990 TARGET_CC="${prefix}-gcc"
7991 TARGET_AS="$TARGET_CC"
7992 TARGET_LD="${prefix}-ld"
7993 aros_target_ld="${prefix}-ld"
7995 NOSTDINC_CFLAGS=-nostdinc
7997 NOSTARTUP_LDFLAGS=-nostartfiles
7998 NIX_LDFLAGS=-nix
7999 DETACH_LDFLAGS=-detach
8000 NOSTDLIB_LDFLAGS=-nostdlib
8002 if test "$cross_compile" = "yes" ; then
8003 # Extract the first word of "$aros_shared_ld", so it can be a program name with args.
8004 set dummy $aros_shared_ld; ac_word=$2
8005 echo "$as_me:$LINENO: checking for $ac_word" >&5
8006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8007 if test "${ac_cv_path_SHARED_LD+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 case $SHARED_LD in
8011 [\\/]* | ?:[\\/]*)
8012 ac_cv_path_SHARED_LD="$SHARED_LD" # Let the user override the test with a path.
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022 ac_cv_path_SHARED_LD="$as_dir/$ac_word$ac_exec_ext"
8023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8026 done
8027 done
8029 test -z "$ac_cv_path_SHARED_LD" && ac_cv_path_SHARED_LD="$aros_shared_ld"
8031 esac
8033 SHARED_LD=$ac_cv_path_SHARED_LD
8035 if test -n "$SHARED_LD"; then
8036 echo "$as_me:$LINENO: result: $SHARED_LD" >&5
8037 echo "${ECHO_T}$SHARED_LD" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6
8043 else
8044 SHARED_LD="$aros_shared_ld"
8048 if test "$cross_compile" = "yes" ; then
8049 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8050 set dummy $aros_kernel_ld; ac_word=$2
8051 echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053 if test "${ac_cv_path_KERNEL_LD+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 case $KERNEL_LD in
8057 [\\/]* | ?:[\\/]*)
8058 ac_cv_path_KERNEL_LD="$KERNEL_LD" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_path_KERNEL_LD="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8075 test -z "$ac_cv_path_KERNEL_LD" && ac_cv_path_KERNEL_LD="$aros_kernel_ld"
8077 esac
8079 KERNEL_LD=$ac_cv_path_KERNEL_LD
8081 if test -n "$KERNEL_LD"; then
8082 echo "$as_me:$LINENO: result: $KERNEL_LD" >&5
8083 echo "${ECHO_T}$KERNEL_LD" >&6
8084 else
8085 echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8089 else
8090 KERNEL_LD="$aros_kernel_ld"
8095 # The default tools
8096 aros_target_ar=${prefix}-ar
8097 aros_target_ar_flags="cr"
8098 aros_target_nm=${prefix}-nm
8099 aros_target_nm_flags="-C -ul"
8100 aros_target_objcopy=${prefix}-objcopy
8101 aros_target_objdump=${prefix}-objdump
8102 aros_target_ranlib=${prefix}-ranlib
8103 aros_target_strip="${prefix}-strip --strip-unneeded -R.comment"
8105 prefix="\$(TOOLDIR)/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8106 AR="${prefix}-ar $aros_target_ar_flags"
8107 RANLIB="${prefix}-ranlib $aros_target_ranlib_flags"
8108 NM="${prefix}-nm $aros_target_nm_flags"
8109 NM_PLAIN="${prefix}-nm"
8110 STRIP="${prefix}-strip $aros_target_strip_flags"
8111 OBJDUMP="${prefix}-objdump"
8112 OBJCOPY="${prefix}-objcopy"
8131 #-----------------------------------------------------------------------------
8132 # See if we can compile SHM support
8133 HAVE_XSHM_SUPPORT=0
8134 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8135 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8136 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8137 if test -z "$x_includes" ; then
8138 CFLAGS=""
8139 else
8140 CFLAGS="-I $x_includes"
8142 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 #include <sys/types.h>
8151 #include <X11/Xlib.h>
8152 #include <X11/Xutil.h>
8153 #include <X11/keysym.h>
8154 #include <X11/cursorfont.h>
8155 #include <sys/ipc.h>
8156 #include <sys/shm.h>
8157 #include <X11/extensions/XShm.h>
8159 main ()
8162 static XShmSegmentInfo shminfo;
8163 static Display *display;
8164 XShmAttach(display, &shminfo);
8165 XSync(display,0);
8166 shmctl(shminfo.shmid, IPC_RMID, 0);
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 HAVE_XSHM_SUPPORT=1
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 HAVE_XSHM_SUPPORT=0
8202 echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6
8205 rm -f conftest.err conftest.$ac_objext \
8206 conftest$ac_exeext conftest.$ac_ext
8210 # Find the system include path. We can suggest that an alternative is
8211 # used if we don't get it correct. The default is to use /usr/include.
8212 # Which is set in the aros_target_incl_def variable.
8214 # Check whether --enable-includes or --disable-includes was given.
8215 if test "${enable_includes+set}" = set; then
8216 enableval="$enable_includes"
8217 aros_target_incl=$enable_includes
8218 else
8219 aros_target_incl=$aros_target_incl_def
8222 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
8223 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
8224 if test "$aros_target_cc_includes" = "" ; then
8225 aros_target_cc_includes=`dirname \`${aros_target_cc} -print-libgcc-file-name\``/include
8227 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
8228 echo "${ECHO_T}$aros_target_cc_includes" >&6
8230 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
8231 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
8233 # Check whether --with-resolution or --without-resolution was given.
8234 if test "${with_resolution+set}" = set; then
8235 withval="$with_resolution"
8236 resolution=$withval
8237 else
8238 resolution=none
8240 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
8241 if test "$resolution" = "yes" ; then
8242 resolution="none"
8244 if test "$resolution" = "no" ; then
8245 resolution="none"
8247 if test "$resolution" != "none" ; then
8248 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
8249 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
8250 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
8252 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
8253 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
8254 aros_cv_default_wbwidth=$aros_default_wbwidth
8255 aros_cv_default_wbheight=$aros_default_wbheight
8256 aros_cv_default_wbdepth=$aros_default_wbdepth
8258 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
8259 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
8260 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
8261 if test "${enable_bochs_hack+set}" = set; then
8262 enableval="$enable_bochs_hack"
8263 bochs_hack="yes"
8264 else
8265 bochs_hack="no"
8267 if test "$bochs_hack" = "yes" ; then
8268 aros_bochs_hack="1"
8270 echo "$as_me:$LINENO: result: $bochs_hack" >&5
8271 echo "${ECHO_T}$bochs_hack" >&6
8273 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
8274 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
8276 # Check whether --with-serial-debug or --without-serial-debug was given.
8277 if test "${with_serial_debug+set}" = set; then
8278 withval="$with_serial_debug"
8279 serial_debug=$withval
8280 else
8281 serial_debug=none
8283 if test "$serial_debug" = "yes" ; then
8284 serial_debug="2"
8286 if test "$serial_debug" = "no" ; then
8287 serial_debug="none"
8289 if test "$serial_debug" != "none" ; then
8290 aros_serial_debug=$serial_debug
8291 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
8292 echo "${ECHO_T}on port $serial_debug" >&6
8293 else
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8298 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
8299 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
8300 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
8301 if test "${enable_palm_debug_hack+set}" = set; then
8302 enableval="$enable_palm_debug_hack"
8303 palm_debug_hack="yes"
8304 else
8305 palm_debug_hack="no"
8307 if test "$palm_debug_hack" = "yes" ; then
8308 aros_palm_debug_hack="1"
8310 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
8311 echo "${ECHO_T}$palm_debug_hack" >&6
8314 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
8315 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
8316 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
8317 if test "${enable_nesting_supervisor+set}" = set; then
8318 enableval="$enable_nesting_supervisor"
8319 nesting_supervisor="yes"
8320 else
8321 nesting_supervisor="no"
8323 if test "$nesting_supervisor" = "yes" ; then
8324 aros_nesting_supervisor="1"
8326 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
8327 echo "${ECHO_T}$nesting_supervisor" >&6
8331 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8332 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
8333 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
8334 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
8335 if test "${enable_xshm_extension+set}" = set; then
8336 enableval="$enable_xshm_extension"
8337 xshm_extension="$enableval"
8338 else
8339 xshm_extension="yes"
8341 if test "$xshm_extension" = "no" ; then
8342 DO_XSHM_SUPPORT="0"
8344 echo "$as_me:$LINENO: result: $xshm_extension" >&5
8345 echo "${ECHO_T}$xshm_extension" >&6
8346 else
8347 DO_XSHM_SUPPORT="0"
8352 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
8353 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
8354 # Check whether --enable-dbus or --disable-dbus was given.
8355 if test "${enable_dbus+set}" = set; then
8356 enableval="$enable_dbus"
8357 dbus="yes"
8358 else
8359 dbus="no"
8361 if test "$dbus" = "yes" ; then
8362 ENABLE_DBUS=1
8363 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
8364 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
8365 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
8366 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
8367 else
8368 ENABLE_DBUS=0
8370 echo "$as_me:$LINENO: result: $dbus" >&5
8371 echo "${ECHO_T}$dbus" >&6
8375 # Generic
8382 # Host related
8397 # Target Related
8429 # Graphics Related
8441 # Native version related
8445 # Palm native version related
8448 # Unix/Hosted version related
8451 # DBUS related
8458 # Debug related
8464 # Collect-aros stuff: "-ius" to ignore undefined symbols
8467 # C compiler related
8470 case "$aros_flavour" in
8471 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
8472 aros_flavour="emulation" ;;
8473 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
8474 aros_flavour="emulation" ;;
8475 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
8476 aros_flavour="standalone";;
8477 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
8478 aros_flavour="native" ;;
8479 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8480 aros_flavour="native" ;;
8481 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
8482 aros_flavour="linklib" ;;
8483 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
8484 aros_flavour="palmnative" ;;
8485 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8486 aros_flavour="ppcnative" ;;
8487 esac
8489 if test -z "$aros_gui_basedir" ; then
8490 aros_gui_libdir="$x_libraries"
8491 if test -z "$x_libraries" ; then
8492 aros_gui_ldflags=""
8493 else
8494 aros_gui_ldflags="-L $x_libraries"
8496 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8497 aros_gui_libflags="-lX11 -lXext"
8498 else
8499 aros_gui_libflags="-lX11"
8501 aros_gui_incdir="$x_includes"
8502 if test -z "$x_includes" ; then
8503 aros_gui_ccflags=""
8504 else
8505 aros_gui_ccflags="-I $x_includes"
8507 else
8508 if test -n "$aros_gui_basedir" ; then
8509 aros_gui_libdir="${aros_gui_basedir}/lib"
8510 aros_gui_incdir="${aros_gui_basedir}/include"
8513 if test -n "$aros_gui_libdir" ; then
8514 aros_gui_ldflags="-L ${aros_gui_libdir}"
8517 if test -n "$aros_gui_incdir" ; then
8518 aros_gui_ccflags="-I ${aros_gui_incdir}"
8519 else
8520 aros_gui_incdir="${aros_sysincludes}"
8521 aros_gui_ccflags=""
8525 if test ! -d ${aros_inc_dir} ; then
8526 ${MKDIR} ${aros_inc_dir}
8528 if test ! -d ${aros_geninc_dir} ; then
8529 ${MKDIR} ${aros_geninc_dir}
8531 if test ! -d ${aros_hostcfg_dir} ; then
8532 ${MKDIR} ${aros_hostcfg_dir}
8534 if test ! -d ${aros_targetcfg_dir} ; then
8535 ${MKDIR} ${aros_targetcfg_dir}
8537 if test ! -d ${aros_tools_dir} ; then
8538 ${MKDIR} ${aros_tools_dir}
8540 if test ! -d ${aros_scripts_dir} ; then
8541 ${MKDIR} ${aros_scripts_dir}
8544 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
8547 ac_config_commands="$ac_config_commands compiler_executable"
8549 ac_config_commands="$ac_config_commands genshared_executable"
8551 ac_config_commands="$ac_config_commands genmf_executable"
8553 ac_config_commands="$ac_config_commands adflib/myaros.conf_executable"
8556 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"
8559 cat >confcache <<\_ACEOF
8560 # This file is a shell script that caches the results of configure
8561 # tests run on this system so they can be shared between configure
8562 # scripts and configure runs, see configure's option --config-cache.
8563 # It is not useful on other systems. If it contains results you don't
8564 # want to keep, you may remove or edit it.
8566 # config.status only pays attention to the cache file if you give it
8567 # the --recheck option to rerun configure.
8569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8571 # following values.
8573 _ACEOF
8575 # The following way of writing the cache mishandles newlines in values,
8576 # but we know of no workaround that is simple, portable, and efficient.
8577 # So, don't put newlines in cache variables' values.
8578 # Ultrix sh set writes to stderr and can't be redirected directly,
8579 # and sets the high bit in the cache file unless we assign to the vars.
8581 (set) 2>&1 |
8582 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8583 *ac_space=\ *)
8584 # `set' does not quote correctly, so add quotes (double-quote
8585 # substitution turns \\\\ into \\, and sed turns \\ into \).
8586 sed -n \
8587 "s/'/'\\\\''/g;
8588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8591 # `set' quotes correctly as required by POSIX, so do not add quotes.
8592 sed -n \
8593 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8595 esac;
8597 sed '
8598 t clear
8599 : clear
8600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8601 t end
8602 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8603 : end' >>confcache
8604 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8605 if test -w $cache_file; then
8606 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8607 cat confcache >$cache_file
8608 else
8609 echo "not updating unwritable cache $cache_file"
8612 rm -f confcache
8614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8615 # Let make expand exec_prefix.
8616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8620 # trailing colons and then remove the whole line if VPATH becomes empty
8621 # (actually we leave an empty line to preserve line numbers).
8622 if test "x$srcdir" = x.; then
8623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8624 s/:*\$(srcdir):*/:/;
8625 s/:*\${srcdir}:*/:/;
8626 s/:*@srcdir@:*/:/;
8627 s/^\([^=]*=[ ]*\):*/\1/;
8628 s/:*$//;
8629 s/^[^=]*=[ ]*$//;
8633 DEFS=-DHAVE_CONFIG_H
8635 ac_libobjs=
8636 ac_ltlibobjs=
8637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8638 # 1. Remove the extension, and $U if already installed.
8639 ac_i=`echo "$ac_i" |
8640 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8641 # 2. Add them.
8642 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8643 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8644 done
8645 LIBOBJS=$ac_libobjs
8647 LTLIBOBJS=$ac_ltlibobjs
8651 : ${CONFIG_STATUS=./config.status}
8652 ac_clean_files_save=$ac_clean_files
8653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8654 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8655 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8656 cat >$CONFIG_STATUS <<_ACEOF
8657 #! $SHELL
8658 # Generated by $as_me.
8659 # Run this file to recreate the current configuration.
8660 # Compiler output produced by configure, useful for debugging
8661 # configure, is in config.log if it exists.
8663 debug=false
8664 ac_cs_recheck=false
8665 ac_cs_silent=false
8666 SHELL=\${CONFIG_SHELL-$SHELL}
8667 _ACEOF
8669 cat >>$CONFIG_STATUS <<\_ACEOF
8670 ## --------------------- ##
8671 ## M4sh Initialization. ##
8672 ## --------------------- ##
8674 # Be Bourne compatible
8675 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8676 emulate sh
8677 NULLCMD=:
8678 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8679 # is contrary to our usage. Disable this feature.
8680 alias -g '${1+"$@"}'='"$@"'
8681 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8682 set -o posix
8684 DUALCASE=1; export DUALCASE # for MKS sh
8686 # Support unset when possible.
8687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8688 as_unset=unset
8689 else
8690 as_unset=false
8694 # Work around bugs in pre-3.0 UWIN ksh.
8695 $as_unset ENV MAIL MAILPATH
8696 PS1='$ '
8697 PS2='> '
8698 PS4='+ '
8700 # NLS nuisances.
8701 for as_var in \
8702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8704 LC_TELEPHONE LC_TIME
8706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8707 eval $as_var=C; export $as_var
8708 else
8709 $as_unset $as_var
8711 done
8713 # Required to use basename.
8714 if expr a : '\(a\)' >/dev/null 2>&1; then
8715 as_expr=expr
8716 else
8717 as_expr=false
8720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8721 as_basename=basename
8722 else
8723 as_basename=false
8727 # Name of the executable.
8728 as_me=`$as_basename "$0" ||
8729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8730 X"$0" : 'X\(//\)$' \| \
8731 X"$0" : 'X\(/\)$' \| \
8732 . : '\(.\)' 2>/dev/null ||
8733 echo X/"$0" |
8734 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8735 /^X\/\(\/\/\)$/{ s//\1/; q; }
8736 /^X\/\(\/\).*/{ s//\1/; q; }
8737 s/.*/./; q'`
8740 # PATH needs CR, and LINENO needs CR and PATH.
8741 # Avoid depending upon Character Ranges.
8742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8745 as_cr_digits='0123456789'
8746 as_cr_alnum=$as_cr_Letters$as_cr_digits
8748 # The user is always right.
8749 if test "${PATH_SEPARATOR+set}" != set; then
8750 echo "#! /bin/sh" >conf$$.sh
8751 echo "exit 0" >>conf$$.sh
8752 chmod +x conf$$.sh
8753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8754 PATH_SEPARATOR=';'
8755 else
8756 PATH_SEPARATOR=:
8758 rm -f conf$$.sh
8762 as_lineno_1=$LINENO
8763 as_lineno_2=$LINENO
8764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8765 test "x$as_lineno_1" != "x$as_lineno_2" &&
8766 test "x$as_lineno_3" = "x$as_lineno_2" || {
8767 # Find who we are. Look in the path if we contain no path at all
8768 # relative or not.
8769 case $0 in
8770 *[\\/]* ) as_myself=$0 ;;
8771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8777 done
8780 esac
8781 # We did not find ourselves, most probably we were run as `sh COMMAND'
8782 # in which case we are not to be found in the path.
8783 if test "x$as_myself" = x; then
8784 as_myself=$0
8786 if test ! -f "$as_myself"; then
8787 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8789 { (exit 1); exit 1; }; }
8791 case $CONFIG_SHELL in
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for as_base in sh bash ksh sh5; do
8799 case $as_dir in
8801 if ("$as_dir/$as_base" -c '
8802 as_lineno_1=$LINENO
8803 as_lineno_2=$LINENO
8804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8805 test "x$as_lineno_1" != "x$as_lineno_2" &&
8806 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8807 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8808 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8809 CONFIG_SHELL=$as_dir/$as_base
8810 export CONFIG_SHELL
8811 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8812 fi;;
8813 esac
8814 done
8815 done
8817 esac
8819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8820 # uniformly replaced by the line number. The first 'sed' inserts a
8821 # line-number line before each line; the second 'sed' does the real
8822 # work. The second script uses 'N' to pair each line-number line
8823 # with the numbered line, and appends trailing '-' during
8824 # substitution so that $LINENO is not a special case at line end.
8825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8827 sed '=' <$as_myself |
8828 sed '
8830 s,$,-,
8831 : loop
8832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8833 t loop
8834 s,-$,,
8835 s,^['$as_cr_digits']*\n,,
8836 ' >$as_me.lineno &&
8837 chmod +x $as_me.lineno ||
8838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8840 { (exit 1); exit 1; }; }
8842 # Don't try to exec as it changes $[0], causing all sort of problems
8843 # (the dirname of $[0] is not the place where we might find the
8844 # original and so on. Autoconf is especially sensible to this).
8845 . ./$as_me.lineno
8846 # Exit status is that of the last command.
8847 exit
8851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8852 *c*,-n*) ECHO_N= ECHO_C='
8853 ' ECHO_T=' ' ;;
8854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8856 esac
8858 if expr a : '\(a\)' >/dev/null 2>&1; then
8859 as_expr=expr
8860 else
8861 as_expr=false
8864 rm -f conf$$ conf$$.exe conf$$.file
8865 echo >conf$$.file
8866 if ln -s conf$$.file conf$$ 2>/dev/null; then
8867 # We could just check for DJGPP; but this test a) works b) is more generic
8868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8869 if test -f conf$$.exe; then
8870 # Don't use ln at all; we don't have any links
8871 as_ln_s='cp -p'
8872 else
8873 as_ln_s='ln -s'
8875 elif ln conf$$.file conf$$ 2>/dev/null; then
8876 as_ln_s=ln
8877 else
8878 as_ln_s='cp -p'
8880 rm -f conf$$ conf$$.exe conf$$.file
8882 if mkdir -p . 2>/dev/null; then
8883 as_mkdir_p=:
8884 else
8885 test -d ./-p && rmdir ./-p
8886 as_mkdir_p=false
8889 as_executable_p="test -f"
8891 # Sed expression to map a string onto a valid CPP name.
8892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8894 # Sed expression to map a string onto a valid variable name.
8895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8898 # IFS
8899 # We need space, tab and new line, in precisely that order.
8900 as_nl='
8902 IFS=" $as_nl"
8904 # CDPATH.
8905 $as_unset CDPATH
8907 exec 6>&1
8909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8910 # report actual input values of CONFIG_FILES etc. instead of their
8911 # values after options handling. Logging --version etc. is OK.
8912 exec 5>>config.log
8914 echo
8915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8916 ## Running $as_me. ##
8917 _ASBOX
8918 } >&5
8919 cat >&5 <<_CSEOF
8921 This file was extended by $as_me, which was
8922 generated by GNU Autoconf 2.59. Invocation command line was
8924 CONFIG_FILES = $CONFIG_FILES
8925 CONFIG_HEADERS = $CONFIG_HEADERS
8926 CONFIG_LINKS = $CONFIG_LINKS
8927 CONFIG_COMMANDS = $CONFIG_COMMANDS
8928 $ $0 $@
8930 _CSEOF
8931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8932 echo >&5
8933 _ACEOF
8935 # Files that config.status was made for.
8936 if test -n "$ac_config_files"; then
8937 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8940 if test -n "$ac_config_headers"; then
8941 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8944 if test -n "$ac_config_links"; then
8945 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8948 if test -n "$ac_config_commands"; then
8949 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8952 cat >>$CONFIG_STATUS <<\_ACEOF
8954 ac_cs_usage="\
8955 \`$as_me' instantiates files from templates according to the
8956 current configuration.
8958 Usage: $0 [OPTIONS] [FILE]...
8960 -h, --help print this help, then exit
8961 -V, --version print version number, then exit
8962 -q, --quiet do not print progress messages
8963 -d, --debug don't remove temporary files
8964 --recheck update $as_me by reconfiguring in the same conditions
8965 --file=FILE[:TEMPLATE]
8966 instantiate the configuration file FILE
8967 --header=FILE[:TEMPLATE]
8968 instantiate the configuration header FILE
8970 Configuration files:
8971 $config_files
8973 Configuration headers:
8974 $config_headers
8976 Configuration commands:
8977 $config_commands
8979 Report bugs to <bug-autoconf@gnu.org>."
8980 _ACEOF
8982 cat >>$CONFIG_STATUS <<_ACEOF
8983 ac_cs_version="\\
8984 config.status
8985 configured by $0, generated by GNU Autoconf 2.59,
8986 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8988 Copyright (C) 2003 Free Software Foundation, Inc.
8989 This config.status script is free software; the Free Software Foundation
8990 gives unlimited permission to copy, distribute and modify it."
8991 srcdir=$srcdir
8992 _ACEOF
8994 cat >>$CONFIG_STATUS <<\_ACEOF
8995 # If no file are specified by the user, then we need to provide default
8996 # value. By we need to know if files were specified by the user.
8997 ac_need_defaults=:
8998 while test $# != 0
9000 case $1 in
9001 --*=*)
9002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9004 ac_shift=:
9007 ac_option=$1
9008 ac_optarg=$2
9009 ac_shift=shift
9011 *) # This is not an option, so the user has probably given explicit
9012 # arguments.
9013 ac_option=$1
9014 ac_need_defaults=false;;
9015 esac
9017 case $ac_option in
9018 # Handling of the options.
9019 _ACEOF
9020 cat >>$CONFIG_STATUS <<\_ACEOF
9021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9022 ac_cs_recheck=: ;;
9023 --version | --vers* | -V )
9024 echo "$ac_cs_version"; exit 0 ;;
9025 --he | --h)
9026 # Conflict between --help and --header
9027 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9028 Try \`$0 --help' for more information." >&5
9029 echo "$as_me: error: ambiguous option: $1
9030 Try \`$0 --help' for more information." >&2;}
9031 { (exit 1); exit 1; }; };;
9032 --help | --hel | -h )
9033 echo "$ac_cs_usage"; exit 0 ;;
9034 --debug | --d* | -d )
9035 debug=: ;;
9036 --file | --fil | --fi | --f )
9037 $ac_shift
9038 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9039 ac_need_defaults=false;;
9040 --header | --heade | --head | --hea )
9041 $ac_shift
9042 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9043 ac_need_defaults=false;;
9044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9046 ac_cs_silent=: ;;
9048 # This is an error.
9049 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9050 Try \`$0 --help' for more information." >&5
9051 echo "$as_me: error: unrecognized option: $1
9052 Try \`$0 --help' for more information." >&2;}
9053 { (exit 1); exit 1; }; } ;;
9055 *) ac_config_targets="$ac_config_targets $1" ;;
9057 esac
9058 shift
9059 done
9061 ac_configure_extra_args=
9063 if $ac_cs_silent; then
9064 exec 6>/dev/null
9065 ac_configure_extra_args="$ac_configure_extra_args --silent"
9068 _ACEOF
9069 cat >>$CONFIG_STATUS <<_ACEOF
9070 if \$ac_cs_recheck; then
9071 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9072 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9075 _ACEOF
9077 cat >>$CONFIG_STATUS <<_ACEOF
9079 # INIT-COMMANDS section.
9083 aros_tools_dir=${aros_tools_dir}
9084 aros_target_cpu=${aros_target_cpu}
9085 aros_target_arch=${aros_target_arch}
9086 aros_target_suffix=${aros_target_suffix}
9087 aros_target_nm_ln=${aros_target_nm_ln}
9088 aros_target_ar_ln=${aros_target_ar_ln}
9089 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9090 aros_target_objdump_ln=${aros_target_objdump_ln}
9091 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9092 aros_target_strip_ln=${aros_target_strip_ln}
9095 aros_scripts_dir=${aros_scripts_dir}
9097 aros_tools_dir=${aros_tools_dir}
9100 _ACEOF
9104 cat >>$CONFIG_STATUS <<\_ACEOF
9105 for ac_config_target in $ac_config_targets
9107 case "$ac_config_target" in
9108 # Handling of arguments.
9109 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9110 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9111 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9112 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9113 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9114 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9115 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9116 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9117 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9118 "${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" ;;
9119 "${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" ;;
9120 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9121 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9122 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9123 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9124 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9125 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9126 "adflib/myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib/myaros.conf_executable" ;;
9127 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9128 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9129 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9130 { (exit 1); exit 1; }; };;
9131 esac
9132 done
9134 # If the user did not use the arguments to specify the items to instantiate,
9135 # then the envvar interface is used. Set only those that are not.
9136 # We use the long form for the default assignment because of an extremely
9137 # bizarre bug on SunOS 4.1.3.
9138 if $ac_need_defaults; then
9139 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9140 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9141 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9144 # Have a temporary directory for convenience. Make it in the build tree
9145 # simply because there is no reason to put it here, and in addition,
9146 # creating and moving files from /tmp can sometimes cause problems.
9147 # Create a temporary directory, and hook for its removal unless debugging.
9148 $debug ||
9150 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9151 trap '{ (exit 1); exit 1; }' 1 2 13 15
9154 # Create a (secure) tmp directory for tmp files.
9157 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9158 test -n "$tmp" && test -d "$tmp"
9159 } ||
9161 tmp=./confstat$$-$RANDOM
9162 (umask 077 && mkdir $tmp)
9163 } ||
9165 echo "$me: cannot create a temporary directory in ." >&2
9166 { (exit 1); exit 1; }
9169 _ACEOF
9171 cat >>$CONFIG_STATUS <<_ACEOF
9174 # CONFIG_FILES section.
9177 # No need to generate the scripts if there are no CONFIG_FILES.
9178 # This happens for instance when ./config.status config.h
9179 if test -n "\$CONFIG_FILES"; then
9180 # Protect against being on the right side of a sed subst in config.status.
9181 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9182 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9183 s,@SHELL@,$SHELL,;t t
9184 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9185 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9186 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9187 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9188 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9189 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9190 s,@exec_prefix@,$exec_prefix,;t t
9191 s,@prefix@,$prefix,;t t
9192 s,@program_transform_name@,$program_transform_name,;t t
9193 s,@bindir@,$bindir,;t t
9194 s,@sbindir@,$sbindir,;t t
9195 s,@libexecdir@,$libexecdir,;t t
9196 s,@datadir@,$datadir,;t t
9197 s,@sysconfdir@,$sysconfdir,;t t
9198 s,@sharedstatedir@,$sharedstatedir,;t t
9199 s,@localstatedir@,$localstatedir,;t t
9200 s,@libdir@,$libdir,;t t
9201 s,@includedir@,$includedir,;t t
9202 s,@oldincludedir@,$oldincludedir,;t t
9203 s,@infodir@,$infodir,;t t
9204 s,@mandir@,$mandir,;t t
9205 s,@build_alias@,$build_alias,;t t
9206 s,@host_alias@,$host_alias,;t t
9207 s,@target_alias@,$target_alias,;t t
9208 s,@DEFS@,$DEFS,;t t
9209 s,@ECHO_C@,$ECHO_C,;t t
9210 s,@ECHO_N@,$ECHO_N,;t t
9211 s,@ECHO_T@,$ECHO_T,;t t
9212 s,@LIBS@,$LIBS,;t t
9213 s,@build@,$build,;t t
9214 s,@build_cpu@,$build_cpu,;t t
9215 s,@build_vendor@,$build_vendor,;t t
9216 s,@build_os@,$build_os,;t t
9217 s,@host@,$host,;t t
9218 s,@host_cpu@,$host_cpu,;t t
9219 s,@host_vendor@,$host_vendor,;t t
9220 s,@host_os@,$host_os,;t t
9221 s,@CC@,$CC,;t t
9222 s,@CFLAGS@,$CFLAGS,;t t
9223 s,@LDFLAGS@,$LDFLAGS,;t t
9224 s,@CPPFLAGS@,$CPPFLAGS,;t t
9225 s,@ac_ct_CC@,$ac_ct_CC,;t t
9226 s,@EXEEXT@,$EXEEXT,;t t
9227 s,@OBJEXT@,$OBJEXT,;t t
9228 s,@CPP@,$CPP,;t t
9229 s,@AWK@,$AWK,;t t
9230 s,@MMAKE@,$MMAKE,;t t
9231 s,@aros_host_ld@,$aros_host_ld,;t t
9232 s,@HOST_AR@,$HOST_AR,;t t
9233 s,@HOST_RANLIB@,$HOST_RANLIB,;t t
9234 s,@RM@,$RM,;t t
9235 s,@CP@,$CP,;t t
9236 s,@MV@,$MV,;t t
9237 s,@ECHO@,$ECHO,;t t
9238 s,@MKDIR@,$MKDIR,;t t
9239 s,@TOUCH@,$TOUCH,;t t
9240 s,@SORT@,$SORT,;t t
9241 s,@UNIQ@,$UNIQ,;t t
9242 s,@NOP@,$NOP,;t t
9243 s,@CAT@,$CAT,;t t
9244 s,@BISON@,$BISON,;t t
9245 s,@PNGTOPNM@,$PNGTOPNM,;t t
9246 s,@PPMTOILBM@,$PPMTOILBM,;t t
9247 s,@STRIP@,$STRIP,;t t
9248 s,@SED@,$SED,;t t
9249 s,@CHMOD@,$CHMOD,;t t
9250 s,@PYTHON@,$PYTHON,;t t
9251 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
9252 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
9253 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
9254 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
9255 s,@pythondir@,$pythondir,;t t
9256 s,@pkgpythondir@,$pkgpythondir,;t t
9257 s,@pyexecdir@,$pyexecdir,;t t
9258 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
9259 s,@FOR@,$FOR,;t t
9260 s,@IF@,$IF,;t t
9261 s,@TEST@,$TEST,;t t
9262 s,@EGREP@,$EGREP,;t t
9263 s,@LIBOBJS@,$LIBOBJS,;t t
9264 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
9265 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
9266 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
9267 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
9268 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
9269 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
9270 s,@DISTCC@,$DISTCC,;t t
9271 s,@CCACHE@,$CCACHE,;t t
9272 s,@SHARED_LD@,$SHARED_LD,;t t
9273 s,@KERNEL_LD@,$KERNEL_LD,;t t
9274 s,@TARGET_CC@,$TARGET_CC,;t t
9275 s,@TARGET_AS@,$TARGET_AS,;t t
9276 s,@TARGET_LD@,$TARGET_LD,;t t
9277 s,@NOSTDINC_CFLAGS@,$NOSTDINC_CFLAGS,;t t
9278 s,@NOSTARTUP_LDFLAGS@,$NOSTARTUP_LDFLAGS,;t t
9279 s,@NIX_LDFLAGS@,$NIX_LDFLAGS,;t t
9280 s,@DETACH_LDFLAGS@,$DETACH_LDFLAGS,;t t
9281 s,@NOSTDLIB_LDFLAGS@,$NOSTDLIB_LDFLAGS,;t t
9282 s,@aros_cc_pre@,$aros_cc_pre,;t t
9283 s,@AR@,$AR,;t t
9284 s,@RANLIB@,$RANLIB,;t t
9285 s,@NM@,$NM,;t t
9286 s,@NM_PLAIN@,$NM_PLAIN,;t t
9287 s,@OBJDUMP@,$OBJDUMP,;t t
9288 s,@OBJCOPY@,$OBJCOPY,;t t
9289 s,@aros_arch@,$aros_arch,;t t
9290 s,@aros_cpu@,$aros_cpu,;t t
9291 s,@aros_flavour@,$aros_flavour,;t t
9292 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
9293 s,@TOPDIR@,$TOPDIR,;t t
9294 s,@aros_host_arch@,$aros_host_arch,;t t
9295 s,@aros_host_cpu@,$aros_host_cpu,;t t
9296 s,@aros_host_cc@,$aros_host_cc,;t t
9297 s,@aros_host_make@,$aros_host_make,;t t
9298 s,@aros_host_cflags@,$aros_host_cflags,;t t
9299 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
9300 s,@aros_host_debug@,$aros_host_debug,;t t
9301 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
9302 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
9303 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
9304 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
9305 s,@aros_tools_dir@,$aros_tools_dir,;t t
9306 s,@aros_target_arch@,$aros_target_arch,;t t
9307 s,@aros_target_cpu@,$aros_target_cpu,;t t
9308 s,@aros_target_variant@,$aros_target_variant,;t t
9309 s,@aros_target_suffix@,$aros_target_suffix,;t t
9310 s,@aros_target_incl@,$aros_target_incl,;t t
9311 s,@aros_target_cc@,$aros_target_cc,;t t
9312 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
9313 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
9314 s,@aros_target_objdump@,$aros_target_objdump,;t t
9315 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
9316 s,@aros_target_strip@,$aros_target_strip,;t t
9317 s,@aros_target_as@,$aros_target_as,;t t
9318 s,@aros_target_nm@,$aros_target_nm,;t t
9319 s,@aros_shared_default@,$aros_shared_default,;t t
9320 s,@aros_object_format@,$aros_object_format,;t t
9321 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
9322 s,@aros_config_cflags@,$aros_config_cflags,;t t
9323 s,@aros_config_aflags@,$aros_config_aflags,;t t
9324 s,@aros_target_ld@,$aros_target_ld,;t t
9325 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
9326 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
9327 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
9328 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
9329 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
9330 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
9331 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
9332 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
9333 s,@aros_target_genmap@,$aros_target_genmap,;t t
9334 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
9335 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
9336 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
9337 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
9338 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
9339 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
9340 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
9341 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
9342 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
9343 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
9344 s,@aros_serial_debug@,$aros_serial_debug,;t t
9345 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
9346 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
9347 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
9348 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
9349 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
9350 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
9351 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
9352 s,@aros_debug@,$aros_debug,;t t
9353 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
9354 s,@aros_stack_debug@,$aros_stack_debug,;t t
9355 s,@aros_modules_debug@,$aros_modules_debug,;t t
9356 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
9357 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
9358 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9359 CEOF
9361 _ACEOF
9363 cat >>$CONFIG_STATUS <<\_ACEOF
9364 # Split the substitutions into bite-sized pieces for seds with
9365 # small command number limits, like on Digital OSF/1 and HP-UX.
9366 ac_max_sed_lines=48
9367 ac_sed_frag=1 # Number of current file.
9368 ac_beg=1 # First line for current file.
9369 ac_end=$ac_max_sed_lines # Line after last line for current file.
9370 ac_more_lines=:
9371 ac_sed_cmds=
9372 while $ac_more_lines; do
9373 if test $ac_beg -gt 1; then
9374 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9375 else
9376 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9378 if test ! -s $tmp/subs.frag; then
9379 ac_more_lines=false
9380 else
9381 # The purpose of the label and of the branching condition is to
9382 # speed up the sed processing (if there are no `@' at all, there
9383 # is no need to browse any of the substitutions).
9384 # These are the two extra sed commands mentioned above.
9385 (echo ':t
9386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9387 if test -z "$ac_sed_cmds"; then
9388 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9389 else
9390 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9392 ac_sed_frag=`expr $ac_sed_frag + 1`
9393 ac_beg=$ac_end
9394 ac_end=`expr $ac_end + $ac_max_sed_lines`
9396 done
9397 if test -z "$ac_sed_cmds"; then
9398 ac_sed_cmds=cat
9400 fi # test -n "$CONFIG_FILES"
9402 _ACEOF
9403 cat >>$CONFIG_STATUS <<\_ACEOF
9404 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9406 case $ac_file in
9407 - | *:- | *:-:* ) # input from stdin
9408 cat >$tmp/stdin
9409 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9410 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9411 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9412 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9413 * ) ac_file_in=$ac_file.in ;;
9414 esac
9416 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9417 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9419 X"$ac_file" : 'X\(//\)[^/]' \| \
9420 X"$ac_file" : 'X\(//\)$' \| \
9421 X"$ac_file" : 'X\(/\)' \| \
9422 . : '\(.\)' 2>/dev/null ||
9423 echo X"$ac_file" |
9424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9426 /^X\(\/\/\)$/{ s//\1/; q; }
9427 /^X\(\/\).*/{ s//\1/; q; }
9428 s/.*/./; q'`
9429 { if $as_mkdir_p; then
9430 mkdir -p "$ac_dir"
9431 else
9432 as_dir="$ac_dir"
9433 as_dirs=
9434 while test ! -d "$as_dir"; do
9435 as_dirs="$as_dir $as_dirs"
9436 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9438 X"$as_dir" : 'X\(//\)[^/]' \| \
9439 X"$as_dir" : 'X\(//\)$' \| \
9440 X"$as_dir" : 'X\(/\)' \| \
9441 . : '\(.\)' 2>/dev/null ||
9442 echo X"$as_dir" |
9443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9445 /^X\(\/\/\)$/{ s//\1/; q; }
9446 /^X\(\/\).*/{ s//\1/; q; }
9447 s/.*/./; q'`
9448 done
9449 test ! -n "$as_dirs" || mkdir $as_dirs
9450 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9451 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9452 { (exit 1); exit 1; }; }; }
9454 ac_builddir=.
9456 if test "$ac_dir" != .; then
9457 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9458 # A "../" for each directory in $ac_dir_suffix.
9459 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9460 else
9461 ac_dir_suffix= ac_top_builddir=
9464 case $srcdir in
9465 .) # No --srcdir option. We are building in place.
9466 ac_srcdir=.
9467 if test -z "$ac_top_builddir"; then
9468 ac_top_srcdir=.
9469 else
9470 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9471 fi ;;
9472 [\\/]* | ?:[\\/]* ) # Absolute path.
9473 ac_srcdir=$srcdir$ac_dir_suffix;
9474 ac_top_srcdir=$srcdir ;;
9475 *) # Relative path.
9476 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9477 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9478 esac
9480 # Do not use `cd foo && pwd` to compute absolute paths, because
9481 # the directories may not exist.
9482 case `pwd` in
9483 .) ac_abs_builddir="$ac_dir";;
9485 case "$ac_dir" in
9486 .) ac_abs_builddir=`pwd`;;
9487 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9488 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9489 esac;;
9490 esac
9491 case $ac_abs_builddir in
9492 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9494 case ${ac_top_builddir}. in
9495 .) ac_abs_top_builddir=$ac_abs_builddir;;
9496 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9497 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9498 esac;;
9499 esac
9500 case $ac_abs_builddir in
9501 .) ac_abs_srcdir=$ac_srcdir;;
9503 case $ac_srcdir in
9504 .) ac_abs_srcdir=$ac_abs_builddir;;
9505 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9506 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9507 esac;;
9508 esac
9509 case $ac_abs_builddir in
9510 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9512 case $ac_top_srcdir in
9513 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9514 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9515 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9516 esac;;
9517 esac
9521 if test x"$ac_file" != x-; then
9522 { echo "$as_me:$LINENO: creating $ac_file" >&5
9523 echo "$as_me: creating $ac_file" >&6;}
9524 rm -f "$ac_file"
9526 # Let's still pretend it is `configure' which instantiates (i.e., don't
9527 # use $as_me), people would be surprised to read:
9528 # /* config.h. Generated by config.status. */
9529 if test x"$ac_file" = x-; then
9530 configure_input=
9531 else
9532 configure_input="$ac_file. "
9534 configure_input=$configure_input"Generated from `echo $ac_file_in |
9535 sed 's,.*/,,'` by configure."
9537 # First look for the input files in the build tree, otherwise in the
9538 # src tree.
9539 ac_file_inputs=`IFS=:
9540 for f in $ac_file_in; do
9541 case $f in
9542 -) echo $tmp/stdin ;;
9543 [\\/$]*)
9544 # Absolute (can't be DOS-style, as IFS=:)
9545 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9546 echo "$as_me: error: cannot find input file: $f" >&2;}
9547 { (exit 1); exit 1; }; }
9548 echo "$f";;
9549 *) # Relative
9550 if test -f "$f"; then
9551 # Build tree
9552 echo "$f"
9553 elif test -f "$srcdir/$f"; then
9554 # Source tree
9555 echo "$srcdir/$f"
9556 else
9557 # /dev/null tree
9558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9559 echo "$as_me: error: cannot find input file: $f" >&2;}
9560 { (exit 1); exit 1; }; }
9561 fi;;
9562 esac
9563 done` || { (exit 1); exit 1; }
9564 _ACEOF
9565 cat >>$CONFIG_STATUS <<_ACEOF
9566 sed "$ac_vpsub
9567 $extrasub
9568 _ACEOF
9569 cat >>$CONFIG_STATUS <<\_ACEOF
9571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9572 s,@configure_input@,$configure_input,;t t
9573 s,@srcdir@,$ac_srcdir,;t t
9574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9575 s,@top_srcdir@,$ac_top_srcdir,;t t
9576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9577 s,@builddir@,$ac_builddir,;t t
9578 s,@abs_builddir@,$ac_abs_builddir,;t t
9579 s,@top_builddir@,$ac_top_builddir,;t t
9580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9581 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9582 rm -f $tmp/stdin
9583 if test x"$ac_file" != x-; then
9584 mv $tmp/out $ac_file
9585 else
9586 cat $tmp/out
9587 rm -f $tmp/out
9590 done
9591 _ACEOF
9592 cat >>$CONFIG_STATUS <<\_ACEOF
9595 # CONFIG_HEADER section.
9598 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9599 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9601 # ac_d sets the value in "#define NAME VALUE" lines.
9602 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9603 ac_dB='[ ].*$,\1#\2'
9604 ac_dC=' '
9605 ac_dD=',;t'
9606 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9607 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9608 ac_uB='$,\1#\2define\3'
9609 ac_uC=' '
9610 ac_uD=',;t'
9612 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9613 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9614 case $ac_file in
9615 - | *:- | *:-:* ) # input from stdin
9616 cat >$tmp/stdin
9617 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9619 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9620 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9621 * ) ac_file_in=$ac_file.in ;;
9622 esac
9624 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9625 echo "$as_me: creating $ac_file" >&6;}
9627 # First look for the input files in the build tree, otherwise in the
9628 # src tree.
9629 ac_file_inputs=`IFS=:
9630 for f in $ac_file_in; do
9631 case $f in
9632 -) echo $tmp/stdin ;;
9633 [\\/$]*)
9634 # Absolute (can't be DOS-style, as IFS=:)
9635 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9636 echo "$as_me: error: cannot find input file: $f" >&2;}
9637 { (exit 1); exit 1; }; }
9638 # Do quote $f, to prevent DOS paths from being IFS'd.
9639 echo "$f";;
9640 *) # Relative
9641 if test -f "$f"; then
9642 # Build tree
9643 echo "$f"
9644 elif test -f "$srcdir/$f"; then
9645 # Source tree
9646 echo "$srcdir/$f"
9647 else
9648 # /dev/null tree
9649 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9650 echo "$as_me: error: cannot find input file: $f" >&2;}
9651 { (exit 1); exit 1; }; }
9652 fi;;
9653 esac
9654 done` || { (exit 1); exit 1; }
9655 # Remove the trailing spaces.
9656 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9658 _ACEOF
9660 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9661 # `conftest.undefs', that substitutes the proper values into
9662 # config.h.in to produce config.h. The first handles `#define'
9663 # templates, and the second `#undef' templates.
9664 # And first: Protect against being on the right side of a sed subst in
9665 # config.status. Protect against being in an unquoted here document
9666 # in config.status.
9667 rm -f conftest.defines conftest.undefs
9668 # Using a here document instead of a string reduces the quoting nightmare.
9669 # Putting comments in sed scripts is not portable.
9671 # `end' is used to avoid that the second main sed command (meant for
9672 # 0-ary CPP macros) applies to n-ary macro definitions.
9673 # See the Autoconf documentation for `clear'.
9674 cat >confdef2sed.sed <<\_ACEOF
9675 s/[\\&,]/\\&/g
9676 s,[\\$`],\\&,g
9677 t clear
9678 : clear
9679 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9680 t end
9681 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9682 : end
9683 _ACEOF
9684 # If some macros were called several times there might be several times
9685 # the same #defines, which is useless. Nevertheless, we may not want to
9686 # sort them, since we want the *last* AC-DEFINE to be honored.
9687 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9688 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9689 rm -f confdef2sed.sed
9691 # This sed command replaces #undef with comments. This is necessary, for
9692 # example, in the case of _POSIX_SOURCE, which is predefined and required
9693 # on some systems where configure will not decide to define it.
9694 cat >>conftest.undefs <<\_ACEOF
9695 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9696 _ACEOF
9698 # Break up conftest.defines because some shells have a limit on the size
9699 # of here documents, and old seds have small limits too (100 cmds).
9700 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9701 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9702 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9703 echo ' :' >>$CONFIG_STATUS
9704 rm -f conftest.tail
9705 while grep . conftest.defines >/dev/null
9707 # Write a limited-size here document to $tmp/defines.sed.
9708 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9709 # Speed up: don't consider the non `#define' lines.
9710 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9711 # Work around the forget-to-reset-the-flag bug.
9712 echo 't clr' >>$CONFIG_STATUS
9713 echo ': clr' >>$CONFIG_STATUS
9714 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9715 echo 'CEOF
9716 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9717 rm -f $tmp/in
9718 mv $tmp/out $tmp/in
9719 ' >>$CONFIG_STATUS
9720 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9721 rm -f conftest.defines
9722 mv conftest.tail conftest.defines
9723 done
9724 rm -f conftest.defines
9725 echo ' fi # grep' >>$CONFIG_STATUS
9726 echo >>$CONFIG_STATUS
9728 # Break up conftest.undefs because some shells have a limit on the size
9729 # of here documents, and old seds have small limits too (100 cmds).
9730 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9731 rm -f conftest.tail
9732 while grep . conftest.undefs >/dev/null
9734 # Write a limited-size here document to $tmp/undefs.sed.
9735 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9736 # Speed up: don't consider the non `#undef'
9737 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9738 # Work around the forget-to-reset-the-flag bug.
9739 echo 't clr' >>$CONFIG_STATUS
9740 echo ': clr' >>$CONFIG_STATUS
9741 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9742 echo 'CEOF
9743 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9744 rm -f $tmp/in
9745 mv $tmp/out $tmp/in
9746 ' >>$CONFIG_STATUS
9747 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9748 rm -f conftest.undefs
9749 mv conftest.tail conftest.undefs
9750 done
9751 rm -f conftest.undefs
9753 cat >>$CONFIG_STATUS <<\_ACEOF
9754 # Let's still pretend it is `configure' which instantiates (i.e., don't
9755 # use $as_me), people would be surprised to read:
9756 # /* config.h. Generated by config.status. */
9757 if test x"$ac_file" = x-; then
9758 echo "/* Generated by configure. */" >$tmp/config.h
9759 else
9760 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9762 cat $tmp/in >>$tmp/config.h
9763 rm -f $tmp/in
9764 if test x"$ac_file" != x-; then
9765 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9766 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9767 echo "$as_me: $ac_file is unchanged" >&6;}
9768 else
9769 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9771 X"$ac_file" : 'X\(//\)[^/]' \| \
9772 X"$ac_file" : 'X\(//\)$' \| \
9773 X"$ac_file" : 'X\(/\)' \| \
9774 . : '\(.\)' 2>/dev/null ||
9775 echo X"$ac_file" |
9776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9778 /^X\(\/\/\)$/{ s//\1/; q; }
9779 /^X\(\/\).*/{ s//\1/; q; }
9780 s/.*/./; q'`
9781 { if $as_mkdir_p; then
9782 mkdir -p "$ac_dir"
9783 else
9784 as_dir="$ac_dir"
9785 as_dirs=
9786 while test ! -d "$as_dir"; do
9787 as_dirs="$as_dir $as_dirs"
9788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9790 X"$as_dir" : 'X\(//\)[^/]' \| \
9791 X"$as_dir" : 'X\(//\)$' \| \
9792 X"$as_dir" : 'X\(/\)' \| \
9793 . : '\(.\)' 2>/dev/null ||
9794 echo X"$as_dir" |
9795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9797 /^X\(\/\/\)$/{ s//\1/; q; }
9798 /^X\(\/\).*/{ s//\1/; q; }
9799 s/.*/./; q'`
9800 done
9801 test ! -n "$as_dirs" || mkdir $as_dirs
9802 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9803 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9804 { (exit 1); exit 1; }; }; }
9806 rm -f $ac_file
9807 mv $tmp/config.h $ac_file
9809 else
9810 cat $tmp/config.h
9811 rm -f $tmp/config.h
9813 done
9814 _ACEOF
9815 cat >>$CONFIG_STATUS <<\_ACEOF
9818 # CONFIG_COMMANDS section.
9820 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9821 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9822 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9823 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9824 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9825 X"$ac_dest" : 'X\(//\)[^/]' \| \
9826 X"$ac_dest" : 'X\(//\)$' \| \
9827 X"$ac_dest" : 'X\(/\)' \| \
9828 . : '\(.\)' 2>/dev/null ||
9829 echo X"$ac_dest" |
9830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9832 /^X\(\/\/\)$/{ s//\1/; q; }
9833 /^X\(\/\).*/{ s//\1/; q; }
9834 s/.*/./; q'`
9835 { if $as_mkdir_p; then
9836 mkdir -p "$ac_dir"
9837 else
9838 as_dir="$ac_dir"
9839 as_dirs=
9840 while test ! -d "$as_dir"; do
9841 as_dirs="$as_dir $as_dirs"
9842 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9844 X"$as_dir" : 'X\(//\)[^/]' \| \
9845 X"$as_dir" : 'X\(//\)$' \| \
9846 X"$as_dir" : 'X\(/\)' \| \
9847 . : '\(.\)' 2>/dev/null ||
9848 echo X"$as_dir" |
9849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9851 /^X\(\/\/\)$/{ s//\1/; q; }
9852 /^X\(\/\).*/{ s//\1/; q; }
9853 s/.*/./; q'`
9854 done
9855 test ! -n "$as_dirs" || mkdir $as_dirs
9856 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9857 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9858 { (exit 1); exit 1; }; }; }
9860 ac_builddir=.
9862 if test "$ac_dir" != .; then
9863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9864 # A "../" for each directory in $ac_dir_suffix.
9865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9866 else
9867 ac_dir_suffix= ac_top_builddir=
9870 case $srcdir in
9871 .) # No --srcdir option. We are building in place.
9872 ac_srcdir=.
9873 if test -z "$ac_top_builddir"; then
9874 ac_top_srcdir=.
9875 else
9876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9877 fi ;;
9878 [\\/]* | ?:[\\/]* ) # Absolute path.
9879 ac_srcdir=$srcdir$ac_dir_suffix;
9880 ac_top_srcdir=$srcdir ;;
9881 *) # Relative path.
9882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9884 esac
9886 # Do not use `cd foo && pwd` to compute absolute paths, because
9887 # the directories may not exist.
9888 case `pwd` in
9889 .) ac_abs_builddir="$ac_dir";;
9891 case "$ac_dir" in
9892 .) ac_abs_builddir=`pwd`;;
9893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9895 esac;;
9896 esac
9897 case $ac_abs_builddir in
9898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9900 case ${ac_top_builddir}. in
9901 .) ac_abs_top_builddir=$ac_abs_builddir;;
9902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9904 esac;;
9905 esac
9906 case $ac_abs_builddir in
9907 .) ac_abs_srcdir=$ac_srcdir;;
9909 case $ac_srcdir in
9910 .) ac_abs_srcdir=$ac_abs_builddir;;
9911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9913 esac;;
9914 esac
9915 case $ac_abs_builddir in
9916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9918 case $ac_top_srcdir in
9919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9922 esac;;
9923 esac
9926 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9927 echo "$as_me: executing $ac_dest commands" >&6;}
9928 case $ac_dest in
9929 compiler_executable )
9930 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
9931 mkdir -p $prefix
9932 prefix="${prefix}/${aros_target_cpu}-aros"
9933 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
9935 echo ${prefix}
9936 echo ${prefix2}
9937 chmod a+x ${prefix2}-gcc ${prefix2}-ld
9939 ln -sf ${prefix2}-gcc ${prefix}-gcc
9940 ln -sf ${prefix2}-ld ${prefix}-ld
9942 ln -sf $aros_target_nm_ln ${prefix}-nm
9943 ln -sf $aros_target_ar_ln ${prefix}-ar
9944 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
9945 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
9946 ln -sf $aros_target_objdump_ln ${prefix}-objdump
9947 ln -sf $aros_target_strip_ln ${prefix}-strip
9949 ln -sf $aros_target_nm_ln ${prefix2}-nm
9950 ln -sf $aros_target_ar_ln ${prefix2}-ar
9951 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
9952 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
9953 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
9954 ln -sf $aros_target_strip_ln ${prefix2}-strip
9956 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
9957 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
9958 adflib/myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
9960 esac
9961 done
9962 _ACEOF
9964 cat >>$CONFIG_STATUS <<\_ACEOF
9966 { (exit 0); exit 0; }
9967 _ACEOF
9968 chmod +x $CONFIG_STATUS
9969 ac_clean_files=$ac_clean_files_save
9972 # configure is writing to config.log, and then calls config.status.
9973 # config.status does its own redirection, appending to config.log.
9974 # Unfortunately, on DOS this fails, as config.log is still kept open
9975 # by configure, so config.status won't be able to write to it; its
9976 # output is simply discarded. So we exec the FD to /dev/null,
9977 # effectively closing config.log, so it can be properly (re)opened and
9978 # appended to by config.status. When coming back to configure, we
9979 # need to make the FD available again.
9980 if test "$no_create" != yes; then
9981 ac_cs_success=:
9982 ac_config_status_args=
9983 test "$silent" = yes &&
9984 ac_config_status_args="$ac_config_status_args --quiet"
9985 exec 5>/dev/null
9986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9987 exec 5>>config.log
9988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9989 # would make configure fail if this is the last instruction.
9990 $ac_cs_success || { (exit 1); exit 1; }
9995 #XXX compatability...
9996 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
9998 if test -n "$aros_shared_cflags" ; then
9999 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10000 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg