2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for expect 5.45.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='expect'
270 PACKAGE_TARNAME='expect'
271 PACKAGE_VERSION='5.45'
272 PACKAGE_STRING='expect 5.45'
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_subdirs_all="$ac_subdirs_all testsuite"
313 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 CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC CLEANFILES TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS TCL_INCLUDES TCL_TOP_DIR_NATIVE TCL_THREADS SHARED_BUILD AR CELIB_DIR CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR CFLAGS_DEFAULT LDFLAGS_DEFAULT TCL_DBGX build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os subdirs EXP_BUILD_LIB_SPEC EXP_CC_SEARCH_FLAGS SETUID SETPGRP_VOID DEFAULT_STTY_ARGS TCL_DL_LIBS TCL_CC_SEARCH_FLAGS PKG_SOURCES PKG_OBJECTS MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE TCLSH_PROG LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures expect 5.45 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of expect 5.45:";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-threads build with threads
852 --enable-shared build and link with shared libraries (default: on)
853 --enable-64bit enable 64bit support (default: off)
854 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
855 --disable-rpath disable rpath support (default: on)
856 --enable-wince enable Win/CE support (where applicable)
857 --enable-symbols build with debugging symbols (default: off)
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --with-tcl directory containing tcl configuration
864 --with-tclinclude directory containing the public Tcl header files
865 --with-celib=DIR use Windows/CE support library from DIR
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 ac_dir_suffix= ac_top_builddir=
898 .) # No --srcdir option. We are building in place.
900 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
913 # Do not use `cd foo && pwd` to compute absolute paths, because
914 # the directories may not exist.
916 .) ac_abs_builddir="$ac_dir";;
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
924 case $ac_abs_builddir in
925 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933 case $ac_abs_builddir in
934 .) ac_abs_srcdir=$ac_srcdir;;
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942 case $ac_abs_builddir in
943 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971 test -n "$ac_init_help" && exit 0
972 if $ac_init_version; then
974 expect configure 5.45
975 generated by GNU Autoconf 2.59
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by expect $as_me 5.45, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 # TEA extensions pass this us the version of TEA they think they
1327 # are compatible with.
1330 echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
1331 echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6
1332 if test x"${PACKAGE_NAME}" = x ; then
1333 { { echo "$as_me:$LINENO: error:
1334 The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
1335 echo "$as_me: error:
1336 The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
1337 { (exit 1); exit 1; }; }
1339 if test x"3.9" = x ; then
1340 { { echo "$as_me:$LINENO: error:
1341 TEA version not specified." >&5
1342 echo "$as_me: error:
1343 TEA version not specified." >&2;}
1344 { (exit 1); exit 1; }; }
1345 elif test "3.9" != "${TEA_VERSION}" ; then
1346 echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
1347 echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6
1349 echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
1350 echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6
1352 case "`uname -s`" in
1353 *win32*|*WIN32*|*MINGW32_*)
1354 # Extract the first word of "cygpath", so it can be a program name with args.
1355 set dummy cygpath; ac_word=$2
1356 echo "$as_me:$LINENO: checking for $ac_word" >&5
1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358 if test "${ac_cv_prog_CYGPATH+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 if test -n "$CYGPATH"; then
1362 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371 ac_cv_prog_CYGPATH="cygpath -w"
1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
1381 CYGPATH=$ac_cv_prog_CYGPATH
1382 if test -n "$CYGPATH"; then
1383 echo "$as_me:$LINENO: result: $CYGPATH" >&5
1384 echo "${ECHO_T}$CYGPATH" >&6
1386 echo "$as_me:$LINENO: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1391 TEA_PLATFORM="windows"
1396 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
1405 # Check if exec_prefix is set. If not use fall back to prefix.
1406 # Note when adjusted, so that TEA_PREFIX can correct for this.
1407 # This is needed for recursive configures, since autoconf propagates
1408 # $prefix, but not $exec_prefix (doh!).
1409 if test x$exec_prefix = xNONE ; then
1410 exec_prefix_default=yes
1414 { echo "$as_me:$LINENO: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
1415 echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
1420 # This package name must be replaced statically for AC_SUBST to work
1422 # Substitute STUB_LIB_FILE in case package creates a stub library too.
1425 # We AC_SUBST these here to ensure they are subst'ed,
1426 # in case the user doesn't call TEA_ADD_...
1437 for ac_dir in tclconfig $srcdir/tclconfig; do
1438 if test -f $ac_dir/install-sh; then
1440 ac_install_sh="$ac_aux_dir/install-sh -c"
1442 elif test -f $ac_dir/install.sh; then
1444 ac_install_sh="$ac_aux_dir/install.sh -c"
1446 elif test -f $ac_dir/shtool; then
1448 ac_install_sh="$ac_aux_dir/shtool install -c"
1452 if test -z "$ac_aux_dir"; then
1453 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&5
1454 echo "$as_me: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&2;}
1455 { (exit 1); exit 1; }; }
1457 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1458 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1459 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1462 #--------------------------------------------------------------------
1463 # Configure script for package 'Expect'.
1465 #--------------------------------------------------------------------
1467 #--------------------------------------------------------------------
1468 # Load the tclConfig.sh file
1469 #--------------------------------------------------------------------
1474 # Ok, lets find the tcl configuration
1475 # First, look for one uninstalled.
1476 # the alternative search directory is invoked by --with-tcl
1479 if test x"${no_tcl}" = x ; then
1480 # we reset no_tcl in case something fails here
1483 # Check whether --with-tcl or --without-tcl was given.
1484 if test "${with_tcl+set}" = set; then
1486 with_tclconfig="${withval}"
1488 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
1489 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
1490 if test "${ac_cv_c_tclconfig+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 # First check to see if --with-tcl was specified.
1496 if test x"${with_tclconfig}" != x ; then
1497 case "${with_tclconfig}" in
1499 if test -f "${with_tclconfig}"; then
1500 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
1501 echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
1502 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
1505 if test -f "${with_tclconfig}/tclConfig.sh" ; then
1506 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
1508 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
1509 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
1510 { (exit 1); exit 1; }; }
1514 # then check for a private Tcl installation
1515 if test x"${ac_cv_c_tclconfig}" = x ; then
1518 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1519 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
1520 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1522 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1523 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
1524 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
1526 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1527 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
1528 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
1529 if test "${TEA_PLATFORM}" = "windows" \
1530 -a -f "$i/win/tclConfig.sh" ; then
1531 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
1534 if test -f "$i/unix/tclConfig.sh" ; then
1535 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
1541 # on Darwin, check in Framework installation locations
1542 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
1543 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
1544 `ls -d /Library/Frameworks 2>/dev/null` \
1545 `ls -d /Network/Library/Frameworks 2>/dev/null` \
1546 `ls -d /System/Library/Frameworks 2>/dev/null` \
1548 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
1549 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
1555 # TEA specific: on Windows, check in common installation locations
1556 if test "${TEA_PLATFORM}" = "windows" \
1557 -a x"${ac_cv_c_tclconfig}" = x ; then
1558 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
1559 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
1561 if test -f "$i/tclConfig.sh" ; then
1562 ac_cv_c_tclconfig="`(cd $i; pwd)`"
1568 # check in a few common install locations
1569 if test x"${ac_cv_c_tclconfig}" = x ; then
1570 for i in `ls -d ${libdir} 2>/dev/null` \
1571 `ls -d ${exec_prefix}/lib 2>/dev/null` \
1572 `ls -d ${prefix}/lib 2>/dev/null` \
1573 `ls -d /usr/local/lib 2>/dev/null` \
1574 `ls -d /usr/contrib/lib 2>/dev/null` \
1575 `ls -d /usr/lib 2>/dev/null` \
1576 `ls -d /usr/lib64 2>/dev/null` \
1578 if test -f "$i/tclConfig.sh" ; then
1579 ac_cv_c_tclconfig="`(cd $i; pwd)`"
1585 # check in a few other private locations
1586 if test x"${ac_cv_c_tclconfig}" = x ; then
1589 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
1590 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
1591 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
1592 if test "${TEA_PLATFORM}" = "windows" \
1593 -a -f "$i/win/tclConfig.sh" ; then
1594 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
1597 if test -f "$i/unix/tclConfig.sh" ; then
1598 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
1607 if test x"${ac_cv_c_tclconfig}" = x ; then
1608 TCL_BIN_DIR="# no Tcl configs found"
1609 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
1610 echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
1611 { (exit 1); exit 1; }; }
1614 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
1615 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
1616 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
1621 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
1622 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
1624 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
1625 echo "$as_me:$LINENO: result: loading" >&5
1626 echo "${ECHO_T}loading" >&6
1627 . "${TCL_BIN_DIR}/tclConfig.sh"
1629 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
1630 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
1633 # eval is required to do the TCL_DBGX substitution
1634 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
1635 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
1637 # If the TCL_BIN_DIR is the build directory (not the install directory),
1638 # then set the common variable name to the value of the build variables.
1639 # For example, the variable TCL_LIB_SPEC will be set to the value
1640 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
1641 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
1642 # installed and uninstalled version of Tcl.
1643 if test -f "${TCL_BIN_DIR}/Makefile" ; then
1644 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
1645 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
1646 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
1647 elif test "`uname -s`" = "Darwin"; then
1648 # If Tcl was built as a framework, attempt to use the libraries
1649 # from the framework at the given location so that linking works
1650 # against Tcl.framework installed in an arbitrary location.
1653 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
1654 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
1655 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
1656 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
1657 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
1662 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
1663 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
1664 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
1670 # eval is required to do the TCL_DBGX substitution
1671 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
1672 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
1673 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
1674 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
1689 case "`uname -s`" in
1691 echo "$as_me:$LINENO: checking for cygwin variant" >&5
1692 echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6
1693 case ${TCL_EXTRA_CFLAGS} in
1694 *-mwin32*|*-mno-cygwin*)
1695 TEA_PLATFORM="windows"
1696 CFLAGS="$CFLAGS -mwin32"
1697 echo "$as_me:$LINENO: result: win32" >&5
1698 echo "${ECHO_T}win32" >&6
1702 echo "$as_me:$LINENO: result: unix" >&5
1703 echo "${ECHO_T}unix" >&6
1712 # The BUILD_$pkg is to define the correct extern storage class
1713 # handling when making this package
1715 cat >>confdefs.h <<_ACEOF
1716 #define BUILD_${PACKAGE_NAME}
1719 # Do this here as we have fully defined TEA_PLATFORM now
1720 if test "${TEA_PLATFORM}" = "windows" ; then
1721 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
1733 # expectk has been removed from the distribution as Tcl has supported
1734 # dynamic extensions everywhere for a while. We still allow 'expect'
1735 # to be built for the die-hard users, but expectk is just wish with
1736 # package require Expect
1737 if test "${with_tk+set}" = set ; then
1738 { echo "$as_me:$LINENO: WARNING: With Tk request ignored - use package require Tk & Expect" >&5
1739 echo "$as_me: WARNING: With Tk request ignored - use package require Tk & Expect" >&2;}
1742 #-----------------------------------------------------------------------
1743 # Handle the --prefix=... option by defaulting to what Tcl gave.
1744 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
1745 #-----------------------------------------------------------------------
1748 if test "${prefix}" = "NONE"; then
1750 if test x"${TCL_PREFIX}" != x; then
1751 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
1752 echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
1753 prefix=${TCL_PREFIX}
1755 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
1756 echo "$as_me: --prefix defaulting to /usr/local" >&6;}
1760 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
1761 -o x"${exec_prefix_default}" = x"yes" ; then
1762 if test x"${TCL_EXEC_PREFIX}" != x; then
1763 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
1764 echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
1765 exec_prefix=${TCL_EXEC_PREFIX}
1767 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
1768 echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
1774 #-----------------------------------------------------------------------
1775 # Standard compiler checks.
1776 # This sets up CC by using the CC env var, or looks for gcc otherwise.
1777 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
1778 # the basic setup necessary to compile executables.
1779 #-----------------------------------------------------------------------
1782 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
1783 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
1785 # If the user did not set CFLAGS, set it now to keep
1786 # the AC_PROG_CC macro from adding "-g -O2".
1787 if test "${CFLAGS+set}" != "set" ; then
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1796 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1798 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test -n "$CC"; then
1825 echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1833 if test -z "$ac_cv_prog_CC"; then
1835 # Extract the first word of "gcc", so it can be a program name with args.
1836 set dummy gcc; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$ac_ct_CC"; then
1843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_CC="gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 echo "${ECHO_T}$ac_ct_CC" >&6
1866 echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1875 if test -z "$CC"; then
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}cc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="${ac_tool_prefix}cc"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1913 if test -z "$ac_cv_prog_CC"; then
1915 # Extract the first word of "cc", so it can be a program name with args.
1916 set dummy cc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_CC"; then
1923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_CC="cc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1956 if test -z "$CC"; then
1957 # Extract the first word of "cc", so it can be a program name with args.
1958 set dummy cc; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1976 ac_prog_rejected=yes
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test $ac_prog_rejected = yes; then
1987 # We found a bogon in the path, so make sure we never use it.
1988 set dummy $ac_cv_prog_CC
1990 if test $# != 0; then
1991 # We chose a different compiler from the bogus one.
1992 # However, it has the same basename, so the bogon will be chosen
1993 # first if we set CC to just the basename; use the full file name.
1995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 if test -n "$CC"; then
2002 echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2010 if test -z "$CC"; then
2011 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2049 test -n "$CC" && break
2052 if test -z "$CC"; then
2056 # Extract the first word of "$ac_prog", so it can be a program name with args.
2057 set dummy $ac_prog; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC="$ac_prog"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 test -n "$ac_ct_CC" && break
2100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO:" \
2108 "checking for C compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2111 (eval $ac_compiler --version </dev/null >&5) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2116 (eval $ac_compiler -v </dev/null >&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2121 (eval $ac_compiler -V </dev/null >&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2150 (eval $ac_link_default) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Find the output, starting from the most likely. This scheme is
2155 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2158 # Be careful to initialize this variable, since it used to be cached.
2159 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2161 # b.out is created by i960 compilers.
2162 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2164 test -f "$ac_file" || continue
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2169 # This is the source file.
2172 # We found the default executable, but exeext='' is most
2176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 # FIXME: I believe we export ac_cv_exeext for Libtool,
2178 # but it would be cool to find out if it's true. Does anybody
2179 # maintain Libtool? --akim.
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 if test "$cross_compiling" = maybe; then
2219 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2229 echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6
2232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2233 ac_clean_files=$ac_clean_files_save
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2238 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2239 echo "${ECHO_T}$cross_compiling" >&6
2241 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2244 (eval $ac_link) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2250 # work properly (i.e., refer to `conftest.exe'), while it won't with
2252 for ac_file in conftest.exe conftest conftest.*; do
2253 test -f "$ac_file" || continue
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest$ac_cv_exeext
2271 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2272 echo "${ECHO_T}$ac_cv_exeext" >&6
2274 rm -f conftest.$ac_ext
2275 EXEEXT=$ac_cv_exeext
2277 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2278 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2279 if test "${ac_cv_objext+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.$ac_ext <<_ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_c_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2383 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2384 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2385 GCC=`test $ac_compiler_gnu = yes && echo yes`
2386 ac_test_CFLAGS=${CFLAGS+set}
2387 ac_save_CFLAGS=$CFLAGS
2389 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2390 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2391 if test "${ac_cv_prog_cc_g+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2442 if test "$ac_test_CFLAGS" = set; then
2443 CFLAGS=$ac_save_CFLAGS
2444 elif test $ac_cv_prog_cc_g = yes; then
2445 if test "$GCC" = yes; then
2451 if test "$GCC" = yes; then
2457 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2458 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2459 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_cv_prog_cc_stdc=no
2464 cat >conftest.$ac_ext <<_ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2472 #include <sys/types.h>
2473 #include <sys/stat.h>
2474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2475 struct buf { int x; };
2476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2477 static char *e (p, i)
2483 static char *f (char * (*g) (char **, int), char **p, ...)
2488 s = g (p, va_arg (v,int));
2493 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2494 function prototypes and stuff, but not '\xHH' hex character constants.
2495 These don't provoke an error unfortunately, instead are silently treated
2496 as 'x'. The following induces an error, until -std1 is added to get
2497 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2498 array size at least. It's necessary to write '\x00'==0 to get something
2499 that's true only with -std1. */
2500 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2502 int test (int i, double x);
2503 struct s1 {int (*f) (int a);};
2504 struct s2 {int (*f) (double a);};
2505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2516 # Don't try gcc -ansi; that turns off useful extensions and
2517 # breaks some systems' header files.
2518 # AIX -qlanglvl=ansi
2519 # Ultrix and OSF/1 -std1
2520 # HP-UX 10.20 and later -Ae
2521 # HP-UX older versions -Aa -D_HPUX_SOURCE
2522 # SVR4 -Xc -D__EXTENSIONS__
2523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525 CC="$ac_save_CC $ac_arg"
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_prog_cc_stdc=$ac_arg
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.err conftest.$ac_objext
2557 rm -f conftest.$ac_ext conftest.$ac_objext
2562 case "x$ac_cv_prog_cc_stdc" in
2564 echo "$as_me:$LINENO: result: none needed" >&5
2565 echo "${ECHO_T}none needed" >&6 ;;
2567 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2568 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2569 CC="$CC $ac_cv_prog_cc_stdc" ;;
2572 # Some people use a C++ compiler to compile C. Since we use `exit',
2573 # in C++ we need to declare it. In case someone uses the same compiler
2574 # for both compiling C and C++ we need to have the C++ compiler decide
2575 # the declaration of exit, since it's the most demanding environment.
2576 cat >conftest.$ac_ext <<_ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_c_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2603 for ac_declaration in \
2605 'extern "C" void std::exit (int) throw (); using std::exit;' \
2606 'extern "C" void std::exit (int); using std::exit;' \
2607 'extern "C" void exit (int) throw ();' \
2608 'extern "C" void exit (int);' \
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 if test -n "$ac_declaration"; then
2704 echo '#ifdef __cplusplus' >>confdefs.h
2705 echo $ac_declaration >>confdefs.h
2706 echo '#endif' >>confdefs.h
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2727 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2728 # On Suns, sometimes $CPP names a directory.
2729 if test -n "$CPP" && test -d "$CPP"; then
2732 if test -z "$CPP"; then
2733 if test "${ac_cv_prog_CPP+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 # Double quotes because CPP needs to be expanded
2737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2740 for ac_c_preproc_warn_flag in '' yes
2742 # Use a header file that comes with gcc, so configuring glibc
2743 # with a fresh cross-compiler works.
2744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2745 # <limits.h> exists even on freestanding compilers.
2746 # On the NeXT, cc -E runs the code through the compiler's parser,
2747 # not just through cpp. "Syntax error" is here to catch this case.
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2755 # include <limits.h>
2757 # include <assert.h>
2761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } >/dev/null; then
2769 if test -s conftest.err; then
2770 ac_cpp_err=$ac_c_preproc_warn_flag
2771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2778 if test -z "$ac_cpp_err"; then
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 # Broken: fails on valid input.
2787 rm -f conftest.err conftest.$ac_ext
2789 # OK, works on sane cases. Now check whether non-existent headers
2790 # can be detected and how.
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2797 #include <ac_nonexistent.h>
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev/null; then
2807 if test -s conftest.err; then
2808 ac_cpp_err=$ac_c_preproc_warn_flag
2809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2816 if test -z "$ac_cpp_err"; then
2817 # Broken: success on invalid input.
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 # Passes both tests.
2827 rm -f conftest.err conftest.$ac_ext
2830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2831 rm -f conftest.err conftest.$ac_ext
2832 if $ac_preproc_ok; then
2844 echo "$as_me:$LINENO: result: $CPP" >&5
2845 echo "${ECHO_T}$CPP" >&6
2847 for ac_c_preproc_warn_flag in '' yes
2849 # Use a header file that comes with gcc, so configuring glibc
2850 # with a fresh cross-compiler works.
2851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2852 # <limits.h> exists even on freestanding compilers.
2853 # On the NeXT, cc -E runs the code through the compiler's parser,
2854 # not just through cpp. "Syntax error" is here to catch this case.
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2862 # include <limits.h>
2864 # include <assert.h>
2868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } >/dev/null; then
2876 if test -s conftest.err; then
2877 ac_cpp_err=$ac_c_preproc_warn_flag
2878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2885 if test -z "$ac_cpp_err"; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 # Broken: fails on valid input.
2894 rm -f conftest.err conftest.$ac_ext
2896 # OK, works on sane cases. Now check whether non-existent headers
2897 # can be detected and how.
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 #include <ac_nonexistent.h>
2906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } >/dev/null; then
2914 if test -s conftest.err; then
2915 ac_cpp_err=$ac_c_preproc_warn_flag
2916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 if test -z "$ac_cpp_err"; then
2924 # Broken: success on invalid input.
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 # Passes both tests.
2934 rm -f conftest.err conftest.$ac_ext
2937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2938 rm -f conftest.err conftest.$ac_ext
2939 if $ac_preproc_ok; then
2942 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 # Account for people who put trailing slashes in PATH elements.
2982 ./ | .// | /cC/* | \
2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2987 # OSF1 and SCO ODT 3.0 have their own names for install.
2988 # Don't use installbsd from OSF since it installs stuff as root
2990 for ac_prog in ginstall scoinst install; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993 if test $ac_prog = install &&
2994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2997 elif test $ac_prog = install &&
2998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999 # program-specific install script used by HP pwplus--don't use.
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3017 # As a last resort, use the slow shell script. We don't cache a
3018 # path for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the path is relative.
3021 INSTALL=$ac_install_sh
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3036 #--------------------------------------------------------------------
3037 # Checks to see if the make program sets the $MAKE variable.
3038 #--------------------------------------------------------------------
3040 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3042 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3043 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 cat >conftest.make <<\_ACEOF
3048 @echo 'ac_maketemp="$(MAKE)"'
3050 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3051 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3052 if test -n "$ac_maketemp"; then
3053 eval ac_cv_prog_make_${ac_make}_set=yes
3055 eval ac_cv_prog_make_${ac_make}_set=no
3059 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3066 SET_MAKE="MAKE=${MAKE-make}"
3070 #--------------------------------------------------------------------
3072 #--------------------------------------------------------------------
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3077 echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3079 if test "${ac_cv_prog_RANLIB+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$RANLIB"; then
3083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 RANLIB=$ac_cv_prog_RANLIB
3102 if test -n "$RANLIB"; then
3103 echo "$as_me:$LINENO: result: $RANLIB" >&5
3104 echo "${ECHO_T}$RANLIB" >&6
3106 echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6
3111 if test -z "$ac_cv_prog_RANLIB"; then
3112 ac_ct_RANLIB=$RANLIB
3113 # Extract the first word of "ranlib", so it can be a program name with args.
3114 set dummy ranlib; ac_word=$2
3115 echo "$as_me:$LINENO: checking for $ac_word" >&5
3116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if test -n "$ac_ct_RANLIB"; then
3121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_ac_ct_RANLIB="ranlib"
3131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3141 if test -n "$ac_ct_RANLIB"; then
3142 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3145 echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3149 RANLIB=$ac_ct_RANLIB
3151 RANLIB="$ac_cv_prog_RANLIB"
3155 #--------------------------------------------------------------------
3156 # Determines the correct binary file extension (.o, .obj, .exe etc.)
3157 #--------------------------------------------------------------------
3164 echo "$as_me:$LINENO: checking for egrep" >&5
3165 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3166 if test "${ac_cv_prog_egrep+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3170 then ac_cv_prog_egrep='grep -E'
3171 else ac_cv_prog_egrep='egrep'
3174 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3175 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3176 EGREP=$ac_cv_prog_egrep
3179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3181 if test "${ac_cv_header_stdc+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 (eval $ac_compile) 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -z "$ac_c_werror_flag"
3213 || test ! -s conftest.err'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 ac_cv_header_stdc=yes
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 ac_cv_header_stdc=no
3232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234 if test $ac_cv_header_stdc = yes; then
3235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 $EGREP "memchr" >/dev/null 2>&1; then
3249 ac_cv_header_stdc=no
3255 if test $ac_cv_header_stdc = yes; then
3256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267 $EGREP "free" >/dev/null 2>&1; then
3270 ac_cv_header_stdc=no
3276 if test $ac_cv_header_stdc = yes; then
3277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3278 if test "$cross_compiling" = yes; then
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3288 #if ((' ' & 0x0FF) == 0x020)
3289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3292 # define ISLOWER(c) \
3293 (('a' <= (c) && (c) <= 'i') \
3294 || ('j' <= (c) && (c) <= 'r') \
3295 || ('s' <= (c) && (c) <= 'z'))
3296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3304 for (i = 0; i < 256; i++)
3305 if (XOR (islower (i), ISLOWER (i))
3306 || toupper (i) != TOUPPER (i))
3311 rm -f conftest$ac_exeext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3313 (eval $ac_link) 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3324 echo "$as_me: program exited with status $ac_status" >&5
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3329 ac_cv_header_stdc=no
3331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3337 if test $ac_cv_header_stdc = yes; then
3339 cat >>confdefs.h <<\_ACEOF
3340 #define STDC_HEADERS 1
3345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3356 inttypes.h stdint.h unistd.h
3358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 echo "$as_me:$LINENO: checking for $ac_header" >&5
3360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 $ac_includes_default
3372 #include <$ac_header>
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376 (eval $ac_compile) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 eval "$as_ac_Header=yes"
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 eval "$as_ac_Header=no"
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3408 cat >>confdefs.h <<_ACEOF
3409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3418 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
3421 #------------------------------------------------------------------------
3422 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
3423 # It makes compiling go faster. (This is only a performance feature.)
3424 #------------------------------------------------------------------------
3426 if test -z "$no_pipe" -a -n "$GCC"; then
3427 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
3428 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
3429 if test "${tcl_cv_cc_pipe+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481 echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
3482 echo "${ECHO_T}$tcl_cv_cc_pipe" >&6
3483 if test $tcl_cv_cc_pipe = yes; then
3484 CFLAGS="$CFLAGS -pipe"
3488 #--------------------------------------------------------------------
3489 # Common compiler flag setup
3490 #--------------------------------------------------------------------
3492 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3493 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3494 if test "${ac_cv_c_bigendian+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 # See if sys/param.h defines the BYTE_ORDER macro.
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <sys/types.h>
3505 #include <sys/param.h>
3510 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 # It does; now see whether it defined to BIG_ENDIAN or not.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <sys/types.h>
3548 #include <sys/param.h>
3553 #if BYTE_ORDER != BIG_ENDIAN
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1 >conftest.err
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_c_bigendian=yes
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_cv_c_bigendian=no
3590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 # It does not; compile a test program.
3596 if test "$cross_compiling" = yes; then
3597 # try to guess the endianness by grepping values into an object file
3598 ac_cv_c_bigendian=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3606 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3607 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3608 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3609 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3610 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3614 _ascii (); _ebcdic ();
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621 (eval $ac_compile) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag"
3629 || test ! -s conftest.err'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; } &&
3635 { ac_try='test -s conftest.$ac_objext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3642 ac_cv_c_bigendian=yes
3644 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3645 if test "$ac_cv_c_bigendian" = unknown; then
3646 ac_cv_c_bigendian=no
3648 # finding both strings is unlikely to happen, but who knows?
3649 ac_cv_c_bigendian=unknown
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3668 /* Are we little or big endian? From Harbison&Steele. */
3672 char c[sizeof (long)];
3675 exit (u.c[sizeof (long) - 1] == 1);
3678 rm -f conftest$ac_exeext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3680 (eval $ac_link) 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_c_bigendian=no
3691 echo "$as_me: program exited with status $ac_status" >&5
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_cv_c_bigendian=yes
3698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3704 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3705 case $ac_cv_c_bigendian in
3708 cat >>confdefs.h <<\_ACEOF
3709 #define WORDS_BIGENDIAN 1
3715 { { echo "$as_me:$LINENO: error: unknown endianness
3716 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3717 echo "$as_me: error: unknown endianness
3718 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3719 { (exit 1); exit 1; }; } ;;
3722 if test "${TEA_PLATFORM}" = "unix" ; then
3724 #--------------------------------------------------------------------
3725 # On a few very rare systems, all of the libm.a stuff is
3726 # already in libc.a. Set compiler flags accordingly.
3727 # Also, Linux requires the "ieee" library for math to work
3728 # right (and it must appear before "-lm").
3729 #--------------------------------------------------------------------
3731 echo "$as_me:$LINENO: checking for sin" >&5
3732 echo $ECHO_N "checking for sin... $ECHO_C" >&6
3733 if test "${ac_cv_func_sin+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
3743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3744 #define sin innocuous_sin
3746 /* System header to define __stub macros and hopefully few prototypes,
3747 which can conflict with char sin (); below.
3748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3749 <limits.h> exists even on freestanding compilers. */
3752 # include <limits.h>
3754 # include <assert.h>
3759 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3767 /* The GNU C library defines this for functions which it implements
3768 to always fail with ENOSYS. Some functions are actually named
3769 something starting with __ and the normal name is an alias. */
3770 #if defined (__stub_sin) || defined (__stub___sin)
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789 (eval $ac_link) 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest$ac_exeext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3816 rm -f conftest.err conftest.$ac_objext \
3817 conftest$ac_exeext conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
3820 echo "${ECHO_T}$ac_cv_func_sin" >&6
3821 if test $ac_cv_func_sin = yes; then
3827 echo "$as_me:$LINENO: checking for main in -lieee" >&5
3828 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
3829 if test "${ac_cv_lib_ieee_main+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_check_lib_save_LIBS=$LIBS
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest$ac_exeext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_lib_ieee_main=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_lib_ieee_main=no
3879 rm -f conftest.err conftest.$ac_objext \
3880 conftest$ac_exeext conftest.$ac_ext
3881 LIBS=$ac_check_lib_save_LIBS
3883 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
3884 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
3885 if test $ac_cv_lib_ieee_main = yes; then
3886 MATH_LIBS="-lieee $MATH_LIBS"
3890 #--------------------------------------------------------------------
3891 # Interactive UNIX requires -linet instead of -lsocket, plus it
3892 # needs net/errno.h to define the socket-related error codes.
3893 #--------------------------------------------------------------------
3895 echo "$as_me:$LINENO: checking for main in -linet" >&5
3896 echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
3897 if test "${ac_cv_lib_inet_main+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 ac_check_lib_save_LIBS=$LIBS
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext conftest$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_lib_inet_main=yes
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 ac_cv_lib_inet_main=no
3947 rm -f conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
3949 LIBS=$ac_check_lib_save_LIBS
3951 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
3952 echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
3953 if test $ac_cv_lib_inet_main = yes; then
3957 if test "${ac_cv_header_net_errno_h+set}" = set; then
3958 echo "$as_me:$LINENO: checking for net/errno.h" >&5
3959 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
3960 if test "${ac_cv_header_net_errno_h+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
3964 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
3966 # Is the header compilable?
3967 echo "$as_me:$LINENO: checking net/errno.h usability" >&5
3968 echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3976 #include <net/errno.h>
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 ac_header_compiler=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 ac_header_compiler=no
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4009 echo "${ECHO_T}$ac_header_compiler" >&6
4011 # Is the header present?
4012 echo "$as_me:$LINENO: checking net/errno.h presence" >&5
4013 echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 #include <net/errno.h>
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null; then
4030 if test -s conftest.err; then
4031 ac_cpp_err=$ac_c_preproc_warn_flag
4032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 if test -z "$ac_cpp_err"; then
4040 ac_header_preproc=yes
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 ac_header_preproc=no
4047 rm -f conftest.err conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4049 echo "${ECHO_T}$ac_header_preproc" >&6
4051 # So? What about this header?
4052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4054 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4055 echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
4057 echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
4058 ac_header_preproc=yes
4061 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
4062 echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5
4064 echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;}
4065 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
4066 echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5
4068 echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
4070 echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
4072 echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
4075 ## --------------------------------- ##
4076 ## Report this to the expect lists. ##
4077 ## --------------------------------- ##
4080 sed "s/^/$as_me: WARNING: /" >&2
4083 echo "$as_me:$LINENO: checking for net/errno.h" >&5
4084 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
4085 if test "${ac_cv_header_net_errno_h+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_cv_header_net_errno_h=$ac_header_preproc
4090 echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
4091 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
4094 if test $ac_cv_header_net_errno_h = yes; then
4097 cat >>confdefs.h <<\_ACEOF
4098 #define HAVE_NET_ERRNO_H 1
4105 #--------------------------------------------------------------------
4106 # Check for the existence of the -lsocket and -lnsl libraries.
4107 # The order here is important, so that they end up in the right
4108 # order in the command line generated by make. Here are some
4109 # special considerations:
4110 # 1. Use "connect" and "accept" to check for -lsocket, and
4111 # "gethostbyname" to check for -lnsl.
4112 # 2. Use each function name only once: can't redo a check because
4113 # autoconf caches the results of the last check and won't redo it.
4114 # 3. Use -lnsl and -lsocket only if they supply procedures that
4115 # aren't already present in the normal libraries. This is because
4116 # IRIX 5.2 has libraries, but they aren't needed and they're
4117 # bogus: they goof up name resolution if used.
4118 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4119 # To get around this problem, check for both libraries together
4120 # if -lsocket doesn't work by itself.
4121 #--------------------------------------------------------------------
4124 echo "$as_me:$LINENO: checking for connect" >&5
4125 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4126 if test "${ac_cv_func_connect+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4137 #define connect innocuous_connect
4139 /* System header to define __stub macros and hopefully few prototypes,
4140 which can conflict with char connect (); below.
4141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 <limits.h> exists even on freestanding compilers. */
4145 # include <limits.h>
4147 # include <assert.h>
4152 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4160 /* The GNU C library defines this for functions which it implements
4161 to always fail with ENOSYS. Some functions are actually named
4162 something starting with __ and the normal name is an alias. */
4163 #if defined (__stub_connect) || defined (__stub___connect)
4166 char (*f) () = connect;
4175 return f != connect;
4180 rm -f conftest.$ac_objext conftest$ac_exeext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4182 (eval $ac_link) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_func_connect=yes
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_func_connect=no
4209 rm -f conftest.err conftest.$ac_objext \
4210 conftest$ac_exeext conftest.$ac_ext
4212 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4213 echo "${ECHO_T}$ac_cv_func_connect" >&6
4214 if test $ac_cv_func_connect = yes; then
4220 if test "$tcl_checkSocket" = 1; then
4221 echo "$as_me:$LINENO: checking for setsockopt" >&5
4222 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4223 if test "${ac_cv_func_setsockopt+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
4233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4234 #define setsockopt innocuous_setsockopt
4236 /* System header to define __stub macros and hopefully few prototypes,
4237 which can conflict with char setsockopt (); below.
4238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4239 <limits.h> exists even on freestanding compilers. */
4242 # include <limits.h>
4244 # include <assert.h>
4249 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4257 /* The GNU C library defines this for functions which it implements
4258 to always fail with ENOSYS. Some functions are actually named
4259 something starting with __ and the normal name is an alias. */
4260 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4263 char (*f) () = setsockopt;
4272 return f != setsockopt;
4277 rm -f conftest.$ac_objext conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_func_setsockopt=yes
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_cv_func_setsockopt=no
4306 rm -f conftest.err conftest.$ac_objext \
4307 conftest$ac_exeext conftest.$ac_ext
4309 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
4310 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4311 if test $ac_cv_func_setsockopt = yes; then
4314 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
4315 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4316 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 ac_check_lib_save_LIBS=$LIBS
4320 LIBS="-lsocket $LIBS"
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4328 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_lib_socket_setsockopt=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_cv_lib_socket_setsockopt=no
4372 rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
4374 LIBS=$ac_check_lib_save_LIBS
4376 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
4377 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
4378 if test $ac_cv_lib_socket_setsockopt = yes; then
4379 LIBS="$LIBS -lsocket"
4387 if test "$tcl_checkBoth" = 1; then
4389 LIBS="$LIBS -lsocket -lnsl"
4390 echo "$as_me:$LINENO: checking for accept" >&5
4391 echo $ECHO_N "checking for accept... $ECHO_C" >&6
4392 if test "${ac_cv_func_accept+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
4402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4403 #define accept innocuous_accept
4405 /* System header to define __stub macros and hopefully few prototypes,
4406 which can conflict with char accept (); below.
4407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4408 <limits.h> exists even on freestanding compilers. */
4411 # include <limits.h>
4413 # include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4426 /* The GNU C library defines this for functions which it implements
4427 to always fail with ENOSYS. Some functions are actually named
4428 something starting with __ and the normal name is an alias. */
4429 #if defined (__stub_accept) || defined (__stub___accept)
4432 char (*f) () = accept;
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448 (eval $ac_link) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest$ac_exeext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_cv_func_accept=yes
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_cv_func_accept=no
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4478 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4479 echo "${ECHO_T}$ac_cv_func_accept" >&6
4480 if test $ac_cv_func_accept = yes; then
4487 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4488 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4489 if test "${ac_cv_func_gethostbyname+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4500 #define gethostbyname innocuous_gethostbyname
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char gethostbyname (); below.
4504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 <limits.h> exists even on freestanding compilers. */
4508 # include <limits.h>
4510 # include <assert.h>
4513 #undef gethostbyname
4515 /* Override any gcc2 internal prototype to avoid an error. */
4520 /* We use char because int might match the return type of a gcc2
4521 builtin and then its argument prototype would still apply. */
4522 char gethostbyname ();
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4529 char (*f) () = gethostbyname;
4538 return f != gethostbyname;
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545 (eval $ac_link) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_func_gethostbyname=yes
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_func_gethostbyname=no
4572 rm -f conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4576 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4577 if test $ac_cv_func_gethostbyname = yes; then
4580 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4581 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4582 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_check_lib_save_LIBS=$LIBS
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4594 /* Override any gcc2 internal prototype to avoid an error. */
4598 /* We use char because int might match the return type of a gcc2
4599 builtin and then its argument prototype would still apply. */
4600 char gethostbyname ();
4609 rm -f conftest.$ac_objext conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_lib_nsl_gethostbyname=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_lib_nsl_gethostbyname=no
4638 rm -f conftest.err conftest.$ac_objext \
4639 conftest$ac_exeext conftest.$ac_ext
4640 LIBS=$ac_check_lib_save_LIBS
4642 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4643 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4644 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4651 # TEA specific: Don't perform the eval of the libraries here because
4652 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
4654 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
4659 echo "$as_me:$LINENO: checking dirent.h" >&5
4660 echo $ECHO_N "checking dirent.h... $ECHO_C" >&6
4661 if test "${tcl_cv_dirent_h+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 cat >conftest.$ac_ext <<_ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 #include <sys/types.h>
4677 #ifndef _POSIX_SOURCE
4680 * Generate compilation error to make the test fail: Lynx headers
4681 * are only valid if really in the POSIX environment.
4684 missing_procedure();
4688 struct dirent *entryPtr;
4690 d = opendir("foobar");
4691 entryPtr = readdir(d);
4692 p = entryPtr->d_name;
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4728 rm -f conftest.err conftest.$ac_objext \
4729 conftest$ac_exeext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
4732 echo "${ECHO_T}$tcl_cv_dirent_h" >&6
4734 if test $tcl_cv_dirent_h = no; then
4736 cat >>confdefs.h <<\_ACEOF
4737 #define NO_DIRENT_H 1
4743 if test "${ac_cv_header_errno_h+set}" = set; then
4744 echo "$as_me:$LINENO: checking for errno.h" >&5
4745 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4746 if test "${ac_cv_header_errno_h+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4750 echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4752 # Is the header compilable?
4753 echo "$as_me:$LINENO: checking errno.h usability" >&5
4754 echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_header_compiler=yes
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 ac_header_compiler=no
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795 echo "${ECHO_T}$ac_header_compiler" >&6
4797 # Is the header present?
4798 echo "$as_me:$LINENO: checking errno.h presence" >&5
4799 echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
4818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4825 if test -z "$ac_cpp_err"; then
4826 ac_header_preproc=yes
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 ac_header_preproc=no
4833 rm -f conftest.err conftest.$ac_ext
4834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4835 echo "${ECHO_T}$ac_header_preproc" >&6
4837 # So? What about this header?
4838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4840 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
4841 echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4842 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
4843 echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
4844 ac_header_preproc=yes
4847 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
4852 echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5
4854 echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
4855 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
4856 echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
4857 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
4858 echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
4861 ## --------------------------------- ##
4862 ## Report this to the expect lists. ##
4863 ## --------------------------------- ##
4866 sed "s/^/$as_me: WARNING: /" >&2
4869 echo "$as_me:$LINENO: checking for errno.h" >&5
4870 echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
4871 if test "${ac_cv_header_errno_h+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_cv_header_errno_h=$ac_header_preproc
4876 echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
4877 echo "${ECHO_T}$ac_cv_header_errno_h" >&6
4880 if test $ac_cv_header_errno_h = yes; then
4884 cat >>confdefs.h <<\_ACEOF
4885 #define NO_ERRNO_H 1
4891 if test "${ac_cv_header_float_h+set}" = set; then
4892 echo "$as_me:$LINENO: checking for float.h" >&5
4893 echo $ECHO_N "checking for float.h... $ECHO_C" >&6
4894 if test "${ac_cv_header_float_h+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
4898 echo "${ECHO_T}$ac_cv_header_float_h" >&6
4900 # Is the header compilable?
4901 echo "$as_me:$LINENO: checking float.h usability" >&5
4902 echo $ECHO_N "checking float.h usability... $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_header_compiler=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 ac_header_compiler=no
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4943 echo "${ECHO_T}$ac_header_compiler" >&6
4945 # Is the header present?
4946 echo "$as_me:$LINENO: checking float.h presence" >&5
4947 echo $ECHO_N "checking float.h presence... $ECHO_C" >&6
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_c_preproc_warn_flag
4966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4973 if test -z "$ac_cpp_err"; then
4974 ac_header_preproc=yes
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 ac_header_preproc=no
4981 rm -f conftest.err conftest.$ac_ext
4982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4983 echo "${ECHO_T}$ac_header_preproc" >&6
4985 # So? What about this header?
4986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4988 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
4989 echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4990 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
4991 echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
4992 ac_header_preproc=yes
4995 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
4996 echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
4997 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
4998 echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
4999 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
5000 echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
5002 echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
5004 echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
5006 echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
5009 ## --------------------------------- ##
5010 ## Report this to the expect lists. ##
5011 ## --------------------------------- ##
5014 sed "s/^/$as_me: WARNING: /" >&2
5017 echo "$as_me:$LINENO: checking for float.h" >&5
5018 echo $ECHO_N "checking for float.h... $ECHO_C" >&6
5019 if test "${ac_cv_header_float_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 ac_cv_header_float_h=$ac_header_preproc
5024 echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
5025 echo "${ECHO_T}$ac_cv_header_float_h" >&6
5028 if test $ac_cv_header_float_h = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define NO_FLOAT_H 1
5039 if test "${ac_cv_header_values_h+set}" = set; then
5040 echo "$as_me:$LINENO: checking for values.h" >&5
5041 echo $ECHO_N "checking for values.h... $ECHO_C" >&6
5042 if test "${ac_cv_header_values_h+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5046 echo "${ECHO_T}$ac_cv_header_values_h" >&6
5048 # Is the header compilable?
5049 echo "$as_me:$LINENO: checking values.h usability" >&5
5050 echo $ECHO_N "checking values.h usability... $ECHO_C" >&6
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 $ac_includes_default
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_header_compiler=yes
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_header_compiler=no
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5091 echo "${ECHO_T}$ac_header_compiler" >&6
5093 # Is the header present?
5094 echo "$as_me:$LINENO: checking values.h presence" >&5
5095 echo $ECHO_N "checking values.h presence... $ECHO_C" >&6
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_c_preproc_warn_flag
5114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 if test -z "$ac_cpp_err"; then
5122 ac_header_preproc=yes
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 ac_header_preproc=no
5129 rm -f conftest.err conftest.$ac_ext
5130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5131 echo "${ECHO_T}$ac_header_preproc" >&6
5133 # So? What about this header?
5134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
5137 echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
5139 echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
5140 ac_header_preproc=yes
5143 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
5144 echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5
5146 echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
5148 echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5
5150 echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
5152 echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
5154 echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
5157 ## --------------------------------- ##
5158 ## Report this to the expect lists. ##
5159 ## --------------------------------- ##
5162 sed "s/^/$as_me: WARNING: /" >&2
5165 echo "$as_me:$LINENO: checking for values.h" >&5
5166 echo $ECHO_N "checking for values.h... $ECHO_C" >&6
5167 if test "${ac_cv_header_values_h+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_cv_header_values_h=$ac_header_preproc
5172 echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
5173 echo "${ECHO_T}$ac_cv_header_values_h" >&6
5176 if test $ac_cv_header_values_h = yes; then
5180 cat >>confdefs.h <<\_ACEOF
5181 #define NO_VALUES_H 1
5187 if test "${ac_cv_header_limits_h+set}" = set; then
5188 echo "$as_me:$LINENO: checking for limits.h" >&5
5189 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_limits_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_limits_h" >&6
5196 # Is the header compilable?
5197 echo "$as_me:$LINENO: checking limits.h usability" >&5
5198 echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5208 rm -f conftest.$ac_objext
5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_header_compiler=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_header_compiler=no
5237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5239 echo "${ECHO_T}$ac_header_compiler" >&6
5241 # Is the header present?
5242 echo "$as_me:$LINENO: checking limits.h presence" >&5
5243 echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 if test -z "$ac_cpp_err"; then
5270 ac_header_preproc=yes
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_header_preproc=no
5277 rm -f conftest.err conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5279 echo "${ECHO_T}$ac_header_preproc" >&6
5281 # So? What about this header?
5282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5284 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
5285 echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5286 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
5287 echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
5288 ac_header_preproc=yes
5291 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
5292 echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5
5294 echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
5296 echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5
5298 echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
5300 echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
5302 echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
5305 ## --------------------------------- ##
5306 ## Report this to the expect lists. ##
5307 ## --------------------------------- ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 echo "$as_me:$LINENO: checking for limits.h" >&5
5314 echo $ECHO_N "checking for limits.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_limits_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_cv_header_limits_h=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_limits_h" >&6
5324 if test $ac_cv_header_limits_h = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define HAVE_LIMITS_H 1
5332 cat >>confdefs.h <<\_ACEOF
5333 #define NO_LIMITS_H 1
5339 if test "${ac_cv_header_stdlib_h+set}" = set; then
5340 echo "$as_me:$LINENO: checking for stdlib.h" >&5
5341 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
5342 if test "${ac_cv_header_stdlib_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5346 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
5348 # Is the header compilable?
5349 echo "$as_me:$LINENO: checking stdlib.h usability" >&5
5350 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5360 rm -f conftest.$ac_objext
5361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_header_compiler=yes
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 ac_header_compiler=no
5389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5391 echo "${ECHO_T}$ac_header_compiler" >&6
5393 # Is the header present?
5394 echo "$as_me:$LINENO: checking stdlib.h presence" >&5
5395 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } >/dev/null; then
5412 if test -s conftest.err; then
5413 ac_cpp_err=$ac_c_preproc_warn_flag
5414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5421 if test -z "$ac_cpp_err"; then
5422 ac_header_preproc=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_header_preproc=no
5429 rm -f conftest.err conftest.$ac_ext
5430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5431 echo "${ECHO_T}$ac_header_preproc" >&6
5433 # So? What about this header?
5434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5436 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5437 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
5439 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
5440 ac_header_preproc=yes
5443 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
5444 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
5446 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
5448 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
5450 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
5454 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
5457 ## --------------------------------- ##
5458 ## Report this to the expect lists. ##
5459 ## --------------------------------- ##
5462 sed "s/^/$as_me: WARNING: /" >&2
5465 echo "$as_me:$LINENO: checking for stdlib.h" >&5
5466 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
5467 if test "${ac_cv_header_stdlib_h+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_header_stdlib_h=$ac_header_preproc
5472 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
5473 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
5476 if test $ac_cv_header_stdlib_h = yes; then
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 $EGREP "strtol" >/dev/null 2>&1; then
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510 $EGREP "strtoul" >/dev/null 2>&1; then
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5527 $EGREP "strtod" >/dev/null 2>&1; then
5534 if test $tcl_ok = 0; then
5536 cat >>confdefs.h <<\_ACEOF
5537 #define NO_STDLIB_H 1
5541 if test "${ac_cv_header_string_h+set}" = set; then
5542 echo "$as_me:$LINENO: checking for string.h" >&5
5543 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
5544 if test "${ac_cv_header_string_h+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5548 echo "${ECHO_T}$ac_cv_header_string_h" >&6
5550 # Is the header compilable?
5551 echo "$as_me:$LINENO: checking string.h usability" >&5
5552 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag"
5572 || test ! -s conftest.err'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 ac_header_compiler=yes
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 ac_header_compiler=no
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5593 echo "${ECHO_T}$ac_header_compiler" >&6
5595 # Is the header present?
5596 echo "$as_me:$LINENO: checking string.h presence" >&5
5597 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } >/dev/null; then
5614 if test -s conftest.err; then
5615 ac_cpp_err=$ac_c_preproc_warn_flag
5616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5623 if test -z "$ac_cpp_err"; then
5624 ac_header_preproc=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 ac_header_preproc=no
5631 rm -f conftest.err conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5633 echo "${ECHO_T}$ac_header_preproc" >&6
5635 # So? What about this header?
5636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5638 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
5639 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
5641 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
5642 ac_header_preproc=yes
5645 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
5646 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
5647 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
5648 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
5649 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
5650 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
5652 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
5654 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
5656 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
5659 ## --------------------------------- ##
5660 ## Report this to the expect lists. ##
5661 ## --------------------------------- ##
5664 sed "s/^/$as_me: WARNING: /" >&2
5667 echo "$as_me:$LINENO: checking for string.h" >&5
5668 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
5669 if test "${ac_cv_header_string_h+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 ac_cv_header_string_h=$ac_header_preproc
5674 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
5675 echo "${ECHO_T}$ac_cv_header_string_h" >&6
5678 if test $ac_cv_header_string_h = yes; then
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "strstr" >/dev/null 2>&1; then
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712 $EGREP "strerror" >/dev/null 2>&1; then
5720 # See also memmove check below for a place where NO_STRING_H can be
5723 if test $tcl_ok = 0; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define NO_STRING_H 1
5731 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5732 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
5733 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
5734 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5738 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5740 # Is the header compilable?
5741 echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
5742 echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5750 #include <sys/wait.h>
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_c_werror_flag"
5762 || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_header_compiler=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_header_compiler=no
5781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5783 echo "${ECHO_T}$ac_header_compiler" >&6
5785 # Is the header present?
5786 echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
5787 echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #include <sys/wait.h>
5796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null; then
5804 if test -s conftest.err; then
5805 ac_cpp_err=$ac_c_preproc_warn_flag
5806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5813 if test -z "$ac_cpp_err"; then
5814 ac_header_preproc=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_header_preproc=no
5821 rm -f conftest.err conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5823 echo "${ECHO_T}$ac_header_preproc" >&6
5825 # So? What about this header?
5826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5828 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
5829 echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
5831 echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
5832 ac_header_preproc=yes
5835 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
5836 echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5
5838 echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;}
5839 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
5840 echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5
5842 echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
5846 echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
5849 ## --------------------------------- ##
5850 ## Report this to the expect lists. ##
5851 ## --------------------------------- ##
5854 sed "s/^/$as_me: WARNING: /" >&2
5857 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
5858 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
5859 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 ac_cv_header_sys_wait_h=$ac_header_preproc
5864 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5865 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5868 if test $ac_cv_header_sys_wait_h = yes; then
5872 cat >>confdefs.h <<\_ACEOF
5873 #define NO_SYS_WAIT_H 1
5879 if test "${ac_cv_header_dlfcn_h+set}" = set; then
5880 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
5881 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
5882 if test "${ac_cv_header_dlfcn_h+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
5886 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
5888 # Is the header compilable?
5889 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
5890 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_header_compiler=yes
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 ac_header_compiler=no
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5931 echo "${ECHO_T}$ac_header_compiler" >&6
5933 # Is the header present?
5934 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
5935 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } >/dev/null; then
5952 if test -s conftest.err; then
5953 ac_cpp_err=$ac_c_preproc_warn_flag
5954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961 if test -z "$ac_cpp_err"; then
5962 ac_header_preproc=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_preproc=no
5969 rm -f conftest.err conftest.$ac_ext
5970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5971 echo "${ECHO_T}$ac_header_preproc" >&6
5973 # So? What about this header?
5974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5976 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
5977 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
5979 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
5980 ac_header_preproc=yes
5983 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
5984 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
5986 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
5988 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
5990 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
5992 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
5994 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
5997 ## --------------------------------- ##
5998 ## Report this to the expect lists. ##
5999 ## --------------------------------- ##
6002 sed "s/^/$as_me: WARNING: /" >&2
6005 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6006 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
6007 if test "${ac_cv_header_dlfcn_h+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 ac_cv_header_dlfcn_h=$ac_header_preproc
6012 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6013 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
6016 if test $ac_cv_header_dlfcn_h = yes; then
6020 cat >>confdefs.h <<\_ACEOF
6021 #define NO_DLFCN_H 1
6028 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
6030 for ac_header in sys/param.h
6032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6042 # Is the header compilable?
6043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6052 #include <$ac_header>
6054 rm -f conftest.$ac_objext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag"
6064 || test ! -s conftest.err'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; } &&
6070 { ac_try='test -s conftest.$ac_objext'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_header_compiler=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_header_compiler=no
6083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6085 echo "${ECHO_T}$ac_header_compiler" >&6
6087 # Is the header present?
6088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <$ac_header>
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null; then
6106 if test -s conftest.err; then
6107 ac_cpp_err=$ac_c_preproc_warn_flag
6108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6115 if test -z "$ac_cpp_err"; then
6116 ac_header_preproc=yes
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_header_preproc=no
6123 rm -f conftest.err conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6125 echo "${ECHO_T}$ac_header_preproc" >&6
6127 # So? What about this header?
6128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6134 ac_header_preproc=yes
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6151 ## --------------------------------- ##
6152 ## Report this to the expect lists. ##
6153 ## --------------------------------- ##
6156 sed "s/^/$as_me: WARNING: /" >&2
6159 echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 eval "$as_ac_Header=\$ac_header_preproc"
6166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6180 # Let the user call this, because if it triggers, they will
6181 # need a compat/strtod.c that is correct. Users can also
6182 # use Tcl_GetDouble(FromObj) instead.
6187 #--------------------------------------------------------------------
6189 # Choose which headers you need. Extension authors should try very
6190 # hard to only rely on the Tcl public header files. Internal headers
6191 # contain private data structures and are subject to change without
6193 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6194 #--------------------------------------------------------------------
6196 #TEA_PUBLIC_TCL_HEADERS
6198 echo "$as_me:$LINENO: checking for Tcl public headers" >&5
6199 echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
6202 # Check whether --with-tclinclude or --without-tclinclude was given.
6203 if test "${with_tclinclude+set}" = set; then
6204 withval="$with_tclinclude"
6205 with_tclinclude=${withval}
6208 if test "${ac_cv_c_tclh+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 # Use the value from --with-tclinclude, if it was given
6214 if test x"${with_tclinclude}" != x ; then
6215 if test -f "${with_tclinclude}/tcl.h" ; then
6216 ac_cv_c_tclh=${with_tclinclude}
6218 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
6219 echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
6220 { (exit 1); exit 1; }; }
6224 if test "`uname -s`" = "Darwin"; then
6225 # If Tcl was built as a framework, attempt to use
6226 # the framework's Headers directory
6229 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6234 # Look in the source dir only if Tcl is not installed,
6235 # and in that situation, look there before installed locations.
6236 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6237 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6240 # Check order: pkg --prefix location, Tcl's --prefix location,
6241 # relative to directory of tclConfig.sh.
6243 eval "temp_includedir=${includedir}"
6245 `ls -d ${temp_includedir} 2>/dev/null` \
6246 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6247 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6248 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6249 list="$list /usr/local/include /usr/include"
6250 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6251 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6252 list="$list `ls -d ${d} 2>/dev/null`"
6256 if test -f "$i/tcl.h" ; then
6266 # Print a message based on how we determined the include path
6268 if test x"${ac_cv_c_tclh}" = x ; then
6269 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5
6270 echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;}
6271 { (exit 1); exit 1; }; }
6273 echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
6274 echo "${ECHO_T}${ac_cv_c_tclh}" >&6
6277 # Convert to a native path and substitute into the output files.
6279 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6281 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6286 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh}
6288 echo "$as_me:$LINENO: checking for Tcl private include files" >&5
6289 echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6
6291 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}`
6292 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\"
6294 # Check to see if tcl<Plat>Port.h isn't already with the public headers
6295 # Don't look for tclInt.h because that resides with tcl.h in the core
6296 # sources, but the <plat>Port headers are in a different directory
6297 if test "${TEA_PLATFORM}" = "windows" -a \
6298 -f "${ac_cv_c_tclh}/tclWinPort.h"; then
6299 result="private headers found with public headers"
6300 elif test "${TEA_PLATFORM}" = "unix" -a \
6301 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then
6302 result="private headers found with public headers"
6304 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\"
6305 if test "${TEA_PLATFORM}" = "windows"; then
6306 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\"
6308 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\"
6310 # Overwrite the previous TCL_INCLUDES as this should capture both
6311 # public and private headers in the same set.
6312 # We want to ensure these are substituted so as not to require
6313 # any *_NATIVE vars be defined in the Makefile
6314 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}"
6315 if test "`uname -s`" = "Darwin"; then
6316 # If Tcl was built as a framework, attempt to use
6317 # the framework's Headers and PrivateHeaders directories
6320 if test -d "${TCL_BIN_DIR}/Headers" -a \
6321 -d "${TCL_BIN_DIR}/PrivateHeaders"; then
6322 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"
6324 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"
6328 result="Using ${TCL_INCLUDES}"
6330 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then
6331 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5
6332 echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;}
6333 { (exit 1); exit 1; }; }
6335 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}"
6342 echo "$as_me:$LINENO: result: ${result}" >&5
6343 echo "${ECHO_T}${result}" >&6
6346 #--------------------------------------------------------------------
6347 # You can add more files to clean if your extension creates any extra
6348 # files by extending CLEANFILES.
6349 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
6350 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
6352 # A few miscellaneous platform-specific items:
6353 # TEA_ADD_* any platform specific compiler/build info here.
6354 #--------------------------------------------------------------------
6357 CLEANFILES="$CLEANFILES pkgIndex.tcl"
6360 #--------------------------------------------------------------------
6361 # Check whether --enable-threads or --disable-threads was given.
6362 # So far only Tcl responds to this one.
6364 # Hook for when threading is supported in Expect. The --enable-threads
6365 # flag currently has no effect.
6366 #------------------------------------------------------------------------
6369 # Check whether --enable-threads or --disable-threads was given.
6370 if test "${enable_threads+set}" = set; then
6371 enableval="$enable_threads"
6377 if test "${enable_threads+set}" = set; then
6378 enableval="$enable_threads"
6384 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6387 if test "${TEA_PLATFORM}" != "windows" ; then
6388 # We are always OK on Windows, so check what this platform wants:
6390 # USE_THREAD_ALLOC tells us to try the special thread-based
6391 # allocator that significantly reduces lock contention
6393 cat >>confdefs.h <<\_ACEOF
6394 #define USE_THREAD_ALLOC 1
6398 cat >>confdefs.h <<\_ACEOF
6399 #define _REENTRANT 1
6402 if test "`uname -s`" = "SunOS" ; then
6404 cat >>confdefs.h <<\_ACEOF
6405 #define _POSIX_PTHREAD_SEMANTICS 1
6410 cat >>confdefs.h <<\_ACEOF
6411 #define _THREAD_SAFE 1
6414 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
6415 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
6416 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_check_lib_save_LIBS=$LIBS
6420 LIBS="-lpthread $LIBS"
6421 cat >conftest.$ac_ext <<_ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6428 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6434 char pthread_mutex_init ();
6438 pthread_mutex_init ();
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag"
6453 || test ! -s conftest.err'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_lib_pthread_pthread_mutex_init=yes
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6470 ac_cv_lib_pthread_pthread_mutex_init=no
6472 rm -f conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LIBS=$ac_check_lib_save_LIBS
6476 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6477 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
6478 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6484 if test "$tcl_ok" = "no"; then
6485 # Check a little harder for __pthread_mutex_init in the same
6486 # library, as some systems hide it there until pthread.h is
6487 # defined. We could alternatively do an AC_TRY_COMPILE with
6488 # pthread.h, but that will work with libpthread really doesn't
6489 # exist, like AIX 4.2. [Bug: 4359]
6490 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
6491 echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
6492 if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lpthread $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6510 char __pthread_mutex_init ();
6514 __pthread_mutex_init ();
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1 >conftest.err
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_pthread___pthread_mutex_init=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_cv_lib_pthread___pthread_mutex_init=no
6548 rm -f conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6553 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
6554 if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
6562 if test "$tcl_ok" = "yes"; then
6563 # The space is needed
6564 THREADS_LIBS=" -lpthread"
6566 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
6567 echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
6568 if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lpthreads $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char pthread_mutex_init ();
6590 pthread_mutex_init ();
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_lib_pthreads_pthread_mutex_init=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_lib_pthreads_pthread_mutex_init=no
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_check_lib_save_LIBS
6628 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6629 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
6630 if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
6636 if test "$tcl_ok" = "yes"; then
6637 # The space is needed
6638 THREADS_LIBS=" -lpthreads"
6640 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
6641 echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6
6642 if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_check_lib_save_LIBS=$LIBS
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6660 char pthread_mutex_init ();
6664 pthread_mutex_init ();
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest$ac_exeext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_lib_c_pthread_mutex_init=yes
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_cv_lib_c_pthread_mutex_init=no
6698 rm -f conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 LIBS=$ac_check_lib_save_LIBS
6702 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6703 echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6
6704 if test $ac_cv_lib_c_pthread_mutex_init = yes; then
6710 if test "$tcl_ok" = "no"; then
6711 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
6712 echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6
6713 if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_check_lib_save_LIBS=$LIBS
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char pthread_mutex_init ();
6735 pthread_mutex_init ();
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_lib_c_r_pthread_mutex_init=yes
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_lib_c_r_pthread_mutex_init=no
6769 rm -f conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 LIBS=$ac_check_lib_save_LIBS
6773 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6774 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6
6775 if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
6781 if test "$tcl_ok" = "yes"; then
6782 # The space is needed
6783 THREADS_LIBS=" -pthread"
6786 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6787 echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6796 # Do checking message here to not mess up interleaved configure output
6797 echo "$as_me:$LINENO: checking for building with threads" >&5
6798 echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
6799 if test "${TCL_THREADS}" = 1; then
6801 cat >>confdefs.h <<\_ACEOF
6802 #define TCL_THREADS 1
6805 echo "$as_me:$LINENO: result: yes (default)" >&5
6806 echo "${ECHO_T}yes (default)" >&6
6808 echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6
6811 # TCL_THREADS sanity checking. See if our request for building with
6812 # threads is the same as the way Tcl was built. If not, warn the user.
6815 if test "${TCL_THREADS}" = "0"; then
6816 { echo "$as_me:$LINENO: WARNING:
6817 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6818 that IS thread-enabled. It is recommended to use --enable-threads." >&5
6819 echo "$as_me: WARNING:
6820 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6821 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
6825 if test "${TCL_THREADS}" = "1"; then
6826 { echo "$as_me:$LINENO: WARNING:
6827 --enable-threads requested, but building against a Tcl that is NOT
6828 thread-enabled. This is an OK configuration that will also run in
6829 a thread-enabled core." >&5
6830 echo "$as_me: WARNING:
6831 --enable-threads requested, but building against a Tcl that is NOT
6832 thread-enabled. This is an OK configuration that will also run in
6833 a thread-enabled core." >&2;}
6840 #--------------------------------------------------------------------
6841 # The statement below defines a collection of symbols related to
6842 # building as a shared library instead of a static library.
6843 #--------------------------------------------------------------------
6846 echo "$as_me:$LINENO: checking how to build libraries" >&5
6847 echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
6848 # Check whether --enable-shared or --disable-shared was given.
6849 if test "${enable_shared+set}" = set; then
6850 enableval="$enable_shared"
6856 if test "${enable_shared+set}" = set; then
6857 enableval="$enable_shared"
6863 if test "$tcl_ok" = "yes" ; then
6864 echo "$as_me:$LINENO: result: shared" >&5
6865 echo "${ECHO_T}shared" >&6
6868 echo "$as_me:$LINENO: result: static" >&5
6869 echo "${ECHO_T}static" >&6
6872 cat >>confdefs.h <<\_ACEOF
6873 #define STATIC_BUILD 1
6880 #--------------------------------------------------------------------
6881 # This macro figures out what flags to use with the compiler/linker
6882 # when building shared/static debug/optimized objects. This information
6883 # can be taken from the tclConfig.sh file, but this figures it all out.
6884 #--------------------------------------------------------------------
6889 # Step 0.a: Enable 64 bit support?
6891 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
6892 echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6
6893 # Check whether --enable-64bit or --disable-64bit was given.
6894 if test "${enable_64bit+set}" = set; then
6895 enableval="$enable_64bit"
6900 echo "$as_me:$LINENO: result: $do64bit" >&5
6901 echo "${ECHO_T}$do64bit" >&6
6903 # Step 0.b: Enable Solaris 64 bit VIS support?
6905 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
6906 echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6
6907 # Check whether --enable-64bit-vis or --disable-64bit-vis was given.
6908 if test "${enable_64bit_vis+set}" = set; then
6909 enableval="$enable_64bit_vis"
6910 do64bitVIS=$enableval
6914 echo "$as_me:$LINENO: result: $do64bitVIS" >&5
6915 echo "${ECHO_T}$do64bitVIS" >&6
6916 # Force 64bit on with VIS
6917 if test "$do64bitVIS" = "yes"; then
6922 # Step 0.c: Check if visibility support is available. Do this here so
6923 # that platform specific alternatives can be used below if this fails.
6925 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5
6926 echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6
6927 if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6939 extern __attribute__((__visibility__("hidden"))) void f(void);
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 tcl_cv_cc_visibility_hidden=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 tcl_cv_cc_visibility_hidden=no
6978 rm -f conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5
6983 echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6
6984 if test $tcl_cv_cc_visibility_hidden = yes; then
6987 cat >>confdefs.h <<\_ACEOF
6988 #define MODULE_SCOPE extern __attribute__((__visibility__("hidden")))
6995 # Step 0.d: Disable -rpath support?
6997 echo "$as_me:$LINENO: checking if rpath support is requested" >&5
6998 echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6
6999 # Check whether --enable-rpath or --disable-rpath was given.
7000 if test "${enable_rpath+set}" = set; then
7001 enableval="$enable_rpath"
7006 echo "$as_me:$LINENO: result: $doRpath" >&5
7007 echo "${ECHO_T}$doRpath" >&6
7009 # TEA specific: Cross-compiling options for Windows/CE builds?
7011 if test "${TEA_PLATFORM}" = windows; then
7013 echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
7014 echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6
7015 # Check whether --enable-wince or --disable-wince was given.
7016 if test "${enable_wince+set}" = set; then
7017 enableval="$enable_wince"
7022 echo "$as_me:$LINENO: result: $doWince" >&5
7023 echo "${ECHO_T}$doWince" >&6
7028 # Set the variable "system" to hold the name and version number
7032 echo "$as_me:$LINENO: checking system version" >&5
7033 echo $ECHO_N "checking system version... $ECHO_C" >&6
7034 if test "${tcl_cv_sys_version+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 if test "${TEA_PLATFORM}" = "windows" ; then
7040 tcl_cv_sys_version=windows
7042 tcl_cv_sys_version=`uname -s`-`uname -r`
7043 if test "$?" -ne 0 ; then
7044 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
7045 echo "$as_me: WARNING: can't find uname command" >&2;}
7046 tcl_cv_sys_version=unknown
7048 if test "`uname -s`" = "AIX" ; then
7049 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7055 echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
7056 echo "${ECHO_T}$tcl_cv_sys_version" >&6
7057 system=$tcl_cv_sys_version
7060 # Require ranlib early so we can override it in special cases below.
7064 # Set configuration options based on system name and version.
7065 # This is similar to Tcl's unix/tcl.m4 except that we've added a
7066 # "windows" case and removed some core-only vars.
7069 # default to '{$LIBS}' and set to "" on per-platform necessary basis
7070 SHLIB_LD_LIBS='${LIBS}'
7071 # When ld needs options to work in 64-bit mode, put them in
7072 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7073 # is disabled by the user. [Bug 1016796]
7075 UNSHARED_LIB_SUFFIX=""
7076 # TEA specific: use PACKAGE_VERSION instead of VERSION
7077 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7078 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7079 TCL_LIB_VERSIONS_OK=ok
7082 if test "$GCC" = yes; then
7086 CFLAGS_WARNING="-Wall"
7092 # Extract the first word of "ar", so it can be a program name with args.
7093 set dummy ar; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_AR+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$AR"; then
7100 ac_cv_prog_AR="$AR" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 if test -n "$AR"; then
7120 echo "$as_me:$LINENO: result: $AR" >&5
7121 echo "${ECHO_T}$AR" >&6
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7128 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7129 if test "x$SHLIB_VERSION" = x; then
7136 # This is a 2-stage check to make sure we have the 64-bit SDK
7137 # We have to know where the SDK is installed.
7138 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
7139 # MACHINE is IX86 for LINK, but this is used by the manifest,
7140 # which requires x86|amd64|ia64.
7142 if test "$do64bit" != "no" ; then
7143 if test "x${MSSDK}x" = "xx" ; then
7144 MSSDK="C:/Progra~1/Microsoft Platform SDK"
7146 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
7150 MACHINE="AMD64" ; # default to AMD64 64-bit build
7151 PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
7155 PATH64="${MSSDK}/Bin/Win64"
7158 if test ! -d "${PATH64}" ; then
7159 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
7160 echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
7161 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
7162 echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
7165 echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5
7166 echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6
7171 if test "$doWince" != "no" ; then
7172 if test "$do64bit" != "no" ; then
7173 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
7174 echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
7175 { (exit 1); exit 1; }; }
7177 if test "$GCC" = "yes" ; then
7178 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
7179 echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
7180 { (exit 1); exit 1; }; }
7183 # First, look for one uninstalled.
7184 # the alternative search directory is invoked by --with-celib
7186 if test x"${no_celib}" = x ; then
7187 # we reset no_celib in case something fails here
7190 # Check whether --with-celib or --without-celib was given.
7191 if test "${with_celib+set}" = set; then
7192 withval="$with_celib"
7193 with_celibconfig=${withval}
7195 echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
7196 echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6
7197 if test "${ac_cv_c_celibconfig+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 # First check to see if --with-celibconfig was specified.
7202 if test x"${with_celibconfig}" != x ; then
7203 if test -d "${with_celibconfig}/inc" ; then
7204 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
7206 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
7207 echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
7208 { (exit 1); exit 1; }; }
7212 # then check for a celib library
7213 if test x"${ac_cv_c_celibconfig}" = x ; then
7217 ../../celib-palm-3.0 \
7219 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
7220 ${srcdir}/../celib-palm-3.0 \
7221 ${srcdir}/../celib \
7222 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
7224 if test -d "$i/inc" ; then
7225 ac_cv_c_celibconfig=`(cd $i; pwd)`
7233 if test x"${ac_cv_c_celibconfig}" = x ; then
7234 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
7235 echo "$as_me: error: Cannot find celib support library directory" >&2;}
7236 { (exit 1); exit 1; }; }
7239 CELIB_DIR=${ac_cv_c_celibconfig}
7240 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
7241 echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
7242 echo "${ECHO_T}found $CELIB_DIR" >&6
7246 # Set defaults for common evc4/PPC2003 setup
7247 # Currently Tcl requires 300+, possibly 420+ for sockets
7248 CEVERSION=420; # could be 211 300 301 400 420 ...
7249 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ...
7250 ARCH=ARM; # could be ARM MIPS X86EM ...
7251 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
7252 if test "$doWince" != "yes"; then
7253 # If !yes then the user specified something
7254 # Reset ARCH to allow user to skip specifying it
7256 eval `echo $doWince | awk -F, '{ \
7257 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
7258 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
7259 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
7260 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
7261 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
7263 if test "x${ARCH}" = "x" ; then
7267 OSVERSION=WCE$CEVERSION;
7268 if test "x${WCEROOT}" = "x" ; then
7269 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
7270 if test ! -d "${WCEROOT}" ; then
7271 WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
7274 if test "x${SDKROOT}" = "x" ; then
7275 SDKROOT="C:/Program Files/Windows CE Tools"
7276 if test ! -d "${SDKROOT}" ; then
7277 SDKROOT="C:/Windows CE Tools"
7280 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
7281 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
7282 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
7283 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
7284 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5
7285 echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;}
7286 { (exit 1); exit 1; }; }
7289 # We could PATH_NOSPACE these, but that's not important,
7290 # as long as we quote them when used.
7291 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
7292 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
7293 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
7295 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
7299 if test "$GCC" != "yes" ; then
7300 if test "${SHARED_BUILD}" = "0" ; then
7306 if test "$do64bit" != "no" ; then
7307 # All this magic is necessary for the Win64 SDK RC1 - hobbs
7308 CC="\"${PATH64}/cl.exe\""
7309 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
7310 RC="\"${MSSDK}/bin/rc.exe\""
7311 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
7312 LINKBIN="\"${PATH64}/link.exe\""
7313 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7314 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7315 # Avoid 'unresolved external symbol __security_cookie'
7316 # errors, c.f. http://support.microsoft.com/?id=894573
7318 vars="bufferoverflowU.lib"
7320 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7321 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7322 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
7324 PKG_LIBS="$PKG_LIBS $i"
7328 elif test "$doWince" != "no" ; then
7329 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
7330 if test "${TARGETCPU}" = "X86"; then
7331 CC="\"${CEBINROOT}/cl.exe\""
7333 CC="\"${CEBINROOT}/cl${ARCH}.exe\""
7335 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
7336 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
7337 arch=`echo ${ARCH} | awk '{print tolower($0)}'`
7338 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
7339 if test "${SHARED_BUILD}" = "1" ; then
7340 # Static CE builds require static celib as well
7345 cat >>confdefs.h <<_ACEOF
7351 cat >>confdefs.h <<_ACEOF
7352 #define _WIN32_WCE $CEVERSION
7356 cat >>confdefs.h <<_ACEOF
7357 #define UNDER_CE $CEVERSION
7360 CFLAGS_DEBUG="-nologo -Zi -Od"
7361 CFLAGS_OPTIMIZE="-nologo -Ox"
7362 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
7363 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
7364 LINKBIN="\"${CEBINROOT}/link.exe\""
7370 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7371 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7375 if test "$GCC" = "yes"; then
7379 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7380 SHLIB_LD="$CC -shared"
7381 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7382 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7383 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7385 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7386 # link -lib only works when -lib is the first arg
7387 STLIB_LD="${LINKBIN} -lib ${lflags}"
7388 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7390 # For information on what debugtype is most useful, see:
7391 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7393 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7394 # This essentially turns it all on.
7395 LDFLAGS_DEBUG="-debug -debugtype:cv"
7396 LDFLAGS_OPTIMIZE="-release"
7397 if test "$doWince" != "no" ; then
7398 LDFLAGS_CONSOLE="-link ${lflags}"
7399 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
7401 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7402 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7407 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7409 TCL_LIB_VERSIONS_OK=nodots
7412 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then
7414 # AIX requires the _r compiler when gcc isn't being used
7420 # Make sure only first arg gets _r
7421 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7424 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
7425 echo "${ECHO_T}Using $CC for compiling with threads" >&6
7433 LD_LIBRARY_PATH_VAR="LIBPATH"
7435 # Check to enable 64-bit flags for compiler/linker
7436 if test "$do64bit" = yes; then
7438 if test "$GCC" = yes; then
7440 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7441 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7446 CFLAGS="$CFLAGS -q64"
7448 RANLIB="${RANLIB} -X64"
7450 SHLIB_LD_FLAGS="-b64"
7458 if test "`uname -m`" = ia64; then
7460 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7461 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7462 if test "$GCC" = yes; then
7464 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7468 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
7472 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7476 if test "$GCC" = yes; then
7478 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7482 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7483 LDFLAGS="$LDFLAGS -brtl"
7487 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7488 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7489 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7495 SHLIB_CFLAGS="-fPIC"
7496 SHLIB_LD='${CC} -nostart'
7499 #-----------------------------------------------------------
7500 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7501 # -lsocket, even if the network functions are in -lnet which
7502 # is always linked to, for compatibility.
7503 #-----------------------------------------------------------
7504 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
7505 echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6
7506 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 ac_check_lib_save_LIBS=$LIBS
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7518 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7533 rm -f conftest.$ac_objext conftest$ac_exeext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535 (eval $ac_link) 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try='test -z "$ac_c_werror_flag"
7543 || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_lib_bind_inet_ntoa=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_cv_lib_bind_inet_ntoa=no
7562 rm -f conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 LIBS=$ac_check_lib_save_LIBS
7566 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
7567 echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6
7568 if test $ac_cv_lib_bind_inet_ntoa = yes; then
7569 LIBS="$LIBS -lbind -lsocket"
7574 SHLIB_CFLAGS="-export-dynamic -fPIC"
7575 SHLIB_LD='${CC} -shared'
7577 LDFLAGS="$LDFLAGS -export-dynamic"
7583 SHLIB_LD='${CC} -shared'
7590 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7591 SHLIB_CFLAGS="-fPIC"
7593 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
7594 echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5
7595 echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6
7596 if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 ac_check_lib_save_LIBS=$LIBS
7600 LIBS="-lnetwork $LIBS"
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_lib_network_inet_ntoa=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_lib_network_inet_ntoa=no
7652 rm -f conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7654 LIBS=$ac_check_lib_save_LIBS
7656 echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5
7657 echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6
7658 if test $ac_cv_lib_network_inet_ntoa = yes; then
7659 LIBS="$LIBS -lnetwork"
7664 # Use updated header definitions where possible
7666 cat >>confdefs.h <<\_ACEOF
7667 #define _XOPEN_SOURCE_EXTENDED 1
7670 # TEA specific: Needed by Tcl, but not most extensions
7671 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7672 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7674 if test "`uname -m`" = ia64; then
7677 # Use newer C++ library for C++ extensions
7678 #if test "$GCC" != "yes" ; then
7688 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7689 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7690 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 ac_check_lib_save_LIBS=$LIBS
7695 cat >conftest.$ac_ext <<_ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7702 /* Override any gcc2 internal prototype to avoid an error. */
7706 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_lib_dld_shl_load=yes
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_cv_lib_dld_shl_load=no
7746 rm -f conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7748 LIBS=$ac_check_lib_save_LIBS
7750 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7751 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7752 if test $ac_cv_lib_dld_shl_load = yes; then
7758 if test "$tcl_ok" = yes; then
7760 LDFLAGS="$LDFLAGS -Wl,-E"
7761 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7762 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7763 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7767 if test "$GCC" = yes; then
7769 SHLIB_LD='${CC} -shared'
7770 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7775 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7776 #CFLAGS="$CFLAGS +DAportable"
7783 # Check to enable 64-bit flags for compiler/linker
7784 if test "$do64bit" = "yes"; then
7786 if test "$GCC" = yes; then
7788 case `${CC} -dumpmachine` in
7790 # 64-bit gcc in use. Fix flags for GNU ld.
7792 SHLIB_LD='${CC} -shared'
7793 if test $doRpath = yes; then
7795 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7798 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7801 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7802 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7809 CFLAGS="$CFLAGS +DD64"
7810 LDFLAGS_ARCH="+DD64"
7819 SHLIB_LD="ld -n32 -shared -rdata_shared"
7821 if test $doRpath = yes; then
7823 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7824 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7827 if test "$GCC" = yes; then
7829 CFLAGS="$CFLAGS -mabi=n32"
7830 LDFLAGS="$LDFLAGS -mabi=n32"
7836 # Use to build 6.2 compatible binaries on 6.3.
7837 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7840 CFLAGS="$CFLAGS -n32"
7843 LDFLAGS="$LDFLAGS -n32"
7850 SHLIB_LD="ld -n32 -shared -rdata_shared"
7852 if test $doRpath = yes; then
7854 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7855 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7859 # Check to enable 64-bit flags for compiler/linker
7861 if test "$do64bit" = yes; then
7863 if test "$GCC" = yes; then
7865 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
7866 echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7871 SHLIB_LD="ld -64 -shared -rdata_shared"
7872 CFLAGS="$CFLAGS -64"
7882 SHLIB_CFLAGS="-fPIC"
7886 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7888 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7889 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
7890 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7891 if test $doRpath = yes; then
7893 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7896 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7897 if test "`uname -m`" = "alpha"; then
7898 CFLAGS="$CFLAGS -mieee"
7901 if test $do64bit = yes; then
7903 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
7904 echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6
7905 if test "${tcl_cv_cc_m64+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 CFLAGS="$CFLAGS -m64"
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928 (eval $ac_link) 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag"
7936 || test ! -s conftest.err'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest$ac_exeext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7955 rm -f conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
7960 echo "${ECHO_T}$tcl_cv_cc_m64" >&6
7961 if test $tcl_cv_cc_m64 = yes; then
7963 CFLAGS="$CFLAGS -m64"
7972 # The combo of gcc + glibc has a bug related to inlining of
7973 # functions like strtod(). The -fno-builtin flag should address
7974 # this problem but it does not work. The -fno-inline flag is kind
7975 # of overkill but it works. Disable inlining only when one of the
7976 # files in compat/*.c is being linked in.
7978 if test x"${USE_COMPAT}" != x; then
7979 CFLAGS="$CFLAGS -fno-inline"
7985 SHLIB_CFLAGS="-fPIC"
7988 SHLIB_LD='${CC} -shared'
7989 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7992 if test "`uname -m`" = "alpha"; then
7993 CFLAGS="$CFLAGS -mieee"
7998 SHLIB_CFLAGS="-fPIC"
8001 SHLIB_LD='${CC} -shared'
8002 LD_FLAGS="-Wl,--export-dynamic"
8003 if test $doRpath = yes; then
8005 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8006 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8011 SHLIB_CFLAGS="-fPIC"
8012 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8014 if test $doRpath = yes; then
8016 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8019 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8020 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
8021 echo "$as_me:$LINENO: checking for ELF" >&5
8022 echo $ECHO_N "checking for ELF... $ECHO_C" >&6
8023 if test "${tcl_cv_ld_elf+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8040 $EGREP "yes" >/dev/null 2>&1; then
8048 echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
8049 echo "${ECHO_T}$tcl_cv_ld_elf" >&6
8050 if test $tcl_cv_ld_elf = yes; then
8052 LDFLAGS=-Wl,-export-dynamic
8058 if test "${TCL_THREADS}" = "1"; then
8060 # OpenBSD builds and links with -pthread, never -lpthread.
8061 LIBS=`echo $LIBS | sed s/-lpthread//`
8062 CFLAGS="$CFLAGS -pthread"
8063 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"
8067 # OpenBSD doesn't do version numbers with dots.
8068 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8069 TCL_LIB_VERSIONS_OK=nodots
8071 NetBSD-*|FreeBSD-[3-4].*)
8072 # FreeBSD 3.* and greater have ELF.
8073 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
8074 SHLIB_CFLAGS="-fPIC"
8075 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
8077 LDFLAGS="$LDFLAGS -export-dynamic"
8078 if test $doRpath = yes; then
8080 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8083 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8084 if test "${TCL_THREADS}" = "1"; then
8086 # The -pthread needs to go in the CFLAGS, not LIBS
8087 LIBS=`echo $LIBS | sed s/-pthread//`
8088 CFLAGS="$CFLAGS -pthread"
8089 LDFLAGS="$LDFLAGS -pthread"
8095 # FreeBSD-3 doesn't handle version numbers with dots.
8096 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8097 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
8098 TCL_LIB_VERSIONS_OK=nodots
8103 # This configuration from FreeBSD Ports.
8104 SHLIB_CFLAGS="-fPIC"
8105 SHLIB_LD="${CC} -shared"
8106 TCL_SHLIB_LD_EXTRAS="-soname \$@"
8109 if test $doRpath = yes; then
8111 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8112 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8115 if test "${TCL_THREADS}" = "1"; then
8117 # The -pthread needs to go in the LDFLAGS, not LIBS
8118 LIBS=`echo $LIBS | sed s/-pthread//`
8119 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8120 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8123 # Version numbers are dot-stripped by system policy.
8124 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
8125 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8126 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
8127 TCL_LIB_VERSIONS_OK=nodots
8130 CFLAGS_OPTIMIZE="-Os"
8131 SHLIB_CFLAGS="-fno-common"
8132 # To avoid discrepancies between what headers configure sees during
8133 # preprocessing tests and compiling tests, move any -isysroot and
8134 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8135 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8136 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8137 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8138 CFLAGS="`echo " ${CFLAGS}" | \
8139 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8140 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8141 if test $do64bit = yes; then
8145 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
8146 echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6
8147 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 tcl_cv_cc_arch_ppc64=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 tcl_cv_cc_arch_ppc64=no
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
8202 echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6
8203 if test $tcl_cv_cc_arch_ppc64 = yes; then
8205 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8211 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
8212 echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6
8213 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 CFLAGS="$CFLAGS -arch x86_64"
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag"
8244 || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 tcl_cv_cc_arch_x86_64=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 tcl_cv_cc_arch_x86_64=no
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
8268 echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6
8269 if test $tcl_cv_cc_arch_x86_64 = yes; then
8271 CFLAGS="$CFLAGS -arch x86_64"
8277 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8278 echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8283 # Check for combined 32-bit and 64-bit fat build
8284 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8285 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then
8293 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8294 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8295 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
8296 echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6
8297 if test "${tcl_cv_ld_single_module+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 hold_ldflags=$LDFLAGS
8302 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 tcl_cv_ld_single_module=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 tcl_cv_ld_single_module=no
8347 rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 LDFLAGS=$hold_ldflags
8351 echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
8352 echo "${ECHO_T}$tcl_cv_ld_single_module" >&6
8353 if test $tcl_cv_ld_single_module = yes; then
8355 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
8359 # TEA specific: link shlib with current and compatiblity version flags
8360 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8361 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8362 SHLIB_SUFFIX=".dylib"
8363 # Don't use -prebind when building for Mac OS X 10.4 or later only:
8364 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
8365 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then
8367 LDFLAGS="$LDFLAGS -prebind"
8370 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8371 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
8372 echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6
8373 if test "${tcl_cv_ld_search_paths_first+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 hold_ldflags=$LDFLAGS
8378 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 tcl_cv_ld_search_paths_first=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 tcl_cv_ld_search_paths_first=no
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 LDFLAGS=$hold_ldflags
8427 echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
8428 echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6
8429 if test $tcl_cv_ld_search_paths_first = yes; then
8431 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8435 if test "$tcl_cv_cc_visibility_hidden" != yes; then
8438 cat >>confdefs.h <<\_ACEOF
8439 #define MODULE_SCOPE __private_extern__
8442 tcl_cv_cc_visibility_hidden=yes
8448 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8449 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8450 # extensions, verify that 64-bit build is possible.
8451 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then
8453 if test "${TEA_WINDOWINGSYSTEM}" = x11; then
8455 echo "$as_me:$LINENO: checking for 64-bit X11" >&5
8456 echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6
8457 if test "${tcl_cv_lib_x11_64+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 for v in CFLAGS CPPFLAGS LDFLAGS; do
8462 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8464 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8465 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <X11/Xlib.h>
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 tcl_cv_lib_x11_64=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 tcl_cv_lib_x11_64=no
8510 rm -f conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 for v in CFLAGS CPPFLAGS LDFLAGS; do
8513 eval $v'="$hold_'$v'"'
8516 echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5
8517 echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6
8521 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then
8523 echo "$as_me:$LINENO: checking for 64-bit Tk" >&5
8524 echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6
8525 if test "${tcl_cv_lib_tk_64+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 for v in CFLAGS CPPFLAGS LDFLAGS; do
8530 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8532 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8533 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8544 Tk_InitStubs(NULL, "", 0);
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest$ac_exeext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 tcl_cv_lib_tk_64=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8578 rm -f conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 for v in CFLAGS CPPFLAGS LDFLAGS; do
8581 eval $v'="$hold_'$v'"'
8584 echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5
8585 echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6
8589 # remove 64-bit arch flags from CFLAGS et al. if configuration
8590 # does not support 64-bit.
8591 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then
8593 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5
8594 echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8595 for v in CFLAGS CPPFLAGS LDFLAGS; do
8596 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8605 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8607 cat >>confdefs.h <<\_ACEOF
8608 #define _OE_SOCKETS 1
8615 if test "$SHARED_BUILD" = 1; then
8617 SHLIB_LD='ld -shared -expect_unresolved "*"'
8621 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8626 if test $doRpath = yes; then
8628 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
8629 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8632 if test "$GCC" = yes; then
8633 CFLAGS="$CFLAGS -mieee"
8636 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
8639 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8640 if test "${TCL_THREADS}" = 1; then
8642 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8643 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8644 LIBS=`echo $LIBS | sed s/-lpthreads//`
8645 if test "$GCC" = yes; then
8647 LIBS="$LIBS -lpthread -lmach -lexc"
8651 CFLAGS="$CFLAGS -pthread"
8652 LDFLAGS="$LDFLAGS -pthread"
8662 # This may work for all QNX, but it was only reported for v6.
8663 SHLIB_CFLAGS="-fPIC"
8664 SHLIB_LD="ld -Bshareable -x"
8671 if test "$GCC" = yes; then
8673 SHLIB_CFLAGS="-fPIC -melf"
8674 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8678 SHLIB_CFLAGS="-Kpic -belf"
8679 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8690 # Careful to not let 5.10+ fall into this case
8692 # Note: If _REENTRANT isn't defined, then Solaris
8693 # won't define thread-safe library routines.
8696 cat >>confdefs.h <<\_ACEOF
8697 #define _REENTRANT 1
8701 cat >>confdefs.h <<\_ACEOF
8702 #define _POSIX_PTHREAD_SEMANTICS 1
8706 SHLIB_CFLAGS="-KPIC"
8708 if test "$GCC" = yes; then
8710 SHLIB_LD='${CC} -shared'
8711 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8712 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8716 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8717 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8718 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8724 # Note: If _REENTRANT isn't defined, then Solaris
8725 # won't define thread-safe library routines.
8728 cat >>confdefs.h <<\_ACEOF
8729 #define _REENTRANT 1
8733 cat >>confdefs.h <<\_ACEOF
8734 #define _POSIX_PTHREAD_SEMANTICS 1
8738 SHLIB_CFLAGS="-KPIC"
8740 # Check to enable 64-bit flags for compiler/linker
8741 if test "$do64bit" = yes; then
8744 if test "$arch" = "sparcv9 sparc"; then
8746 if test "$GCC" = yes; then
8748 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then
8750 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8751 echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8756 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8757 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8758 SHLIB_CFLAGS="-fPIC"
8766 if test "$do64bitVIS" = yes; then
8768 CFLAGS="$CFLAGS -xarch=v9a"
8769 LDFLAGS_ARCH="-xarch=v9a"
8773 CFLAGS="$CFLAGS -xarch=v9"
8774 LDFLAGS_ARCH="-xarch=v9"
8778 # Solaris 64 uses this as well
8779 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8785 if test "$arch" = "amd64 i386"; then
8787 if test "$GCC" = yes; then
8790 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8792 CFLAGS="$CFLAGS -m64"
8793 LDFLAGS="$LDFLAGS -m64";;
8795 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8796 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8803 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8804 CFLAGS="$CFLAGS -m64"
8805 LDFLAGS="$LDFLAGS -m64";;
8807 CFLAGS="$CFLAGS -xarch=amd64"
8808 LDFLAGS="$LDFLAGS -xarch=amd64";;
8815 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
8816 echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
8826 if test "$GCC" = yes; then
8828 SHLIB_LD='${CC} -shared'
8829 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8830 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8831 if test "$do64bit_ok" = yes; then
8833 if test "$arch" = "sparcv9 sparc"; then
8835 # We need to specify -static-libgcc or we need to
8836 # add the path to the sparv9 libgcc.
8837 # JH: static-libgcc is necessary for core Tcl, but may
8838 # not be necessary for extensions.
8839 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8840 # for finding sparcv9 libgcc, get the regular libgcc
8841 # path, remove so name and append 'sparcv9'
8842 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8843 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8846 if test "$arch" = "amd64 i386"; then
8848 # JH: static-libgcc is necessary for core Tcl, but may
8849 # not be necessary for extensions.
8850 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8863 SunOS-5.[1-9][0-9]*)
8864 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8865 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8867 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8869 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8870 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8877 if test "$do64bit" = yes -a "$do64bit_ok" = no; then
8879 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8880 echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8887 # Add in the arch flags late to ensure it wasn't removed.
8888 # Not necessary in TEA, but this is aligned with core
8889 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8891 # If we're running gcc, then change the C flags for compiling shared
8892 # libraries to the right flags for gcc, instead of those for the
8893 # standard manufacturer compiler.
8895 if test "$GCC" = yes; then
8902 NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
8906 *) SHLIB_CFLAGS="-fPIC" ;;
8911 if test "$tcl_cv_cc_visibility_hidden" != yes; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define MODULE_SCOPE extern
8919 cat >>confdefs.h <<\_ACEOF
8927 if test "$SHARED_LIB_SUFFIX" = ""; then
8929 # TEA specific: use PACKAGE_VERSION instead of VERSION
8930 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8933 if test "$UNSHARED_LIB_SUFFIX" = ""; then
8935 # TEA specific: use PACKAGE_VERSION instead of VERSION
8936 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8952 # These must be called after we do the basic CFLAGS checks and
8953 # verify any possible 64-bit or similar switches are necessary
8955 echo "$as_me:$LINENO: checking for required early compiler flags" >&5
8956 echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6
8959 if test "${tcl_cv_flag__isoc99_source+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8972 char *p = (char *)strtoll; char *q = (char *)strtoull;
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 tcl_cv_flag__isoc99_source=no
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 #define _ISOC99_SOURCE 1
9015 char *p = (char *)strtoll; char *q = (char *)strtoull;
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 tcl_cv_flag__isoc99_source=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 tcl_cv_flag__isoc99_source=no
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9054 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9056 cat >>confdefs.h <<\_ACEOF
9057 #define _ISOC99_SOURCE 1
9060 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9064 if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 #include <sys/stat.h>
9077 struct stat64 buf; int i = stat64("/", &buf);
9082 rm -f conftest.$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>conftest.er1
9086 grep -v '^ *+' conftest.er1 >conftest.err
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 tcl_cv_flag__largefile64_source=no
9106 echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #define _LARGEFILE64_SOURCE 1
9116 #include <sys/stat.h>
9120 struct stat64 buf; int i = stat64("/", &buf);
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_c_werror_flag"
9135 || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest.$ac_objext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 tcl_cv_flag__largefile64_source=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 tcl_cv_flag__largefile64_source=no
9154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9161 cat >>confdefs.h <<\_ACEOF
9162 #define _LARGEFILE64_SOURCE 1
9165 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9169 if test "${tcl_cv_flag__largefile_source64+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 #include <sys/stat.h>
9182 char *p = (char *)open64;
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 tcl_cv_flag__largefile_source64=no
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 #define _LARGEFILE_SOURCE64 1
9221 #include <sys/stat.h>
9225 char *p = (char *)open64;
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>conftest.er1
9234 grep -v '^ *+' conftest.er1 >conftest.err
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } &&
9239 { ac_try='test -z "$ac_c_werror_flag"
9240 || test ! -s conftest.err'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; } &&
9246 { ac_try='test -s conftest.$ac_objext'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; }; then
9252 tcl_cv_flag__largefile_source64=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 tcl_cv_flag__largefile_source64=no
9259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9264 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
9266 cat >>confdefs.h <<\_ACEOF
9267 #define _LARGEFILE_SOURCE64 1
9270 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
9273 if test "x${tcl_flags}" = "x" ; then
9274 echo "$as_me:$LINENO: result: none" >&5
9275 echo "${ECHO_T}none" >&6
9277 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9278 echo "${ECHO_T}${tcl_flags}" >&6
9282 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9283 echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6
9284 if test "${tcl_cv_type_64bit+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 tcl_cv_type_64bit=none
9289 # See if the compiler knows natively about __int64
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9300 __int64 value = (__int64) 0;
9305 rm -f conftest.$ac_objext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9307 (eval $ac_compile) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag"
9315 || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 tcl_type_64bit=__int64
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 tcl_type_64bit="long long"
9334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9335 # See if we should use long anyway Note that we substitute in the
9336 # type that is our current guess for a 64-bit type inside this check
9337 # program, so it should be modified only carefully...
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9349 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 tcl_cv_type_64bit=${tcl_type_64bit}
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9386 if test "${tcl_cv_type_64bit}" = none ; then
9388 cat >>confdefs.h <<\_ACEOF
9389 #define TCL_WIDE_INT_IS_LONG 1
9392 echo "$as_me:$LINENO: result: using long" >&5
9393 echo "${ECHO_T}using long" >&6
9394 elif test "${tcl_cv_type_64bit}" = "__int64" \
9395 -a "${TEA_PLATFORM}" = "windows" ; then
9396 # TEA specific: We actually want to use the default tcl.h checks in
9397 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9398 echo "$as_me:$LINENO: result: using Tcl header defaults" >&5
9399 echo "${ECHO_T}using Tcl header defaults" >&6
9402 cat >>confdefs.h <<_ACEOF
9403 #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9406 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9407 echo "${ECHO_T}${tcl_cv_type_64bit}" >&6
9409 # Now check for auxiliary declarations
9410 echo "$as_me:$LINENO: checking for struct dirent64" >&5
9411 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
9412 if test "${tcl_cv_struct_dirent64+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 #include <sys/types.h>
9423 #include <sys/dirent.h>
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 tcl_cv_struct_dirent64=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 tcl_cv_struct_dirent64=no
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
9464 echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6
9465 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_STRUCT_DIRENT64 1
9473 echo "$as_me:$LINENO: checking for struct stat64" >&5
9474 echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6
9475 if test "${tcl_cv_struct_stat64+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <sys/stat.h>
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 tcl_cv_struct_stat64=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 tcl_cv_struct_stat64=no
9524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
9527 echo "${ECHO_T}$tcl_cv_struct_stat64" >&6
9528 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_STRUCT_STAT64 1
9538 for ac_func in open64 lseek64
9540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541 echo "$as_me:$LINENO: checking for $ac_func" >&5
9542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_var+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define $ac_func innocuous_$ac_func
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char $ac_func (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9562 # include <limits.h>
9564 # include <assert.h>
9569 /* Override any gcc2 internal prototype to avoid an error. */
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9577 /* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583 char (*f) () = $ac_func;
9592 return f != $ac_func;
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 eval "$as_ac_var=yes"
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 eval "$as_ac_var=no"
9626 rm -f conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9631 if test `eval echo '${'$as_ac_var'}'` = yes; then
9632 cat >>confdefs.h <<_ACEOF
9633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639 echo "$as_me:$LINENO: checking for off64_t" >&5
9640 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
9641 if test "${tcl_cv_type_off64_t+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <sys/types.h>
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag"
9671 || test ! -s conftest.err'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 tcl_cv_type_off64_t=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 tcl_cv_type_off64_t=no
9690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9693 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9694 test "x${ac_cv_func_lseek64}" = "xyes" && \
9695 test "x${ac_cv_func_open64}" = "xyes" ; then
9697 cat >>confdefs.h <<\_ACEOF
9698 #define HAVE_TYPE_OFF64_T 1
9701 echo "$as_me:$LINENO: result: yes" >&5
9702 echo "${ECHO_T}yes" >&6
9704 echo "$as_me:$LINENO: result: no" >&5
9705 echo "${ECHO_T}no" >&6
9711 #--------------------------------------------------------------------
9712 # Set the default compiler switches based on the --enable-symbols option.
9713 #--------------------------------------------------------------------
9717 echo "$as_me:$LINENO: checking for build with symbols" >&5
9718 echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6
9719 # Check whether --enable-symbols or --disable-symbols was given.
9720 if test "${enable_symbols+set}" = set; then
9721 enableval="$enable_symbols"
9727 if test "$tcl_ok" = "no"; then
9728 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
9729 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9730 echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6
9733 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9734 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9735 if test "$tcl_ok" = "yes"; then
9736 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
9737 echo "${ECHO_T}yes (standard debugging)" >&6
9741 if test "${TEA_PLATFORM}" != "windows" ; then
9742 LDFLAGS_DEFAULT="${LDFLAGS}"
9748 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define TCL_MEM_DEBUG 1
9756 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9757 if test "$tcl_ok" = "all"; then
9758 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5
9759 echo "${ECHO_T}enabled symbols mem debugging" >&6
9761 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
9762 echo "${ECHO_T}enabled $tcl_ok debugging" >&6
9767 #--------------------------------------------------------------------
9768 # Everyone should be linking against the Tcl stub library. If you
9769 # can't for some reason, remove this definition. If you aren't using
9770 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
9771 # link against the non-stubbed Tcl library.
9772 #--------------------------------------------------------------------
9774 cat >>confdefs.h <<\_ACEOF
9775 #define USE_TCL_STUBS 1
9779 cat >>confdefs.h <<\_ACEOF
9780 #define USE_TCL_STUBS 1
9784 #-------------------------------------------------------------------------
9785 # Check for system header files.
9786 #-------------------------------------------------------------------------
9788 if test "${ac_cv_header_sys_select_h+set}" = set; then
9789 echo "$as_me:$LINENO: checking for sys/select.h" >&5
9790 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
9791 if test "${ac_cv_header_sys_select_h+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9795 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
9797 # Is the header compilable?
9798 echo "$as_me:$LINENO: checking sys/select.h usability" >&5
9799 echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9807 #include <sys/select.h>
9809 rm -f conftest.$ac_objext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9811 (eval $ac_compile) 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag"
9819 || test ! -s conftest.err'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; } &&
9825 { ac_try='test -s conftest.$ac_objext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 ac_header_compiler=yes
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_header_compiler=no
9838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9840 echo "${ECHO_T}$ac_header_compiler" >&6
9842 # Is the header present?
9843 echo "$as_me:$LINENO: checking sys/select.h presence" >&5
9844 echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 #include <sys/select.h>
9853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9856 grep -v '^ *+' conftest.er1 >conftest.err
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } >/dev/null; then
9861 if test -s conftest.err; then
9862 ac_cpp_err=$ac_c_preproc_warn_flag
9863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9870 if test -z "$ac_cpp_err"; then
9871 ac_header_preproc=yes
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_header_preproc=no
9878 rm -f conftest.err conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9880 echo "${ECHO_T}$ac_header_preproc" >&6
9882 # So? What about this header?
9883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9885 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
9886 echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
9888 echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
9889 ac_header_preproc=yes
9892 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
9893 echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
9895 echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
9897 echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
9899 echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
9901 echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
9903 echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
9906 ## --------------------------------- ##
9907 ## Report this to the expect lists. ##
9908 ## --------------------------------- ##
9911 sed "s/^/$as_me: WARNING: /" >&2
9914 echo "$as_me:$LINENO: checking for sys/select.h" >&5
9915 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
9916 if test "${ac_cv_header_sys_select_h+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 ac_cv_header_sys_select_h=$ac_header_preproc
9921 echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9922 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
9925 if test $ac_cv_header_sys_select_h = yes; then
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_SYS_SELECT_H 1
9933 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9934 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9935 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9936 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9940 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9942 # Is the header compilable?
9943 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9944 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 $ac_includes_default
9952 #include <sys/sysmacros.h>
9954 rm -f conftest.$ac_objext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9956 (eval $ac_compile) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_header_compiler=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_header_compiler=no
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9985 echo "${ECHO_T}$ac_header_compiler" >&6
9987 # Is the header present?
9988 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9989 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 #include <sys/sysmacros.h>
9998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } >/dev/null; then
10006 if test -s conftest.err; then
10007 ac_cpp_err=$ac_c_preproc_warn_flag
10008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10015 if test -z "$ac_cpp_err"; then
10016 ac_header_preproc=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_header_preproc=no
10023 rm -f conftest.err conftest.$ac_ext
10024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10025 echo "${ECHO_T}$ac_header_preproc" >&6
10027 # So? What about this header?
10028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10030 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10031 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10032 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10033 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10034 ac_header_preproc=yes
10037 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10038 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10040 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10042 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
10044 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10046 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10048 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10051 ## --------------------------------- ##
10052 ## Report this to the expect lists. ##
10053 ## --------------------------------- ##
10056 sed "s/^/$as_me: WARNING: /" >&2
10059 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10060 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10061 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10066 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10067 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10070 if test $ac_cv_header_sys_sysmacros_h = yes; then
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_SYSMACROS_H 1
10079 # Oddly, some systems have stdarg but don't support prototypes
10080 # Tcl avoids the whole issue by not using stdarg on UNIX at all!
10083 if test "${ac_cv_header_varargs_h+set}" = set; then
10084 echo "$as_me:$LINENO: checking for varargs.h" >&5
10085 echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
10086 if test "${ac_cv_header_varargs_h+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
10090 echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
10092 # Is the header compilable?
10093 echo "$as_me:$LINENO: checking varargs.h usability" >&5
10094 echo $ECHO_N "checking varargs.h usability... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 $ac_includes_default
10102 #include <varargs.h>
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_header_compiler=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_compiler=no
10133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 echo "${ECHO_T}$ac_header_compiler" >&6
10137 # Is the header present?
10138 echo "$as_me:$LINENO: checking varargs.h presence" >&5
10139 echo $ECHO_N "checking varargs.h presence... $ECHO_C" >&6
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <varargs.h>
10148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } >/dev/null; then
10156 if test -s conftest.err; then
10157 ac_cpp_err=$ac_c_preproc_warn_flag
10158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10165 if test -z "$ac_cpp_err"; then
10166 ac_header_preproc=yes
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 { echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10187 { echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: varargs.h: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: varargs.h: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;}
10201 ## --------------------------------- ##
10202 ## Report this to the expect lists. ##
10203 ## --------------------------------- ##
10206 sed "s/^/$as_me: WARNING: /" >&2
10209 echo "$as_me:$LINENO: checking for varargs.h" >&5
10210 echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
10211 if test "${ac_cv_header_varargs_h+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_cv_header_varargs_h=$ac_header_preproc
10216 echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
10217 echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
10220 if test $ac_cv_header_varargs_h = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_VARARGS_H 1
10229 # If no stropts.h, then the svr4 implementation is broken.
10230 # At least it is on my Debian "potato" system. - Rob Savoye
10232 if test "${ac_cv_header_sys_stropts_h+set}" = set; then
10233 echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
10234 echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
10235 if test "${ac_cv_header_sys_stropts_h+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
10239 echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
10241 # Is the header compilable?
10242 echo "$as_me:$LINENO: checking sys/stropts.h usability" >&5
10243 echo $ECHO_N "checking sys/stropts.h usability... $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 #include <sys/stropts.h>
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1 >conftest.err
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest.$ac_objext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_header_compiler=yes
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_header_compiler=no
10282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10284 echo "${ECHO_T}$ac_header_compiler" >&6
10286 # Is the header present?
10287 echo "$as_me:$LINENO: checking sys/stropts.h presence" >&5
10288 echo $ECHO_N "checking sys/stropts.h presence... $ECHO_C" >&6
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 #include <sys/stropts.h>
10297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } >/dev/null; then
10305 if test -s conftest.err; then
10306 ac_cpp_err=$ac_c_preproc_warn_flag
10307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10314 if test -z "$ac_cpp_err"; then
10315 ac_header_preproc=yes
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_header_preproc=no
10322 rm -f conftest.err conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10324 echo "${ECHO_T}$ac_header_preproc" >&6
10326 # So? What about this header?
10327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10329 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&5
10330 echo "$as_me: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the compiler's result" >&5
10332 echo "$as_me: WARNING: sys/stropts.h: proceeding with the compiler's result" >&2;}
10333 ac_header_preproc=yes
10336 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: present but cannot be compiled" >&5
10337 echo "$as_me: WARNING: sys/stropts.h: present but cannot be compiled" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&5
10339 echo "$as_me: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: see the Autoconf documentation" >&5
10341 echo "$as_me: WARNING: sys/stropts.h: see the Autoconf documentation" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&5
10343 echo "$as_me: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&5
10345 echo "$as_me: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&5
10347 echo "$as_me: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&2;}
10350 ## --------------------------------- ##
10351 ## Report this to the expect lists. ##
10352 ## --------------------------------- ##
10355 sed "s/^/$as_me: WARNING: /" >&2
10358 echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
10359 echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
10360 if test "${ac_cv_header_sys_stropts_h+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 ac_cv_header_sys_stropts_h=$ac_header_preproc
10365 echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
10366 echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
10369 if test $ac_cv_header_sys_stropts_h = yes; then
10370 cat >>confdefs.h <<\_ACEOF
10371 #define HAVE_STROPTS_H 1
10379 if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
10380 echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
10381 echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
10382 if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
10386 echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
10388 # Is the header compilable?
10389 echo "$as_me:$LINENO: checking sys/sysconfig.h usability" >&5
10390 echo $ECHO_N "checking sys/sysconfig.h usability... $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 $ac_includes_default
10398 #include <sys/sysconfig.h>
10400 rm -f conftest.$ac_objext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_header_compiler=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_header_compiler=no
10429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431 echo "${ECHO_T}$ac_header_compiler" >&6
10433 # Is the header present?
10434 echo "$as_me:$LINENO: checking sys/sysconfig.h presence" >&5
10435 echo $ECHO_N "checking sys/sysconfig.h presence... $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 #include <sys/sysconfig.h>
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_c_preproc_warn_flag
10454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10461 if test -z "$ac_cpp_err"; then
10462 ac_header_preproc=yes
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_header_preproc=no
10469 rm -f conftest.err conftest.$ac_ext
10470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10471 echo "${ECHO_T}$ac_header_preproc" >&6
10473 # So? What about this header?
10474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10476 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
10477 echo "$as_me: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&5
10479 echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&2;}
10480 ac_header_preproc=yes
10483 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: present but cannot be compiled" >&5
10484 echo "$as_me: WARNING: sys/sysconfig.h: present but cannot be compiled" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&5
10486 echo "$as_me: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&5
10488 echo "$as_me: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&5
10490 echo "$as_me: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&5
10492 echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&5
10494 echo "$as_me: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&2;}
10497 ## --------------------------------- ##
10498 ## Report this to the expect lists. ##
10499 ## --------------------------------- ##
10502 sed "s/^/$as_me: WARNING: /" >&2
10505 echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
10506 echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
10507 if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 ac_cv_header_sys_sysconfig_h=$ac_header_preproc
10512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
10513 echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
10516 if test $ac_cv_header_sys_sysconfig_h = yes; then
10517 cat >>confdefs.h <<\_ACEOF
10518 #define HAVE_SYSCONF_H 1
10524 if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
10525 echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
10526 echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
10527 if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
10531 echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
10533 # Is the header compilable?
10534 echo "$as_me:$LINENO: checking sys/fcntl.h usability" >&5
10535 echo $ECHO_N "checking sys/fcntl.h usability... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10543 #include <sys/fcntl.h>
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -z "$ac_c_werror_flag"
10555 || test ! -s conftest.err'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest.$ac_objext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_header_compiler=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_compiler=no
10574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 echo "${ECHO_T}$ac_header_compiler" >&6
10578 # Is the header present?
10579 echo "$as_me:$LINENO: checking sys/fcntl.h presence" >&5
10580 echo $ECHO_N "checking sys/fcntl.h presence... $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <sys/fcntl.h>
10589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null; then
10597 if test -s conftest.err; then
10598 ac_cpp_err=$ac_c_preproc_warn_flag
10599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606 if test -z "$ac_cpp_err"; then
10607 ac_header_preproc=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_header_preproc=no
10614 rm -f conftest.err conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10616 echo "${ECHO_T}$ac_header_preproc" >&6
10618 # So? What about this header?
10619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10621 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10622 echo "$as_me: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&5
10624 echo "$as_me: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&2;}
10625 ac_header_preproc=yes
10628 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: present but cannot be compiled" >&5
10629 echo "$as_me: WARNING: sys/fcntl.h: present but cannot be compiled" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&5
10631 echo "$as_me: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: see the Autoconf documentation" >&5
10633 echo "$as_me: WARNING: sys/fcntl.h: see the Autoconf documentation" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
10635 echo "$as_me: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&5
10637 echo "$as_me: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&5
10639 echo "$as_me: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&2;}
10642 ## --------------------------------- ##
10643 ## Report this to the expect lists. ##
10644 ## --------------------------------- ##
10647 sed "s/^/$as_me: WARNING: /" >&2
10650 echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
10651 echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
10652 if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_cv_header_sys_fcntl_h=$ac_header_preproc
10657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
10661 if test $ac_cv_header_sys_fcntl_h = yes; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_SYS_FCNTL_H 1
10669 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10670 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10671 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10672 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10676 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10678 # Is the header compilable?
10679 echo "$as_me:$LINENO: checking sys/ptem.h usability" >&5
10680 echo $ECHO_N "checking sys/ptem.h usability... $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10688 #include <sys/ptem.h>
10690 rm -f conftest.$ac_objext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag"
10700 || test ! -s conftest.err'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest.$ac_objext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_header_compiler=yes
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ac_header_compiler=no
10719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721 echo "${ECHO_T}$ac_header_compiler" >&6
10723 # Is the header present?
10724 echo "$as_me:$LINENO: checking sys/ptem.h presence" >&5
10725 echo $ECHO_N "checking sys/ptem.h presence... $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <sys/ptem.h>
10734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } >/dev/null; then
10742 if test -s conftest.err; then
10743 ac_cpp_err=$ac_c_preproc_warn_flag
10744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10751 if test -z "$ac_cpp_err"; then
10752 ac_header_preproc=yes
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10757 ac_header_preproc=no
10759 rm -f conftest.err conftest.$ac_ext
10760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10761 echo "${ECHO_T}$ac_header_preproc" >&6
10763 # So? What about this header?
10764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10766 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&5
10767 echo "$as_me: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the compiler's result" >&5
10769 echo "$as_me: WARNING: sys/ptem.h: proceeding with the compiler's result" >&2;}
10770 ac_header_preproc=yes
10773 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: present but cannot be compiled" >&5
10774 echo "$as_me: WARNING: sys/ptem.h: present but cannot be compiled" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&5
10776 echo "$as_me: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: see the Autoconf documentation" >&5
10778 echo "$as_me: WARNING: sys/ptem.h: see the Autoconf documentation" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&5
10780 echo "$as_me: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&5
10782 echo "$as_me: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&5
10784 echo "$as_me: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&2;}
10787 ## --------------------------------- ##
10788 ## Report this to the expect lists. ##
10789 ## --------------------------------- ##
10792 sed "s/^/$as_me: WARNING: /" >&2
10795 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10796 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10797 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 ac_cv_header_sys_ptem_h=$ac_header_preproc
10802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10803 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10806 if test $ac_cv_header_sys_ptem_h = yes; then
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_SYS_PTEM_H 1
10814 if test "${ac_cv_header_sys_strredir_h+set}" = set; then
10815 echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
10816 echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
10817 if test "${ac_cv_header_sys_strredir_h+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
10821 echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
10823 # Is the header compilable?
10824 echo "$as_me:$LINENO: checking sys/strredir.h usability" >&5
10825 echo $ECHO_N "checking sys/strredir.h usability... $ECHO_C" >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10833 #include <sys/strredir.h>
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_header_compiler=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_header_compiler=no
10864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10866 echo "${ECHO_T}$ac_header_compiler" >&6
10868 # Is the header present?
10869 echo "$as_me:$LINENO: checking sys/strredir.h presence" >&5
10870 echo $ECHO_N "checking sys/strredir.h presence... $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <sys/strredir.h>
10879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev/null; then
10887 if test -s conftest.err; then
10888 ac_cpp_err=$ac_c_preproc_warn_flag
10889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10896 if test -z "$ac_cpp_err"; then
10897 ac_header_preproc=yes
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_header_preproc=no
10904 rm -f conftest.err conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10906 echo "${ECHO_T}$ac_header_preproc" >&6
10908 # So? What about this header?
10909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10911 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&5
10912 echo "$as_me: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the compiler's result" >&5
10914 echo "$as_me: WARNING: sys/strredir.h: proceeding with the compiler's result" >&2;}
10915 ac_header_preproc=yes
10918 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: present but cannot be compiled" >&5
10919 echo "$as_me: WARNING: sys/strredir.h: present but cannot be compiled" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&5
10921 echo "$as_me: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: see the Autoconf documentation" >&5
10923 echo "$as_me: WARNING: sys/strredir.h: see the Autoconf documentation" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&5
10925 echo "$as_me: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&5
10927 echo "$as_me: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&5
10929 echo "$as_me: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&2;}
10932 ## --------------------------------- ##
10933 ## Report this to the expect lists. ##
10934 ## --------------------------------- ##
10937 sed "s/^/$as_me: WARNING: /" >&2
10940 echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
10941 echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
10942 if test "${ac_cv_header_sys_strredir_h+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 ac_cv_header_sys_strredir_h=$ac_header_preproc
10947 echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
10948 echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
10951 if test $ac_cv_header_sys_strredir_h = yes; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define HAVE_STRREDIR_H 1
10959 if test "${ac_cv_header_sys_strpty_h+set}" = set; then
10960 echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
10961 echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
10962 if test "${ac_cv_header_sys_strpty_h+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
10966 echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
10968 # Is the header compilable?
10969 echo "$as_me:$LINENO: checking sys/strpty.h usability" >&5
10970 echo $ECHO_N "checking sys/strpty.h usability... $ECHO_C" >&6
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 #include <sys/strpty.h>
10980 rm -f conftest.$ac_objext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10982 (eval $ac_compile) 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -z "$ac_c_werror_flag"
10990 || test ! -s conftest.err'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest.$ac_objext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_header_compiler=yes
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_header_compiler=no
11009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11011 echo "${ECHO_T}$ac_header_compiler" >&6
11013 # Is the header present?
11014 echo "$as_me:$LINENO: checking sys/strpty.h presence" >&5
11015 echo $ECHO_N "checking sys/strpty.h presence... $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <sys/strpty.h>
11024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null; then
11032 if test -s conftest.err; then
11033 ac_cpp_err=$ac_c_preproc_warn_flag
11034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041 if test -z "$ac_cpp_err"; then
11042 ac_header_preproc=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_header_preproc=no
11049 rm -f conftest.err conftest.$ac_ext
11050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11051 echo "${ECHO_T}$ac_header_preproc" >&6
11053 # So? What about this header?
11054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11056 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&5
11057 echo "$as_me: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the compiler's result" >&5
11059 echo "$as_me: WARNING: sys/strpty.h: proceeding with the compiler's result" >&2;}
11060 ac_header_preproc=yes
11063 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: present but cannot be compiled" >&5
11064 echo "$as_me: WARNING: sys/strpty.h: present but cannot be compiled" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&5
11066 echo "$as_me: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: see the Autoconf documentation" >&5
11068 echo "$as_me: WARNING: sys/strpty.h: see the Autoconf documentation" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&5
11070 echo "$as_me: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&5
11072 echo "$as_me: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&5
11074 echo "$as_me: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&2;}
11077 ## --------------------------------- ##
11078 ## Report this to the expect lists. ##
11079 ## --------------------------------- ##
11082 sed "s/^/$as_me: WARNING: /" >&2
11085 echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
11086 echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
11087 if test "${ac_cv_header_sys_strpty_h+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_cv_header_sys_strpty_h=$ac_header_preproc
11092 echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
11093 echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
11096 if test $ac_cv_header_sys_strpty_h = yes; then
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_STRPTY_H 1
11105 echo "$as_me:$LINENO: checking for sys/bsdtypes.h" >&5
11106 echo $ECHO_N "checking for sys/bsdtypes.h... $ECHO_C" >&6
11107 if test "ISC_${ISC}" = "ISC_1" ; then
11108 echo "$as_me:$LINENO: result: yes" >&5
11109 echo "${ECHO_T}yes" >&6
11110 # if on ISC 1, we need <sys/bsdtypes.h> to get FD_SET macros
11112 for ac_header in sys/bsdtypes.h
11114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11116 echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11124 # Is the header compilable?
11125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 $ac_includes_default
11134 #include <$ac_header>
11136 rm -f conftest.$ac_objext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11138 (eval $ac_compile) 2>conftest.er1
11140 grep -v '^ *+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag"
11146 || test ! -s conftest.err'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; } &&
11152 { ac_try='test -s conftest.$ac_objext'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_header_compiler=yes
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_header_compiler=no
11165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11167 echo "${ECHO_T}$ac_header_compiler" >&6
11169 # Is the header present?
11170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #include <$ac_header>
11180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11183 grep -v '^ *+' conftest.er1 >conftest.err
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11197 if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11205 rm -f conftest.err conftest.$ac_ext
11206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207 echo "${ECHO_T}$ac_header_preproc" >&6
11209 # So? What about this header?
11210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233 ## --------------------------------- ##
11234 ## Report this to the expect lists. ##
11235 ## --------------------------------- ##
11238 sed "s/^/$as_me: WARNING: /" >&2
11241 echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 eval "$as_ac_Header=\$ac_header_preproc"
11248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 echo "$as_me:$LINENO: result: no" >&5
11263 echo "${ECHO_T}no" >&6
11266 #-------------------------------------------------------------------------
11267 # What type do signals return?
11268 #-------------------------------------------------------------------------
11270 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11271 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11272 if test "${ac_cv_type_signal+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <sys/types.h>
11282 #include <signal.h>
11287 extern "C" void (*signal (int, void (*)(int)))(int);
11289 void (*signal ()) ();
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_type_signal=void
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_type_signal=int
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11331 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11332 echo "${ECHO_T}$ac_cv_type_signal" >&6
11334 cat >>confdefs.h <<_ACEOF
11335 #define RETSIGTYPE $ac_cv_type_signal
11340 #-------------------------------------------------------------------------
11341 # Find out all about time handling differences.
11342 #-------------------------------------------------------------------------
11344 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11345 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11346 if test "${ac_cv_struct_tm+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <sys/types.h>
11361 struct tm *tp; tp->tm_sec;
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_struct_tm=time.h
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_cv_struct_tm=sys/time.h
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11398 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11399 if test $ac_cv_struct_tm = sys/time.h; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define TM_IN_SYS_TIME 1
11409 for ac_header in sys/time.h
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11413 echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421 # Is the header compilable?
11422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_compiler=no
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464 echo "${ECHO_T}$ac_header_compiler" >&6
11466 # Is the header present?
11467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <$ac_header>
11477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } >/dev/null; then
11485 if test -s conftest.err; then
11486 ac_cpp_err=$ac_c_preproc_warn_flag
11487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494 if test -z "$ac_cpp_err"; then
11495 ac_header_preproc=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_header_preproc=no
11502 rm -f conftest.err conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11506 # So? What about this header?
11507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513 ac_header_preproc=yes
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11530 ## --------------------------------- ##
11531 ## Report this to the expect lists. ##
11532 ## --------------------------------- ##
11535 sed "s/^/$as_me: WARNING: /" >&2
11538 echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 eval "$as_ac_Header=\$ac_header_preproc"
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11550 cat >>confdefs.h <<_ACEOF
11551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11560 if test "${ac_cv_header_time+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <sys/types.h>
11570 #include <sys/time.h>
11576 if ((struct tm *) 0)
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -z "$ac_c_werror_flag"
11592 || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_header_time=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_header_time=no
11611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11614 echo "${ECHO_T}$ac_cv_header_time" >&6
11615 if test $ac_cv_header_time = yes; then
11617 cat >>confdefs.h <<\_ACEOF
11618 #define TIME_WITH_SYS_TIME 1
11623 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11624 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11625 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 #include <sys/types.h>
11635 #include <$ac_cv_struct_tm>
11641 static struct tm ac_aggr;
11642 if (ac_aggr.tm_zone)
11648 rm -f conftest.$ac_objext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest.$ac_objext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_member_struct_tm_tm_zone=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 #include <sys/types.h>
11682 #include <$ac_cv_struct_tm>
11688 static struct tm ac_aggr;
11689 if (sizeof ac_aggr.tm_zone)
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_member_struct_tm_tm_zone=yes
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_cv_member_struct_tm_tm_zone=no
11724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11728 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11729 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11730 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_STRUCT_TM_TM_ZONE 1
11739 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_TM_ZONE 1
11746 echo "$as_me:$LINENO: checking for tzname" >&5
11747 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11748 if test "${ac_cv_var_tzname+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 #ifndef tzname /* For SGI. */
11759 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11772 (eval $ac_link) 2>conftest.er1
11774 grep -v '^ *+' conftest.er1 >conftest.err
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag"
11780 || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_cv_var_tzname=yes
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_cv_var_tzname=no
11799 rm -f conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11802 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11803 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11804 if test $ac_cv_var_tzname = yes; then
11806 cat >>confdefs.h <<\_ACEOF
11807 #define HAVE_TZNAME 1
11816 for ac_func in gmtime_r localtime_r
11818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 echo "$as_me:$LINENO: checking for $ac_func" >&5
11820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11821 if eval "test \"\${$as_ac_var+set}\" = set"; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11832 #define $ac_func innocuous_$ac_func
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char $ac_func (); below.
11836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11837 <limits.h> exists even on freestanding compilers. */
11840 # include <limits.h>
11842 # include <assert.h>
11847 /* Override any gcc2 internal prototype to avoid an error. */
11852 /* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 char (*f) () = $ac_func;
11870 return f != $ac_func;
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 eval "$as_ac_var=yes"
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 eval "$as_ac_var=no"
11904 rm -f conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11909 if test `eval echo '${'$as_ac_var'}'` = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 echo "$as_me:$LINENO: checking tm_tzadj in struct tm" >&5
11919 echo $ECHO_N "checking tm_tzadj in struct tm... $ECHO_C" >&6
11920 if test "${tcl_cv_member_tm_tzadj+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11934 struct tm tm; tm.tm_tzadj;
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 tcl_cv_member_tm_tzadj=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 tcl_cv_member_tm_tzadj=no
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11970 echo "$as_me:$LINENO: result: $tcl_cv_member_tm_tzadj" >&5
11971 echo "${ECHO_T}$tcl_cv_member_tm_tzadj" >&6
11972 if test $tcl_cv_member_tm_tzadj = yes ; then
11974 cat >>confdefs.h <<\_ACEOF
11975 #define HAVE_TM_TZADJ 1
11980 echo "$as_me:$LINENO: checking tm_gmtoff in struct tm" >&5
11981 echo $ECHO_N "checking tm_gmtoff in struct tm... $ECHO_C" >&6
11982 if test "${tcl_cv_member_tm_gmtoff+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11996 struct tm tm; tm.tm_gmtoff;
12001 rm -f conftest.$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 tcl_cv_member_tm_gmtoff=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 tcl_cv_member_tm_gmtoff=no
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12032 echo "$as_me:$LINENO: result: $tcl_cv_member_tm_gmtoff" >&5
12033 echo "${ECHO_T}$tcl_cv_member_tm_gmtoff" >&6
12034 if test $tcl_cv_member_tm_gmtoff = yes ; then
12036 cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_TM_GMTOFF 1
12043 # Its important to include time.h in this check, as some systems
12044 # (like convex) have timezone functions, etc.
12046 echo "$as_me:$LINENO: checking long timezone variable" >&5
12047 echo $ECHO_N "checking long timezone variable... $ECHO_C" >&6
12048 if test "${tcl_cv_timezone_long+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12062 extern long timezone;
12069 rm -f conftest.$ac_objext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag"
12079 || test ! -s conftest.err'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; } &&
12085 { ac_try='test -s conftest.$ac_objext'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 tcl_cv_timezone_long=yes
12093 echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12096 tcl_cv_timezone_long=no
12098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $tcl_cv_timezone_long" >&5
12101 echo "${ECHO_T}$tcl_cv_timezone_long" >&6
12102 if test $tcl_cv_timezone_long = yes ; then
12104 cat >>confdefs.h <<\_ACEOF
12105 #define HAVE_TIMEZONE_VAR 1
12110 # On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
12112 echo "$as_me:$LINENO: checking time_t timezone variable" >&5
12113 echo $ECHO_N "checking time_t timezone variable... $ECHO_C" >&6
12114 if test "${tcl_cv_timezone_time+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12128 extern time_t timezone;
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>conftest.er1
12139 grep -v '^ *+' conftest.er1 >conftest.err
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 tcl_cv_timezone_time=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 tcl_cv_timezone_time=no
12164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166 echo "$as_me:$LINENO: result: $tcl_cv_timezone_time" >&5
12167 echo "${ECHO_T}$tcl_cv_timezone_time" >&6
12168 if test $tcl_cv_timezone_time = yes ; then
12170 cat >>confdefs.h <<\_ACEOF
12171 #define HAVE_TIMEZONE_VAR 1
12178 #--------------------------------------------------------------------
12179 # The check below checks whether <sys/wait.h> defines the type
12180 # "union wait" correctly. It's needed because of weirdness in
12181 # HP-UX where "union wait" is defined in both the BSD and SYS-V
12182 # environments. Checking the usability of WIFEXITED seems to do
12184 #--------------------------------------------------------------------
12186 echo "$as_me:$LINENO: checking union wait" >&5
12187 echo $ECHO_N "checking union wait... $ECHO_C" >&6
12188 if test "${tcl_cv_union_wait+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <sys/types.h>
12198 #include <sys/wait.h>
12204 WIFEXITED(x); /* Generates compiler error if WIFEXITED uses an int. */
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag"
12220 || test ! -s conftest.err'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 tcl_cv_union_wait=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 tcl_cv_union_wait=no
12239 rm -f conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12243 echo "$as_me:$LINENO: result: $tcl_cv_union_wait" >&5
12244 echo "${ECHO_T}$tcl_cv_union_wait" >&6
12245 if test $tcl_cv_union_wait = no; then
12246 cat >>confdefs.h <<\_ACEOF
12247 #define NO_UNION_WAIT 1
12252 ######################################################################
12253 # required by Sequent ptx2
12255 echo "$as_me:$LINENO: checking for gethostname" >&5
12256 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
12257 if test "${ac_cv_func_gethostname+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
12267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12268 #define gethostname innocuous_gethostname
12270 /* System header to define __stub macros and hopefully few prototypes,
12271 which can conflict with char gethostname (); below.
12272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273 <limits.h> exists even on freestanding compilers. */
12276 # include <limits.h>
12278 # include <assert.h>
12283 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12290 char gethostname ();
12291 /* The GNU C library defines this for functions which it implements
12292 to always fail with ENOSYS. Some functions are actually named
12293 something starting with __ and the normal name is an alias. */
12294 #if defined (__stub_gethostname) || defined (__stub___gethostname)
12297 char (*f) () = gethostname;
12306 return f != gethostname;
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag"
12321 || test ! -s conftest.err'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest$ac_exeext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_cv_func_gethostname=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_func_gethostname=no
12340 rm -f conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12343 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
12344 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
12345 if test $ac_cv_func_gethostname = yes; then
12351 if test $gethostname -eq 0 ; then
12352 echo "$as_me:$LINENO: checking for gethostname in -linet" >&5
12353 echo $ECHO_N "checking for gethostname in -linet... $ECHO_C" >&6
12354 if test "${ac_cv_lib_inet_gethostname+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-linet $LIBS"
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 /* Override any gcc2 internal prototype to avoid an error. */
12370 /* We use char because int might match the return type of a gcc2
12371 builtin and then its argument prototype would still apply. */
12372 char gethostname ();
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_lib_inet_gethostname=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_lib_inet_gethostname=no
12410 rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12414 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_gethostname" >&5
12415 echo "${ECHO_T}$ac_cv_lib_inet_gethostname" >&6
12416 if test $ac_cv_lib_inet_gethostname = yes; then
12417 LIBS="$LIBS -linet"
12422 ######################################################################
12423 # required by Fischman's ISC 4.0
12425 echo "$as_me:$LINENO: checking for socket" >&5
12426 echo $ECHO_N "checking for socket... $ECHO_C" >&6
12427 if test "${ac_cv_func_socket+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
12437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12438 #define socket innocuous_socket
12440 /* System header to define __stub macros and hopefully few prototypes,
12441 which can conflict with char socket (); below.
12442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12443 <limits.h> exists even on freestanding compilers. */
12446 # include <limits.h>
12448 # include <assert.h>
12453 /* Override any gcc2 internal prototype to avoid an error. */
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12461 /* The GNU C library defines this for functions which it implements
12462 to always fail with ENOSYS. Some functions are actually named
12463 something starting with __ and the normal name is an alias. */
12464 #if defined (__stub_socket) || defined (__stub___socket)
12467 char (*f) () = socket;
12476 return f != socket;
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483 (eval $ac_link) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_func_socket=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_func_socket=no
12510 rm -f conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12513 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
12514 echo "${ECHO_T}$ac_cv_func_socket" >&6
12515 if test $ac_cv_func_socket = yes; then
12521 if test $socket -eq 0 ; then
12522 echo "$as_me:$LINENO: checking for socket in -linet" >&5
12523 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
12524 if test "${ac_cv_lib_inet_socket+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-linet $LIBS"
12529 cat >conftest.$ac_ext <<_ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12536 /* Override any gcc2 internal prototype to avoid an error. */
12540 /* We use char because int might match the return type of a gcc2
12541 builtin and then its argument prototype would still apply. */
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12553 (eval $ac_link) 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 ac_cv_lib_inet_socket=yes
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_cv_lib_inet_socket=no
12580 rm -f conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12584 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
12585 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
12586 if test $ac_cv_lib_inet_socket = yes; then
12587 LIBS="$LIBS -linet"
12592 ######################################################################
12594 echo "$as_me:$LINENO: checking for select" >&5
12595 echo $ECHO_N "checking for select... $ECHO_C" >&6
12596 if test "${ac_cv_func_select+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 /* Define select to an innocuous variant, in case <limits.h> declares select.
12606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12607 #define select innocuous_select
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char select (); below.
12611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12612 <limits.h> exists even on freestanding compilers. */
12615 # include <limits.h>
12617 # include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12627 /* We use char because int might match the return type of a gcc2
12628 builtin and then its argument prototype would still apply. */
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_select) || defined (__stub___select)
12636 char (*f) () = select;
12645 return f != select;
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest$ac_exeext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_func_select=yes
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 ac_cv_func_select=no
12679 rm -f conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12682 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
12683 echo "${ECHO_T}$ac_cv_func_select" >&6
12684 if test $ac_cv_func_select = yes; then
12690 if test $select -eq 0 ; then
12691 echo "$as_me:$LINENO: checking for select in -linet" >&5
12692 echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
12693 if test "${ac_cv_lib_inet_select+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-linet $LIBS"
12698 cat >conftest.$ac_ext <<_ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12705 /* Override any gcc2 internal prototype to avoid an error. */
12709 /* We use char because int might match the return type of a gcc2
12710 builtin and then its argument prototype would still apply. */
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722 (eval $ac_link) 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_lib_inet_select=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_cv_lib_inet_select=no
12749 rm -f conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
12754 echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
12755 if test $ac_cv_lib_inet_select = yes; then
12756 LIBS="$LIBS -linet"
12761 ######################################################################
12763 echo "$as_me:$LINENO: checking for getpseudotty" >&5
12764 echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
12765 if test "${ac_cv_func_getpseudotty+set}" = set; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 cat >conftest.$ac_ext <<_ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 /* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
12775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12776 #define getpseudotty innocuous_getpseudotty
12778 /* System header to define __stub macros and hopefully few prototypes,
12779 which can conflict with char getpseudotty (); below.
12780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12781 <limits.h> exists even on freestanding compilers. */
12784 # include <limits.h>
12786 # include <assert.h>
12789 #undef getpseudotty
12791 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12798 char getpseudotty ();
12799 /* The GNU C library defines this for functions which it implements
12800 to always fail with ENOSYS. Some functions are actually named
12801 something starting with __ and the normal name is an alias. */
12802 #if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
12805 char (*f) () = getpseudotty;
12814 return f != getpseudotty;
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821 (eval $ac_link) 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest$ac_exeext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_cv_func_getpseudotty=yes
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_cv_func_getpseudotty=no
12848 rm -f conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
12852 echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
12853 if test $ac_cv_func_getpseudotty = yes; then
12859 if test $getpseudotty -eq 0 ; then
12861 echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
12862 echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
12863 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_check_lib_save_LIBS=$LIBS
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12881 char getpseudotty ();
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>conftest.er1
12894 grep -v '^ *+' conftest.er1 >conftest.err
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_lib_seq_getpseudotty=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_seq_getpseudotty=no
12919 rm -f conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
12924 echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
12925 if test $ac_cv_lib_seq_getpseudotty = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_LIBSEQ 1
12936 ######################################################################
12937 # Check for FreeBSD/NetBSD openpty()
12938 unset ac_cv_func_openpty
12940 echo "$as_me:$LINENO: checking for openpty" >&5
12941 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
12942 if test "${ac_cv_func_openpty+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
12952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12953 #define openpty innocuous_openpty
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char openpty (); below.
12957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12958 <limits.h> exists even on freestanding compilers. */
12961 # include <limits.h>
12963 # include <assert.h>
12968 /* Override any gcc2 internal prototype to avoid an error. */
12973 /* We use char because int might match the return type of a gcc2
12974 builtin and then its argument prototype would still apply. */
12976 /* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979 #if defined (__stub_openpty) || defined (__stub___openpty)
12982 char (*f) () = openpty;
12991 return f != openpty;
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag"
13006 || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_func_openpty=yes
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_cv_func_openpty=no
13025 rm -f conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
13029 echo "${ECHO_T}$ac_cv_func_openpty" >&6
13030 if test $ac_cv_func_openpty = yes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_OPENPTY 1
13039 if test $openpty -eq 0 ; then
13040 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
13041 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
13042 if test "${ac_cv_lib_util_openpty+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 ac_check_lib_save_LIBS=$LIBS
13046 LIBS="-lutil $LIBS"
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any gcc2 internal prototype to avoid an error. */
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13071 (eval $ac_link) 2>conftest.er1
13073 grep -v '^ *+' conftest.er1 >conftest.err
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag"
13079 || test ! -s conftest.err'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_lib_util_openpty=yes
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_lib_util_openpty=no
13098 rm -f conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13102 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
13103 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
13104 if test $ac_cv_lib_util_openpty = yes; then
13106 # we only need to define OPENPTY once, but since we are overriding
13107 # the default behavior, we must also handle augment LIBS too.
13108 # This needn't be done in the 2nd and 3rd tests.
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_OPENPTY 1
13113 LIBS="$LIBS -lutil"
13119 ######################################################################
13120 # End of library/func checking
13121 ######################################################################
13123 # Hand patches to library/func checking.
13125 echo "$as_me:$LINENO: checking if running Sequent running SVR4" >&5
13126 echo $ECHO_N "checking if running Sequent running SVR4... $ECHO_C" >&6
13127 if test "$host_alias" = "i386-sequent-sysv4" ; then
13128 LIBS="-lnsl -lsocket -lm"
13129 echo "$as_me:$LINENO: result: yes" >&5
13130 echo "${ECHO_T}yes" >&6
13132 echo "$as_me:$LINENO: result: no" >&5
13133 echo "${ECHO_T}no" >&6
13136 #--------------------------------------------------------------------
13137 #--------------------------------------------------------------------
13138 #--------------------------------------------------------------------
13139 #--------------------------------------------------------------------
13140 # From here on comes original expect configure code.
13141 # At the end we will have another section of TEA 3.2 code.
13143 # Note specialities
13145 # - Runs a sub configure (Dbgconfigure) for the expect tcl debugger
13147 #--------------------------------------------------------------------
13148 #--------------------------------------------------------------------
13150 # Make sure we can run config.sub.
13151 $ac_config_sub sun4 >/dev/null 2>&1 ||
13152 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
13153 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
13154 { (exit 1); exit 1; }; }
13156 echo "$as_me:$LINENO: checking build system type" >&5
13157 echo $ECHO_N "checking build system type... $ECHO_C" >&6
13158 if test "${ac_cv_build+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 ac_cv_build_alias=$build_alias
13162 test -z "$ac_cv_build_alias" &&
13163 ac_cv_build_alias=`$ac_config_guess`
13164 test -z "$ac_cv_build_alias" &&
13165 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
13166 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
13167 { (exit 1); exit 1; }; }
13168 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
13169 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
13170 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
13171 { (exit 1); exit 1; }; }
13174 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
13175 echo "${ECHO_T}$ac_cv_build" >&6
13177 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13178 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13179 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13182 echo "$as_me:$LINENO: checking host system type" >&5
13183 echo $ECHO_N "checking host system type... $ECHO_C" >&6
13184 if test "${ac_cv_host+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_cv_host_alias=$host_alias
13188 test -z "$ac_cv_host_alias" &&
13189 ac_cv_host_alias=$ac_cv_build_alias
13190 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
13191 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
13192 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
13193 { (exit 1); exit 1; }; }
13196 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13197 echo "${ECHO_T}$ac_cv_host" >&6
13199 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13200 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13201 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13204 echo "$as_me:$LINENO: checking target system type" >&5
13205 echo $ECHO_N "checking target system type... $ECHO_C" >&6
13206 if test "${ac_cv_target+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 ac_cv_target_alias=$target_alias
13210 test "x$ac_cv_target_alias" = "x" &&
13211 ac_cv_target_alias=$ac_cv_host_alias
13212 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
13213 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
13214 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
13215 { (exit 1); exit 1; }; }
13218 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
13219 echo "${ECHO_T}$ac_cv_target" >&6
13220 target=$ac_cv_target
13221 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13222 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13223 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13226 # The aliases save the names the user supplied, while $host etc.
13227 # will get canonicalized.
13228 test -n "$target_alias" &&
13229 test "$program_prefix$program_suffix$program_transform_name" = \
13231 program_prefix=${target_alias}-
13233 # If `configure' is invoked (in)directly via `make', ensure that it
13234 # encounters no `make' conflicts.
13240 # An explanation is in order for the strange things going on with the
13241 # various LIBS. There are three separate definitions for LIBS. The
13242 # reason is that some systems require shared libraries include
13243 # references to their dependent libraries, i.e., any additional
13244 # libraries that must be linked to. And some systems get upset if the
13245 # references are repeated on the link line. So therefore, we create
13246 # one for Expect, one for Expect and Tcl, and one for building Expect's own
13247 # shared library. Tcl's tclConfig.sh insists that any shared libs
13248 # that it "helps" build must pass the libraries as LIBS (see comment
13249 # near end of this configure file). I would do but since we're close
13250 # to hitting config's max symbols, we take one short cut and pack the
13251 # LIBS into EXP_SHLIB_LD_LIBS (which is basically what Tcl wants to do
13252 # for us). The point, however, is that there's no separate LIBS or
13253 # EXP_LIBS symbol passed out of configure. One additional point for
13254 # confusion is that LIBS is what configure uses to do all library
13255 # tests, so we have to swap definitions of LIBS periodically. When we
13256 # are swapping out the one for Expect's shared library, we save it in
13259 eval "LIBS=\"$TCL_LIBS\""
13261 if test "${with_tcl+set}" = set ; then
13262 case "${with_tcl}" in
13264 { echo "$as_me:$LINENO: WARNING: Specify absolute path to --with-tcl for subdir configuration" >&5
13265 echo "$as_me: WARNING: Specify absolute path to --with-tcl for subdir configuration" >&2;}
13270 # these are the other subdirectories we need to configure
13273 subdirs="$subdirs testsuite"
13276 echo "$as_me:$LINENO: checking for pid_t" >&5
13277 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13278 if test "${ac_cv_type_pid_t+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 $ac_includes_default
13293 if (sizeof (pid_t))
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag"
13309 || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_type_pid_t=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_cv_type_pid_t=no
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13331 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13332 if test $ac_cv_type_pid_t = yes; then
13336 cat >>confdefs.h <<_ACEOF
13343 echo "$as_me:$LINENO: checking if running Mach" >&5
13344 echo $ECHO_N "checking if running Mach... $ECHO_C" >&6
13347 # Both Next and pure Mach behave identically with respect
13348 # to a few things, so just lump them together as "mach"
13349 *-*-mach*) mach=1 ;;
13350 *-*-next*) mach=1 ; next=1 ;;
13353 if test $mach -eq 1 ; then
13354 echo "$as_me:$LINENO: result: yes" >&5
13355 echo "${ECHO_T}yes" >&6
13357 echo "$as_me:$LINENO: result: no" >&5
13358 echo "${ECHO_T}no" >&6
13361 echo "$as_me:$LINENO: checking if running MachTen" >&5
13362 echo $ECHO_N "checking if running MachTen... $ECHO_C" >&6
13363 # yet another Mach clone
13364 if test -r /MachTen ; then
13365 echo "$as_me:$LINENO: result: yes" >&5
13366 echo "${ECHO_T}yes" >&6
13369 echo "$as_me:$LINENO: result: no" >&5
13370 echo "${ECHO_T}no" >&6
13373 echo "$as_me:$LINENO: checking if on Pyramid" >&5
13374 echo $ECHO_N "checking if on Pyramid... $ECHO_C" >&6
13375 if test -r /bin/pyr ; then
13376 echo "$as_me:$LINENO: result: yes" >&5
13377 echo "${ECHO_T}yes" >&6
13380 echo "$as_me:$LINENO: result: no" >&5
13381 echo "${ECHO_T}no" >&6
13385 echo "$as_me:$LINENO: checking if on Apollo" >&5
13386 echo $ECHO_N "checking if on Apollo... $ECHO_C" >&6
13387 if test -r /usr/apollo/bin ; then
13388 echo "$as_me:$LINENO: result: yes" >&5
13389 echo "${ECHO_T}yes" >&6
13392 echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6
13397 echo "$as_me:$LINENO: checking if on Interactive" >&5
13398 echo $ECHO_N "checking if on Interactive... $ECHO_C" >&6
13399 if test "x`(uname -s) 2>/dev/null`" = xIUNIX; then
13400 echo "$as_me:$LINENO: result: yes" >&5
13401 echo "${ECHO_T}yes" >&6
13404 echo "$as_me:$LINENO: result: no" >&5
13405 echo "${ECHO_T}no" >&6
13409 echo "$as_me:$LINENO: checking stty to use" >&5
13410 echo $ECHO_N "checking stty to use... $ECHO_C" >&6
13411 if test -r /usr/local/bin/stty ; then
13412 STTY_BIN=/usr/local/bin/stty
13416 echo "$as_me:$LINENO: result: $STTY_BIN" >&5
13417 echo "${ECHO_T}$STTY_BIN" >&6
13419 echo "$as_me:$LINENO: checking if stty reads stdout" >&5
13420 echo $ECHO_N "checking if stty reads stdout... $ECHO_C" >&6
13422 # On some systems stty can't be run in the background (svr4) or get it
13423 # wrong because they fail to complain (next, mach), so don't attempt
13424 # the test on some systems.
13426 stty_reads_stdout=""
13428 *-*-solaris*) stty_reads_stdout=0 ;;
13429 *-*-irix*) stty_reads_stdout=0 ;;
13430 *-*-sco3.2v[45]*) stty_reads_stdout=1 ;;
13431 i[3456]86-*-sysv4.2MP) stty_reads_stdout=0 ;;
13432 *-*-linux*) stty_reads_stdout=0 ;;
13433 # Not sure about old convex but 5.2 definitely reads from stdout
13434 c[12]-*-*) stty_reads_stdout=1 ;;
13435 *-*-aix[34]*) stty_reads_stdout=0 ;;
13436 *-*-hpux9*) stty_reads_stdout=0 ;;
13437 *-*-hpux10*) stty_reads_stdout=0 ;;
13438 *-*-osf[234]*) stty_reads_stdout=0 ;;
13439 *-*-ultrix4.4) stty_reads_stdout=0 ;;
13440 *-*-dgux*) stty_reads_stdout=0 ;;
13443 if test $mach -eq 1 ; then
13444 stty_reads_stdout=1
13446 if test $apollo -eq 1 ; then
13447 stty_reads_stdout=1
13449 if test $pyr -eq 1 ; then
13450 stty_reads_stdout=1
13453 # if we still don't know, test
13454 if test x"${stty_reads_stdout}" = x"" ; then
13455 $STTY_BIN > /dev/null 2> /dev/null ; a=$?
13456 $STTY_BIN < /dev/tty > /dev/null 2> /dev/null ; b=$?
13457 if test $a -ne 0 -a $b -ne 0; then
13458 stty_reads_stdout=1
13460 stty_reads_stdout=0
13464 if test ${stty_reads_stdout} -eq 1 ; then
13465 echo "$as_me:$LINENO: result: yes" >&5
13466 echo "${ECHO_T}yes" >&6
13467 cat >>confdefs.h <<\_ACEOF
13468 #define STTY_READS_STDOUT 1
13472 echo "$as_me:$LINENO: result: no" >&5
13473 echo "${ECHO_T}no" >&6
13476 # Solaris 2.4 and later requires __EXTENSIONS__ in order to see all sorts
13477 # of traditional but nonstandard stuff in header files.
13478 echo "$as_me:$LINENO: checking if running Solaris" >&5
13479 echo $ECHO_N "checking if running Solaris... $ECHO_C" >&6
13482 *-*-solaris*) solaris=1;;
13485 if test $solaris -eq 1 ; then
13486 echo "$as_me:$LINENO: result: yes" >&5
13487 echo "${ECHO_T}yes" >&6
13488 cat >>confdefs.h <<\_ACEOF
13493 echo "$as_me:$LINENO: result: no" >&5
13494 echo "${ECHO_T}no" >&6
13497 # On Interactive UNIX, -Xp must be added to LIBS in order to find strftime.
13498 # This test should really be done by Tcl. So just check Tcl's definition.
13499 # If defective, add to all three LIBS. (It's not actually necessary for
13500 # EXP_LIBS since -Xp will just be ignored the way that EXP_LIBS is used in
13501 # the Makefile, but we include it for consistency.)
13503 if test $iunix -eq 1 ; then
13504 echo "$as_me:$LINENO: checking for strftime" >&5
13505 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
13506 if test "${ac_cv_func_strftime+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
13516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13517 #define strftime innocuous_strftime
13519 /* System header to define __stub macros and hopefully few prototypes,
13520 which can conflict with char strftime (); below.
13521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13522 <limits.h> exists even on freestanding compilers. */
13525 # include <limits.h>
13527 # include <assert.h>
13532 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13540 /* The GNU C library defines this for functions which it implements
13541 to always fail with ENOSYS. Some functions are actually named
13542 something starting with __ and the normal name is an alias. */
13543 #if defined (__stub_strftime) || defined (__stub___strftime)
13546 char (*f) () = strftime;
13555 return f != strftime;
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_func_strftime=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_cv_func_strftime=no
13589 rm -f conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13592 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
13593 echo "${ECHO_T}$ac_cv_func_strftime" >&6
13594 if test $ac_cv_func_strftime = yes; then
13604 ######################################################################
13606 # Look for various header files
13610 # Look for functions that may be missing
13612 echo "$as_me:$LINENO: checking for memmove" >&5
13613 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
13614 if test "${ac_cv_func_memmove+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
13624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13625 #define memmove innocuous_memmove
13627 /* System header to define __stub macros and hopefully few prototypes,
13628 which can conflict with char memmove (); below.
13629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630 <limits.h> exists even on freestanding compilers. */
13633 # include <limits.h>
13635 # include <assert.h>
13640 /* Override any gcc2 internal prototype to avoid an error. */
13645 /* We use char because int might match the return type of a gcc2
13646 builtin and then its argument prototype would still apply. */
13648 /* The GNU C library defines this for functions which it implements
13649 to always fail with ENOSYS. Some functions are actually named
13650 something starting with __ and the normal name is an alias. */
13651 #if defined (__stub_memmove) || defined (__stub___memmove)
13654 char (*f) () = memmove;
13663 return f != memmove;
13668 rm -f conftest.$ac_objext conftest$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_func_memmove=yes
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_cv_func_memmove=no
13697 rm -f conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13700 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
13701 echo "${ECHO_T}$ac_cv_func_memmove" >&6
13702 if test $ac_cv_func_memmove = yes; then
13703 cat >>confdefs.h <<\_ACEOF
13704 #define HAVE_MEMMOVE 1
13709 echo "$as_me:$LINENO: checking for sysconf" >&5
13710 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13711 if test "${ac_cv_func_sysconf+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
13721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13722 #define sysconf innocuous_sysconf
13724 /* System header to define __stub macros and hopefully few prototypes,
13725 which can conflict with char sysconf (); below.
13726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13727 <limits.h> exists even on freestanding compilers. */
13730 # include <limits.h>
13732 # include <assert.h>
13737 /* Override any gcc2 internal prototype to avoid an error. */
13742 /* We use char because int might match the return type of a gcc2
13743 builtin and then its argument prototype would still apply. */
13745 /* The GNU C library defines this for functions which it implements
13746 to always fail with ENOSYS. Some functions are actually named
13747 something starting with __ and the normal name is an alias. */
13748 #if defined (__stub_sysconf) || defined (__stub___sysconf)
13751 char (*f) () = sysconf;
13760 return f != sysconf;
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767 (eval $ac_link) 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_func_sysconf=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_cv_func_sysconf=no
13794 rm -f conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13797 echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
13798 echo "${ECHO_T}$ac_cv_func_sysconf" >&6
13799 if test $ac_cv_func_sysconf = yes; then
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_SYSCONF 1
13806 echo "$as_me:$LINENO: checking for strftime" >&5
13807 echo $ECHO_N "checking for strftime... $ECHO_C" >&6
13808 if test "${ac_cv_func_strftime+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
13818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13819 #define strftime innocuous_strftime
13821 /* System header to define __stub macros and hopefully few prototypes,
13822 which can conflict with char strftime (); below.
13823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13824 <limits.h> exists even on freestanding compilers. */
13827 # include <limits.h>
13829 # include <assert.h>
13834 /* Override any gcc2 internal prototype to avoid an error. */
13839 /* We use char because int might match the return type of a gcc2
13840 builtin and then its argument prototype would still apply. */
13842 /* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845 #if defined (__stub_strftime) || defined (__stub___strftime)
13848 char (*f) () = strftime;
13857 return f != strftime;
13862 rm -f conftest.$ac_objext conftest$ac_exeext
13863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864 (eval $ac_link) 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_c_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_func_strftime=yes
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_cv_func_strftime=no
13891 rm -f conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
13895 echo "${ECHO_T}$ac_cv_func_strftime" >&6
13896 if test $ac_cv_func_strftime = yes; then
13897 cat >>confdefs.h <<\_ACEOF
13898 #define HAVE_STRFTIME 1
13903 echo "$as_me:$LINENO: checking for strchr" >&5
13904 echo $ECHO_N "checking for strchr... $ECHO_C" >&6
13905 if test "${ac_cv_func_strchr+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 /* Define strchr to an innocuous variant, in case <limits.h> declares strchr.
13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916 #define strchr innocuous_strchr
13918 /* System header to define __stub macros and hopefully few prototypes,
13919 which can conflict with char strchr (); below.
13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921 <limits.h> exists even on freestanding compilers. */
13924 # include <limits.h>
13926 # include <assert.h>
13931 /* Override any gcc2 internal prototype to avoid an error. */
13936 /* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13939 /* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942 #if defined (__stub_strchr) || defined (__stub___strchr)
13945 char (*f) () = strchr;
13954 return f != strchr;
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_cv_func_strchr=yes
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13986 ac_cv_func_strchr=no
13988 rm -f conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13991 echo "$as_me:$LINENO: result: $ac_cv_func_strchr" >&5
13992 echo "${ECHO_T}$ac_cv_func_strchr" >&6
13993 if test $ac_cv_func_strchr = yes; then
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_STRCHR 1
14000 echo "$as_me:$LINENO: checking for timezone" >&5
14001 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
14002 if test "${ac_cv_func_timezone+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define timezone to an innocuous variant, in case <limits.h> declares timezone.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define timezone innocuous_timezone
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char timezone (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14021 # include <limits.h>
14023 # include <assert.h>
14028 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14036 /* The GNU C library defines this for functions which it implements
14037 to always fail with ENOSYS. Some functions are actually named
14038 something starting with __ and the normal name is an alias. */
14039 #if defined (__stub_timezone) || defined (__stub___timezone)
14042 char (*f) () = timezone;
14051 return f != timezone;
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_func_timezone=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_func_timezone=no
14085 rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14088 echo "$as_me:$LINENO: result: $ac_cv_func_timezone" >&5
14089 echo "${ECHO_T}$ac_cv_func_timezone" >&6
14090 if test $ac_cv_func_timezone = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_TIMEZONE 1
14097 echo "$as_me:$LINENO: checking for siglongjmp" >&5
14098 echo $ECHO_N "checking for siglongjmp... $ECHO_C" >&6
14099 if test "${ac_cv_func_siglongjmp+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 /* Define siglongjmp to an innocuous variant, in case <limits.h> declares siglongjmp.
14109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14110 #define siglongjmp innocuous_siglongjmp
14112 /* System header to define __stub macros and hopefully few prototypes,
14113 which can conflict with char siglongjmp (); below.
14114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14115 <limits.h> exists even on freestanding compilers. */
14118 # include <limits.h>
14120 # include <assert.h>
14125 /* Override any gcc2 internal prototype to avoid an error. */
14130 /* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14132 char siglongjmp ();
14133 /* The GNU C library defines this for functions which it implements
14134 to always fail with ENOSYS. Some functions are actually named
14135 something starting with __ and the normal name is an alias. */
14136 #if defined (__stub_siglongjmp) || defined (__stub___siglongjmp)
14139 char (*f) () = siglongjmp;
14148 return f != siglongjmp;
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag"
14163 || test ! -s conftest.err'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 ac_cv_func_siglongjmp=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_func_siglongjmp=no
14182 rm -f conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_cv_func_siglongjmp" >&5
14186 echo "${ECHO_T}$ac_cv_func_siglongjmp" >&6
14187 if test $ac_cv_func_siglongjmp = yes; then
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_SIGLONGJMP 1
14195 # dnl check for memcpy by hand
14196 # because Unixware 2.0 handles it specially and refuses to compile
14197 # autoconf's automatic test that is a call with no arguments
14198 echo "$as_me:$LINENO: checking for memcpy" >&5
14199 echo $ECHO_N "checking for memcpy... $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14220 (eval $ac_link) 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag"
14228 || test ! -s conftest.err'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 echo "$as_me:$LINENO: result: yes" >&5
14241 echo "${ECHO_T}yes" >&6
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_MEMCPY 1
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 echo "$as_me:$LINENO: result: no" >&5
14252 echo "${ECHO_T}no" >&6
14255 rm -f conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14258 # Some systems only define WNOHANG if _POSIX_SOURCE is defined
14259 # The following merely tests that sys/wait.h can be included
14260 # and if so that WNOHANG is not defined. The only place I've
14261 # seen this is ISC.
14262 echo "$as_me:$LINENO: checking if WNOHANG requires _POSIX_SOURCE" >&5
14263 echo $ECHO_N "checking if WNOHANG requires _POSIX_SOURCE... $ECHO_C" >&6
14264 if test "$cross_compiling" = yes; then
14265 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
14266 echo "$as_me: error: Expect can't be cross compiled" >&2;}
14267 { (exit 1); exit 1; }; }
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14277 #include <sys/wait.h>
14286 rm -f conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288 (eval $ac_link) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 echo "$as_me:$LINENO: result: yes" >&5
14298 echo "${ECHO_T}yes" >&6
14299 cat >>confdefs.h <<\_ACEOF
14300 #define WNOHANG_REQUIRES_POSIX_SOURCE 1
14305 echo "$as_me: program exited with status $ac_status" >&5
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 ( exit $ac_status )
14310 echo "$as_me:$LINENO: result: no" >&5
14311 echo "${ECHO_T}no" >&6
14314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14317 echo "$as_me:$LINENO: checking if any value exists for WNOHANG" >&5
14318 echo $ECHO_N "checking if any value exists for WNOHANG... $ECHO_C" >&6
14320 if test "$cross_compiling" = yes; then
14321 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
14322 echo "$as_me: error: Expect can't be cross compiled" >&2;}
14323 { (exit 1); exit 1; }; }
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14334 #include <sys/wait.h>
14337 FILE *fp = fopen("wnohang","w");
14338 fprintf(fp,"%d",WNOHANG);
14346 rm -f conftest$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 echo "$as_me:$LINENO: result: yes" >&5
14358 echo "${ECHO_T}yes" >&6
14359 cat >>confdefs.h <<_ACEOF
14360 #define WNOHANG_BACKUP_VALUE `cat wnohang`
14366 echo "$as_me: program exited with status $ac_status" >&5
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14370 ( exit $ac_status )
14371 echo "$as_me:$LINENO: result: no" >&5
14372 echo "${ECHO_T}no" >&6
14373 cat >>confdefs.h <<\_ACEOF
14374 #define WNOHANG_BACKUP_VALUE 1
14379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14383 # check how signals work
14386 # Check for the data type of the mask used in select().
14387 # This picks up HP braindamage which defines fd_set and then
14388 # proceeds to ignore it and use int.
14389 # Pattern matching on int could be loosened.
14390 # Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp.
14391 echo "$as_me:$LINENO: checking mask type of select" >&5
14392 echo $ECHO_N "checking mask type of select... $ECHO_C" >&6
14393 if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then
14394 echo "$as_me:$LINENO: result: int" >&5
14395 echo "${ECHO_T}int" >&6
14396 cat >>confdefs.h <<\_ACEOF
14397 #define SELECT_MASK_TYPE int
14401 echo "$as_me:$LINENO: result: none" >&5
14402 echo "${ECHO_T}none" >&6
14403 cat >>confdefs.h <<\_ACEOF
14404 #define SELECT_MASK_TYPE fd_set
14410 # FIXME: check if alarm exists
14411 echo "$as_me:$LINENO: checking if signals need to be re-armed" >&5
14412 echo $ECHO_N "checking if signals need to be re-armed... $ECHO_C" >&6
14413 if test "$cross_compiling" = yes; then
14414 { echo "$as_me:$LINENO: WARNING: Expect can't be cross compiled" >&5
14415 echo "$as_me: WARNING: Expect can't be cross compiled" >&2;}
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 #include <signal.h>
14426 #define RETSIGTYPE $retsigtype
14428 int signal_rearms = 0;
14431 child_sigint_handler(n)
14437 parent_sigint_handler(n)
14445 signal(SIGINT,parent_sigint_handler);
14448 signal(SIGINT,child_sigint_handler);
14449 kill(getpid(),SIGINT);
14450 kill(getpid(),SIGINT);
14451 kill(getppid(),SIGINT);
14457 exit(signal_rearms);
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 echo "$as_me:$LINENO: result: yes" >&5
14473 echo "${ECHO_T}yes" >&6
14474 cat >>confdefs.h <<\_ACEOF
14475 #define REARM_SIG 1
14480 echo "$as_me: program exited with status $ac_status" >&5
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ( exit $ac_status )
14485 echo "$as_me:$LINENO: result: no" >&5
14486 echo "${ECHO_T}no" >&6
14489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14492 # HPUX7 has trouble with the big cat so split it
14493 # Owen Rees <rtor@ansa.co.uk> 29Mar93
14494 SEDDEFS="${SEDDEFS}CONFEOF
14495 cat >> conftest.sed <<CONFEOF
14499 # There are multiple versions of getpty, alas.
14500 # I don't remember who has the first one, but Convex just added one
14501 # so check for it. Unfortunately, there is no header so the only
14502 # reasonable way to make sure is to look it we are on a Convex.
14503 echo "$as_me:$LINENO: checking if on Convex" >&5
14504 echo $ECHO_N "checking if on Convex... $ECHO_C" >&6
14507 c[12]-*-*) convex=1;;
14510 if test $convex -eq 1 ; then
14511 echo "$as_me:$LINENO: result: yes" >&5
14512 echo "${ECHO_T}yes" >&6
14513 cat >>confdefs.h <<\_ACEOF
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14523 echo "$as_me:$LINENO: checking if on HP" >&5
14524 echo $ECHO_N "checking if on HP... $ECHO_C" >&6
14525 if test "x`(uname) 2>/dev/null`" = xHP-UX; then
14526 echo "$as_me:$LINENO: result: yes" >&5
14527 echo "${ECHO_T}yes" >&6
14530 echo "$as_me:$LINENO: result: no" >&5
14531 echo "${ECHO_T}no" >&6
14535 echo "$as_me:$LINENO: checking sane default stty arguments" >&5
14536 echo $ECHO_N "checking sane default stty arguments... $ECHO_C" >&6
14537 DEFAULT_STTY_ARGS="sane"
14539 if test $mach -eq 1 ; then
14540 DEFAULT_STTY_ARGS="cooked"
14543 if test $hp -eq 1 ; then
14544 DEFAULT_STTY_ARGS="sane kill
\15"
14547 echo "$as_me:$LINENO: result: $DEFAULT_STTY_ARG" >&5
14548 echo "${ECHO_T}$DEFAULT_STTY_ARG" >&6
14550 # Look for various features to determine what kind of pty
14551 # we have. For some weird reason, ac_compile_check would not
14552 # work, but ac_test_program does.
14554 echo "$as_me:$LINENO: checking for HP style pty allocation" >&5
14555 echo $ECHO_N "checking for HP style pty allocation... $ECHO_C" >&6
14556 # following test fails on DECstations and other things that don't grok -c
14557 # but that's ok, since they don't have PTYMs anyway
14558 if test -r /dev/ptym/ptyp0 2>/dev/null ; then
14559 echo "$as_me:$LINENO: result: yes" >&5
14560 echo "${ECHO_T}yes" >&6
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_PTYM 1
14566 echo "$as_me:$LINENO: result: no" >&5
14567 echo "${ECHO_T}no" >&6
14570 echo "$as_me:$LINENO: checking for HP style pty trapping" >&5
14571 echo $ECHO_N "checking for HP style pty trapping... $ECHO_C" >&6
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 #include <sys/ptyio.h>
14581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14582 $EGREP "struct.*request_info" >/dev/null 2>&1; then
14583 echo "$as_me:$LINENO: result: yes" >&5
14584 echo "${ECHO_T}yes" >&6
14585 cat >>confdefs.h <<\_ACEOF
14586 #define HAVE_PTYTRAP 1
14591 echo "$as_me:$LINENO: result: no" >&5
14592 echo "${ECHO_T}no" >&6
14598 echo "$as_me:$LINENO: checking for AIX new-style pty allocation" >&5
14599 echo $ECHO_N "checking for AIX new-style pty allocation... $ECHO_C" >&6
14600 if test -r /dev/ptc -a -r /dev/pts ; then
14601 echo "$as_me:$LINENO: result: yes" >&5
14602 echo "${ECHO_T}yes" >&6
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_PTC_PTS 1
14608 echo "$as_me:$LINENO: result: no" >&5
14609 echo "${ECHO_T}no" >&6
14612 echo "$as_me:$LINENO: checking for SGI old-style pty allocation" >&5
14613 echo $ECHO_N "checking for SGI old-style pty allocation... $ECHO_C" >&6
14614 if test -r /dev/ptc -a ! -r /dev/pts ; then
14615 echo "$as_me:$LINENO: result: yes" >&5
14616 echo "${ECHO_T}yes" >&6
14617 cat >>confdefs.h <<\_ACEOF
14622 echo "$as_me:$LINENO: result: no" >&5
14623 echo "${ECHO_T}no" >&6
14626 # On SCO OpenServer, two types of ptys are available: SVR4 streams and c-list.
14627 # The library routines to open the SVR4 ptys are broken on certain systems and
14628 # the SCO command to increase the number of ptys only configure c-list ones
14629 # anyway. So we chose these, which have a special numbering scheme.
14631 echo "$as_me:$LINENO: checking for SCO style pty allocation" >&5
14632 echo $ECHO_N "checking for SCO style pty allocation... $ECHO_C" >&6
14635 *-sco3.2v[45]*) sco_clist_ptys=1 svr4_ptys_broken=1;;
14638 if test x"${sco_clist_ptys}" != x"" ; then
14639 echo "$as_me:$LINENO: result: yes" >&5
14640 echo "${ECHO_T}yes" >&6
14641 cat >>confdefs.h <<\_ACEOF
14642 #define HAVE_SCO_CLIST_PTYS 1
14646 echo "$as_me:$LINENO: result: no" >&5
14647 echo "${ECHO_T}no" >&6
14650 echo "$as_me:$LINENO: checking for SVR4 style pty allocation" >&5
14651 echo $ECHO_N "checking for SVR4 style pty allocation... $ECHO_C" >&6
14652 if test -r /dev/ptmx -a "x$svr4_ptys_broken" = x ; then
14653 echo "$as_me:$LINENO: result: yes" >&5
14654 echo "${ECHO_T}yes" >&6
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_PTMX 1
14659 # aargg. Some systems need libpt.a to use /dev/ptmx
14660 echo "$as_me:$LINENO: checking for libpts=\"-lpt\" in -lpt" >&5
14661 echo $ECHO_N "checking for libpts=\"-lpt\" in -lpt... $ECHO_C" >&6
14662 if test "${ac_cv_lib_pt_libpts___lpt_+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 ac_check_lib_save_LIBS=$LIBS
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any gcc2 internal prototype to avoid an error. */
14678 /* We use char because int might match the return type of a gcc2
14679 builtin and then its argument prototype would still apply. */
14680 char libpts="-lpt" ();
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -z "$ac_c_werror_flag"
14699 || test ! -s conftest.err'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_lib_pt_libpts___lpt_=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_cv_lib_pt_libpts___lpt_=no
14718 rm -f conftest.err conftest.$ac_objext \
14719 conftest$ac_exeext conftest.$ac_ext
14720 LIBS=$ac_check_lib_save_LIBS
14722 echo "$as_me:$LINENO: result: $ac_cv_lib_pt_libpts___lpt_" >&5
14723 echo "${ECHO_T}$ac_cv_lib_pt_libpts___lpt_" >&6
14724 if test $ac_cv_lib_pt_libpts___lpt_ = yes; then
14728 echo "$as_me:$LINENO: checking for ptsname" >&5
14729 echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
14730 if test "${ac_cv_func_ptsname+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 /* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
14740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14741 #define ptsname innocuous_ptsname
14743 /* System header to define __stub macros and hopefully few prototypes,
14744 which can conflict with char ptsname (); below.
14745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746 <limits.h> exists even on freestanding compilers. */
14749 # include <limits.h>
14751 # include <assert.h>
14756 /* Override any gcc2 internal prototype to avoid an error. */
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14764 /* The GNU C library defines this for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_ptsname) || defined (__stub___ptsname)
14770 char (*f) () = ptsname;
14779 return f != ptsname;
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag"
14794 || test ! -s conftest.err'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_cv_func_ptsname=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 ac_cv_func_ptsname=no
14813 rm -f conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14816 echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
14817 echo "${ECHO_T}$ac_cv_func_ptsname" >&6
14818 if test $ac_cv_func_ptsname = yes; then
14821 LIBS="${LIBS} $libpts"
14825 echo "$as_me:$LINENO: result: no" >&5
14826 echo "${ECHO_T}no" >&6
14829 # In OSF/1 case, SVR4 are somewhat different.
14830 # Gregory Depp <depp@osf.org> 17Aug93
14831 echo "$as_me:$LINENO: checking for OSF/1 style pty allocation" >&5
14832 echo $ECHO_N "checking for OSF/1 style pty allocation... $ECHO_C" >&6
14833 if test -r /dev/ptmx_bsd ; then
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_PTMX_BSD 1
14838 echo "$as_me:$LINENO: result: yes" >&5
14839 echo "${ECHO_T}yes" >&6
14841 echo "$as_me:$LINENO: result: no" >&5
14842 echo "${ECHO_T}no" >&6
14847 echo "$as_me:$LINENO: checking for tcgetattr" >&5
14848 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
14849 if test "${ac_cv_func_tcgetattr+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 cat >conftest.$ac_ext <<_ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 /* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr.
14859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14860 #define tcgetattr innocuous_tcgetattr
14862 /* System header to define __stub macros and hopefully few prototypes,
14863 which can conflict with char tcgetattr (); below.
14864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14865 <limits.h> exists even on freestanding compilers. */
14868 # include <limits.h>
14870 # include <assert.h>
14875 /* Override any gcc2 internal prototype to avoid an error. */
14880 /* We use char because int might match the return type of a gcc2
14881 builtin and then its argument prototype would still apply. */
14883 /* The GNU C library defines this for functions which it implements
14884 to always fail with ENOSYS. Some functions are actually named
14885 something starting with __ and the normal name is an alias. */
14886 #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
14889 char (*f) () = tcgetattr;
14898 return f != tcgetattr;
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14905 (eval $ac_link) 2>conftest.er1
14907 grep -v '^ *+' conftest.er1 >conftest.err
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -z "$ac_c_werror_flag"
14913 || test ! -s conftest.err'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; } &&
14919 { ac_try='test -s conftest$ac_exeext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_cv_func_tcgetattr=yes
14927 echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14930 ac_cv_func_tcgetattr=no
14932 rm -f conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14935 echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
14936 echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
14937 if test $ac_cv_func_tcgetattr = yes; then
14941 echo "$as_me:$LINENO: checking for tcsetattr" >&5
14942 echo $ECHO_N "checking for tcsetattr... $ECHO_C" >&6
14943 if test "${ac_cv_func_tcsetattr+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 /* Define tcsetattr to an innocuous variant, in case <limits.h> declares tcsetattr.
14953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14954 #define tcsetattr innocuous_tcsetattr
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char tcsetattr (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14962 # include <limits.h>
14964 # include <assert.h>
14969 /* Override any gcc2 internal prototype to avoid an error. */
14974 /* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14977 /* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980 #if defined (__stub_tcsetattr) || defined (__stub___tcsetattr)
14983 char (*f) () = tcsetattr;
14992 return f != tcsetattr;
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15001 grep -v '^ *+' conftest.er1 >conftest.err
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_cv_func_tcsetattr=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_cv_func_tcsetattr=no
15026 rm -f conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15029 echo "$as_me:$LINENO: result: $ac_cv_func_tcsetattr" >&5
15030 echo "${ECHO_T}$ac_cv_func_tcsetattr" >&6
15031 if test $ac_cv_func_tcsetattr = yes; then
15035 if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then
15036 cat >>confdefs.h <<\_ACEOF
15037 #define HAVE_TCSETATTR 1
15040 cat >>confdefs.h <<\_ACEOF
15046 # first check for the pure bsd
15047 echo "$as_me:$LINENO: checking for struct sgttyb" >&5
15048 echo $ECHO_N "checking for struct sgttyb... $ECHO_C" >&6
15049 if test "$cross_compiling" = yes; then
15050 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15051 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15052 { (exit 1); exit 1; }; }
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15069 rm -f conftest$ac_exeext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15071 (eval $ac_link) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 echo "$as_me:$LINENO: result: yes" >&5
15081 echo "${ECHO_T}yes" >&6
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_SGTTYB 1
15089 echo "$as_me: program exited with status $ac_status" >&5
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ( exit $ac_status )
15094 echo "$as_me:$LINENO: result: no" >&5
15095 echo "${ECHO_T}no" >&6
15098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15101 # mach systems have include files for unimplemented features
15102 # so avoid doing following test on those systems
15103 if test $mach -eq 0 ; then
15105 # next check for the older style ttys
15106 # note that if we detect termio.h (only), we still set PTY_TYPE=termios
15107 # since that just controls which of pty_XXXX.c file is use and
15108 # pty_termios.c is set up to handle pty_termio.
15109 echo "$as_me:$LINENO: checking for struct termio" >&5
15110 echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
15111 if test "$cross_compiling" = yes; then
15112 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15113 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15114 { (exit 1); exit 1; }; }
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <termio.h>
15130 rm -f conftest$ac_exeext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15132 (eval $ac_link) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 cat >>confdefs.h <<\_ACEOF
15142 #define HAVE_TERMIO 1
15146 echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6
15150 echo "$as_me: program exited with status $ac_status" >&5
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ( exit $ac_status )
15155 echo "$as_me:$LINENO: result: no" >&5
15156 echo "${ECHO_T}no" >&6
15159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15162 # now check for the new style ttys (not yet posix)
15163 echo "$as_me:$LINENO: checking for struct termios" >&5
15164 echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
15165 if test "$cross_compiling" = yes; then
15166 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15167 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15168 { (exit 1); exit 1; }; }
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
15179 # ifdef HAVE_INTTYPES_H
15180 # include <inttypes.h>
15182 # include <termios.h>
15185 struct termios tmp;
15189 rm -f conftest$ac_exeext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15191 (eval $ac_link) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200 cat >>confdefs.h <<\_ACEOF
15201 #define HAVE_TERMIOS 1
15205 echo "$as_me:$LINENO: result: yes" >&5
15206 echo "${ECHO_T}yes" >&6
15209 echo "$as_me: program exited with status $ac_status" >&5
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 ( exit $ac_status )
15214 echo "$as_me:$LINENO: result: no" >&5
15215 echo "${ECHO_T}no" >&6
15218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15222 echo "$as_me:$LINENO: checking if TCGETS or TCGETA in termios.h" >&5
15223 echo $ECHO_N "checking if TCGETS or TCGETA in termios.h... $ECHO_C" >&6
15224 if test "$cross_compiling" = yes; then
15225 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15226 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15227 { (exit 1); exit 1; }; }
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15237 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
15238 #ifdef HAVE_INTTYPES_H
15239 #include <inttypes.h>
15241 #include <termios.h>
15243 #if defined(TCGETS) || defined(TCGETA)
15250 rm -f conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1
15265 echo "$as_me:$LINENO: result: yes" >&5
15266 echo "${ECHO_T}yes" >&6
15269 echo "$as_me: program exited with status $ac_status" >&5
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ( exit $ac_status )
15274 echo "$as_me:$LINENO: result: no" >&5
15275 echo "${ECHO_T}no" >&6
15278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15281 echo "$as_me:$LINENO: checking if TIOCGWINSZ in termios.h" >&5
15282 echo $ECHO_N "checking if TIOCGWINSZ in termios.h... $ECHO_C" >&6
15283 if test "$cross_compiling" = yes; then
15284 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15285 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15286 { (exit 1); exit 1; }; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15296 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
15297 #ifdef HAVE_INTTYPES_H
15298 #include <inttypes.h>
15300 #include <termios.h>
15309 rm -f conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311 (eval $ac_link) 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1
15324 echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6
15328 echo "$as_me: program exited with status $ac_status" >&5
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ( exit $ac_status )
15333 echo "$as_me:$LINENO: result: no" >&5
15334 echo "${ECHO_T}no" >&6
15337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15340 # finally check for Cray style ttys
15341 echo "$as_me:$LINENO: checking for Cray-style ptys" >&5
15342 echo $ECHO_N "checking for Cray-style ptys... $ECHO_C" >&6
15344 if test "$cross_compiling" = yes; then
15345 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15346 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15347 { (exit 1); exit 1; }; }
15350 cat >conftest.$ac_ext <<_ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15366 rm -f conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15379 echo "$as_me:$LINENO: result: yes" >&5
15380 echo "${ECHO_T}yes" >&6
15383 echo "$as_me: program exited with status $ac_status" >&5
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ( exit $ac_status )
15388 echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6
15392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15396 # Check for select and/or poll. If both exist, we prefer select.
15397 # if neither exists, define SIMPLE_EVENT.
15401 unset ac_cv_func_select
15402 echo "$as_me:$LINENO: checking for select" >&5
15403 echo $ECHO_N "checking for select... $ECHO_C" >&6
15404 if test "${ac_cv_func_select+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 /* Define select to an innocuous variant, in case <limits.h> declares select.
15414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15415 #define select innocuous_select
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char select (); below.
15419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420 <limits.h> exists even on freestanding compilers. */
15423 # include <limits.h>
15425 # include <assert.h>
15430 /* Override any gcc2 internal prototype to avoid an error. */
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15438 /* The GNU C library defines this for functions which it implements
15439 to always fail with ENOSYS. Some functions are actually named
15440 something starting with __ and the normal name is an alias. */
15441 #if defined (__stub_select) || defined (__stub___select)
15444 char (*f) () = select;
15453 return f != select;
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>conftest.er1
15462 grep -v '^ *+' conftest.er1 >conftest.err
15464 cat conftest.err >&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try='test -z "$ac_c_werror_flag"
15468 || test ! -s conftest.err'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_cv_func_select=yes
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_cv_func_select=no
15487 rm -f conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15491 echo "${ECHO_T}$ac_cv_func_select" >&6
15492 if test $ac_cv_func_select = yes; then
15496 echo "$as_me:$LINENO: checking for poll" >&5
15497 echo $ECHO_N "checking for poll... $ECHO_C" >&6
15498 if test "${ac_cv_func_poll+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
15508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15509 #define poll innocuous_poll
15511 /* System header to define __stub macros and hopefully few prototypes,
15512 which can conflict with char poll (); below.
15513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15514 <limits.h> exists even on freestanding compilers. */
15517 # include <limits.h>
15519 # include <assert.h>
15524 /* Override any gcc2 internal prototype to avoid an error. */
15529 /* We use char because int might match the return type of a gcc2
15530 builtin and then its argument prototype would still apply. */
15532 /* The GNU C library defines this for functions which it implements
15533 to always fail with ENOSYS. Some functions are actually named
15534 something starting with __ and the normal name is an alias. */
15535 #if defined (__stub_poll) || defined (__stub___poll)
15538 char (*f) () = poll;
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554 (eval $ac_link) 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag"
15562 || test ! -s conftest.err'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_func_poll=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15581 rm -f conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15584 echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
15585 echo "${ECHO_T}$ac_cv_func_poll" >&6
15586 if test $ac_cv_func_poll = yes; then
15590 echo "$as_me:$LINENO: checking event handling" >&5
15591 echo $ECHO_N "checking event handling... $ECHO_C" >&6
15592 if test $select -eq 1 ; then
15595 echo "$as_me:$LINENO: result: via select" >&5
15596 echo "${ECHO_T}via select" >&6
15597 elif test $poll -eq 1 ; then
15600 echo "$as_me:$LINENO: result: via poll" >&5
15601 echo "${ECHO_T}via poll" >&6
15605 echo "$as_me:$LINENO: result: none" >&5
15606 echo "${ECHO_T}none" >&6
15607 cat >>confdefs.h <<\_ACEOF
15608 #define SIMPLE_EVENT 1
15614 for ac_func in _getpty
15616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15617 echo "$as_me:$LINENO: checking for $ac_func" >&5
15618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15619 if eval "test \"\${$as_ac_var+set}\" = set"; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15630 #define $ac_func innocuous_$ac_func
15632 /* System header to define __stub macros and hopefully few prototypes,
15633 which can conflict with char $ac_func (); below.
15634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15635 <limits.h> exists even on freestanding compilers. */
15638 # include <limits.h>
15640 # include <assert.h>
15645 /* Override any gcc2 internal prototype to avoid an error. */
15650 /* We use char because int might match the return type of a gcc2
15651 builtin and then its argument prototype would still apply. */
15653 /* The GNU C library defines this for functions which it implements
15654 to always fail with ENOSYS. Some functions are actually named
15655 something starting with __ and the normal name is an alias. */
15656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15659 char (*f) () = $ac_func;
15668 return f != $ac_func;
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15675 (eval $ac_link) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 eval "$as_ac_var=yes"
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 eval "$as_ac_var=no"
15702 rm -f conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15707 if test `eval echo '${'$as_ac_var'}'` = yes; then
15708 cat >>confdefs.h <<_ACEOF
15709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15716 for ac_func in getpty
15718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15719 echo "$as_me:$LINENO: checking for $ac_func" >&5
15720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15721 if eval "test \"\${$as_ac_var+set}\" = set"; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15732 #define $ac_func innocuous_$ac_func
15734 /* System header to define __stub macros and hopefully few prototypes,
15735 which can conflict with char $ac_func (); below.
15736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15737 <limits.h> exists even on freestanding compilers. */
15740 # include <limits.h>
15742 # include <assert.h>
15747 /* Override any gcc2 internal prototype to avoid an error. */
15752 /* We use char because int might match the return type of a gcc2
15753 builtin and then its argument prototype would still apply. */
15755 /* The GNU C library defines this for functions which it implements
15756 to always fail with ENOSYS. Some functions are actually named
15757 something starting with __ and the normal name is an alias. */
15758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 char (*f) () = $ac_func;
15770 return f != $ac_func;
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777 (eval $ac_link) 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag"
15785 || test ! -s conftest.err'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 eval "$as_ac_var=yes"
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 eval "$as_ac_var=no"
15804 rm -f conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
15807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15809 if test `eval echo '${'$as_ac_var'}'` = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818 # following test sets SETPGRP_VOID if setpgrp takes 0 args, else takes 2
15819 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15820 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15821 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 if test "$cross_compiling" = yes; then
15825 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15826 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15827 { (exit 1); exit 1; }; }
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15836 # include <unistd.h>
15842 /* If this system has a BSD-style setpgrp which takes arguments,
15843 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15844 exit successfully. */
15845 exit (setpgrp (1,1) == -1 ? 0 : 1);
15850 rm -f conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_cv_func_setpgrp_void=no
15863 echo "$as_me: program exited with status $ac_status" >&5
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ( exit $ac_status )
15868 ac_cv_func_setpgrp_void=yes
15870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15873 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15874 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15875 if test $ac_cv_func_setpgrp_void = yes; then
15877 cat >>confdefs.h <<\_ACEOF
15878 #define SETPGRP_VOID 1
15885 # check for timezones
15887 echo "$as_me:$LINENO: checking for SV-style timezone" >&5
15888 echo $ECHO_N "checking for SV-style timezone... $ECHO_C" >&6
15889 if test "$cross_compiling" = yes; then
15890 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
15891 echo "$as_me: error: Expect can't be cross compiled" >&2;}
15892 { (exit 1); exit 1; }; }
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15902 extern char *tzname[2];
15903 extern int daylight;
15906 int *x = &daylight;
15912 rm -f conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914 (eval $ac_link) 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 cat >>confdefs.h <<\_ACEOF
15924 #define HAVE_SV_TIMEZONE 1
15927 echo "$as_me:$LINENO: result: yes" >&5
15928 echo "${ECHO_T}yes" >&6
15930 echo "$as_me: program exited with status $ac_status" >&5
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ( exit $ac_status )
15935 echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6
15939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15943 # Following comment stolen from Tcl's configure.in:
15944 # Note: in the following variable, it's important to use the absolute
15945 # path name of the Tcl directory rather than "..": this is because
15946 # AIX remembers this path and will attempt to use it at run-time to look
15947 # up the Tcl library.
15949 PACKAGE_VERSION_NODOTS="`echo $PACKAGE_VERSION | sed -e 's/\.//g'`"
15951 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
15952 EXP_LIB_VERSION=$PACKAGE_VERSION
15954 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS
15956 if test $iunix -eq 1 ; then
15957 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS
15960 # also remove dots on systems that don't support filenames > 14
15961 # (are there systems which support shared libs and restrict filename lengths!?)
15962 echo "$as_me:$LINENO: checking for long file names" >&5
15963 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
15964 if test "${ac_cv_sys_long_file_names+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 ac_cv_sys_long_file_names=yes
15968 # Test for long file names in all the places we know might matter:
15969 # . the current directory, where building will happen
15970 # $prefix/lib where we will be installing things
15971 # $exec_prefix/lib likewise
15972 # eval it to expand exec_prefix.
15973 # $TMPDIR if set, where it might want to write temporary files
15974 # if $TMPDIR is not set:
15975 # /tmp where it might want to write temporary files
15976 # /var/tmp likewise
15977 # /usr/tmp likewise
15978 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
15981 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
15983 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
15984 test -d $ac_dir || continue
15985 test -w $ac_dir || continue # It is less confusing to not echo anything here.
15986 ac_xdir=$ac_dir/cf$$
15987 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
15988 ac_tf1=$ac_xdir/conftest9012345
15989 ac_tf2=$ac_xdir/conftest9012346
15990 (echo 1 >$ac_tf1) 2>/dev/null
15991 (echo 2 >$ac_tf2) 2>/dev/null
15992 ac_val=`cat $ac_tf1 2>/dev/null`
15993 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
15994 ac_cv_sys_long_file_names=no
15995 rm -rf $ac_xdir 2>/dev/null
15998 rm -rf $ac_xdir 2>/dev/null
16001 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
16002 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
16003 if test $ac_cv_sys_long_file_names = yes; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_LONG_FILE_NAMES 1
16011 if test $ac_cv_sys_long_file_names = no; then
16012 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS
16015 if test "$FRAMEWORK_BUILD" = "1" ; then
16016 EXP_BUILD_LIB_SPEC="-F`pwd` -framework Expect"
16017 EXP_LIB_SPEC="-framework Expect"
16018 EXP_LIB_FILE="Expect"
16019 cat >>confdefs.h <<\_ACEOF
16020 #define EXP_FRAMEWORK 1
16024 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
16025 EXP_LIB_FLAG="-lexpect${EXP_LIB_VERSION}"
16027 EXP_LIB_FLAG="-lexpect`echo ${EXP_LIB_VERSION} | tr -d .`"
16029 EXP_BUILD_LIB_SPEC="-L`pwd` ${EXP_LIB_FLAG}"
16030 EXP_LIB_SPEC="-L${libdir} ${EXP_LIB_FLAG}"
16033 #--------------------------------------------------------------------
16034 # This section is based on analogous thing in Tk installation. - DEL
16035 # Various manipulations on the search path used at runtime to
16036 # find shared libraries:
16037 # 2. On systems such as AIX and Ultrix that use "-L" as the
16038 # search path option, colons cannot be used to separate
16039 # directories from each other. Change colons to " -L".
16040 # 3. Create two sets of search flags, one for use in cc lines
16041 # and the other for when the linker is invoked directly. In
16042 # the second case, '-Wl,' must be stripped off and commas must
16043 # be replaced by spaces.
16044 #--------------------------------------------------------------------
16046 LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}/${PACKAGE_NAME}${PACKAGE_VERSION}'
16048 # If Tcl and Expect are installed in different places, adjust the library
16049 # search path to reflect this.
16051 if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
16052 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib"
16055 if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then
16056 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'`
16059 # The eval below is tricky! It *evaluates* the string in
16060 # ..._CC_SEARCH_FLAGS, which causes a substitution of the
16061 # variable LIB_RUNTIME_DIR.
16063 eval "EXP_CC_SEARCH_FLAGS=\"$TCL_CC_SEARCH_FLAGS\""
16065 # now broken out into EXP_AND_TCL_LIBS. Had to do this
16066 # in order to avoid repeating lib specs to which some systems object.
16068 LIBS="$LIBS $LD_SEARCH_FLAGS"
16071 # Set up makefile substitutions
16078 # Expect uses these from tclConfig.sh to make the main executable
16082 #--------------------------------------------------------------------
16083 # More TEA code based on data we got from the original expect
16085 #--------------------------------------------------------------------
16087 #-----------------------------------------------------------------------
16088 # Specify the C source files to compile in TEA_ADD_SOURCES,
16089 # public headers that need to be installed in TEA_ADD_HEADERS,
16090 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
16091 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
16092 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
16093 # and PKG_TCL_SOURCES.
16094 #-----------------------------------------------------------------------
16098 exp_command.c expect.c exp_inter.c exp_regexp.c exp_tty.c
16099 exp_log.c exp_main_sub.c exp_pty.c exp_trap.c exp_strf.c
16100 exp_console.c exp_glob.c exp_win.c exp_clib.c exp_closetcl.c
16101 exp_memmove.c exp_tty_comm.c exp_chan.c Dbg.c
16106 # allow $-var names
16107 PKG_SOURCES="$PKG_SOURCES $i"
16108 PKG_OBJECTS="$PKG_OBJECTS $i"
16111 # check for existence - allows for generic/win/unix VPATH
16112 # To add more dirs here (like 'src'), you have to update VPATH
16113 # in Makefile.in as well
16114 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
16115 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
16116 -a ! -f "${srcdir}/macosx/$i" \
16118 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
16119 echo "$as_me: error: could not find source file '$i'" >&2;}
16120 { (exit 1); exit 1; }; }
16122 PKG_SOURCES="$PKG_SOURCES $i"
16123 # this assumes it is in a VPATH dir
16125 # handle user calling this before or after TEA_SETUP_COMPILER
16126 if test x"${OBJEXT}" != x ; then
16127 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
16129 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
16131 PKG_OBJECTS="$PKG_OBJECTS $j"
16139 # Variant sources. Comments in the Makefile indicate that the
16140 # event_type/able stuff can be overidden in the Makefile, and should
16141 # be for particular systems. IMHO this requires a configure option.
16143 # See at the end, where we select the sources based on the collect
16149 exp_${EVENT_TYPE}.c
16150 exp_${EVENT_ABLE}.c
16155 # allow $-var names
16156 PKG_SOURCES="$PKG_SOURCES $i"
16157 PKG_OBJECTS="$PKG_OBJECTS $i"
16160 # check for existence - allows for generic/win/unix VPATH
16161 # To add more dirs here (like 'src'), you have to update VPATH
16162 # in Makefile.in as well
16163 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
16164 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
16165 -a ! -f "${srcdir}/macosx/$i" \
16167 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
16168 echo "$as_me: error: could not find source file '$i'" >&2;}
16169 { (exit 1); exit 1; }; }
16171 PKG_SOURCES="$PKG_SOURCES $i"
16172 # this assumes it is in a VPATH dir
16174 # handle user calling this before or after TEA_SETUP_COMPILER
16175 if test x"${OBJEXT}" != x ; then
16176 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
16178 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
16180 PKG_OBJECTS="$PKG_OBJECTS $j"
16189 vars="expect.h expect_tcl.h expect_comm.h tcldbg.h"
16191 # check for existence, be strict because it is installed
16192 if test ! -f "${srcdir}/$i" ; then
16193 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
16194 echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
16195 { (exit 1); exit 1; }; }
16197 PKG_HEADERS="$PKG_HEADERS $i"
16205 PKG_INCLUDES="$PKG_INCLUDES $i"
16210 vars="-I\"`\${CYGPATH} \${srcdir}`\""
16212 PKG_INCLUDES="$PKG_INCLUDES $i"
16220 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
16221 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
16222 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
16224 PKG_LIBS="$PKG_LIBS $i"
16229 PKG_CFLAGS="$PKG_CFLAGS -DTCL_DEBUGGER -DUSE_NON_CONST"
16233 PKG_CFLAGS="$PKG_CFLAGS -DSCRIPTDIR=\\\"\${DESTDIR}\${prefix}/lib/\${PKG_DIR}\\\""
16237 PKG_CFLAGS="$PKG_CFLAGS -DEXECSCRIPTDIR=\\\"\${DESTDIR}\${pkglibdir}\\\""
16241 PKG_CFLAGS="$PKG_CFLAGS -DSTTY_BIN=\\\"${STTY_BIN}\\\""
16245 PKG_CFLAGS="$PKG_CFLAGS -DDFLT_STTY=\"\\\"$DEFAULT_STTY_ARGS\\\"\""
16252 # check for existence - allows for generic/win/unix VPATH
16253 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
16254 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
16255 -a ! -f "${srcdir}/macosx/$i" \
16257 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
16258 echo "$as_me: error: could not find stub source file '$i'" >&2;}
16259 { (exit 1); exit 1; }; }
16261 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
16262 # this assumes it is in a VPATH dir
16264 # handle user calling this before or after TEA_SETUP_COMPILER
16265 if test x"${OBJEXT}" != x ; then
16266 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
16268 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
16270 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
16278 # check for existence, be strict because it is installed
16279 if test ! -f "${srcdir}/$i" ; then
16280 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
16281 echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
16282 { (exit 1); exit 1; }; }
16284 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
16289 #--------------------------------------------------------------------
16290 # This macro generates a line to use when building a library. It
16291 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
16292 # and TEA_LOAD_TCLCONFIG macros above.
16293 #--------------------------------------------------------------------
16296 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
16297 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
16298 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 #if defined(_MSC_VER) && _MSC_VER >= 1400
16307 print("manifest needed")
16311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16312 $EGREP "manifest needed" >/dev/null 2>&1; then
16314 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
16315 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
16316 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
16317 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
16319 CLEANFILES="$CLEANFILES *.manifest"
16325 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
16327 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
16328 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
16329 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
16332 if test "${SHARED_BUILD}" = "1" ; then
16333 MAKE_LIB="${MAKE_SHARED_LIB} "
16335 MAKE_LIB="${MAKE_STATIC_LIB} "
16338 #--------------------------------------------------------------------
16339 # Shared libraries and static libraries have different names.
16340 # Use the double eval to make sure any variables in the suffix is
16341 # substituted. (@@@ Might not be necessary anymore)
16342 #--------------------------------------------------------------------
16344 if test "${TEA_PLATFORM}" = "windows" ; then
16345 if test "${SHARED_BUILD}" = "1" ; then
16346 # We force the unresolved linking of symbols that are really in
16347 # the private libraries of Tcl and Tk.
16348 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
16349 if test x"${TK_BIN_DIR}" != x ; then
16350 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
16352 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
16354 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
16356 # Some packages build their own stubs libraries
16357 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
16358 if test "$GCC" = "yes"; then
16359 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
16361 # These aren't needed on Windows (either MSVC or gcc)
16365 RANLIB_STUB="${RANLIB}"
16366 if test "${SHARED_BUILD}" = "1" ; then
16367 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
16368 if test x"${TK_BIN_DIR}" != x ; then
16369 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
16371 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
16374 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
16376 # Some packages build their own stubs libraries
16377 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
16380 # These are escaped so that only CFLAGS is picked up at configure time.
16381 # The other values will be substituted at make time.
16382 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
16383 if test "${SHARED_BUILD}" = "1" ; then
16384 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
16396 #--------------------------------------------------------------------
16397 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
16398 # file during the install process. Don't run the TCLSH_PROG through
16399 # ${CYGPATH} because it's being used directly by make.
16400 # Require that we use a tclsh shell version 8.2 or later since earlier
16401 # versions have bugs in the pkg_mkIndex routine.
16402 # Add WISH as well if this is a Tk extension.
16403 #--------------------------------------------------------------------
16406 echo "$as_me:$LINENO: checking for tclsh" >&5
16407 echo $ECHO_N "checking for tclsh... $ECHO_C" >&6
16408 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16409 # tclConfig.sh is in Tcl build directory
16410 if test "${TEA_PLATFORM}" = "windows"; then
16411 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
16413 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
16416 # tclConfig.sh is in install location
16417 if test "${TEA_PLATFORM}" = "windows"; then
16418 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
16420 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
16422 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
16423 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
16424 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
16425 for i in $list ; do
16426 if test -f "$i/${TCLSH_PROG}" ; then
16427 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
16431 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
16433 echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5
16434 echo "${ECHO_T}${TCLSH_PROG}" >&6
16438 #--------------------------------------------------------------------
16439 # Finally, substitute all of the various values into the Makefile.
16440 # You may alternatively have a special pkgIndex.tcl.in or other files
16441 # which require substituting th AC variables in. Include these here.
16442 #--------------------------------------------------------------------
16445 ac_config_files="$ac_config_files Makefile"
16446 ac_config_commands="$ac_config_commands default"
16447 cat >confcache <<\_ACEOF
16448 # This file is a shell script that caches the results of configure
16449 # tests run on this system so they can be shared between configure
16450 # scripts and configure runs, see configure's option --config-cache.
16451 # It is not useful on other systems. If it contains results you don't
16452 # want to keep, you may remove or edit it.
16454 # config.status only pays attention to the cache file if you give it
16455 # the --recheck option to rerun configure.
16457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16459 # following values.
16463 # The following way of writing the cache mishandles newlines in values,
16464 # but we know of no workaround that is simple, portable, and efficient.
16465 # So, don't put newlines in cache variables' values.
16466 # Ultrix sh set writes to stderr and can't be redirected directly,
16467 # and sets the high bit in the cache file unless we assign to the vars.
16470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16472 # `set' does not quote correctly, so add quotes (double-quote
16473 # substitution turns \\\\ into \\, and sed turns \\ into \).
16476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16479 # `set' quotes correctly as required by POSIX, so do not add quotes.
16481 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16490 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16492 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16493 if test -w $cache_file; then
16494 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16495 cat confcache >$cache_file
16497 echo "not updating unwritable cache $cache_file"
16502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16503 # Let make expand exec_prefix.
16504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16506 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16507 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16508 # trailing colons and then remove the whole line if VPATH becomes empty
16509 # (actually we leave an empty line to preserve line numbers).
16510 if test "x$srcdir" = x.; then
16511 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16512 s/:*\$(srcdir):*/:/;
16513 s/:*\${srcdir}:*/:/;
16515 s/^\([^=]*=[ ]*\):*/\1/;
16521 # Transform confdefs.h into DEFS.
16522 # Protect against shell expansion while executing Makefile rules.
16523 # Protect against Makefile macro expansion.
16525 # If the first sed substitution is executed (which looks for macros that
16526 # take arguments), then we branch to the quote section. Otherwise,
16527 # look for a macro that doesn't take arguments.
16528 cat >confdef2opt.sed <<\_ACEOF
16531 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
16533 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
16537 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
16543 # We use echo to avoid assuming a particular line-breaking character.
16544 # The extra dot is to prevent the shell from consuming trailing
16545 # line-breaks from the sub-command output. A line-break within
16546 # single-quotes doesn't work because, if this script is created in a
16547 # platform that uses two characters for line-breaks (e.g., DOS), tr
16549 ac_LF_and_DOT=`echo; echo .`
16550 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
16551 rm -f confdef2opt.sed
16556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16557 # 1. Remove the extension, and $U if already installed.
16558 ac_i=`echo "$ac_i" |
16559 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16561 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16562 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16564 LIBOBJS=$ac_libobjs
16566 LTLIBOBJS=$ac_ltlibobjs
16569 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
16571 : ${CONFIG_STATUS=./config.status}
16572 ac_clean_files_save=$ac_clean_files
16573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16576 cat >$CONFIG_STATUS <<_ACEOF
16578 # Generated by $as_me.
16579 # Run this file to recreate the current configuration.
16580 # Compiler output produced by configure, useful for debugging
16581 # configure, is in config.log if it exists.
16584 ac_cs_recheck=false
16586 SHELL=\${CONFIG_SHELL-$SHELL}
16589 cat >>$CONFIG_STATUS <<\_ACEOF
16590 ## --------------------- ##
16591 ## M4sh Initialization. ##
16592 ## --------------------- ##
16594 # Be Bourne compatible
16595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16598 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16599 # is contrary to our usage. Disable this feature.
16600 alias -g '${1+"$@"}'='"$@"'
16601 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16604 DUALCASE=1; export DUALCASE # for MKS sh
16606 # Support unset when possible.
16607 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16614 # Work around bugs in pre-3.0 UWIN ksh.
16615 $as_unset ENV MAIL MAILPATH
16622 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16623 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16624 LC_TELEPHONE LC_TIME
16626 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16627 eval $as_var=C; export $as_var
16633 # Required to use basename.
16634 if expr a : '\(a\)' >/dev/null 2>&1; then
16640 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16641 as_basename=basename
16647 # Name of the executable.
16648 as_me=`$as_basename "$0" ||
16649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16650 X"$0" : 'X\(//\)$' \| \
16651 X"$0" : 'X\(/\)$' \| \
16652 . : '\(.\)' 2>/dev/null ||
16654 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16655 /^X\/\(\/\/\)$/{ s//\1/; q; }
16656 /^X\/\(\/\).*/{ s//\1/; q; }
16660 # PATH needs CR, and LINENO needs CR and PATH.
16661 # Avoid depending upon Character Ranges.
16662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16665 as_cr_digits='0123456789'
16666 as_cr_alnum=$as_cr_Letters$as_cr_digits
16668 # The user is always right.
16669 if test "${PATH_SEPARATOR+set}" != set; then
16670 echo "#! /bin/sh" >conf$$.sh
16671 echo "exit 0" >>conf$$.sh
16673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16682 as_lineno_1=$LINENO
16683 as_lineno_2=$LINENO
16684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16685 test "x$as_lineno_1" != "x$as_lineno_2" &&
16686 test "x$as_lineno_3" = "x$as_lineno_2" || {
16687 # Find who we are. Look in the path if we contain no path at all
16690 *[\\/]* ) as_myself=$0 ;;
16691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16692 for as_dir in $PATH
16695 test -z "$as_dir" && as_dir=.
16696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16701 # We did not find ourselves, most probably we were run as `sh COMMAND'
16702 # in which case we are not to be found in the path.
16703 if test "x$as_myself" = x; then
16706 if test ! -f "$as_myself"; then
16707 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16708 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16709 { (exit 1); exit 1; }; }
16711 case $CONFIG_SHELL in
16713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16714 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16717 test -z "$as_dir" && as_dir=.
16718 for as_base in sh bash ksh sh5; do
16721 if ("$as_dir/$as_base" -c '
16722 as_lineno_1=$LINENO
16723 as_lineno_2=$LINENO
16724 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16725 test "x$as_lineno_1" != "x$as_lineno_2" &&
16726 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16727 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16728 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16729 CONFIG_SHELL=$as_dir/$as_base
16730 export CONFIG_SHELL
16731 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16740 # uniformly replaced by the line number. The first 'sed' inserts a
16741 # line-number line before each line; the second 'sed' does the real
16742 # work. The second script uses 'N' to pair each line-number line
16743 # with the numbered line, and appends trailing '-' during
16744 # substitution so that $LINENO is not a special case at line end.
16745 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16746 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16747 sed '=' <$as_myself |
16752 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16755 s,^['$as_cr_digits']*\n,,
16756 ' >$as_me.lineno &&
16757 chmod +x $as_me.lineno ||
16758 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16759 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16760 { (exit 1); exit 1; }; }
16762 # Don't try to exec as it changes $[0], causing all sort of problems
16763 # (the dirname of $[0] is not the place where we might find the
16764 # original and so on. Autoconf is especially sensible to this).
16766 # Exit status is that of the last command.
16771 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16772 *c*,-n*) ECHO_N= ECHO_C='
16774 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16775 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16778 if expr a : '\(a\)' >/dev/null 2>&1; then
16784 rm -f conf$$ conf$$.exe conf$$.file
16786 if ln -s conf$$.file conf$$ 2>/dev/null; then
16787 # We could just check for DJGPP; but this test a) works b) is more generic
16788 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16789 if test -f conf$$.exe; then
16790 # Don't use ln at all; we don't have any links
16795 elif ln conf$$.file conf$$ 2>/dev/null; then
16800 rm -f conf$$ conf$$.exe conf$$.file
16802 if mkdir -p . 2>/dev/null; then
16805 test -d ./-p && rmdir ./-p
16809 as_executable_p="test -f"
16811 # Sed expression to map a string onto a valid CPP name.
16812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16814 # Sed expression to map a string onto a valid variable name.
16815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16819 # We need space, tab and new line, in precisely that order.
16829 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16830 # report actual input values of CONFIG_FILES etc. instead of their
16831 # values after options handling. Logging --version etc. is OK.
16835 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16836 ## Running $as_me. ##
16841 This file was extended by expect $as_me 5.45, which was
16842 generated by GNU Autoconf 2.59. Invocation command line was
16844 CONFIG_FILES = $CONFIG_FILES
16845 CONFIG_HEADERS = $CONFIG_HEADERS
16846 CONFIG_LINKS = $CONFIG_LINKS
16847 CONFIG_COMMANDS = $CONFIG_COMMANDS
16851 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16855 # Files that config.status was made for.
16856 if test -n "$ac_config_files"; then
16857 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16860 if test -n "$ac_config_headers"; then
16861 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16864 if test -n "$ac_config_links"; then
16865 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16868 if test -n "$ac_config_commands"; then
16869 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16872 cat >>$CONFIG_STATUS <<\_ACEOF
16875 \`$as_me' instantiates files from templates according to the
16876 current configuration.
16878 Usage: $0 [OPTIONS] [FILE]...
16880 -h, --help print this help, then exit
16881 -V, --version print version number, then exit
16882 -q, --quiet do not print progress messages
16883 -d, --debug don't remove temporary files
16884 --recheck update $as_me by reconfiguring in the same conditions
16885 --file=FILE[:TEMPLATE]
16886 instantiate the configuration file FILE
16888 Configuration files:
16891 Configuration commands:
16894 Report bugs to <bug-autoconf@gnu.org>."
16897 cat >>$CONFIG_STATUS <<_ACEOF
16899 expect config.status 5.45
16900 configured by $0, generated by GNU Autoconf 2.59,
16901 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16903 Copyright (C) 2003 Free Software Foundation, Inc.
16904 This config.status script is free software; the Free Software Foundation
16905 gives unlimited permission to copy, distribute and modify it."
16910 cat >>$CONFIG_STATUS <<\_ACEOF
16911 # If no file are specified by the user, then we need to provide default
16912 # value. By we need to know if files were specified by the user.
16918 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16919 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16927 *) # This is not an option, so the user has probably given explicit
16930 ac_need_defaults=false;;
16934 # Handling of the options.
16936 cat >>$CONFIG_STATUS <<\_ACEOF
16937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16939 --version | --vers* | -V )
16940 echo "$ac_cs_version"; exit 0 ;;
16942 # Conflict between --help and --header
16943 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16944 Try \`$0 --help' for more information." >&5
16945 echo "$as_me: error: ambiguous option: $1
16946 Try \`$0 --help' for more information." >&2;}
16947 { (exit 1); exit 1; }; };;
16948 --help | --hel | -h )
16949 echo "$ac_cs_usage"; exit 0 ;;
16950 --debug | --d* | -d )
16952 --file | --fil | --fi | --f )
16954 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16955 ac_need_defaults=false;;
16956 --header | --heade | --head | --hea )
16958 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16959 ac_need_defaults=false;;
16960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16964 # This is an error.
16965 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16966 Try \`$0 --help' for more information." >&5
16967 echo "$as_me: error: unrecognized option: $1
16968 Try \`$0 --help' for more information." >&2;}
16969 { (exit 1); exit 1; }; } ;;
16971 *) ac_config_targets="$ac_config_targets $1" ;;
16977 ac_configure_extra_args=
16979 if $ac_cs_silent; then
16981 ac_configure_extra_args="$ac_configure_extra_args --silent"
16985 cat >>$CONFIG_STATUS <<_ACEOF
16986 if \$ac_cs_recheck; then
16987 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16988 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16997 cat >>$CONFIG_STATUS <<\_ACEOF
16998 for ac_config_target in $ac_config_targets
17000 case "$ac_config_target" in
17001 # Handling of arguments.
17002 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17003 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17004 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17005 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17006 { (exit 1); exit 1; }; };;
17010 # If the user did not use the arguments to specify the items to instantiate,
17011 # then the envvar interface is used. Set only those that are not.
17012 # We use the long form for the default assignment because of an extremely
17013 # bizarre bug on SunOS 4.1.3.
17014 if $ac_need_defaults; then
17015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17019 # Have a temporary directory for convenience. Make it in the build tree
17020 # simply because there is no reason to put it here, and in addition,
17021 # creating and moving files from /tmp can sometimes cause problems.
17022 # Create a temporary directory, and hook for its removal unless debugging.
17025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17026 trap '{ (exit 1); exit 1; }' 1 2 13 15
17029 # Create a (secure) tmp directory for tmp files.
17032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17033 test -n "$tmp" && test -d "$tmp"
17036 tmp=./confstat$$-$RANDOM
17037 (umask 077 && mkdir $tmp)
17040 echo "$me: cannot create a temporary directory in ." >&2
17041 { (exit 1); exit 1; }
17046 cat >>$CONFIG_STATUS <<_ACEOF
17049 # CONFIG_FILES section.
17052 # No need to generate the scripts if there are no CONFIG_FILES.
17053 # This happens for instance when ./config.status config.h
17054 if test -n "\$CONFIG_FILES"; then
17055 # Protect against being on the right side of a sed subst in config.status.
17056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17058 s,@SHELL@,$SHELL,;t t
17059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17065 s,@exec_prefix@,$exec_prefix,;t t
17066 s,@prefix@,$prefix,;t t
17067 s,@program_transform_name@,$program_transform_name,;t t
17068 s,@bindir@,$bindir,;t t
17069 s,@sbindir@,$sbindir,;t t
17070 s,@libexecdir@,$libexecdir,;t t
17071 s,@datadir@,$datadir,;t t
17072 s,@sysconfdir@,$sysconfdir,;t t
17073 s,@sharedstatedir@,$sharedstatedir,;t t
17074 s,@localstatedir@,$localstatedir,;t t
17075 s,@libdir@,$libdir,;t t
17076 s,@includedir@,$includedir,;t t
17077 s,@oldincludedir@,$oldincludedir,;t t
17078 s,@infodir@,$infodir,;t t
17079 s,@mandir@,$mandir,;t t
17080 s,@build_alias@,$build_alias,;t t
17081 s,@host_alias@,$host_alias,;t t
17082 s,@target_alias@,$target_alias,;t t
17083 s,@DEFS@,$DEFS,;t t
17084 s,@ECHO_C@,$ECHO_C,;t t
17085 s,@ECHO_N@,$ECHO_N,;t t
17086 s,@ECHO_T@,$ECHO_T,;t t
17087 s,@LIBS@,$LIBS,;t t
17088 s,@CYGPATH@,$CYGPATH,;t t
17089 s,@EXEEXT@,$EXEEXT,;t t
17090 s,@PKG_LIB_FILE@,$PKG_LIB_FILE,;t t
17091 s,@PKG_STUB_LIB_FILE@,$PKG_STUB_LIB_FILE,;t t
17092 s,@PKG_STUB_SOURCES@,$PKG_STUB_SOURCES,;t t
17093 s,@PKG_STUB_OBJECTS@,$PKG_STUB_OBJECTS,;t t
17094 s,@PKG_TCL_SOURCES@,$PKG_TCL_SOURCES,;t t
17095 s,@PKG_HEADERS@,$PKG_HEADERS,;t t
17096 s,@PKG_INCLUDES@,$PKG_INCLUDES,;t t
17097 s,@PKG_LIBS@,$PKG_LIBS,;t t
17098 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
17099 s,@TCL_VERSION@,$TCL_VERSION,;t t
17100 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
17101 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
17102 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
17103 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17104 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
17105 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17106 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
17107 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
17108 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
17109 s,@CLEANFILES@,$CLEANFILES,;t t
17110 s,@TCL_LIBS@,$TCL_LIBS,;t t
17111 s,@TCL_DEFS@,$TCL_DEFS,;t t
17112 s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t
17113 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
17114 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17116 s,@CFLAGS@,$CFLAGS,;t t
17117 s,@LDFLAGS@,$LDFLAGS,;t t
17118 s,@CPPFLAGS@,$CPPFLAGS,;t t
17119 s,@ac_ct_CC@,$ac_ct_CC,;t t
17120 s,@OBJEXT@,$OBJEXT,;t t
17122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17125 s,@SET_MAKE@,$SET_MAKE,;t t
17126 s,@RANLIB@,$RANLIB,;t t
17127 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17128 s,@EGREP@,$EGREP,;t t
17129 s,@MATH_LIBS@,$MATH_LIBS,;t t
17130 s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
17131 s,@TCL_TOP_DIR_NATIVE@,$TCL_TOP_DIR_NATIVE,;t t
17132 s,@TCL_THREADS@,$TCL_THREADS,;t t
17133 s,@SHARED_BUILD@,$SHARED_BUILD,;t t
17135 s,@CELIB_DIR@,$CELIB_DIR,;t t
17136 s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
17137 s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
17138 s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t
17139 s,@STLIB_LD@,$STLIB_LD,;t t
17140 s,@SHLIB_LD@,$SHLIB_LD,;t t
17141 s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
17142 s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
17143 s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t
17144 s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t
17145 s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t
17146 s,@TCL_DBGX@,$TCL_DBGX,;t t
17147 s,@build@,$build,;t t
17148 s,@build_cpu@,$build_cpu,;t t
17149 s,@build_vendor@,$build_vendor,;t t
17150 s,@build_os@,$build_os,;t t
17151 s,@host@,$host,;t t
17152 s,@host_cpu@,$host_cpu,;t t
17153 s,@host_vendor@,$host_vendor,;t t
17154 s,@host_os@,$host_os,;t t
17155 s,@target@,$target,;t t
17156 s,@target_cpu@,$target_cpu,;t t
17157 s,@target_vendor@,$target_vendor,;t t
17158 s,@target_os@,$target_os,;t t
17159 s,@subdirs@,$subdirs,;t t
17160 s,@EXP_BUILD_LIB_SPEC@,$EXP_BUILD_LIB_SPEC,;t t
17161 s,@EXP_CC_SEARCH_FLAGS@,$EXP_CC_SEARCH_FLAGS,;t t
17162 s,@SETUID@,$SETUID,;t t
17163 s,@SETPGRP_VOID@,$SETPGRP_VOID,;t t
17164 s,@DEFAULT_STTY_ARGS@,$DEFAULT_STTY_ARGS,;t t
17165 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
17166 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
17167 s,@PKG_SOURCES@,$PKG_SOURCES,;t t
17168 s,@PKG_OBJECTS@,$PKG_OBJECTS,;t t
17169 s,@MAKE_LIB@,$MAKE_LIB,;t t
17170 s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t
17171 s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t
17172 s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t
17173 s,@RANLIB_STUB@,$RANLIB_STUB,;t t
17174 s,@VC_MANIFEST_EMBED_DLL@,$VC_MANIFEST_EMBED_DLL,;t t
17175 s,@VC_MANIFEST_EMBED_EXE@,$VC_MANIFEST_EMBED_EXE,;t t
17176 s,@TCLSH_PROG@,$TCLSH_PROG,;t t
17177 s,@LIBOBJS@,$LIBOBJS,;t t
17178 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17183 cat >>$CONFIG_STATUS <<\_ACEOF
17184 # Split the substitutions into bite-sized pieces for seds with
17185 # small command number limits, like on Digital OSF/1 and HP-UX.
17186 ac_max_sed_lines=48
17187 ac_sed_frag=1 # Number of current file.
17188 ac_beg=1 # First line for current file.
17189 ac_end=$ac_max_sed_lines # Line after last line for current file.
17192 while $ac_more_lines; do
17193 if test $ac_beg -gt 1; then
17194 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17196 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17198 if test ! -s $tmp/subs.frag; then
17199 ac_more_lines=false
17201 # The purpose of the label and of the branching condition is to
17202 # speed up the sed processing (if there are no `@' at all, there
17203 # is no need to browse any of the substitutions).
17204 # These are the two extra sed commands mentioned above.
17206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17207 if test -z "$ac_sed_cmds"; then
17208 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17210 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17212 ac_sed_frag=`expr $ac_sed_frag + 1`
17214 ac_end=`expr $ac_end + $ac_max_sed_lines`
17217 if test -z "$ac_sed_cmds"; then
17220 fi # test -n "$CONFIG_FILES"
17223 cat >>$CONFIG_STATUS <<\_ACEOF
17224 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17227 - | *:- | *:-:* ) # input from stdin
17229 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17231 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17233 * ) ac_file_in=$ac_file.in ;;
17236 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17237 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$ac_file" : 'X\(//\)[^/]' \| \
17240 X"$ac_file" : 'X\(//\)$' \| \
17241 X"$ac_file" : 'X\(/\)' \| \
17242 . : '\(.\)' 2>/dev/null ||
17244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17246 /^X\(\/\/\)$/{ s//\1/; q; }
17247 /^X\(\/\).*/{ s//\1/; q; }
17249 { if $as_mkdir_p; then
17254 while test ! -d "$as_dir"; do
17255 as_dirs="$as_dir $as_dirs"
17256 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17258 X"$as_dir" : 'X\(//\)[^/]' \| \
17259 X"$as_dir" : 'X\(//\)$' \| \
17260 X"$as_dir" : 'X\(/\)' \| \
17261 . : '\(.\)' 2>/dev/null ||
17263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17265 /^X\(\/\/\)$/{ s//\1/; q; }
17266 /^X\(\/\).*/{ s//\1/; q; }
17269 test ! -n "$as_dirs" || mkdir $as_dirs
17270 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17271 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17272 { (exit 1); exit 1; }; }; }
17276 if test "$ac_dir" != .; then
17277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17278 # A "../" for each directory in $ac_dir_suffix.
17279 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17281 ac_dir_suffix= ac_top_builddir=
17285 .) # No --srcdir option. We are building in place.
17287 if test -z "$ac_top_builddir"; then
17290 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17292 [\\/]* | ?:[\\/]* ) # Absolute path.
17293 ac_srcdir=$srcdir$ac_dir_suffix;
17294 ac_top_srcdir=$srcdir ;;
17295 *) # Relative path.
17296 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17297 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17300 # Do not use `cd foo && pwd` to compute absolute paths, because
17301 # the directories may not exist.
17303 .) ac_abs_builddir="$ac_dir";;
17306 .) ac_abs_builddir=`pwd`;;
17307 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17308 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17311 case $ac_abs_builddir in
17312 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17314 case ${ac_top_builddir}. in
17315 .) ac_abs_top_builddir=$ac_abs_builddir;;
17316 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17317 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17320 case $ac_abs_builddir in
17321 .) ac_abs_srcdir=$ac_srcdir;;
17324 .) ac_abs_srcdir=$ac_abs_builddir;;
17325 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17326 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17329 case $ac_abs_builddir in
17330 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17332 case $ac_top_srcdir in
17333 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17334 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17335 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17342 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17345 if test x"$ac_file" != x-; then
17346 { echo "$as_me:$LINENO: creating $ac_file" >&5
17347 echo "$as_me: creating $ac_file" >&6;}
17350 # Let's still pretend it is `configure' which instantiates (i.e., don't
17351 # use $as_me), people would be surprised to read:
17352 # /* config.h. Generated by config.status. */
17353 if test x"$ac_file" = x-; then
17356 configure_input="$ac_file. "
17358 configure_input=$configure_input"Generated from `echo $ac_file_in |
17359 sed 's,.*/,,'` by configure."
17361 # First look for the input files in the build tree, otherwise in the
17363 ac_file_inputs=`IFS=:
17364 for f in $ac_file_in; do
17366 -) echo $tmp/stdin ;;
17368 # Absolute (can't be DOS-style, as IFS=:)
17369 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17370 echo "$as_me: error: cannot find input file: $f" >&2;}
17371 { (exit 1); exit 1; }; }
17374 if test -f "$f"; then
17377 elif test -f "$srcdir/$f"; then
17382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17383 echo "$as_me: error: cannot find input file: $f" >&2;}
17384 { (exit 1); exit 1; }; }
17387 done` || { (exit 1); exit 1; }
17389 cat >>$CONFIG_STATUS <<_ACEOF
17393 cat >>$CONFIG_STATUS <<\_ACEOF
17395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17396 s,@configure_input@,$configure_input,;t t
17397 s,@srcdir@,$ac_srcdir,;t t
17398 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17399 s,@top_srcdir@,$ac_top_srcdir,;t t
17400 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17401 s,@builddir@,$ac_builddir,;t t
17402 s,@abs_builddir@,$ac_abs_builddir,;t t
17403 s,@top_builddir@,$ac_top_builddir,;t t
17404 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17405 s,@INSTALL@,$ac_INSTALL,;t t
17406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17408 if test x"$ac_file" != x-; then
17409 mv $tmp/out $ac_file
17417 cat >>$CONFIG_STATUS <<\_ACEOF
17420 # CONFIG_COMMANDS section.
17422 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17423 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17424 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17425 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17426 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17427 X"$ac_dest" : 'X\(//\)[^/]' \| \
17428 X"$ac_dest" : 'X\(//\)$' \| \
17429 X"$ac_dest" : 'X\(/\)' \| \
17430 . : '\(.\)' 2>/dev/null ||
17432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17434 /^X\(\/\/\)$/{ s//\1/; q; }
17435 /^X\(\/\).*/{ s//\1/; q; }
17437 { if $as_mkdir_p; then
17442 while test ! -d "$as_dir"; do
17443 as_dirs="$as_dir $as_dirs"
17444 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17446 X"$as_dir" : 'X\(//\)[^/]' \| \
17447 X"$as_dir" : 'X\(//\)$' \| \
17448 X"$as_dir" : 'X\(/\)' \| \
17449 . : '\(.\)' 2>/dev/null ||
17451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17453 /^X\(\/\/\)$/{ s//\1/; q; }
17454 /^X\(\/\).*/{ s//\1/; q; }
17457 test ! -n "$as_dirs" || mkdir $as_dirs
17458 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17459 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17460 { (exit 1); exit 1; }; }; }
17464 if test "$ac_dir" != .; then
17465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17466 # A "../" for each directory in $ac_dir_suffix.
17467 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17469 ac_dir_suffix= ac_top_builddir=
17473 .) # No --srcdir option. We are building in place.
17475 if test -z "$ac_top_builddir"; then
17478 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17480 [\\/]* | ?:[\\/]* ) # Absolute path.
17481 ac_srcdir=$srcdir$ac_dir_suffix;
17482 ac_top_srcdir=$srcdir ;;
17483 *) # Relative path.
17484 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17485 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17488 # Do not use `cd foo && pwd` to compute absolute paths, because
17489 # the directories may not exist.
17491 .) ac_abs_builddir="$ac_dir";;
17494 .) ac_abs_builddir=`pwd`;;
17495 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17496 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17499 case $ac_abs_builddir in
17500 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17502 case ${ac_top_builddir}. in
17503 .) ac_abs_top_builddir=$ac_abs_builddir;;
17504 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17505 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17508 case $ac_abs_builddir in
17509 .) ac_abs_srcdir=$ac_srcdir;;
17512 .) ac_abs_srcdir=$ac_abs_builddir;;
17513 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17514 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17517 case $ac_abs_builddir in
17518 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17520 case $ac_top_srcdir in
17521 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17522 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17523 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17528 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17529 echo "$as_me: executing $ac_dest commands" >&6;}
17531 default ) chmod +x ${srcdir}/install-sh ;;
17536 cat >>$CONFIG_STATUS <<\_ACEOF
17538 { (exit 0); exit 0; }
17540 chmod +x $CONFIG_STATUS
17541 ac_clean_files=$ac_clean_files_save
17544 # configure is writing to config.log, and then calls config.status.
17545 # config.status does its own redirection, appending to config.log.
17546 # Unfortunately, on DOS this fails, as config.log is still kept open
17547 # by configure, so config.status won't be able to write to it; its
17548 # output is simply discarded. So we exec the FD to /dev/null,
17549 # effectively closing config.log, so it can be properly (re)opened and
17550 # appended to by config.status. When coming back to configure, we
17551 # need to make the FD available again.
17552 if test "$no_create" != yes; then
17554 ac_config_status_args=
17555 test "$silent" = yes &&
17556 ac_config_status_args="$ac_config_status_args --quiet"
17558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17561 # would make configure fail if this is the last instruction.
17562 $ac_cs_success || { (exit 1); exit 1; }
17566 # CONFIG_SUBDIRS section.
17568 if test "$no_recursion" != yes; then
17570 # Remove --cache-file and --srcdir arguments so they do not pile up.
17571 ac_sub_configure_args=
17573 for ac_arg in $ac_configure_args; do
17574 if test -n "$ac_prev"; then
17579 -cache-file | --cache-file | --cache-fil | --cache-fi \
17580 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17581 ac_prev=cache_file ;;
17582 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17583 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17586 --config-cache | -C)
17588 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17590 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17592 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17594 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17596 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17600 # Always prepend --prefix to ensure using the same prefix
17601 # in subdir configurations.
17602 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17605 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17607 # Do not complain, so a configure script can configure whichever
17608 # parts of a large source tree are present.
17609 test -d $srcdir/$ac_dir || continue
17611 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17612 echo "$as_me: configuring in $ac_dir" >&6;}
17613 { if $as_mkdir_p; then
17618 while test ! -d "$as_dir"; do
17619 as_dirs="$as_dir $as_dirs"
17620 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17622 X"$as_dir" : 'X\(//\)[^/]' \| \
17623 X"$as_dir" : 'X\(//\)$' \| \
17624 X"$as_dir" : 'X\(/\)' \| \
17625 . : '\(.\)' 2>/dev/null ||
17627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17629 /^X\(\/\/\)$/{ s//\1/; q; }
17630 /^X\(\/\).*/{ s//\1/; q; }
17633 test ! -n "$as_dirs" || mkdir $as_dirs
17634 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17636 { (exit 1); exit 1; }; }; }
17640 if test "$ac_dir" != .; then
17641 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17642 # A "../" for each directory in $ac_dir_suffix.
17643 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17645 ac_dir_suffix= ac_top_builddir=
17649 .) # No --srcdir option. We are building in place.
17651 if test -z "$ac_top_builddir"; then
17654 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17656 [\\/]* | ?:[\\/]* ) # Absolute path.
17657 ac_srcdir=$srcdir$ac_dir_suffix;
17658 ac_top_srcdir=$srcdir ;;
17659 *) # Relative path.
17660 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17661 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17664 # Do not use `cd foo && pwd` to compute absolute paths, because
17665 # the directories may not exist.
17667 .) ac_abs_builddir="$ac_dir";;
17670 .) ac_abs_builddir=`pwd`;;
17671 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17672 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17675 case $ac_abs_builddir in
17676 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17678 case ${ac_top_builddir}. in
17679 .) ac_abs_top_builddir=$ac_abs_builddir;;
17680 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17681 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17684 case $ac_abs_builddir in
17685 .) ac_abs_srcdir=$ac_srcdir;;
17688 .) ac_abs_srcdir=$ac_abs_builddir;;
17689 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17690 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17693 case $ac_abs_builddir in
17694 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17696 case $ac_top_srcdir in
17697 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17698 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17699 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17706 # Check for guested configure; otherwise get Cygnus style configure.
17707 if test -f $ac_srcdir/configure.gnu; then
17708 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17709 elif test -f $ac_srcdir/configure; then
17710 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17711 elif test -f $ac_srcdir/configure.in; then
17712 ac_sub_configure=$ac_configure
17714 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17715 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17719 # The recursion is here.
17720 if test -n "$ac_sub_configure"; then
17721 # Make the cache file name correct relative to the subdirectory.
17722 case $cache_file in
17723 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17724 *) # Relative path.
17725 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17728 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17729 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17730 # The eval makes quoting arguments work.
17731 eval $ac_sub_configure $ac_sub_configure_args \
17732 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17733 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17734 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17735 { (exit 1); exit 1; }; }