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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
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.
274 ac_unique_file
="mmakefile"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
430 -help |
--help |
--hel |
--he |
-h)
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)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
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)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
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'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
609 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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}
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.
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.
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 \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
835 --x-includes=DIR X include files are
in DIR
836 --x-libraries=DIR X library files are
in DIR
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
844 if test -n "$ac_init_help"; then
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.
862 --enable-distcc Use distcc as a front end to the compiler
864 --enable-ccache Use ccache as a front end to the compiler
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
)
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
>
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.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
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'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo
&& pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
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}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
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;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
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.
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
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
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
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.
1063 ac_must_keep_next=false
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)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
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.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core
*.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1333 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1334 if test -f $ac_dir/install-sh; then
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 elif test -f $ac_dir/install.sh; then
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 elif test -f $ac_dir/shtool; then
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
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
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
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
1429 if test "$target" = "" ; then
1430 target
=$host_os-$host_cpu
1436 echo "$as_me:$LINENO: result: $target" >&5
1437 echo "${ECHO_T}$target" >&6
1439 #don't know where else to put this...
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.
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
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC
="$CC" # Let the user override the test.
1471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1497 if test -z "$ac_cv_prog_CC"; then
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
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
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
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC
="$CC" # Let the user override the test.
1551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1577 if test -z "$ac_cv_prog_CC"; then
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
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
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
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC
="$CC" # Let the user override the test.
1632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1659 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
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
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
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC
="$CC" # Let the user override the test.
1688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$CC" && break
1716 if test -z "$CC"; then
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
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$ac_ct_CC" && break
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
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
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
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1790 cat >conftest.
$ac_ext <<_ACEOF
1793 cat confdefs.h
>>conftest.
$ac_ext
1794 cat >>conftest.
$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
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
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
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
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.
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
1830 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1833 # This is the source file.
1836 # We found the default executable, but exeext='' is most
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.
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
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 if test "$cross_compiling" = maybe
; then
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
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
1916 for ac_file
in conftest.exe conftest conftest.
*; do
1917 test -f "$ac_file" ||
continue
1919 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1920 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
1946 cat >conftest.
$ac_ext <<_ACEOF
1949 cat confdefs.h
>>conftest.
$ac_ext
1950 cat >>conftest.
$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1961 rm -f conftest.o conftest.obj
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
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
1969 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1970 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
1996 cat >conftest.
$ac_ext <<_ACEOF
1999 cat confdefs.h
>>conftest.
$ac_ext
2000 cat >>conftest.
$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2014 rm -f conftest.
$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
2018 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
2058 cat >conftest.
$ac_ext <<_ACEOF
2061 cat confdefs.h
>>conftest.
$ac_ext
2062 cat >>conftest.
$ac_ext <<_ACEOF
2063 /* end confdefs.h. */
2073 rm -f conftest.
$ac_objext
2074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>conftest.er1
2077 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.
$ac_ext >&5
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
2115 if test "$GCC" = yes; then
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
2126 ac_cv_prog_cc_stdc
=no
2128 cat >conftest.
$ac_ext <<_ACEOF
2131 cat confdefs.h
>>conftest.
$ac_ext
2132 cat >>conftest.
$ac_ext <<_ACEOF
2133 /* end confdefs.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)
2147 static char *f (char * (*g) (char **, int), char **p, ...)
2152 s = g (p, va_arg (v,int));
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);
2175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
2194 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc
=$ac_arg
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.
$ac_ext >&5
2219 rm -f conftest.err conftest.
$ac_objext
2221 rm -f conftest.
$ac_ext conftest.
$ac_objext
2226 case "x$ac_cv_prog_cc_stdc" in
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" ;;
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
2245 rm -f conftest.
$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2249 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 for ac_declaration
in \
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);' \
2275 cat >conftest.
$ac_ext <<_ACEOF
2278 cat confdefs.h
>>conftest.
$ac_ext
2279 cat >>conftest.
$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2291 rm -f conftest.
$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2295 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.
$ac_ext >&5
2320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2321 cat >conftest.
$ac_ext <<_ACEOF
2324 cat confdefs.h
>>conftest.
$ac_ext
2325 cat >>conftest.
$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.
$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2340 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
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
2367 if test -n "$ac_declaration"; then
2368 echo '#ifdef __cplusplus' >>confdefs.h
2369 echo $ac_declaration >>confdefs.h
2370 echo '#endif' >>confdefs.h
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
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
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
2397 if test -z "$CPP"; then
2398 if test "${ac_cv_prog_CPP+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 # Double quotes because CPP needs to be expanded
2402 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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
2416 cat confdefs.h
>>conftest.
$ac_ext
2417 cat >>conftest.
$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2420 # include <limits.h>
2422 # include <assert.h>
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1
>conftest.err
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
2443 if test -z "$ac_cpp_err"; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.
$ac_ext >&5
2449 # Broken: fails on valid input.
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
2459 cat confdefs.h
>>conftest.
$ac_ext
2460 cat >>conftest.
$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <ac_nonexistent.h>
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2467 grep -v '^ *+' conftest.er1
>conftest.err
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
2481 if test -z "$ac_cpp_err"; then
2482 # Broken: success on invalid input.
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.
$ac_ext >&5
2488 # Passes both tests.
2492 rm -f conftest.err conftest.
$ac_ext
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
2509 echo "$as_me:$LINENO: result: $CPP" >&5
2510 echo "${ECHO_T}$CPP" >&6
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
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2527 # include <limits.h>
2529 # include <assert.h>
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2536 grep -v '^ *+' conftest.er1
>conftest.err
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
2550 if test -z "$ac_cpp_err"; then
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.
$ac_ext >&5
2556 # Broken: fails on valid input.
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
2566 cat confdefs.h
>>conftest.
$ac_ext
2567 cat >>conftest.
$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #include <ac_nonexistent.h>
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2574 grep -v '^ *+' conftest.er1
>conftest.err
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
2588 if test -z "$ac_cpp_err"; then
2589 # Broken: success on invalid input.
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.
$ac_ext >&5
2595 # Passes both tests.
2599 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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.
2624 *cygwin
* ) CYGWIN
=yes;;
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
2641 if test -n "$AWK"; then
2642 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2661 if test -n "$AWK"; then
2662 echo "$as_me:$LINENO: result: $AWK" >&5
2663 echo "${ECHO_T}$AWK" >&6
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 test -n "$AWK" && break
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
2685 if test -n "$MMAKE"; then
2686 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
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.
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
2729 case $aros_host_ld in
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`
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
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
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
2770 case $aros_host_ld in
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
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
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
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
=""
2820 aros_host_cc_pipe
="-pipe"
2823 aros_host_cc_pipe
=""
2826 aros_host_cc_pipe
=""
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
2839 aros_host_arch
="linux"
2840 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
2843 aros_host_cpu
="i386"
2846 aros_host_cpu
="m68k"
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"
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"
2868 aros_object_format
="elf_i386_fbsd"
2872 aros_object_format
="elf_i386"
2878 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
2879 aros_host_make
="gmake"
2880 aros_host_arch
="netbsd"
2883 aros_host_cpu
="i386"
2886 aros_host_cpu
="m68k"
2889 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2890 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2891 aros_host_cpu
="$host_cpu"
2894 aros_host_lib_suffix
=".0.0"
2898 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
2899 aros_host_make
="gmake"
2900 aros_host_arch
="openbsd"
2903 aros_host_cpu
="i386"
2906 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2907 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2908 aros_host_cpu
="$host_cpu"
2914 aros_host_arch
="solaris"
2915 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
2918 aros_host_cpu
="sparc"
2921 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2922 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2923 aros_host_cpu
="$host_cpu"
2929 aros_host_cc
="$aros_host_cc"
2930 aros_host_arch
="morphos"
2935 aros_host_arch
="amiga"
2940 TOUCH
="/gg/bin/touch"
2943 aros_host_cpu
="m68k"
2949 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2950 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2951 aros_host_cpu
="$host_cpu"
2957 aros_host_arch
="cygwin"
2958 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
2961 aros_host_cpu
="i386"
2964 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2965 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2966 aros_host_cpu
="$host_cpu"
2971 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
2972 echo "$as_me: error: Unsupported host architecture $host" >&2;}
2973 { (exit 1); exit 1; }; }
2977 # Extract the first word of "ar", so it can be a program name with args.
2978 set dummy
ar; ac_word
=$2
2979 echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981 if test "${ac_cv_prog_HOST_AR+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if test -n "$HOST_AR"; then
2985 ac_cv_prog_HOST_AR
="$HOST_AR" # Let the user override the test.
2987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir
=.
2992 for ac_exec_ext
in '' $ac_executable_extensions; do
2993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_HOST_AR
="ar"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 HOST_AR
=$ac_cv_prog_HOST_AR
3004 if test -n "$HOST_AR"; then
3005 echo "$as_me:$LINENO: result: $HOST_AR" >&5
3006 echo "${ECHO_T}$HOST_AR" >&6
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3012 HOST_AR
="$HOST_AR cr"
3014 if test "$HOST_AR" = ""; then
3015 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3016 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3017 { (exit 1); exit 1; }; }
3019 # Extract the first word of "ranlib", so it can be a program name with args.
3020 set dummy ranlib
; ac_word
=$2
3021 echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023 if test "${ac_cv_prog_HOST_RANLIB+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 if test -n "$HOST_RANLIB"; then
3027 ac_cv_prog_HOST_RANLIB
="$HOST_RANLIB" # Let the user override the test.
3029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir
=.
3034 for ac_exec_ext
in '' $ac_executable_extensions; do
3035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_HOST_RANLIB
="ranlib"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 HOST_RANLIB
=$ac_cv_prog_HOST_RANLIB
3046 if test -n "$HOST_RANLIB"; then
3047 echo "$as_me:$LINENO: result: $HOST_RANLIB" >&5
3048 echo "${ECHO_T}$HOST_RANLIB" >&6
3050 echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3057 # Extract the first word of "rm", so it can be a program name with args.
3058 set dummy
rm; ac_word
=$2
3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_prog_RM+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if test -n "$RM"; then
3065 ac_cv_prog_RM
="$RM" # Let the user override the test.
3067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir
=.
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$RM"; then
3085 echo "$as_me:$LINENO: result: $RM" >&5
3086 echo "${ECHO_T}$RM" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3094 if test "$RM" = ""; then
3095 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3096 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3097 { (exit 1); exit 1; }; }
3099 # Extract the first word of "cp", so it can be a program name with args.
3100 set dummy
cp; ac_word
=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_CP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if test -n "$CP"; then
3107 ac_cv_prog_CP
="$CP" # Let the user override the test.
3109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir
=.
3114 for ac_exec_ext
in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$CP"; then
3127 echo "$as_me:$LINENO: result: $CP" >&5
3128 echo "${ECHO_T}$CP" >&6
3130 echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3136 if test "$CP" = ""; then
3137 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3138 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3139 { (exit 1); exit 1; }; }
3141 # Extract the first word of "mv", so it can be a program name with args.
3142 set dummy
mv; ac_word
=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_MV+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$MV"; then
3149 ac_cv_prog_MV
="$MV" # Let the user override the test.
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_exec_ext
in '' $ac_executable_extensions; do
3157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$MV"; then
3169 echo "$as_me:$LINENO: result: $MV" >&5
3170 echo "${ECHO_T}$MV" >&6
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3178 if test "$MV" = ""; then
3179 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3180 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3181 { (exit 1); exit 1; }; }
3183 # Extract the first word of "echo", so it can be a program name with args.
3184 set dummy
echo; ac_word
=$2
3185 echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187 if test "${ac_cv_prog_ECHO+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if test -n "$ECHO"; then
3191 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ECHO
="echo"
3201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 ECHO
=$ac_cv_prog_ECHO
3210 if test -n "$ECHO"; then
3211 echo "$as_me:$LINENO: result: $ECHO" >&5
3212 echo "${ECHO_T}$ECHO" >&6
3214 echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3220 if test "$ECHO" = ""; then
3221 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3222 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3223 { (exit 1); exit 1; }; }
3225 # Extract the first word of "mkdir", so it can be a program name with args.
3226 set dummy mkdir
; ac_word
=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_MKDIR+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$MKDIR"; then
3233 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
3235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir
=.
3240 for ac_exec_ext
in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_MKDIR
="mkdir"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 MKDIR
=$ac_cv_prog_MKDIR
3252 if test -n "$MKDIR"; then
3253 echo "$as_me:$LINENO: result: $MKDIR" >&5
3254 echo "${ECHO_T}$MKDIR" >&6
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3262 if test "$MKDIR" = ""; then
3263 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3264 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3265 { (exit 1); exit 1; }; }
3267 # Extract the first word of "touch", so it can be a program name with args.
3268 set dummy
touch; ac_word
=$2
3269 echo "$as_me:$LINENO: checking for $ac_word" >&5
3270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271 if test "${ac_cv_prog_TOUCH+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 if test -n "$TOUCH"; then
3275 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
3277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir
=.
3282 for ac_exec_ext
in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_TOUCH
="touch"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 TOUCH
=$ac_cv_prog_TOUCH
3294 if test -n "$TOUCH"; then
3295 echo "$as_me:$LINENO: result: $TOUCH" >&5
3296 echo "${ECHO_T}$TOUCH" >&6
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3304 if test "$TOUCH" = ""; then
3305 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3306 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3307 { (exit 1); exit 1; }; }
3309 # Extract the first word of "sort", so it can be a program name with args.
3310 set dummy
sort; ac_word
=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_SORT+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$SORT"; then
3317 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir
=.
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_SORT
="sort"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 SORT
=$ac_cv_prog_SORT
3336 if test -n "$SORT"; then
3337 echo "$as_me:$LINENO: result: $SORT" >&5
3338 echo "${ECHO_T}$SORT" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3346 if test "$SORT" = ""; then
3347 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3348 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3349 { (exit 1); exit 1; }; }
3351 # Extract the first word of "uniq", so it can be a program name with args.
3352 set dummy
uniq; ac_word
=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_UNIQ+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$UNIQ"; then
3359 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
3361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir
=.
3366 for ac_exec_ext
in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_UNIQ
="uniq"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 UNIQ
=$ac_cv_prog_UNIQ
3378 if test -n "$UNIQ"; then
3379 echo "$as_me:$LINENO: result: $UNIQ" >&5
3380 echo "${ECHO_T}$UNIQ" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3388 if test "$UNIQ" = ""; then
3389 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3390 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3391 { (exit 1); exit 1; }; }
3393 # Extract the first word of "true", so it can be a program name with args.
3394 set dummy true
; ac_word
=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_NOP+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$NOP"; then
3401 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_NOP
="true"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$NOP"; then
3421 echo "$as_me:$LINENO: result: $NOP" >&5
3422 echo "${ECHO_T}$NOP" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3430 if test "$NOP" = ""; then
3431 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3432 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3433 { (exit 1); exit 1; }; }
3435 # Extract the first word of "cat", so it can be a program name with args.
3436 set dummy
cat; ac_word
=$2
3437 echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439 if test "${ac_cv_prog_CAT+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if test -n "$CAT"; then
3443 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
3445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir
=.
3450 for ac_exec_ext
in '' $ac_executable_extensions; do
3451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CAT
="cat"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test -n "$CAT"; then
3463 echo "$as_me:$LINENO: result: $CAT" >&5
3464 echo "${ECHO_T}$CAT" >&6
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3472 if test "$CAT" = ""; then
3473 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3474 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3475 { (exit 1); exit 1; }; }
3477 # Extract the first word of "bison", so it can be a program name with args.
3478 set dummy bison
; ac_word
=$2
3479 echo "$as_me:$LINENO: checking for $ac_word" >&5
3480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481 if test "${ac_cv_prog_BISON+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 if test -n "$BISON"; then
3485 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3491 test -z "$as_dir" && as_dir
=.
3492 for ac_exec_ext
in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_BISON
="bison"
3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 BISON
=$ac_cv_prog_BISON
3504 if test -n "$BISON"; then
3505 echo "$as_me:$LINENO: result: $BISON" >&5
3506 echo "${ECHO_T}$BISON" >&6
3508 echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6
3514 if test "$BISON" = ""; then
3515 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3516 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3517 { (exit 1); exit 1; }; }
3519 # Extract the first word of "pngtopnm", so it can be a program name with args.
3520 set dummy pngtopnm
; ac_word
=$2
3521 echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -n "$PNGTOPNM"; then
3527 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
3529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir
=.
3534 for ac_exec_ext
in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_PNGTOPNM
="pngtopnm"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
3546 if test -n "$PNGTOPNM"; then
3547 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3548 echo "${ECHO_T}$PNGTOPNM" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3556 if test "$PNGTOPNM" = ""; then
3557 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3558 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3559 { (exit 1); exit 1; }; }
3561 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3562 set dummy ppmtoilbm
; ac_word
=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 if test -n "$PPMTOILBM"; then
3569 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
3571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir
=.
3576 for ac_exec_ext
in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_PPMTOILBM
="ppmtoilbm"
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
3588 if test -n "$PPMTOILBM"; then
3589 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3590 echo "${ECHO_T}$PPMTOILBM" >&6
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3598 if test "$PPMTOILBM" = ""; then
3599 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3600 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3601 { (exit 1); exit 1; }; }
3603 # Extract the first word of "strip", so it can be a program name with args.
3604 set dummy strip
; ac_word
=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_STRIP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -n "$STRIP"; then
3611 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_STRIP
="strip"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 STRIP
=$ac_cv_prog_STRIP
3630 if test -n "$STRIP"; then
3631 echo "$as_me:$LINENO: result: $STRIP" >&5
3632 echo "${ECHO_T}$STRIP" >&6
3634 echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3640 if test "$STRIP" = ""; then
3641 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3642 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3643 { (exit 1); exit 1; }; }
3645 # Extract the first word of "sed", so it can be a program name with args.
3646 set dummy
sed; ac_word
=$2
3647 echo "$as_me:$LINENO: checking for $ac_word" >&5
3648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3649 if test "${ac_cv_prog_SED+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 if test -n "$SED"; then
3653 ac_cv_prog_SED
="$SED" # Let the user override the test.
3655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir
=.
3660 for ac_exec_ext
in '' $ac_executable_extensions; do
3661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_SED
="sed"
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$SED"; then
3673 echo "$as_me:$LINENO: result: $SED" >&5
3674 echo "${ECHO_T}$SED" >&6
3676 echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3682 if test "$SED" = ""; then
3683 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3684 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3685 { (exit 1); exit 1; }; }
3687 # Extract the first word of "chmod", so it can be a program name with args.
3688 set dummy
chmod; ac_word
=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_CHMOD+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$CHMOD"; then
3695 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CHMOD
="chmod"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 CHMOD
=$ac_cv_prog_CHMOD
3714 if test -n "$CHMOD"; then
3715 echo "$as_me:$LINENO: result: $CHMOD" >&5
3716 echo "${ECHO_T}$CHMOD" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3724 if test "$CHMOD" = ""; then
3725 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3726 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3727 { (exit 1); exit 1; }; }
3734 if test -n "$PYTHON"; then
3735 # If the user set $PYTHON, use it and don't search something else.
3736 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3737 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3738 prog
="import sys, string
3739 # split strings by '.' and convert to numeric. Append some zeros
3740 # because we need at least 4 digits for the hex conversion.
3741 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3743 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3744 sys.exit(sys.hexversion < minverhex)"
3745 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3746 ($PYTHON -c "$prog") >&5 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; then
3750 echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6
3753 { { echo "$as_me:$LINENO: error: too old" >&5
3754 echo "$as_me: error: too old" >&2;}
3755 { (exit 1); exit 1; }; }
3759 # Otherwise, try each interpreter until we find one that satisfies
3761 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3762 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3763 if test "${am_cv_pathless_PYTHON+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 for am_cv_pathless_PYTHON
in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none
; do
3768 test "$am_cv_pathless_PYTHON" = none
&& break
3769 prog
="import sys, string
3770 # split strings by '.' and convert to numeric. Append some zeros
3771 # because we need at least 4 digits for the hex conversion.
3772 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3774 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3775 sys.exit(sys.hexversion < minverhex)"
3776 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3777 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; then
3786 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3787 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3788 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3789 if test "$am_cv_pathless_PYTHON" = none
; then
3792 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3793 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
3794 echo "$as_me:$LINENO: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_PYTHON+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
3804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir
=.
3809 for ac_exec_ext
in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 PYTHON
=$ac_cv_path_PYTHON
3823 if test -n "$PYTHON"; then
3824 echo "$as_me:$LINENO: result: $PYTHON" >&5
3825 echo "${ECHO_T}$PYTHON" >&6
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3832 am_display_PYTHON
=$am_cv_pathless_PYTHON
3836 if test "$PYTHON" = :; then
3837 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3838 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3839 { (exit 1); exit 1; }; }
3843 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3844 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3845 if test "${am_cv_python_version+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
3850 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3851 echo "${ECHO_T}$am_cv_python_version" >&6
3852 PYTHON_VERSION
=$am_cv_python_version
3856 PYTHON_PREFIX
='${prefix}'
3858 PYTHON_EXEC_PREFIX
='${exec_prefix}'
3862 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3863 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3864 if test "${am_cv_python_platform+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
3869 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3870 echo "${ECHO_T}$am_cv_python_platform" >&6
3871 PYTHON_PLATFORM
=$am_cv_python_platform
3876 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3877 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3878 if test "${am_cv_python_pythondir+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3882 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3884 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3885 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3886 pythondir
=$am_cv_python_pythondir
3890 pkgpythondir
=\
${pythondir}/$PACKAGE
3893 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
3894 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
3895 if test "${am_cv_python_pyexecdir+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
3899 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
3901 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
3902 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
3903 pyexecdir
=$am_cv_python_pyexecdir
3907 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
3923 # Check for some includes for the X11 HIDD and the kernel
3926 echo "$as_me:$LINENO: checking for egrep" >&5
3927 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3928 if test "${ac_cv_prog_egrep+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3932 then ac_cv_prog_egrep
='grep -E'
3933 else ac_cv_prog_egrep
='egrep'
3936 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3937 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3938 EGREP
=$ac_cv_prog_egrep
3941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3943 if test "${ac_cv_header_stdc+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 cat >conftest.
$ac_ext <<_ACEOF
3949 cat confdefs.h
>>conftest.
$ac_ext
3950 cat >>conftest.
$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3965 rm -f conftest.
$ac_objext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>conftest.er1
3969 grep -v '^ *+' conftest.er1
>conftest.err
3971 cat conftest.err
>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } &&
3974 { ac_try
='test -z "$ac_c_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try
='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_header_stdc
=yes
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.
$ac_ext >&5
3992 ac_cv_header_stdc
=no
3994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3996 if test $ac_cv_header_stdc = yes; then
3997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 $EGREP "memchr" >/dev
/null
2>&1; then
4011 ac_cv_header_stdc
=no
4017 if test $ac_cv_header_stdc = yes; then
4018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4019 cat >conftest.
$ac_ext <<_ACEOF
4022 cat confdefs.h
>>conftest.
$ac_ext
4023 cat >>conftest.
$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 $EGREP "free" >/dev
/null
2>&1; then
4032 ac_cv_header_stdc
=no
4038 if test $ac_cv_header_stdc = yes; then
4039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4040 if test "$cross_compiling" = yes; then
4043 cat >conftest.
$ac_ext <<_ACEOF
4046 cat confdefs.h
>>conftest.
$ac_ext
4047 cat >>conftest.
$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4050 #if ((' ' & 0x0FF) == 0x020)
4051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054 # define ISLOWER(c) \
4055 (('a' <= (c) && (c) <= 'i') \
4056 || ('j' <= (c) && (c) <= 'r') \
4057 || ('s' <= (c) && (c) <= 'z'))
4058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4066 for (i = 0; i < 256; i++)
4067 if (XOR (islower (i), ISLOWER (i))
4068 || toupper (i) != TOUPPER (i))
4073 rm -f conftest
$ac_exeext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075 (eval $ac_link) 2>&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.
$ac_ext >&5
4091 ac_cv_header_stdc
=no
4093 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4097 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4098 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4099 if test $ac_cv_header_stdc = yes; then
4101 cat >>confdefs.h
<<\_ACEOF
4102 #define STDC_HEADERS 1
4107 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4117 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4118 inttypes.h stdint.h unistd.h
4120 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4121 echo "$as_me:$LINENO: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.
$ac_ext <<_ACEOF
4129 cat confdefs.h
>>conftest.
$ac_ext
4130 cat >>conftest.
$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 $ac_includes_default
4134 #include <$ac_header>
4136 rm -f conftest.
$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1
>conftest.err
4142 cat conftest.err
>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try
='test -z "$ac_c_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try
='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 eval "$as_ac_Header=yes"
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.
$ac_ext >&5
4163 eval "$as_ac_Header=no"
4165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4170 cat >>confdefs.h
<<_ACEOF
4171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188 for ac_header
in sys
/ipc.h sys
/shm.h \
4189 sys
/mmap.h sys
/mman.h sysexits.h \
4190 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
4193 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4195 echo "$as_me:$LINENO: checking for $ac_header" >&5
4196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203 # Is the header compilable?
4204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4206 cat >conftest.
$ac_ext <<_ACEOF
4209 cat confdefs.h
>>conftest.
$ac_ext
4210 cat >>conftest.
$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 $ac_includes_default
4213 #include <$ac_header>
4215 rm -f conftest.
$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1
>conftest.err
4221 cat conftest.err
>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try
='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try
='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_header_compiler
=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.
$ac_ext >&5
4242 ac_header_compiler
=no
4244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4246 echo "${ECHO_T}$ac_header_compiler" >&6
4248 # Is the header present?
4249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4251 cat >conftest.
$ac_ext <<_ACEOF
4254 cat confdefs.h
>>conftest.
$ac_ext
4255 cat >>conftest.
$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <$ac_header>
4259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4260 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4262 grep -v '^ *+' conftest.er1
>conftest.err
4264 cat conftest.err
>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev
/null
; then
4267 if test -s conftest.err
; then
4268 ac_cpp_err
=$ac_c_preproc_warn_flag
4269 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4276 if test -z "$ac_cpp_err"; then
4277 ac_header_preproc
=yes
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.
$ac_ext >&5
4282 ac_header_preproc
=no
4284 rm -f conftest.err conftest.
$ac_ext
4285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4286 echo "${ECHO_T}$ac_header_preproc" >&6
4288 # So? What about this header?
4289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4295 ac_header_preproc
=yes
4298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4312 ## ------------------------------------------ ##
4313 ## Report this to the AC_PACKAGE_NAME lists. ##
4314 ## ------------------------------------------ ##
4317 sed "s/^/$as_me: WARNING: /" >&2
4320 echo "$as_me:$LINENO: checking for $ac_header" >&5
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 eval "$as_ac_Header=\$ac_header_preproc"
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4332 cat >>confdefs.h
<<_ACEOF
4333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342 for ac_header
in sys
/mount.h
4344 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4345 echo "$as_me:$LINENO: checking for $ac_header" >&5
4346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 cat >conftest.
$ac_ext <<_ACEOF
4353 cat confdefs.h
>>conftest.
$ac_ext
4354 cat >>conftest.
$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <sys/param.h>
4358 #include <$ac_header>
4360 rm -f conftest.
$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1
>conftest.err
4366 cat conftest.err
>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try
='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 eval "$as_ac_Header=yes"
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4387 eval "$as_ac_Header=no"
4389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4394 cat >>confdefs.h
<<_ACEOF
4395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4410 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4411 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4412 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 cat >conftest.
$ac_ext <<_ACEOF
4419 cat confdefs.h
>>conftest.
$ac_ext
4420 cat >>conftest.
$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <sys/types.h>
4434 rm -f conftest.
$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4438 grep -v '^ *+' conftest.er1
>conftest.err
4440 cat conftest.err
>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try
='test -z "$ac_c_werror_flag"
4444 || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try
='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 eval "$as_ac_Header=yes"
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.
$ac_ext >&5
4461 eval "$as_ac_Header=no"
4463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4468 cat >>confdefs.h
<<_ACEOF
4469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4472 ac_header_dirent
=$ac_hdr; break
4476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4477 if test $ac_header_dirent = dirent.h
; then
4478 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4480 if test "${ac_cv_search_opendir+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_func_search_save_LIBS
=$LIBS
4484 ac_cv_search_opendir
=no
4485 cat >conftest.
$ac_ext <<_ACEOF
4488 cat confdefs.h
>>conftest.
$ac_ext
4489 cat >>conftest.
$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4507 rm -f conftest.
$ac_objext conftest
$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_search_opendir
="none required"
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.err conftest.
$ac_objext \
4536 conftest
$ac_exeext conftest.
$ac_ext
4537 if test "$ac_cv_search_opendir" = no
; then
4538 for ac_lib
in dir
; do
4539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4540 cat >conftest.
$ac_ext <<_ACEOF
4543 cat confdefs.h
>>conftest.
$ac_ext
4544 cat >>conftest.
$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any gcc2 internal prototype to avoid an error. */
4551 /* We use char because int might match the return type of a gcc2
4552 builtin and then its argument prototype would still apply. */
4562 rm -f conftest.
$ac_objext conftest
$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1
>conftest.err
4568 cat conftest.err
>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try
='test -z "$ac_c_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try
='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_search_opendir
="-l$ac_lib"
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.
$ac_ext >&5
4591 rm -f conftest.err conftest.
$ac_objext \
4592 conftest
$ac_exeext conftest.
$ac_ext
4595 LIBS
=$ac_func_search_save_LIBS
4597 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4598 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4599 if test "$ac_cv_search_opendir" != no
; then
4600 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4605 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4607 if test "${ac_cv_search_opendir+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 ac_func_search_save_LIBS
=$LIBS
4611 ac_cv_search_opendir
=no
4612 cat >conftest.
$ac_ext <<_ACEOF
4615 cat confdefs.h
>>conftest.
$ac_ext
4616 cat >>conftest.
$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4634 rm -f conftest.
$ac_objext conftest
$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1
>conftest.err
4640 cat conftest.err
>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try
='test -z "$ac_c_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try
='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_search_opendir
="none required"
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.
$ac_ext >&5
4662 rm -f conftest.err conftest.
$ac_objext \
4663 conftest
$ac_exeext conftest.
$ac_ext
4664 if test "$ac_cv_search_opendir" = no
; then
4666 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4667 cat >conftest.
$ac_ext <<_ACEOF
4670 cat confdefs.h
>>conftest.
$ac_ext
4671 cat >>conftest.
$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4689 rm -f conftest.
$ac_objext conftest
$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try
='test -z "$ac_c_werror_flag"
4699 || test ! -s conftest.err'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; } &&
4705 { ac_try
='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 ac_cv_search_opendir
="-l$ac_lib"
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.
$ac_ext >&5
4718 rm -f conftest.err conftest.
$ac_objext \
4719 conftest
$ac_exeext conftest.
$ac_ext
4722 LIBS
=$ac_func_search_save_LIBS
4724 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4725 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4726 if test "$ac_cv_search_opendir" != no
; then
4727 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4733 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4734 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4735 if test "${ac_cv_header_stat_broken+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 cat >conftest.
$ac_ext <<_ACEOF
4741 cat confdefs.h
>>conftest.
$ac_ext
4742 cat >>conftest.
$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <sys/types.h>
4745 #include <sys/stat.h>
4747 #if defined(S_ISBLK) && defined(S_IFDIR)
4748 # if S_ISBLK (S_IFDIR)
4753 #if defined(S_ISBLK) && defined(S_IFCHR)
4754 # if S_ISBLK (S_IFCHR)
4759 #if defined(S_ISLNK) && defined(S_IFREG)
4760 # if S_ISLNK (S_IFREG)
4765 #if defined(S_ISSOCK) && defined(S_IFREG)
4766 # if S_ISSOCK (S_IFREG)
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "You lose" >/dev
/null
2>&1; then
4774 ac_cv_header_stat_broken
=yes
4776 ac_cv_header_stat_broken
=no
4781 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4782 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4783 if test $ac_cv_header_stat_broken = yes; then
4785 cat >>confdefs.h
<<\_ACEOF
4786 #define STAT_MACROS_BROKEN 1
4791 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4792 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4793 if test "${ac_cv_header_stdc+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 cat >conftest.
$ac_ext <<_ACEOF
4799 cat confdefs.h
>>conftest.
$ac_ext
4800 cat >>conftest.
$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4815 rm -f conftest.
$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1
>conftest.err
4821 cat conftest.err
>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try
='test -z "$ac_c_werror_flag"
4825 || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try
='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_header_stdc
=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 ac_cv_header_stdc
=no
4844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4846 if test $ac_cv_header_stdc = yes; then
4847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4858 $EGREP "memchr" >/dev
/null
2>&1; then
4861 ac_cv_header_stdc
=no
4867 if test $ac_cv_header_stdc = yes; then
4868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "free" >/dev
/null
2>&1; then
4882 ac_cv_header_stdc
=no
4888 if test $ac_cv_header_stdc = yes; then
4889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4890 if test "$cross_compiling" = yes; then
4893 cat >conftest.
$ac_ext <<_ACEOF
4896 cat confdefs.h
>>conftest.
$ac_ext
4897 cat >>conftest.
$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4900 #if ((' ' & 0x0FF) == 0x020)
4901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4904 # define ISLOWER(c) \
4905 (('a' <= (c) && (c) <= 'i') \
4906 || ('j' <= (c) && (c) <= 'r') \
4907 || ('s' <= (c) && (c) <= 'z'))
4908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4916 for (i = 0; i < 256; i++)
4917 if (XOR (islower (i), ISLOWER (i))
4918 || toupper (i) != TOUPPER (i))
4923 rm -f conftest
$ac_exeext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925 (eval $ac_link) 2>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4936 echo "$as_me: program exited with status $ac_status" >&5
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.
$ac_ext >&5
4941 ac_cv_header_stdc
=no
4943 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4947 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4949 if test $ac_cv_header_stdc = yes; then
4951 cat >>confdefs.h
<<\_ACEOF
4952 #define STDC_HEADERS 1
4957 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4958 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4959 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 cat >conftest.
$ac_ext <<_ACEOF
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #include <sys/types.h>
4969 #include <sys/wait.h>
4971 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4974 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4982 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try
='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_header_sys_wait_h
=yes
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5014 ac_cv_header_sys_wait_h
=no
5016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5019 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5020 if test $ac_cv_header_sys_wait_h = yes; then
5022 cat >>confdefs.h
<<\_ACEOF
5023 #define HAVE_SYS_WAIT_H 1
5028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5030 if test "${ac_cv_header_time+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 cat >conftest.
$ac_ext <<_ACEOF
5036 cat confdefs.h
>>conftest.
$ac_ext
5037 cat >>conftest.
$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 #include <sys/types.h>
5040 #include <sys/time.h>
5046 if ((struct tm *) 0)
5052 rm -f conftest.
$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try
='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try
='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_cv_header_time
=yes
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.
$ac_ext >&5
5079 ac_cv_header_time
=no
5081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5083 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5084 echo "${ECHO_T}$ac_cv_header_time" >&6
5085 if test $ac_cv_header_time = yes; then
5087 cat >>confdefs.h
<<\_ACEOF
5088 #define TIME_WITH_SYS_TIME 1
5094 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5095 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5096 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 cat >conftest.
$ac_ext <<_ACEOF
5102 cat confdefs.h
>>conftest.
$ac_ext
5103 cat >>conftest.
$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5109 static struct stat ac_aggr;
5110 if (ac_aggr.st_blksize)
5116 rm -f conftest.
$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>conftest.er1
5120 grep -v '^ *+' conftest.er1
>conftest.err
5122 cat conftest.err
>&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } &&
5125 { ac_try
='test -z "$ac_c_werror_flag"
5126 || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try
='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 ac_cv_member_struct_stat_st_blksize
=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.
$ac_ext >&5
5143 cat >conftest.
$ac_ext <<_ACEOF
5146 cat confdefs.h
>>conftest.
$ac_ext
5147 cat >>conftest.
$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 $ac_includes_default
5153 static struct stat ac_aggr;
5154 if (sizeof ac_aggr.st_blksize)
5160 rm -f conftest.
$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>conftest.er1
5164 grep -v '^ *+' conftest.er1
>conftest.err
5166 cat conftest.err
>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try
='test -z "$ac_c_werror_flag"
5170 || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try
='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_member_struct_stat_st_blksize
=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5187 ac_cv_member_struct_stat_st_blksize
=no
5189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5193 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5194 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5195 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5197 cat >>confdefs.h
<<_ACEOF
5198 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5202 cat >>confdefs.h
<<\_ACEOF
5203 #define HAVE_ST_BLKSIZE 1
5209 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5210 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5211 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 cat >conftest.
$ac_ext <<_ACEOF
5217 cat confdefs.h
>>conftest.
$ac_ext
5218 cat >>conftest.
$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5224 static struct stat ac_aggr;
5225 if (ac_aggr.st_blocks)
5231 rm -f conftest.
$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>conftest.er1
5235 grep -v '^ *+' conftest.er1
>conftest.err
5237 cat conftest.err
>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try
='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try
='test -s conftest.$ac_objext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_cv_member_struct_stat_st_blocks
=yes
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.
$ac_ext >&5
5258 cat >conftest.
$ac_ext <<_ACEOF
5261 cat confdefs.h
>>conftest.
$ac_ext
5262 cat >>conftest.
$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 $ac_includes_default
5268 static struct stat ac_aggr;
5269 if (sizeof ac_aggr.st_blocks)
5275 rm -f conftest.
$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>conftest.er1
5279 grep -v '^ *+' conftest.er1
>conftest.err
5281 cat conftest.err
>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try
='test -z "$ac_c_werror_flag"
5285 || test ! -s conftest.err'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; } &&
5291 { ac_try
='test -s conftest.$ac_objext'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; }; then
5297 ac_cv_member_struct_stat_st_blocks
=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.
$ac_ext >&5
5302 ac_cv_member_struct_stat_st_blocks
=no
5304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5309 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5310 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5312 cat >>confdefs.h
<<_ACEOF
5313 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5317 cat >>confdefs.h
<<\_ACEOF
5318 #define HAVE_ST_BLOCKS 1
5323 "fileblocks.$ac_objext" | \
5324 *" fileblocks.$ac_objext" | \
5325 "fileblocks.$ac_objext "* | \
5326 *" fileblocks.$ac_objext "* ) ;;
5327 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext" ;;
5334 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5335 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5336 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 $ac_includes_default
5349 static struct stat ac_aggr;
5350 if (ac_aggr.st_rdev)
5356 rm -f conftest.
$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5360 grep -v '^ *+' conftest.er1
>conftest.err
5362 cat conftest.err
>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try
='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_member_struct_stat_st_rdev
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 cat >conftest.
$ac_ext <<_ACEOF
5386 cat confdefs.h
>>conftest.
$ac_ext
5387 cat >>conftest.
$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 $ac_includes_default
5393 static struct stat ac_aggr;
5394 if (sizeof ac_aggr.st_rdev)
5400 rm -f conftest.
$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5404 grep -v '^ *+' conftest.er1
>conftest.err
5406 cat conftest.err
>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try
='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try
='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_cv_member_struct_stat_st_rdev
=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.
$ac_ext >&5
5427 ac_cv_member_struct_stat_st_rdev
=no
5429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5434 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5435 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5437 cat >>confdefs.h
<<_ACEOF
5438 #define HAVE_STRUCT_STAT_ST_RDEV 1
5442 cat >>confdefs.h
<<\_ACEOF
5443 #define HAVE_ST_RDEV 1
5449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5451 if test "${ac_cv_struct_tm+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.
$ac_ext <<_ACEOF
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <sys/types.h>
5466 struct tm *tp; tp->tm_sec;
5471 rm -f conftest.
$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1
>conftest.err
5477 cat conftest.err
>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try
='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_struct_tm
=time.h
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5498 ac_cv_struct_tm
=sys
/time.h
5500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5503 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5504 if test $ac_cv_struct_tm = sys
/time.h
; then
5506 cat >>confdefs.h
<<\_ACEOF
5507 #define TM_IN_SYS_TIME 1
5512 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5513 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5514 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 cat >conftest.
$ac_ext <<_ACEOF
5520 cat confdefs.h
>>conftest.
$ac_ext
5521 cat >>conftest.
$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 #include <$ac_cv_struct_tm>
5530 static struct tm ac_aggr;
5531 if (ac_aggr.tm_zone)
5537 rm -f conftest.
$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5541 grep -v '^ *+' conftest.er1
>conftest.err
5543 cat conftest.err
>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try
='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try
='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_member_struct_tm_tm_zone
=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.
$ac_ext >&5
5564 cat >conftest.
$ac_ext <<_ACEOF
5567 cat confdefs.h
>>conftest.
$ac_ext
5568 cat >>conftest.
$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5571 #include <$ac_cv_struct_tm>
5577 static struct tm ac_aggr;
5578 if (sizeof ac_aggr.tm_zone)
5584 rm -f conftest.
$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>conftest.er1
5588 grep -v '^ *+' conftest.er1
>conftest.err
5590 cat conftest.err
>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try
='test -z "$ac_c_werror_flag"
5594 || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try
='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_member_struct_tm_tm_zone
=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.
$ac_ext >&5
5611 ac_cv_member_struct_tm_tm_zone
=no
5613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5618 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5619 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5621 cat >>confdefs.h
<<_ACEOF
5622 #define HAVE_STRUCT_TM_TM_ZONE 1
5628 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5630 cat >>confdefs.h
<<\_ACEOF
5631 #define HAVE_TM_ZONE 1
5635 echo "$as_me:$LINENO: checking for tzname" >&5
5636 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5637 if test "${ac_cv_var_tzname+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 cat >conftest.
$ac_ext <<_ACEOF
5643 cat confdefs.h
>>conftest.
$ac_ext
5644 cat >>conftest.
$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5647 #ifndef tzname /* For SGI. */
5648 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5659 rm -f conftest.
$ac_objext conftest
$ac_exeext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661 (eval $ac_link) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try
='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try
='test -s conftest$ac_exeext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_var_tzname
=yes
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.
$ac_ext >&5
5688 rm -f conftest.err conftest.
$ac_objext \
5689 conftest
$ac_exeext conftest.
$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5692 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5693 if test $ac_cv_var_tzname = yes; then
5695 cat >>confdefs.h
<<\_ACEOF
5696 #define HAVE_TZNAME 1
5702 echo "$as_me:$LINENO: checking for off_t" >&5
5703 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5704 if test "${ac_cv_type_off_t+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5725 rm -f conftest.
$ac_objext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5729 grep -v '^ *+' conftest.er1
>conftest.err
5731 cat conftest.err
>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try
='test -z "$ac_c_werror_flag"
5735 || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try
='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 ac_cv_type_off_t
=yes
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.
$ac_ext >&5
5754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5757 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5758 if test $ac_cv_type_off_t = yes; then
5762 cat >>confdefs.h
<<_ACEOF
5768 echo "$as_me:$LINENO: checking for pid_t" >&5
5769 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5770 if test "${ac_cv_type_pid_t+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 cat >conftest.
$ac_ext <<_ACEOF
5776 cat confdefs.h
>>conftest.
$ac_ext
5777 cat >>conftest.
$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 $ac_includes_default
5791 rm -f conftest.
$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>conftest.er1
5795 grep -v '^ *+' conftest.er1
>conftest.err
5797 cat conftest.err
>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try
='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try
='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_type_pid_t
=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.
$ac_ext >&5
5820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5823 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5824 if test $ac_cv_type_pid_t = yes; then
5828 cat >>confdefs.h
<<_ACEOF
5834 echo "$as_me:$LINENO: checking for size_t" >&5
5835 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5836 if test "${ac_cv_type_size_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5851 if (sizeof (size_t))
5857 rm -f conftest.
$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1
>conftest.err
5863 cat conftest.err
>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try
='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try
='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_type_size_t
=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 ac_cv_type_size_t
=no
5886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5889 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5890 if test $ac_cv_type_size_t = yes; then
5894 cat >>confdefs.h
<<_ACEOF
5895 #define size_t unsigned
5900 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5901 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5902 if test "${ac_cv_type_uid_t+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5915 $EGREP "uid_t" >/dev
/null
2>&1; then
5916 ac_cv_type_uid_t
=yes
5923 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5924 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5925 if test $ac_cv_type_uid_t = no
; then
5927 cat >>confdefs.h
<<\_ACEOF
5932 cat >>confdefs.h
<<\_ACEOF
5939 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5940 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5941 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5954 static struct tm ac_aggr;
5955 if (ac_aggr.tm_gmtoff)
5961 rm -f conftest.
$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5965 grep -v '^ *+' conftest.er1
>conftest.err
5967 cat conftest.err
>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try
='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try
='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_member_struct_tm_tm_gmtoff
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 cat >conftest.
$ac_ext <<_ACEOF
5991 cat confdefs.h
>>conftest.
$ac_ext
5992 cat >>conftest.
$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 $ac_includes_default
5998 static struct tm ac_aggr;
5999 if (sizeof ac_aggr.tm_gmtoff)
6005 rm -f conftest.
$ac_objext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>conftest.er1
6009 grep -v '^ *+' conftest.er1
>conftest.err
6011 cat conftest.err
>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try
='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try
='test -s conftest.$ac_objext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_member_struct_tm_tm_gmtoff
=yes
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6032 ac_cv_member_struct_tm_tm_gmtoff
=no
6034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6039 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6040 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6042 cat >>confdefs.h
<<_ACEOF
6043 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6050 # Look for some functions
6065 for ac_func
in getpagesize kqueue statfs statvfs \
6066 clone kse_create rfork_thread thr_create sa_register \
6067 getcontext makecontext setcontext sigaltstack swapcontext
6069 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6070 echo "$as_me:$LINENO: checking for $ac_func" >&5
6071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6072 if eval "test \"\${$as_ac_var+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 cat >conftest.
$ac_ext <<_ACEOF
6078 cat confdefs.h
>>conftest.
$ac_ext
6079 cat >>conftest.
$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6083 #define $ac_func innocuous_$ac_func
6085 /* System header to define __stub macros and hopefully few prototypes,
6086 which can conflict with char $ac_func (); below.
6087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6088 <limits.h> exists even on freestanding compilers. */
6091 # include <limits.h>
6093 # include <assert.h>
6098 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6106 /* The GNU C library defines this for functions which it implements
6107 to always fail with ENOSYS. Some functions are actually named
6108 something starting with __ and the normal name is an alias. */
6109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6112 char (*f) () = $ac_func;
6121 return f != $ac_func;
6126 rm -f conftest.
$ac_objext conftest
$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>conftest.er1
6130 grep -v '^ *+' conftest.er1
>conftest.err
6132 cat conftest.err
>&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try
='test -z "$ac_c_werror_flag"
6136 || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try
='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 eval "$as_ac_var=yes"
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.
$ac_ext >&5
6153 eval "$as_ac_var=no"
6155 rm -f conftest.err conftest.
$ac_objext \
6156 conftest
$ac_exeext conftest.
$ac_ext
6158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6160 if test `eval echo '${'$as_ac_var'}'` = yes; then
6161 cat >>confdefs.h
<<_ACEOF
6162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6171 for ac_header
in stdlib.h unistd.h
6173 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175 echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183 # Is the header compilable?
6184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <$ac_header>
6195 rm -f conftest.
$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1
>conftest.err
6201 cat conftest.err
>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try
='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try
='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_header_compiler
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 ac_header_compiler
=no
6224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226 echo "${ECHO_T}$ac_header_compiler" >&6
6228 # Is the header present?
6229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <$ac_header>
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6242 grep -v '^ *+' conftest.er1
>conftest.err
6244 cat conftest.err
>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev
/null
; then
6247 if test -s conftest.err
; then
6248 ac_cpp_err
=$ac_c_preproc_warn_flag
6249 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6256 if test -z "$ac_cpp_err"; then
6257 ac_header_preproc
=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6262 ac_header_preproc
=no
6264 rm -f conftest.err conftest.
$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266 echo "${ECHO_T}$ac_header_preproc" >&6
6268 # So? What about this header?
6269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275 ac_header_preproc
=yes
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6292 ## ------------------------------------------ ##
6293 ## Report this to the AC_PACKAGE_NAME lists. ##
6294 ## ------------------------------------------ ##
6297 sed "s/^/$as_me: WARNING: /" >&2
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 eval "$as_ac_Header=\$ac_header_preproc"
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6312 cat >>confdefs.h
<<_ACEOF
6313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6321 for ac_func
in getpagesize
6323 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6324 echo "$as_me:$LINENO: checking for $ac_func" >&5
6325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6326 if eval "test \"\${$as_ac_var+set}\" = set"; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6337 #define $ac_func innocuous_$ac_func
6339 /* System header to define __stub macros and hopefully few prototypes,
6340 which can conflict with char $ac_func (); below.
6341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 <limits.h> exists even on freestanding compilers. */
6345 # include <limits.h>
6347 # include <assert.h>
6352 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 char (*f) () = $ac_func;
6375 return f != $ac_func;
6380 rm -f conftest.
$ac_objext conftest
$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>conftest.er1
6384 grep -v '^ *+' conftest.er1
>conftest.err
6386 cat conftest.err
>&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try
='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try
='test -s conftest$ac_exeext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 eval "$as_ac_var=yes"
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.
$ac_ext >&5
6407 eval "$as_ac_var=no"
6409 rm -f conftest.err conftest.
$ac_objext \
6410 conftest
$ac_exeext conftest.
$ac_ext
6412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6414 if test `eval echo '${'$as_ac_var'}'` = yes; then
6415 cat >>confdefs.h
<<_ACEOF
6416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6422 echo "$as_me:$LINENO: checking for working mmap" >&5
6423 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6424 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_func_mmap_fixed_mapped
=no
6430 cat >conftest.
$ac_ext <<_ACEOF
6433 cat confdefs.h
>>conftest.
$ac_ext
6434 cat >>conftest.
$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 /* malloc might have been renamed as rpl_malloc. */
6440 /* Thanks to Mike Haertel and Jim Avera for this test.
6441 Here is a matrix of mmap possibilities:
6442 mmap private not fixed
6443 mmap private fixed at somewhere currently unmapped
6444 mmap private fixed at somewhere already mapped
6445 mmap shared not fixed
6446 mmap shared fixed at somewhere currently unmapped
6447 mmap shared fixed at somewhere already mapped
6448 For private mappings, we should verify that changes cannot be read()
6449 back from the file, nor mmap's back from the file at a different
6450 address. (There have been systems where private was not correctly
6451 implemented like the infamous i386 svr4.0, and systems where the
6452 VM page cache was not coherent with the file system buffer cache
6453 like early versions of FreeBSD and possibly contemporary NetBSD.)
6454 For shared mappings, we should conversely verify that changes get
6455 propagated back to all the places they're supposed to be.
6457 Grep wants private fixed already mapped.
6458 The main things grep needs to know about mmap are:
6459 * does it exist and is it safe to write into the mmap'd area
6460 * how to use it (BSD variants) */
6463 #include <sys/mman.h>
6465 #if !STDC_HEADERS && !HAVE_STDLIB_H
6469 /* This mess was copied from the GNU getpagesize.h. */
6470 #if !HAVE_GETPAGESIZE
6471 /* Assume that all systems that can run configure have sys/param.h. */
6472 # if !HAVE_SYS_PARAM_H
6473 # define HAVE_SYS_PARAM_H 1
6476 # ifdef _SC_PAGESIZE
6477 # define getpagesize() sysconf(_SC_PAGESIZE)
6478 # else /* no _SC_PAGESIZE */
6479 # if HAVE_SYS_PARAM_H
6480 # include <sys/param.h>
6481 # ifdef EXEC_PAGESIZE
6482 # define getpagesize() EXEC_PAGESIZE
6483 # else /* no EXEC_PAGESIZE */
6485 # define getpagesize() NBPG * CLSIZE
6488 # endif /* no CLSIZE */
6489 # else /* no NBPG */
6491 # define getpagesize() NBPC
6492 # else /* no NBPC */
6494 # define getpagesize() PAGESIZE
6495 # endif /* PAGESIZE */
6496 # endif /* no NBPC */
6497 # endif /* no NBPG */
6498 # endif /* no EXEC_PAGESIZE */
6499 # else /* no HAVE_SYS_PARAM_H */
6500 # define getpagesize() 8192 /* punt totally */
6501 # endif /* no HAVE_SYS_PARAM_H */
6502 # endif /* no _SC_PAGESIZE */
6504 #endif /* no HAVE_GETPAGESIZE */
6509 char *data, *data2, *data3;
6513 pagesize = getpagesize ();
6515 /* First, make a file with some known garbage in it. */
6516 data = (char *) malloc (pagesize);
6519 for (i = 0; i < pagesize; ++i)
6520 *(data + i) = rand ();
6522 fd = creat ("conftest.mmap", 0600);
6525 if (write (fd, data, pagesize) != pagesize)
6529 /* Next, try to mmap the file at a fixed address which already has
6530 something else allocated at it. If we can, also make sure that
6531 we see the same garbage. */
6532 fd = open ("conftest.mmap", O_RDWR);
6535 data2 = (char *) malloc (2 * pagesize);
6538 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6539 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6542 for (i = 0; i < pagesize; ++i)
6543 if (*(data + i) != *(data2 + i))
6546 /* Finally, make sure that changes to the mapped area do not
6547 percolate back to the file as seen by read(). (This is a bug on
6548 some variants of i386 svr4.0.) */
6549 for (i = 0; i < pagesize; ++i)
6550 *(data2 + i) = *(data2 + i) + 1;
6551 data3 = (char *) malloc (pagesize);
6554 if (read (fd, data3, pagesize) != pagesize)
6556 for (i = 0; i < pagesize; ++i)
6557 if (*(data + i) != *(data3 + i))
6563 rm -f conftest
$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_func_mmap_fixed_mapped
=yes
6576 echo "$as_me: program exited with status $ac_status" >&5
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6581 ac_cv_func_mmap_fixed_mapped
=no
6583 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6587 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6588 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6590 cat >>confdefs.h
<<\_ACEOF
6599 echo "$as_me:$LINENO: checking for X" >&5
6600 echo $ECHO_N "checking for X... $ECHO_C" >&6
6603 # Check whether --with-x or --without-x was given.
6604 if test "${with_x+set}" = set; then
6608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6609 if test "x$with_x" = xno
; then
6610 # The user explicitly disabled X.
6613 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6614 # Both variables are already set.
6617 if test "${ac_cv_have_x+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 # One or both of the vars are not set, and there is no cached value.
6621 ac_x_includes
=no ac_x_libraries
=no
6623 if mkdir conftest.dir
; then
6625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6626 cat >Imakefile
<<'_ACEOF'
6628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6630 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6634 for ac_extension
in a so sl
; do
6635 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6636 test -f $ac_im_libdir/libX11.
$ac_extension; then
6637 ac_im_usrlibdir
=$ac_im_libdir; break
6640 # Screen out bogus values from the imake configuration. They are
6641 # bogus both because they are the default anyway, and because
6642 # using them would break gcc on systems where it needs fixed includes.
6643 case $ac_im_incroot in
6645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6647 case $ac_im_usrlibdir in
6649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6656 # Standard set of common directories for X headers.
6657 # Check X11 before X11Rn because it is often a symlink to the current release.
6669 /usr/local/X11/include
6670 /usr/local/X11R6/include
6671 /usr/local/X11R5/include
6672 /usr/local/X11R4/include
6674 /usr/local/include/X11
6675 /usr/local/include/X11R6
6676 /usr/local/include/X11R5
6677 /usr/local/include/X11R4
6681 /usr/XFree86/include/X11
6685 /usr/unsupported/include
6687 /usr/local/x11r5/include
6688 /usr/lpp/Xamples/include
6690 /usr/openwin/include
6691 /usr/openwin/share/include'
6693 if test "$ac_x_includes" = no
; then
6694 # Guess where to find include files, by looking for Intrinsic.h.
6695 # First, try using that file with no special directory specified.
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <X11/Intrinsic.h>
6704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1
>conftest.err
6709 cat conftest.err
>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } >/dev
/null
; then
6712 if test -s conftest.err
; then
6713 ac_cpp_err
=$ac_c_preproc_warn_flag
6714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6721 if test -z "$ac_cpp_err"; then
6722 # We can compile using X headers with no special include directory.
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.
$ac_ext >&5
6728 for ac_dir
in $ac_x_header_dirs; do
6729 if test -r "$ac_dir/X11/Intrinsic.h"; then
6730 ac_x_includes
=$ac_dir
6735 rm -f conftest.err conftest.
$ac_ext
6736 fi # $ac_x_includes = no
6738 if test "$ac_x_libraries" = no
; then
6739 # Check for the libraries.
6740 # See if we find them without any special options.
6741 # Don't add to $LIBS permanently.
6744 cat >conftest.
$ac_ext <<_ACEOF
6747 cat confdefs.h
>>conftest.
$ac_ext
6748 cat >>conftest.
$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <X11/Intrinsic.h>
6759 rm -f conftest.
$ac_objext conftest
$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6763 grep -v '^ *+' conftest.er1
>conftest.err
6765 cat conftest.err
>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try
='test -z "$ac_c_werror_flag"
6769 || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try
='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6782 # We can link X programs with no special library path.
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6789 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6791 # Don't even attempt the hair of trying to link an X program!
6792 for ac_extension
in a so sl
; do
6793 if test -r $ac_dir/libXt.
$ac_extension; then
6794 ac_x_libraries
=$ac_dir
6800 rm -f conftest.err conftest.
$ac_objext \
6801 conftest
$ac_exeext conftest.
$ac_ext
6802 fi # $ac_x_libraries = no
6804 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6805 # Didn't find X anywhere. Cache the known absence of X.
6806 ac_cv_have_x
="have_x=no"
6808 # Record where we found X for the cache.
6809 ac_cv_have_x
="have_x=yes \
6810 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6815 eval "$ac_cv_have_x"
6818 if test "$have_x" != yes; then
6819 echo "$as_me:$LINENO: result: $have_x" >&5
6820 echo "${ECHO_T}$have_x" >&6
6823 # If each of the values was on the command line, it overrides each guess.
6824 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6825 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6826 # Update the cache value to reflect the command line values.
6827 ac_cv_have_x
="have_x=yes \
6828 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6829 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6830 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6836 # Find all the tools we need to compile. This could be cross-compiling
6837 # though! If that is the case we use the GNU form of the target and
6838 # simply add this to the front of the binary name. This is rather simple,
6839 # but it should work under most circumstances.
6841 # The default tools are to use the same as the host, but only if the
6842 # host and target CPU are the same. With GCC this is normally enough.
6846 aros_target_cc
="$aros_host_cc"
6847 aros_target_as
="$aros_host_cc"
6848 aros_shared_ld
="$aros_host_ld"
6849 aros_kernel_ld
="$aros_host_ld"
6850 aros_target_ld
="$aros_host_ld"
6852 aros_target_mkdep
="$aros_host_mkdep"
6853 aros_target_incl_def
="$aros_host_incl"
6855 # The default tools executables to be linked at.
6856 if test "$GCC" = "yes"; then
6857 aros_gcc_ar
=`$CC -print-prog-name=ar`
6858 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
6859 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
6860 echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6862 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 case $aros_target_ar_ln in
6867 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
6870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6871 for as_dir
in `dirname $aros_gcc_ar`
6874 test -z "$as_dir" && as_dir
=.
6875 for ac_exec_ext
in '' $ac_executable_extensions; do
6876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
6889 if test -n "$aros_target_ar_ln"; then
6890 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6891 echo "${ECHO_T}$aros_target_ar_ln" >&6
6893 echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6898 if test "$aros_target_ar_ln" = ""; then
6899 # Extract the first word of "ar", so it can be a program name with args.
6900 set dummy
ar; ac_word
=$2
6901 echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6903 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 case $aros_target_ar_ln in
6908 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
6911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir
=.
6916 for ac_exec_ext
in '' $ac_executable_extensions; do
6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
6930 if test -n "$aros_target_ar_ln"; then
6931 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6932 echo "${ECHO_T}$aros_target_ar_ln" >&6
6934 echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6939 if test "$aros_target_ar_ln" = ""; then
6940 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
6941 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
6942 { (exit 1); exit 1; }; }
6944 if test "$GCC" = "yes"; then
6945 aros_gcc_nm
=`$CC -print-prog-name=nm`
6946 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
6947 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
6948 echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6950 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 case $aros_target_nm_ln in
6955 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
6958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6959 for as_dir
in `dirname $aros_gcc_nm`
6962 test -z "$as_dir" && as_dir
=.
6963 for ac_exec_ext
in '' $ac_executable_extensions; do
6964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
6977 if test -n "$aros_target_nm_ln"; then
6978 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
6979 echo "${ECHO_T}$aros_target_nm_ln" >&6
6981 echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6
6986 if test "$aros_target_nm_ln" = ""; then
6987 # Extract the first word of "nm", so it can be a program name with args.
6988 set dummy nm
; ac_word
=$2
6989 echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6991 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 case $aros_target_nm_ln in
6996 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
6999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir
=.
7004 for ac_exec_ext
in '' $ac_executable_extensions; do
7005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
7018 if test -n "$aros_target_nm_ln"; then
7019 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
7020 echo "${ECHO_T}$aros_target_nm_ln" >&6
7022 echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6
7027 if test "$aros_target_nm_ln" = ""; then
7028 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
7029 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
7030 { (exit 1); exit 1; }; }
7032 if test "$GCC" = "yes"; then
7033 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
7034 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
7035 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
7036 echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7038 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 case $aros_target_objcopy_ln in
7043 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
7046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7047 for as_dir
in `dirname $aros_gcc_objcopy`
7050 test -z "$as_dir" && as_dir
=.
7051 for ac_exec_ext
in '' $ac_executable_extensions; do
7052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
7065 if test -n "$aros_target_objcopy_ln"; then
7066 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7067 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7069 echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7074 if test "$aros_target_objcopy_ln" = ""; then
7075 # Extract the first word of "objcopy", so it can be a program name with args.
7076 set dummy objcopy
; ac_word
=$2
7077 echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7079 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 case $aros_target_objcopy_ln in
7084 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
7087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir
=.
7092 for ac_exec_ext
in '' $ac_executable_extensions; do
7093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
7106 if test -n "$aros_target_objcopy_ln"; then
7107 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7108 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7110 echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7115 if test "$aros_target_objcopy_ln" = ""; then
7116 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
7117 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
7118 { (exit 1); exit 1; }; }
7120 if test "$GCC" = "yes"; then
7121 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
7122 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
7123 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
7124 echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 case $aros_target_objdump_ln in
7131 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
7134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7135 for as_dir
in `dirname $aros_gcc_objdump`
7138 test -z "$as_dir" && as_dir
=.
7139 for ac_exec_ext
in '' $ac_executable_extensions; do
7140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
7153 if test -n "$aros_target_objdump_ln"; then
7154 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7155 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7157 echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7162 if test "$aros_target_objdump_ln" = ""; then
7163 # Extract the first word of "objdump", so it can be a program name with args.
7164 set dummy objdump
; ac_word
=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 case $aros_target_objdump_ln in
7172 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
7175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir
=.
7180 for ac_exec_ext
in '' $ac_executable_extensions; do
7181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
7194 if test -n "$aros_target_objdump_ln"; then
7195 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7196 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7203 if test "$aros_target_objdump_ln" = ""; then
7204 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
7205 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
7206 { (exit 1); exit 1; }; }
7208 if test "$GCC" = "yes"; then
7209 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
7210 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
7211 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
7212 echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7214 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 case $aros_target_ranlib_ln in
7219 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
7222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7223 for as_dir
in `dirname $aros_gcc_ranlib`
7226 test -z "$as_dir" && as_dir
=.
7227 for ac_exec_ext
in '' $ac_executable_extensions; do
7228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
7241 if test -n "$aros_target_ranlib_ln"; then
7242 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7243 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7250 if test "$aros_target_ranlib_ln" = ""; then
7251 # Extract the first word of "ranlib", so it can be a program name with args.
7252 set dummy ranlib
; ac_word
=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 case $aros_target_ranlib_ln in
7260 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
7263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir
=.
7268 for ac_exec_ext
in '' $ac_executable_extensions; do
7269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
7282 if test -n "$aros_target_ranlib_ln"; then
7283 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7284 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7286 echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6
7291 if test "$aros_target_ranlib_ln" = ""; then
7292 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
7293 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
7294 { (exit 1); exit 1; }; }
7296 if test "$GCC" = "yes"; then
7297 aros_gcc_strip
=`$CC -print-prog-name=strip`
7298 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
7299 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
7300 echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 case $aros_target_strip_ln in
7307 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
7310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7311 for as_dir
in `dirname $aros_gcc_strip`
7314 test -z "$as_dir" && as_dir
=.
7315 for ac_exec_ext
in '' $ac_executable_extensions; do
7316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
7329 if test -n "$aros_target_strip_ln"; then
7330 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7331 echo "${ECHO_T}$aros_target_strip_ln" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7338 if test "$aros_target_strip_ln" = ""; then
7339 # Extract the first word of "strip", so it can be a program name with args.
7340 set dummy strip
; ac_word
=$2
7341 echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7343 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 case $aros_target_strip_ln in
7348 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
7351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir
=.
7356 for ac_exec_ext
in '' $ac_executable_extensions; do
7357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
7370 if test -n "$aros_target_strip_ln"; then
7371 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7372 echo "${ECHO_T}$aros_target_strip_ln" >&6
7374 echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6
7379 if test "$aros_target_strip_ln" = ""; then
7380 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
7381 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
7382 { (exit 1); exit 1; }; }
7385 if test "$GCC" = "yes"; then
7386 aros_target_cc_path
=`$CC -print-search-dirs | grep "programs: =" | cut -c 12-`
7389 # It is necessary to clear the include and link paths for target
7390 # commands. This should help clear up problems when cross compiling.
7391 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7392 aros_config_aflags
="-Wall -x assembler-with-cpp"
7393 aros_config_ldflags
=""
7395 aros_shared_default
=yes
7397 aros_shared_cflags
="-fPIC"
7398 aros_shared_aflags
=""
7399 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7400 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7404 aros_target_genmap
="-Wl,-Map -Xlinker"
7406 # Native flavour stuff
7408 aros_serial_debug
="0"
7410 # Palm native flavour stuff
7411 aros_palm_debug_hack
="0"
7413 # Unix flavour stuff
7414 aros_nesting_supervisor
="0"
7416 # Collect-aros stuff: "-ius" to ignore undefined symbols
7417 ignore_undefined_symbols
=""
7423 #-----------------------------------------------------------------------------
7425 echo "$as_me:$LINENO: checking for type of build" >&5
7426 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7427 # Check whether --enable-build_type or --disable-build_type was given.
7428 if test "${enable_build_type+set}" = set; then
7429 enableval
="$enable_build_type"
7430 build_type
=$enableval
7432 build_type
="personal"
7435 if test "$build_type" = "nightly"; then
7436 build_type_string
="NIGHTLY"
7437 elif test "$build_type" = "snapshot"; then
7438 build_type_string
="SNAPSHOT"
7439 elif test "$build_type" = "milestone"; then
7440 build_type_string
="MILESTONE"
7441 elif test "$build_type" = "release"; then
7442 build_type_string
="RELEASE"
7444 build_type_string
="PERSONAL"
7445 build_type
="personal"
7448 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7450 echo "$as_me:$LINENO: result: $build_type" >&5
7451 echo "${ECHO_T}$build_type" >&6
7453 #-----------------------------------------------------------------------------
7454 all_debug_types
="messages stack mungwall modules symbols"
7456 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7457 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7458 # Check whether --enable-debug or --disable-debug was given.
7459 if test "${enable_debug+set}" = set; then
7460 enableval
="$enable_debug"
7466 if test "$debug" = "" -o "$debug" = "no"; then
7468 elif test "$debug" = "yes"; then
7472 if test "$debug" = "all" ; then
7473 debug
=$all_debug_types
7474 for d
in $all_debug_types; do
7475 export aros_
${d}_debug
="1"
7478 for d
in $all_debug_types; do
7479 export aros_
${d}_debug
="0"
7483 if test "$debug" != "none"; then
7484 debug
=`echo $debug | sed s/,/\ /g`
7487 for d2
in $all_debug_types; do
7488 if test "$d2" = "$d"; then
7493 if test "$found" = "0"; then
7494 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7495 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7496 { (exit 1); exit 1; }; }
7498 export aros_
${d}_debug
="1"
7502 echo "$as_me:$LINENO: result: $debug" >&5
7503 echo "${ECHO_T}$debug" >&6
7505 if test "$aros_messages_debug" = "1"; then
7506 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7508 aros_messages_debug
=""
7510 if test "$aros_symbols_debug" = "1"; then
7511 aros_symbols_debug
="-g"
7513 aros_symbols_debug
=""
7516 # These are the flags to pass when compiling debugged programs
7517 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7518 aros_debug_aflags
=""
7519 aros_debug_ldflags
="$aros_symbols_debug"
7521 #-----------------------------------------------------------------------------
7522 # Checking for distcc and ccache.
7524 # Always apply the transforms in this particular order. Basically you should
7525 # always run 'ccache distcc compiler' in that order for the best performance.
7527 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7528 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7529 # Check whether --enable-distcc or --disable-distcc was given.
7530 if test "${enable_distcc+set}" = set; then
7531 enableval
="$enable_distcc"
7536 if test "$distcc" != "" -a "$distcc" != "no"; then
7537 # AC_CHECK_PROG will print out the result in this case
7538 # Extract the first word of "distcc", so it can be a program name with args.
7539 set dummy distcc
; ac_word
=$2
7540 echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7542 if test "${ac_cv_path_DISTCC+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir
=.
7555 for ac_exec_ext
in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7568 DISTCC
=$ac_cv_path_DISTCC
7570 if test -n "$DISTCC"; then
7571 echo "$as_me:$LINENO: result: $DISTCC" >&5
7572 echo "${ECHO_T}$DISTCC" >&6
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7583 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7584 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7585 # Check whether --enable-ccache or --disable-ccache was given.
7586 if test "${enable_ccache+set}" = set; then
7587 enableval
="$enable_ccache"
7592 if test "$ccache" != "" -a "$ccache" != "no"; then
7593 # AC_CHECK_PROG will print out the result in this case
7594 # Extract the first word of "ccache", so it can be a program name with args.
7595 set dummy ccache
; ac_word
=$2
7596 echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7598 if test "${ac_cv_prog_CCACHE+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 if test -n "$CCACHE"; then
7602 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir
=.
7609 for ac_exec_ext
in '' $ac_executable_extensions; do
7610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_CCACHE
="ccache"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 test -z "$ac_cv_prog_CCACHE" && ac_cv_prog_CCACHE
="no"
7621 CCACHE
=$ac_cv_prog_CCACHE
7622 if test -n "$CCACHE"; then
7623 echo "$as_me:$LINENO: result: $CCACHE" >&5
7624 echo "${ECHO_T}$CCACHE" >&6
7626 echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7635 #-----------------------------------------------------------------------------
7636 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7637 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7639 # Check whether --with-optimization or --without-optimization was given.
7640 if test "${with_optimization+set}" = set; then
7641 withval
="$with_optimization"
7642 optimization
="$withval"
7644 optimization
="unknown"
7646 if test "$optimization" = "unknown"; then
7647 if test "$debug" != "none"; then
7653 aros_config_cflags
="$aros_config_cflags $optimization"
7654 echo "$as_me:$LINENO: result: $optimization" >&5
7655 echo "${ECHO_T}$optimization" >&6
7657 #-----------------------------------------------------------------------------
7658 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7659 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7660 # Check whether --enable-target_variant or --disable-target_variant was given.
7661 if test "${enable_target_variant+set}" = set; then
7662 enableval
="$enable_target_variant"
7663 target_variant
=$enableval
7665 target_variant
="none"
7667 if test "$target_variant" = "none"; then
7668 aros_target_variant
=""
7669 aros_target_suffix
=""
7671 aros_target_variant
="$target_variant"
7672 aros_target_suffix
="-$target_variant"
7674 echo "$as_me:$LINENO: result: $enableval" >&5
7675 echo "${ECHO_T}$enableval" >&6
7677 #-----------------------------------------------------------------------------
7678 # This is the target configuration switch.
7679 case "$target_os" in
7681 aros_target_arch
="linux"
7682 case "$target_cpu" in
7684 aros_target_cpu
="m68k"
7685 aros_object_format
="m68kelf"
7686 aros_flavour
="emulcompat"
7687 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7688 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7689 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7690 gcc_target_cpu
="mc68000"
7693 aros_target_cpu
="i386"
7694 aros_object_format
="elf_i386"
7695 aros_flavour
="emulation"
7696 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7697 aros_default_wbdepth
=8
7698 gcc_target_cpu
="i386"
7701 aros_target_cpu
="ppc"
7702 aros_object_format
="elf32ppc"
7703 aros_flavour
="emulation"
7704 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7705 aros_default_wbdepth
=8
7706 aros_compiler_libs
="-lgcc"
7707 gcc_target_cpu
="ppc"
7710 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7711 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7712 { (exit 1); exit 1; }; }
7718 aros_target_arch
="pc"
7719 aros_shared_default
="no"
7720 case "$target_cpu" in
7722 aros_target_cpu
="i386"
7725 if test "$aros_object_format" = "" ; then
7726 aros_object_format
="elf_i386"
7728 aros_flavour
="standalone"
7729 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7730 aros_kernel_ldflags
=""
7731 aros_default_wbwidth
=640
7732 aros_default_wbheight
=480
7733 gcc_target_cpu
="i386"
7736 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7737 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7738 { (exit 1); exit 1; }; }
7744 aros_target_arch
="prep"
7745 aros_shared_default
="no"
7746 aros_target_cpu
="ppc"
7747 aros_object_format
="elf32ppc"
7748 aros_flavour
="ppcnative"
7749 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7750 aros_kernel_ldflags
=""
7751 aros_default_wbwidth
=640
7752 aros_default_wbheight
=480
7753 gcc_target_cpu
="ppc"
7754 case "$target_cpu" in
7756 aros_target_cc
="ppc-linux-gcc -pipe"
7757 aros_target_ld
="ppc-linux-ld"
7758 aros_target_as
="ppc-linux-as"
7759 aros_target_ar
="ppc-linux-ar"
7760 aros_target_ranlib
="ppc-linux-ranlib"
7761 aros_target_nm
="ppc-linux-nm"
7762 aros_target_strip
="ppc-linux-strip"
7763 aros_target_objcopy
="ppc-linux-objcopy"
7764 aros_target_objdump
="ppc-linux-objdump"
7765 aros_shared_ld
="ppc-linux-ld"
7766 aros_kernel_ld
="ppc-linux-ld"
7774 aros_target_arch
="freebsd"
7775 aros_target_cpu
="i386"
7776 aros_flavour
="emulation"
7777 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7778 gcc_target_cpu
="i386"
7784 aros_target_arch
="netbsd"
7785 case "$target_cpu" in
7787 aros_target_cpu
="m68k"
7788 aros_object_format
="m68kelf"
7789 aros_flavour
="emulcompat"
7790 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7791 gcc_target_cpu
="mc68000"
7794 aros_target_cpu
="i386"
7795 aros_object_format
="elf_i386"
7796 aros_flavour
="emulation"
7797 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7798 aros_default_wbdepth
=8
7799 gcc_target_cpu
="i386"
7802 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7803 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7804 { (exit 1); exit 1; }; }
7807 aros_target_genmap
="-Wl,-M -Xlinker >"
7808 aros_flavour
="emulation"
7809 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7813 aros_target_arch
="openbsd"
7814 case "$target_cpu" in
7816 aros_target_cpu
="i386"
7817 aros_object_format
="elf_i386"
7818 aros_flavour
="emulation"
7819 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7820 gcc_target_cpu
="i386"
7823 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7824 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7825 { (exit 1); exit 1; }; }
7828 aros_target_genmap
="-Wl,-M -Xlinker >"
7829 aros_target_nm_flags
="-u"
7830 aros_flavour
="emulation"
7834 aros_target_arch
="solaris"
7835 case "$target_cpu" in
7837 aros_target_cpu
="sparc"
7838 aros_object_format
="elf_sparc"
7839 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7840 gcc_target_cpu
="sparc"
7843 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7844 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7845 { (exit 1); exit 1; }; }
7848 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
7849 aros_flavour
="emulation"
7853 aros_target_arch
="morphos"
7854 aros_shared_default
="no"
7855 aros_target_cpu
="ppc"
7856 aros_object_format
="elf_ppc"
7857 aros_flavour
="nativecompat"
7858 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7859 gcc_target_cpu
="ppc"
7863 aros_target_arch
="amiga"
7864 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7865 aros_shared_default
="no"
7867 aros_config_cflags
="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7869 case "$target_cpu" in
7871 aros_target_cpu
="m68k"
7872 aros_object_format
="m68kelf"
7873 aros_flavour
="nativecompat"
7874 gcc_target_cpu
="mc68000"
7878 aros_flavour
="native"
7879 gcc_target_cpu
="ppc"
7882 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7883 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7884 { (exit 1); exit 1; }; }
7890 aros_target_arch
="cygwin"
7891 aros_shared_default
="no"
7892 case "$target_cpu" in
7894 aros_target_cpu
="i386"
7895 aros_object_format
="elf_i386"
7896 aros_flavour
="emulation"
7897 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7898 aros_shared_cflags
=""
7899 aros_default_wbdepth
=8
7900 gcc_target_cpu
="i386"
7903 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7904 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7905 { (exit 1); exit 1; }; }
7910 aros_target_arch
="pp"
7911 aros_shared_default
="no"
7912 case "$target_cpu" in
7914 aros_target_cpu
="m68k"
7915 aros_object_format
="m68kelf"
7916 aros_flavour
="palmnative"
7917 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7918 aros_kernel_ldflags
=""
7919 aros_default_wbwidth
=160
7920 aros_default_wbheight
=160
7921 aros_default_wbdepth
=1
7922 aros_target_cc
="m68k-elf-gcc -pipe"
7923 aros_target_ld
="$(which m68k-elf-ld)"
7924 aros_target_as
="m68k-elf-gcc -pipe"
7925 aros_shared_ld
="m68k-elf-gcc"
7926 aros_kernel_ld
="m68k-elf-gcc"
7927 aros_target_ar
="m68k-elf-ar"
7928 aros_target_ar_flags
="cru"
7929 aros_target_ranlib
="m68k-elf-ranlib"
7930 aros_target_nm
="m68k-elf-nm"
7931 aros_target_objcopy
="m68k-elf-objcopy"
7932 aros_target_objdump
="m68k-elf-objdump"
7933 aros_compiler_libs
="-lgcc1"
7934 aros_shared_default
=no
7935 aros_shared_cflags
="-fpic"
7936 aros_shared_aflags
=""
7937 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7938 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7939 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7940 aros_debug_aflags
=""
7941 aros_debug_ldflags
="$aros_symbols_debug"
7942 aros_mungwall_debug
="0"
7943 aros_modules_debug
="0"
7944 gcc_target_cpu
="mc68000"
7945 ignore_undefined_symbols
="-ius"
7948 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7949 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7950 { (exit 1); exit 1; }; }
7956 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7957 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7958 { (exit 1); exit 1; }; }
7962 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
7963 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
7964 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
7965 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
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} "
7980 aros_cc_pre
="${DISTCC} "
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
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
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
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
8029 test -z "$ac_cv_path_SHARED_LD" && ac_cv_path_SHARED_LD
="$aros_shared_ld"
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
8039 echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6
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
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
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
8075 test -z "$ac_cv_path_KERNEL_LD" && ac_cv_path_KERNEL_LD
="$aros_kernel_ld"
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
8085 echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8090 KERNEL_LD
="$aros_kernel_ld"
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
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
8140 CFLAGS
="-I $x_includes"
8142 LIBS
="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8143 cat >conftest.
$ac_ext <<_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>
8162 static XShmSegmentInfo shminfo;
8163 static Display *display;
8164 XShmAttach(display, &shminfo);
8166 shmctl(shminfo.shmid, IPC_RMID, 0);
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
8176 grep -v '^ *+' conftest.er1
>conftest.err
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
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
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.
$ac_ext >&5
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
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 #try to guess where the directory is
8226 aros_target_cc_includes
=`dirname \`${aros_target_cc} -print-libgcc-file-name\
``/include
8227 if ! test -d $aros_target_cc_includes; then
8228 #the directory doesn't exist, we need to do some more work
8229 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
8231 #these are the headers we're looling for
8232 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
8233 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
8237 for h
in $headers; do
8238 #which other headers each of the above headers needs?
8239 deps
=$
(echo "#include <$h>" | \
8240 $aros_host_cc -E -M - 2>/dev
/null | \
8241 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
8243 #copy all the needed headers to a directory beneath gendir
8246 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
8247 sed -n "s,^.*/include\(/.*\),\1,p")
8248 ! test -d $dir && mkdir
-p $dir
8249 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
8254 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
8255 echo "${ECHO_T}$aros_target_cc_includes" >&6
8257 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
8258 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
8260 # Check whether --with-resolution or --without-resolution was given.
8261 if test "${with_resolution+set}" = set; then
8262 withval
="$with_resolution"
8267 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
8268 if test "$resolution" = "yes" ; then
8271 if test "$resolution" = "no" ; then
8274 if test "$resolution" != "none" ; then
8275 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
8276 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
8277 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
8279 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
8280 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
8281 aros_cv_default_wbwidth
=$aros_default_wbwidth
8282 aros_cv_default_wbheight
=$aros_default_wbheight
8283 aros_cv_default_wbdepth
=$aros_default_wbdepth
8285 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
8286 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
8287 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
8288 if test "${enable_bochs_hack+set}" = set; then
8289 enableval
="$enable_bochs_hack"
8294 if test "$bochs_hack" = "yes" ; then
8297 echo "$as_me:$LINENO: result: $bochs_hack" >&5
8298 echo "${ECHO_T}$bochs_hack" >&6
8300 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
8301 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
8303 # Check whether --with-serial-debug or --without-serial-debug was given.
8304 if test "${with_serial_debug+set}" = set; then
8305 withval
="$with_serial_debug"
8306 serial_debug
=$withval
8310 if test "$serial_debug" = "yes" ; then
8313 if test "$serial_debug" = "no" ; then
8316 if test "$serial_debug" != "none" ; then
8317 aros_serial_debug
=$serial_debug
8318 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
8319 echo "${ECHO_T}on port $serial_debug" >&6
8321 echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8325 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
8326 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
8327 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
8328 if test "${enable_palm_debug_hack+set}" = set; then
8329 enableval
="$enable_palm_debug_hack"
8330 palm_debug_hack
="yes"
8332 palm_debug_hack
="no"
8334 if test "$palm_debug_hack" = "yes" ; then
8335 aros_palm_debug_hack
="1"
8337 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
8338 echo "${ECHO_T}$palm_debug_hack" >&6
8341 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
8342 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
8343 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
8344 if test "${enable_nesting_supervisor+set}" = set; then
8345 enableval
="$enable_nesting_supervisor"
8346 nesting_supervisor
="yes"
8348 nesting_supervisor
="no"
8350 if test "$nesting_supervisor" = "yes" ; then
8351 aros_nesting_supervisor
="1"
8353 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
8354 echo "${ECHO_T}$nesting_supervisor" >&6
8358 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8359 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
8360 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
8361 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
8362 if test "${enable_xshm_extension+set}" = set; then
8363 enableval
="$enable_xshm_extension"
8364 xshm_extension
="$enableval"
8366 xshm_extension
="yes"
8368 if test "$xshm_extension" = "no" ; then
8371 echo "$as_me:$LINENO: result: $xshm_extension" >&5
8372 echo "${ECHO_T}$xshm_extension" >&6
8379 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
8380 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
8381 # Check whether --enable-dbus or --disable-dbus was given.
8382 if test "${enable_dbus+set}" = set; then
8383 enableval
="$enable_dbus"
8388 if test "$dbus" = "yes" ; then
8390 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
8391 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
8392 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
8393 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
8397 echo "$as_me:$LINENO: result: $dbus" >&5
8398 echo "${ECHO_T}$dbus" >&6
8468 # Native version related
8472 # Palm native version related
8475 # Unix/Hosted version related
8491 # Collect-aros stuff: "-ius" to ignore undefined symbols
8494 # C compiler related
8497 case "$aros_flavour" in
8498 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
8499 aros_flavour
="emulation" ;;
8500 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
8501 aros_flavour
="emulation" ;;
8502 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
8503 aros_flavour
="standalone";;
8504 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
8505 aros_flavour
="native" ;;
8506 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8507 aros_flavour
="native" ;;
8508 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
8509 aros_flavour
="linklib" ;;
8510 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
8511 aros_flavour
="palmnative" ;;
8512 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8513 aros_flavour
="ppcnative" ;;
8516 if test -z "$aros_gui_basedir" ; then
8517 aros_gui_libdir
="$x_libraries"
8518 if test -z "$x_libraries" ; then
8521 aros_gui_ldflags
="-L $x_libraries"
8523 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8524 aros_gui_libflags
="-lX11 -lXext"
8526 aros_gui_libflags
="-lX11"
8528 aros_gui_incdir
="$x_includes"
8529 if test -z "$x_includes" ; then
8532 aros_gui_ccflags
="-I $x_includes"
8535 if test -n "$aros_gui_basedir" ; then
8536 aros_gui_libdir
="${aros_gui_basedir}/lib"
8537 aros_gui_incdir
="${aros_gui_basedir}/include"
8540 if test -n "$aros_gui_libdir" ; then
8541 aros_gui_ldflags
="-L ${aros_gui_libdir}"
8544 if test -n "$aros_gui_incdir" ; then
8545 aros_gui_ccflags
="-I ${aros_gui_incdir}"
8547 aros_gui_incdir
="${aros_sysincludes}"
8552 if test ! -d ${aros_inc_dir} ; then
8553 ${MKDIR} ${aros_inc_dir}
8555 if test ! -d ${aros_geninc_dir} ; then
8556 ${MKDIR} ${aros_geninc_dir}
8558 if test ! -d ${aros_hostcfg_dir} ; then
8559 ${MKDIR} ${aros_hostcfg_dir}
8561 if test ! -d ${aros_targetcfg_dir} ; then
8562 ${MKDIR} ${aros_targetcfg_dir}
8564 if test ! -d ${aros_tools_dir} ; then
8565 ${MKDIR} ${aros_tools_dir}
8567 if test ! -d ${aros_scripts_dir} ; then
8568 ${MKDIR} ${aros_scripts_dir}
8571 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
8574 ac_config_commands
="$ac_config_commands compiler_executable"
8576 ac_config_commands
="$ac_config_commands genshared_executable"
8578 ac_config_commands
="$ac_config_commands genmf_executable"
8580 ac_config_commands
="$ac_config_commands adflib_myaros.conf_executable"
8583 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"
8586 cat >confcache
<<\_ACEOF
8587 # This file is a shell script that caches the results of configure
8588 # tests run on this system so they can be shared between configure
8589 # scripts and configure runs, see configure's option --config-cache.
8590 # It is not useful on other systems. If it contains results you don't
8591 # want to keep, you may remove or edit it.
8593 # config.status only pays attention to the cache file if you give it
8594 # the --recheck option to rerun configure.
8596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8602 # The following way of writing the cache mishandles newlines in values,
8603 # but we know of no workaround that is simple, portable, and efficient.
8604 # So, don't put newlines in cache variables' values.
8605 # Ultrix sh set writes to stderr and can't be redirected directly,
8606 # and sets the high bit in the cache file unless we assign to the vars.
8609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8611 # `set' does not quote correctly, so add quotes (double-quote
8612 # substitution turns \\\\ into \\, and sed turns \\ into \).
8615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8618 # `set' quotes correctly as required by POSIX, so do not add quotes.
8620 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8627 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8629 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8631 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8632 if test -w $cache_file; then
8633 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8634 cat confcache
>$cache_file
8636 echo "not updating unwritable cache $cache_file"
8641 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8642 # Let make expand exec_prefix.
8643 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8647 # trailing colons and then remove the whole line if VPATH becomes empty
8648 # (actually we leave an empty line to preserve line numbers).
8649 if test "x$srcdir" = x.
; then
8650 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8651 s/:*\$(srcdir):*/:/;
8652 s/:*\${srcdir}:*/:/;
8654 s/^\([^=]*=[ ]*\):*/\1/;
8660 DEFS
=-DHAVE_CONFIG_H
8664 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8665 # 1. Remove the extension, and $U if already installed.
8666 ac_i
=`echo "$ac_i" |
8667 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8669 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8670 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8674 LTLIBOBJS
=$ac_ltlibobjs
8678 : ${CONFIG_STATUS=./config.status}
8679 ac_clean_files_save
=$ac_clean_files
8680 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8681 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8682 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8683 cat >$CONFIG_STATUS <<_ACEOF
8685 # Generated by $as_me.
8686 # Run this file to recreate the current configuration.
8687 # Compiler output produced by configure, useful for debugging
8688 # configure, is in config.log if it exists.
8693 SHELL=\${CONFIG_SHELL-$SHELL}
8696 cat >>$CONFIG_STATUS <<\_ACEOF
8697 ## --------------------- ##
8698 ## M4sh Initialization. ##
8699 ## --------------------- ##
8701 # Be Bourne compatible
8702 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8705 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8706 # is contrary to our usage. Disable this feature.
8707 alias -g '${1+"$@"}'='"$@"'
8708 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8711 DUALCASE
=1; export DUALCASE
# for MKS sh
8713 # Support unset when possible.
8714 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8721 # Work around bugs in pre-3.0 UWIN ksh.
8722 $as_unset ENV MAIL MAILPATH
8729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8731 LC_TELEPHONE LC_TIME
8733 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8734 eval $as_var=C
; export $as_var
8740 # Required to use basename.
8741 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8747 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8748 as_basename
=basename
8754 # Name of the executable.
8755 as_me
=`$as_basename "$0" ||
8756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8757 X"$0" : 'X\(//\)$' \| \
8758 X"$0" : 'X\(/\)$' \| \
8759 . : '\(.\)' 2>/dev/null ||
8761 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8762 /^X\/\(\/\/\)$/{ s//\1/; q; }
8763 /^X\/\(\/\).*/{ s//\1/; q; }
8767 # PATH needs CR, and LINENO needs CR and PATH.
8768 # Avoid depending upon Character Ranges.
8769 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8770 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8771 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8772 as_cr_digits
='0123456789'
8773 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8775 # The user is always right.
8776 if test "${PATH_SEPARATOR+set}" != set; then
8777 echo "#! /bin/sh" >conf$$.sh
8778 echo "exit 0" >>conf$$.sh
8780 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8791 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8792 test "x$as_lineno_1" != "x$as_lineno_2" &&
8793 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8794 # Find who we are. Look in the path if we contain no path at all
8797 *[\\/]* ) as_myself
=$0 ;;
8798 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir
=.
8803 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8808 # We did not find ourselves, most probably we were run as `sh COMMAND'
8809 # in which case we are not to be found in the path.
8810 if test "x$as_myself" = x
; then
8813 if test ! -f "$as_myself"; then
8814 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8815 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8816 { (exit 1); exit 1; }; }
8818 case $CONFIG_SHELL in
8820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8821 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8824 test -z "$as_dir" && as_dir
=.
8825 for as_base
in sh bash ksh sh5
; do
8828 if ("$as_dir/$as_base" -c '
8831 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8832 test "x$as_lineno_1" != "x$as_lineno_2" &&
8833 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8834 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8835 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8836 CONFIG_SHELL
=$as_dir/$as_base
8838 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8847 # uniformly replaced by the line number. The first 'sed' inserts a
8848 # line-number line before each line; the second 'sed' does the real
8849 # work. The second script uses 'N' to pair each line-number line
8850 # with the numbered line, and appends trailing '-' during
8851 # substitution so that $LINENO is not a special case at line end.
8852 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8853 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8854 sed '=' <$as_myself |
8859 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8862 s,^['$as_cr_digits']*\n,,
8864 chmod +x
$as_me.lineno ||
8865 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8866 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8867 { (exit 1); exit 1; }; }
8869 # Don't try to exec as it changes $[0], causing all sort of problems
8870 # (the dirname of $[0] is not the place where we might find the
8871 # original and so on. Autoconf is especially sensible to this).
8873 # Exit status is that of the last command.
8878 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8879 *c
*,-n*) ECHO_N
= ECHO_C
='
8881 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8882 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8885 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8891 rm -f conf$$ conf$$.exe conf$$.
file
8893 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8894 # We could just check for DJGPP; but this test a) works b) is more generic
8895 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8896 if test -f conf$$.exe
; then
8897 # Don't use ln at all; we don't have any links
8902 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8907 rm -f conf$$ conf$$.exe conf$$.
file
8909 if mkdir
-p .
2>/dev
/null
; then
8912 test -d .
/-p && rmdir .
/-p
8916 as_executable_p
="test -f"
8918 # Sed expression to map a string onto a valid CPP name.
8919 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8921 # Sed expression to map a string onto a valid variable name.
8922 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8926 # We need space, tab and new line, in precisely that order.
8936 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8937 # report actual input values of CONFIG_FILES etc. instead of their
8938 # values after options handling. Logging --version etc. is OK.
8942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8943 ## Running $as_me. ##
8948 This file was extended by $as_me, which was
8949 generated by GNU Autoconf 2.59. Invocation command line was
8951 CONFIG_FILES = $CONFIG_FILES
8952 CONFIG_HEADERS = $CONFIG_HEADERS
8953 CONFIG_LINKS = $CONFIG_LINKS
8954 CONFIG_COMMANDS = $CONFIG_COMMANDS
8958 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8962 # Files that config.status was made for.
8963 if test -n "$ac_config_files"; then
8964 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8967 if test -n "$ac_config_headers"; then
8968 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8971 if test -n "$ac_config_links"; then
8972 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8975 if test -n "$ac_config_commands"; then
8976 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8979 cat >>$CONFIG_STATUS <<\_ACEOF
8982 \`$as_me' instantiates files from templates according to the
8983 current configuration.
8985 Usage: $0 [OPTIONS] [FILE]...
8987 -h, --help print this help, then exit
8988 -V, --version print version number, then exit
8989 -q, --quiet do not print progress messages
8990 -d, --debug don't remove temporary files
8991 --recheck update $as_me by reconfiguring in the same conditions
8992 --file=FILE[:TEMPLATE]
8993 instantiate the configuration file FILE
8994 --header=FILE[:TEMPLATE]
8995 instantiate the configuration header FILE
8997 Configuration files:
9000 Configuration headers:
9003 Configuration commands:
9006 Report bugs to <bug-autoconf@gnu.org>."
9009 cat >>$CONFIG_STATUS <<_ACEOF
9012 configured by $0, generated by GNU Autoconf 2.59,
9013 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9015 Copyright (C) 2003 Free Software Foundation, Inc.
9016 This config.status script is free software; the Free Software Foundation
9017 gives unlimited permission to copy, distribute and modify it."
9021 cat >>$CONFIG_STATUS <<\_ACEOF
9022 # If no file are specified by the user, then we need to provide default
9023 # value. By we need to know if files were specified by the user.
9029 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9030 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9038 *) # This is not an option, so the user has probably given explicit
9041 ac_need_defaults
=false
;;
9045 # Handling of the options.
9047 cat >>$CONFIG_STATUS <<\_ACEOF
9048 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9050 --version |
--vers* |
-V )
9051 echo "$ac_cs_version"; exit 0 ;;
9053 # Conflict between --help and --header
9054 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9055 Try \`$0 --help' for more information." >&5
9056 echo "$as_me: error: ambiguous option: $1
9057 Try \`$0 --help' for more information." >&2;}
9058 { (exit 1); exit 1; }; };;
9059 --help |
--hel |
-h )
9060 echo "$ac_cs_usage"; exit 0 ;;
9061 --debug |
--d* |
-d )
9063 --file |
--fil |
--fi |
--f )
9065 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9066 ac_need_defaults
=false
;;
9067 --header |
--heade |
--head |
--hea )
9069 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9070 ac_need_defaults
=false
;;
9071 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9072 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9076 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9077 Try \`$0 --help' for more information." >&5
9078 echo "$as_me: error: unrecognized option: $1
9079 Try \`$0 --help' for more information." >&2;}
9080 { (exit 1); exit 1; }; } ;;
9082 *) ac_config_targets
="$ac_config_targets $1" ;;
9088 ac_configure_extra_args
=
9090 if $ac_cs_silent; then
9092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9096 cat >>$CONFIG_STATUS <<_ACEOF
9097 if \$ac_cs_recheck; then
9098 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9099 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9104 cat >>$CONFIG_STATUS <<_ACEOF
9106 # INIT-COMMANDS section.
9110 aros_tools_dir=${aros_tools_dir}
9111 aros_target_cpu=${aros_target_cpu}
9112 aros_target_arch=${aros_target_arch}
9113 aros_target_suffix=${aros_target_suffix}
9114 aros_target_nm_ln=${aros_target_nm_ln}
9115 aros_target_ar_ln=${aros_target_ar_ln}
9116 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9117 aros_target_objdump_ln=${aros_target_objdump_ln}
9118 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9119 aros_target_strip_ln=${aros_target_strip_ln}
9122 aros_scripts_dir=${aros_scripts_dir}
9124 aros_tools_dir=${aros_tools_dir}
9131 cat >>$CONFIG_STATUS <<\_ACEOF
9132 for ac_config_target
in $ac_config_targets
9134 case "$ac_config_target" in
9135 # Handling of arguments.
9136 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9137 "rom/mmakefile" ) CONFIG_FILES
="$CONFIG_FILES rom/mmakefile" ;;
9138 "${aros_inc_dir}/config.h" ) CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9139 "${aros_geninc_dir}/config.h" ) CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9140 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9141 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9142 "mmake.config" ) CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
9143 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9144 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9145 "${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" ;;
9146 "${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" ;;
9147 "${aros_scripts_dir}/genshared" ) CONFIG_FILES
="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9148 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9149 "tools/adflib/myconf.aros" ) CONFIG_FILES
="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9150 "compiler_executable" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
9151 "genshared_executable" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS genshared_executable" ;;
9152 "genmf_executable" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
9153 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9154 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9155 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9156 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9157 { (exit 1); exit 1; }; };;
9161 # If the user did not use the arguments to specify the items to instantiate,
9162 # then the envvar interface is used. Set only those that are not.
9163 # We use the long form for the default assignment because of an extremely
9164 # bizarre bug on SunOS 4.1.3.
9165 if $ac_need_defaults; then
9166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9171 # Have a temporary directory for convenience. Make it in the build tree
9172 # simply because there is no reason to put it here, and in addition,
9173 # creating and moving files from /tmp can sometimes cause problems.
9174 # Create a temporary directory, and hook for its removal unless debugging.
9177 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9178 trap '{ (exit 1); exit 1; }' 1 2 13 15
9181 # Create a (secure) tmp directory for tmp files.
9184 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9185 test -n "$tmp" && test -d "$tmp"
9188 tmp
=.
/confstat$$
-$RANDOM
9189 (umask 077 && mkdir
$tmp)
9192 echo "$me: cannot create a temporary directory in ." >&2
9193 { (exit 1); exit 1; }
9198 cat >>$CONFIG_STATUS <<_ACEOF
9201 # CONFIG_FILES section.
9204 # No need to generate the scripts if there are no CONFIG_FILES.
9205 # This happens for instance when ./config.status config.h
9206 if test -n "\$CONFIG_FILES"; then
9207 # Protect against being on the right side of a sed subst in config.status.
9208 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9209 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9210 s,@SHELL@,$SHELL,;t t
9211 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9212 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9213 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9214 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9215 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9216 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9217 s,@exec_prefix@,$exec_prefix,;t t
9218 s,@prefix@,$prefix,;t t
9219 s,@program_transform_name@,$program_transform_name,;t t
9220 s,@bindir@,$bindir,;t t
9221 s,@sbindir@,$sbindir,;t t
9222 s,@libexecdir@,$libexecdir,;t t
9223 s,@datadir@,$datadir,;t t
9224 s,@sysconfdir@,$sysconfdir,;t t
9225 s,@sharedstatedir@,$sharedstatedir,;t t
9226 s,@localstatedir@,$localstatedir,;t t
9227 s,@libdir@,$libdir,;t t
9228 s,@includedir@,$includedir,;t t
9229 s,@oldincludedir@,$oldincludedir,;t t
9230 s,@infodir@,$infodir,;t t
9231 s,@mandir@,$mandir,;t t
9232 s,@build_alias@,$build_alias,;t t
9233 s,@host_alias@,$host_alias,;t t
9234 s,@target_alias@,$target_alias,;t t
9236 s,@ECHO_C@,$ECHO_C,;t t
9237 s,@ECHO_N@,$ECHO_N,;t t
9238 s,@ECHO_T@,$ECHO_T,;t t
9240 s,@build@,$build,;t t
9241 s,@build_cpu@,$build_cpu,;t t
9242 s,@build_vendor@,$build_vendor,;t t
9243 s,@build_os@,$build_os,;t t
9245 s,@host_cpu@,$host_cpu,;t t
9246 s,@host_vendor@,$host_vendor,;t t
9247 s,@host_os@,$host_os,;t t
9249 s,@CFLAGS@,$CFLAGS,;t t
9250 s,@LDFLAGS@,$LDFLAGS,;t t
9251 s,@CPPFLAGS@,$CPPFLAGS,;t t
9252 s,@ac_ct_CC@,$ac_ct_CC,;t t
9253 s,@EXEEXT@,$EXEEXT,;t t
9254 s,@OBJEXT@,$OBJEXT,;t t
9257 s,@MMAKE@,$MMAKE,;t t
9258 s,@aros_host_ld@,$aros_host_ld,;t t
9259 s,@HOST_AR@,$HOST_AR,;t t
9260 s,@HOST_RANLIB@,$HOST_RANLIB,;t t
9265 s,@MKDIR@,$MKDIR,;t t
9266 s,@TOUCH@,$TOUCH,;t t
9271 s,@BISON@,$BISON,;t t
9272 s,@PNGTOPNM@,$PNGTOPNM,;t t
9273 s,@PPMTOILBM@,$PPMTOILBM,;t t
9274 s,@STRIP@,$STRIP,;t t
9276 s,@CHMOD@,$CHMOD,;t t
9277 s,@PYTHON@,$PYTHON,;t t
9278 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
9279 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
9280 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
9281 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
9282 s,@pythondir@,$pythondir,;t t
9283 s,@pkgpythondir@,$pkgpythondir,;t t
9284 s,@pyexecdir@,$pyexecdir,;t t
9285 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
9289 s,@EGREP@,$EGREP,;t t
9290 s,@LIBOBJS@,$LIBOBJS,;t t
9291 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
9292 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
9293 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
9294 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
9295 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
9296 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
9297 s,@DISTCC@,$DISTCC,;t t
9298 s,@CCACHE@,$CCACHE,;t t
9299 s,@SHARED_LD@,$SHARED_LD,;t t
9300 s,@KERNEL_LD@,$KERNEL_LD,;t t
9301 s,@TARGET_CC@,$TARGET_CC,;t t
9302 s,@TARGET_AS@,$TARGET_AS,;t t
9303 s,@TARGET_LD@,$TARGET_LD,;t t
9304 s,@NOSTDINC_CFLAGS@,$NOSTDINC_CFLAGS,;t t
9305 s,@NOSTARTUP_LDFLAGS@,$NOSTARTUP_LDFLAGS,;t t
9306 s,@NIX_LDFLAGS@,$NIX_LDFLAGS,;t t
9307 s,@DETACH_LDFLAGS@,$DETACH_LDFLAGS,;t t
9308 s,@NOSTDLIB_LDFLAGS@,$NOSTDLIB_LDFLAGS,;t t
9309 s,@aros_cc_pre@,$aros_cc_pre,;t t
9311 s,@RANLIB@,$RANLIB,;t t
9313 s,@NM_PLAIN@,$NM_PLAIN,;t t
9314 s,@OBJDUMP@,$OBJDUMP,;t t
9315 s,@OBJCOPY@,$OBJCOPY,;t t
9316 s,@aros_arch@,$aros_arch,;t t
9317 s,@aros_cpu@,$aros_cpu,;t t
9318 s,@aros_flavour@,$aros_flavour,;t t
9319 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
9320 s,@TOPDIR@,$TOPDIR,;t t
9321 s,@aros_host_arch@,$aros_host_arch,;t t
9322 s,@aros_host_cpu@,$aros_host_cpu,;t t
9323 s,@aros_host_cc@,$aros_host_cc,;t t
9324 s,@aros_host_make@,$aros_host_make,;t t
9325 s,@aros_host_cflags@,$aros_host_cflags,;t t
9326 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
9327 s,@aros_host_debug@,$aros_host_debug,;t t
9328 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
9329 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
9330 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
9331 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
9332 s,@aros_tools_dir@,$aros_tools_dir,;t t
9333 s,@aros_target_arch@,$aros_target_arch,;t t
9334 s,@aros_target_cpu@,$aros_target_cpu,;t t
9335 s,@aros_target_variant@,$aros_target_variant,;t t
9336 s,@aros_target_suffix@,$aros_target_suffix,;t t
9337 s,@aros_target_incl@,$aros_target_incl,;t t
9338 s,@aros_target_cc@,$aros_target_cc,;t t
9339 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
9340 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
9341 s,@aros_target_objdump@,$aros_target_objdump,;t t
9342 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
9343 s,@aros_target_strip@,$aros_target_strip,;t t
9344 s,@aros_target_as@,$aros_target_as,;t t
9345 s,@aros_target_nm@,$aros_target_nm,;t t
9346 s,@aros_shared_default@,$aros_shared_default,;t t
9347 s,@aros_object_format@,$aros_object_format,;t t
9348 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
9349 s,@aros_config_cflags@,$aros_config_cflags,;t t
9350 s,@aros_config_aflags@,$aros_config_aflags,;t t
9351 s,@aros_target_ld@,$aros_target_ld,;t t
9352 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
9353 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
9354 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
9355 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
9356 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
9357 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
9358 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
9359 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
9360 s,@aros_target_genmap@,$aros_target_genmap,;t t
9361 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
9362 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
9363 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
9364 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
9365 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
9366 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
9367 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
9368 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
9369 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
9370 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
9371 s,@aros_serial_debug@,$aros_serial_debug,;t t
9372 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
9373 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
9374 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
9375 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
9376 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
9377 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
9378 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
9379 s,@aros_debug@,$aros_debug,;t t
9380 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
9381 s,@aros_stack_debug@,$aros_stack_debug,;t t
9382 s,@aros_modules_debug@,$aros_modules_debug,;t t
9383 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
9384 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
9385 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9390 cat >>$CONFIG_STATUS <<\_ACEOF
9391 # Split the substitutions into bite-sized pieces for seds with
9392 # small command number limits, like on Digital OSF/1 and HP-UX.
9394 ac_sed_frag
=1 # Number of current file.
9395 ac_beg
=1 # First line for current file.
9396 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9399 while $ac_more_lines; do
9400 if test $ac_beg -gt 1; then
9401 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9403 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9405 if test ! -s $tmp/subs.frag
; then
9408 # The purpose of the label and of the branching condition is to
9409 # speed up the sed processing (if there are no `@' at all, there
9410 # is no need to browse any of the substitutions).
9411 # These are the two extra sed commands mentioned above.
9413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9414 if test -z "$ac_sed_cmds"; then
9415 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9417 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9419 ac_sed_frag
=`expr $ac_sed_frag + 1`
9421 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9424 if test -z "$ac_sed_cmds"; then
9427 fi # test -n "$CONFIG_FILES"
9430 cat >>$CONFIG_STATUS <<\_ACEOF
9431 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9434 - |
*:- |
*:-:* ) # input from stdin
9436 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9437 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9438 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9439 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9440 * ) ac_file_in
=$ac_file.
in ;;
9443 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9444 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9446 X"$ac_file" : 'X\(//\)[^/]' \| \
9447 X"$ac_file" : 'X\(//\)$' \| \
9448 X"$ac_file" : 'X\(/\)' \| \
9449 . : '\(.\)' 2>/dev/null ||
9451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9453 /^X\(\/\/\)$/{ s//\1/; q; }
9454 /^X\(\/\).*/{ s//\1/; q; }
9456 { if $as_mkdir_p; then
9461 while test ! -d "$as_dir"; do
9462 as_dirs
="$as_dir $as_dirs"
9463 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9465 X"$as_dir" : 'X\(//\)[^/]' \| \
9466 X"$as_dir" : 'X\(//\)$' \| \
9467 X"$as_dir" : 'X\(/\)' \| \
9468 . : '\(.\)' 2>/dev/null ||
9470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9472 /^X\(\/\/\)$/{ s//\1/; q; }
9473 /^X\(\/\).*/{ s//\1/; q; }
9476 test ! -n "$as_dirs" || mkdir
$as_dirs
9477 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9479 { (exit 1); exit 1; }; }; }
9483 if test "$ac_dir" != .
; then
9484 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9485 # A "../" for each directory in $ac_dir_suffix.
9486 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9488 ac_dir_suffix
= ac_top_builddir
=
9492 .
) # No --srcdir option. We are building in place.
9494 if test -z "$ac_top_builddir"; then
9497 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9499 [\\/]* | ?
:[\\/]* ) # Absolute path.
9500 ac_srcdir
=$srcdir$ac_dir_suffix;
9501 ac_top_srcdir
=$srcdir ;;
9503 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9504 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9507 # Do not use `cd foo && pwd` to compute absolute paths, because
9508 # the directories may not exist.
9510 .
) ac_abs_builddir
="$ac_dir";;
9513 .
) ac_abs_builddir
=`pwd`;;
9514 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9515 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9518 case $ac_abs_builddir in
9519 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9521 case ${ac_top_builddir}.
in
9522 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9523 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9524 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9527 case $ac_abs_builddir in
9528 .
) ac_abs_srcdir
=$ac_srcdir;;
9531 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9532 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9533 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9536 case $ac_abs_builddir in
9537 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9539 case $ac_top_srcdir in
9540 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9541 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9542 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9548 if test x
"$ac_file" != x-
; then
9549 { echo "$as_me:$LINENO: creating $ac_file" >&5
9550 echo "$as_me: creating $ac_file" >&6;}
9553 # Let's still pretend it is `configure' which instantiates (i.e., don't
9554 # use $as_me), people would be surprised to read:
9555 # /* config.h. Generated by config.status. */
9556 if test x
"$ac_file" = x-
; then
9559 configure_input
="$ac_file. "
9561 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9562 sed 's,.*/,,'` by configure."
9564 # First look for the input files in the build tree, otherwise in the
9566 ac_file_inputs
=`IFS=:
9567 for f in $ac_file_in; do
9569 -) echo $tmp/stdin ;;
9571 # Absolute (can't be DOS-style, as IFS=:)
9572 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9573 echo "$as_me: error: cannot find input file: $f" >&2;}
9574 { (exit 1); exit 1; }; }
9577 if test -f "$f"; then
9580 elif test -f "$srcdir/$f"; then
9585 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9586 echo "$as_me: error: cannot find input file: $f" >&2;}
9587 { (exit 1); exit 1; }; }
9590 done` ||
{ (exit 1); exit 1; }
9592 cat >>$CONFIG_STATUS <<_ACEOF
9596 cat >>$CONFIG_STATUS <<\_ACEOF
9598 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9599 s
,@configure_input@
,$configure_input,;t t
9600 s
,@srcdir@
,$ac_srcdir,;t t
9601 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9602 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9603 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9604 s
,@builddir@
,$ac_builddir,;t t
9605 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9606 s
,@top_builddir@
,$ac_top_builddir,;t t
9607 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9608 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9610 if test x"$ac_file" != x-; then
9611 mv $tmp/out $ac_file
9619 cat >>$CONFIG_STATUS <<\_ACEOF
9622 # CONFIG_HEADER section.
9625 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9626 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9628 # ac_d sets the value in "#define NAME VALUE" lines.
9629 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9630 ac_dB
='[ ].*$,\1#\2'
9633 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9634 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9635 ac_uB
='$,\1#\2define\3'
9639 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9642 - |
*:- |
*:-:* ) # input from stdin
9644 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9645 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9646 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9647 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9648 * ) ac_file_in
=$ac_file.
in ;;
9651 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9652 echo "$as_me: creating $ac_file" >&6;}
9654 # First look for the input files in the build tree, otherwise in the
9656 ac_file_inputs
=`IFS=:
9657 for f in $ac_file_in; do
9659 -) echo $tmp/stdin ;;
9661 # Absolute (can't be DOS-style, as IFS=:)
9662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9663 echo "$as_me: error: cannot find input file: $f" >&2;}
9664 { (exit 1); exit 1; }; }
9665 # Do quote $f, to prevent DOS paths from being IFS'd.
9668 if test -f "$f"; then
9671 elif test -f "$srcdir/$f"; then
9676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9677 echo "$as_me: error: cannot find input file: $f" >&2;}
9678 { (exit 1); exit 1; }; }
9681 done` ||
{ (exit 1); exit 1; }
9682 # Remove the trailing spaces.
9683 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9687 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9688 # `conftest.undefs', that substitutes the proper values into
9689 # config.h.in to produce config.h. The first handles `#define'
9690 # templates, and the second `#undef' templates.
9691 # And first: Protect against being on the right side of a sed subst in
9692 # config.status. Protect against being in an unquoted here document
9694 rm -f conftest.defines conftest.undefs
9695 # Using a here document instead of a string reduces the quoting nightmare.
9696 # Putting comments in sed scripts is not portable.
9698 # `end' is used to avoid that the second main sed command (meant for
9699 # 0-ary CPP macros) applies to n-ary macro definitions.
9700 # See the Autoconf documentation for `clear'.
9701 cat >confdef2sed.
sed <<\_ACEOF
9706 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9708 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9711 # If some macros were called several times there might be several times
9712 # the same #defines, which is useless. Nevertheless, we may not want to
9713 # sort them, since we want the *last* AC-DEFINE to be honored.
9714 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9715 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9716 rm -f confdef2sed.sed
9718 # This sed command replaces #undef with comments. This is necessary, for
9719 # example, in the case of _POSIX_SOURCE, which is predefined and required
9720 # on some systems where configure will not decide to define it.
9721 cat >>conftest.undefs <<\_ACEOF
9722 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9725 # Break up conftest.defines because some shells have a limit on the size
9726 # of here documents, and old seds have small limits too (100 cmds).
9727 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9728 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9729 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9730 echo ' :' >>$CONFIG_STATUS
9732 while grep . conftest.defines >/dev/null
9734 # Write a limited-size here document to $tmp/defines.sed.
9735 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9736 # Speed up: don't consider the non `#define' lines.
9737 echo '/^[ ]*#[ ]*define/!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.defines
>>$CONFIG_STATUS
9743 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9747 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9748 rm -f conftest.defines
9749 mv conftest.
tail conftest.defines
9751 rm -f conftest.defines
9752 echo ' fi # grep' >>$CONFIG_STATUS
9753 echo >>$CONFIG_STATUS
9755 # Break up conftest.undefs because some shells have a limit on the size
9756 # of here documents, and old seds have small limits too (100 cmds).
9757 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9759 while grep . conftest.undefs
>/dev
/null
9761 # Write a limited-size here document to $tmp/undefs.sed.
9762 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9763 # Speed up: don't consider the non
`#undef'
9764 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9765 # Work around the forget-to-reset-the-flag bug.
9766 echo 't clr' >>$CONFIG_STATUS
9767 echo ': clr' >>$CONFIG_STATUS
9768 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9770 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9774 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9775 rm -f conftest.undefs
9776 mv conftest.tail conftest.undefs
9778 rm -f conftest.undefs
9780 cat >>$CONFIG_STATUS <<\_ACEOF
9781 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9782 # use $as_me), people would be surprised to read:
9783 # /* config.h. Generated by config.status. */
9784 if test x
"$ac_file" = x-
; then
9785 echo "/* Generated by configure. */" >$tmp/config.h
9787 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9789 cat $tmp/in >>$tmp/config.h
9791 if test x
"$ac_file" != x-
; then
9792 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9793 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9794 echo "$as_me: $ac_file is unchanged" >&6;}
9796 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9798 X"$ac_file" : 'X\(//\)[^/]' \| \
9799 X"$ac_file" : 'X\(//\)$' \| \
9800 X"$ac_file" : 'X\(/\)' \| \
9801 . : '\(.\)' 2>/dev/null ||
9803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9805 /^X\(\/\/\)$/{ s//\1/; q; }
9806 /^X\(\/\).*/{ s//\1/; q; }
9808 { if $as_mkdir_p; then
9813 while test ! -d "$as_dir"; do
9814 as_dirs
="$as_dir $as_dirs"
9815 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9817 X"$as_dir" : 'X\(//\)[^/]' \| \
9818 X"$as_dir" : 'X\(//\)$' \| \
9819 X"$as_dir" : 'X\(/\)' \| \
9820 . : '\(.\)' 2>/dev/null ||
9822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9824 /^X\(\/\/\)$/{ s//\1/; q; }
9825 /^X\(\/\).*/{ s//\1/; q; }
9828 test ! -n "$as_dirs" || mkdir
$as_dirs
9829 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9831 { (exit 1); exit 1; }; }; }
9834 mv $tmp/config.h
$ac_file
9842 cat >>$CONFIG_STATUS <<\_ACEOF
9845 # CONFIG_COMMANDS section.
9847 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9848 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9849 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9850 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9851 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9852 X"$ac_dest" : 'X\(//\)[^/]' \| \
9853 X"$ac_dest" : 'X\(//\)$' \| \
9854 X"$ac_dest" : 'X\(/\)' \| \
9855 . : '\(.\)' 2>/dev/null ||
9857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9859 /^X\(\/\/\)$/{ s//\1/; q; }
9860 /^X\(\/\).*/{ s//\1/; q; }
9862 { if $as_mkdir_p; then
9867 while test ! -d "$as_dir"; do
9868 as_dirs
="$as_dir $as_dirs"
9869 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9871 X"$as_dir" : 'X\(//\)[^/]' \| \
9872 X"$as_dir" : 'X\(//\)$' \| \
9873 X"$as_dir" : 'X\(/\)' \| \
9874 . : '\(.\)' 2>/dev/null ||
9876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9878 /^X\(\/\/\)$/{ s//\1/; q; }
9879 /^X\(\/\).*/{ s//\1/; q; }
9882 test ! -n "$as_dirs" || mkdir
$as_dirs
9883 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9884 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9885 { (exit 1); exit 1; }; }; }
9889 if test "$ac_dir" != .
; then
9890 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9891 # A "../" for each directory in $ac_dir_suffix.
9892 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9894 ac_dir_suffix
= ac_top_builddir
=
9898 .
) # No --srcdir option. We are building in place.
9900 if test -z "$ac_top_builddir"; then
9903 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9905 [\\/]* | ?
:[\\/]* ) # Absolute path.
9906 ac_srcdir
=$srcdir$ac_dir_suffix;
9907 ac_top_srcdir
=$srcdir ;;
9909 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9910 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9913 # Do not use `cd foo && pwd` to compute absolute paths, because
9914 # the directories may not exist.
9916 .
) ac_abs_builddir
="$ac_dir";;
9919 .
) ac_abs_builddir
=`pwd`;;
9920 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9921 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9924 case $ac_abs_builddir in
9925 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9927 case ${ac_top_builddir}.
in
9928 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9929 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9930 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9933 case $ac_abs_builddir in
9934 .
) ac_abs_srcdir
=$ac_srcdir;;
9937 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9938 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9939 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9942 case $ac_abs_builddir in
9943 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9945 case $ac_top_srcdir in
9946 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9947 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9948 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9953 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9954 echo "$as_me: executing $ac_dest commands" >&6;}
9956 compiler_executable
)
9957 prefix
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
9959 prefix
="${prefix}/${aros_target_cpu}-aros"
9960 prefix2
=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
9964 chmod a
+x
${prefix2}-gcc ${prefix2}-ld
9966 ln -sf ${prefix2}-gcc ${prefix}-gcc
9967 ln -sf ${prefix2}-ld ${prefix}-ld
9969 ln -sf $aros_target_nm_ln ${prefix}-nm
9970 ln -sf $aros_target_ar_ln ${prefix}-ar
9971 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
9972 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
9973 ln -sf $aros_target_objdump_ln ${prefix}-objdump
9974 ln -sf $aros_target_strip_ln ${prefix}-strip
9976 ln -sf $aros_target_nm_ln ${prefix2}-nm
9977 ln -sf $aros_target_ar_ln ${prefix2}-ar
9978 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
9979 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
9980 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
9981 ln -sf $aros_target_strip_ln ${prefix2}-strip
9983 genshared_executable
) chmod a
+x
${aros_scripts_dir}/genshared
;;
9984 genmf_executable
) chmod a
+x
${aros_tools_dir}/genmf.py
;;
9985 adflib_myaros.conf_executable
) chmod a
+x tools
/adflib
/myconf.aros
9991 cat >>$CONFIG_STATUS <<\_ACEOF
9993 { (exit 0); exit 0; }
9995 chmod +x
$CONFIG_STATUS
9996 ac_clean_files
=$ac_clean_files_save
9999 # configure is writing to config.log, and then calls config.status.
10000 # config.status does its own redirection, appending to config.log.
10001 # Unfortunately, on DOS this fails, as config.log is still kept open
10002 # by configure, so config.status won't be able to write to it; its
10003 # output is simply discarded. So we exec the FD to /dev/null,
10004 # effectively closing config.log, so it can be properly (re)opened and
10005 # appended to by config.status. When coming back to configure, we
10006 # need to make the FD available again.
10007 if test "$no_create" != yes; then
10009 ac_config_status_args
=
10010 test "$silent" = yes &&
10011 ac_config_status_args
="$ac_config_status_args --quiet"
10013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10016 # would make configure fail if this is the last instruction.
10017 $ac_cs_success ||
{ (exit 1); exit 1; }
10022 #XXX compatability...
10023 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
10025 if test -n "$aros_shared_cflags" ; then
10026 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10027 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg