Debian Codegraph @

unix/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for tcl 8.6.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='tcl'
269 PACKAGE_TARNAME='tcl'
270 PACKAGE_VERSION='8.6'
271 PACKAGE_STRING='tcl 8.6'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 MAN_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP TCL_THREADS SHARED_BUILD TCLSH_PROG ZLIB_OBJS ZLIB_SRCS ZLIB_INCLUDE RANLIB ac_ct_RANLIB AR ac_ct_AR LIBOBJS TCL_LIBS DL_LIBS DL_OBJS PLAT_OBJS PLAT_SRCS LDAIX_SRC CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING CFLAGS_NOLTO LDFLAGS_DEBUG LDFLAGS_OPTIMIZE CC_SEARCH_FLAGS LD_SEARCH_FLAGS STLIB_LD SHLIB_LD TCL_SHLIB_LD_EXTRAS TK_SHLIB_LD_EXTRAS SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX MAKE_LIB MAKE_STUB_LIB INSTALL_LIB DLL_INSTALL_DIR INSTALL_STUB_LIB CFLAGS_DEFAULT LDFLAGS_DEFAULT DTRACE TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_PATCH_LEVEL TCL_YEAR PKG_CFG_ARGS TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_STUB_LIB_PATH TCL_INCLUDE_SPEC TCL_BUILD_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_PATH TCL_SRC_DIR CFG_TCL_SHARED_LIB_SUFFIX CFG_TCL_UNSHARED_LIB_SUFFIX TCL_SHARED_BUILD LD_LIBRARY_PATH_VAR TCL_BUILD_LIB_SPEC TCL_LIB_VERSIONS_OK TCL_SHARED_LIB_SUFFIX TCL_UNSHARED_LIB_SUFFIX TCL_HAS_LONGLONG INSTALL_TZDATA DTRACE_SRC DTRACE_HDR DTRACE_OBJ MAKEFILE_SHELL BUILD_DLTEST TCL_PACKAGE_PATH TCL_MODULE_PATH TCL_LIBRARY PRIVATE_INCLUDE_DIR HTML_DIR PACKAGE_DIR EXTRA_CC_SWITCHES EXTRA_APP_CC_SWITCHES EXTRA_INSTALL EXTRA_INSTALL_BINARIES EXTRA_BUILD_HTML EXTRA_TCLSH_LIBS DLTEST_LD DLTEST_SUFFIX'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures tcl 8.6 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of tcl 8.6:";;
838 esac
839 cat <<\_ACEOF
840
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-man-symlinks use symlinks for the manpages (default: off)
845 --enable-man-compression=PROG
846 compress the manpages with PROG (default: off)
847 --enable-man-suffix=STRING
848 use STRING as a suffix to manpage file names
849 (default: no, tcl if enabled without
850 specifying STRING)
851 --enable-threads build with threads (default: on)
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-corefoundation use CoreFoundation API on MacOSX (default: on)
857 --enable-load allow dynamic loading and "load" command (default:
858 on)
859 --enable-symbols build with debugging symbols (default: off)
860 --enable-langinfo use nl_langinfo if possible to determine encoding at
861 startup, otherwise use old heuristic (default: on)
862 --enable-dll-unloading enable the 'unload' command (default: on)
863 --enable-dtrace build with DTrace support (default: off)
864 --enable-framework package shared libraries in MacOSX frameworks
865 (default: off)
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-encoding encoding for configuration values (default:
871 iso8859-1)
872 --with-tzdata install timezone data (default: autodetect)
873
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd $ac_popdir
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 tcl configure 8.6
982 generated by GNU Autoconf 2.59
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by tcl $as_me 8.6, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 TCL_VERSION=8.6
1336 TCL_MAJOR_VERSION=8
1337 TCL_MINOR_VERSION=6
1338 TCL_PATCH_LEVEL=".18"
1339 VERSION=${TCL_VERSION}
1340
1341 EXTRA_INSTALL_BINARIES=${EXTRA_INSTALL_BINARIES:-"@:"}
1342 EXTRA_BUILD_HTML=${EXTRA_BUILD_HTML:-"@:"}
1343
1344 #------------------------------------------------------------------------
1345 # Setup configure arguments for bundled packages
1346 #------------------------------------------------------------------------
1347
1348 PKG_CFG_ARGS="$ac_configure_args ${PKG_CFG_ARGS}"
1349
1350 if test -r "$cache_file" -a -f "$cache_file"; then
1351 case $cache_file in
1352 [\\/]* | ?:[\\/]* ) pkg_cache_file=$cache_file ;;
1353 *) pkg_cache_file=../../$cache_file ;;
1354 esac
1355 PKG_CFG_ARGS="${PKG_CFG_ARGS} --cache-file=$pkg_cache_file"
1356 fi
1357
1358 #------------------------------------------------------------------------
1359 # Empty slate for bundled packages, to avoid stale configuration
1360 #------------------------------------------------------------------------
1361 #rm -Rf pkgs
1362 if test -f Makefile; then
1363 make distclean-packages
1364 fi
1365
1366 #------------------------------------------------------------------------
1367 # Handle the --prefix=... option
1368 #------------------------------------------------------------------------
1369
1370 if test "${prefix}" = "NONE"; then
1371 prefix=/usr/local
1372 fi
1373 if test "${exec_prefix}" = "NONE"; then
1374 exec_prefix=$prefix
1375 fi
1376 # Make sure srcdir is fully qualified!
1377 srcdir="`cd "$srcdir" ; pwd`"
1378 TCL_SRC_DIR="`cd "$srcdir"/..; pwd`"
1379
1380 #------------------------------------------------------------------------
1381 # Compress and/or soft link the manpages?
1382 #------------------------------------------------------------------------
1383
1384
1385 echo "$as_me:$LINENO: checking whether to use symlinks for manpages" >&5
1386 echo $ECHO_N "checking whether to use symlinks for manpages... $ECHO_C" >&6
1387 # Check whether --enable-man-symlinks or --disable-man-symlinks was given.
1388 if test "${enable_man_symlinks+set}" = set; then
1389 enableval="$enable_man_symlinks"
1390 test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks"
1391 else
1392 enableval="no"
1393 fi;
1394 echo "$as_me:$LINENO: result: $enableval" >&5
1395 echo "${ECHO_T}$enableval" >&6
1396
1397 echo "$as_me:$LINENO: checking whether to compress the manpages" >&5
1398 echo $ECHO_N "checking whether to compress the manpages... $ECHO_C" >&6
1399 # Check whether --enable-man-compression or --disable-man-compression was given.
1400 if test "${enable_man_compression+set}" = set; then
1401 enableval="$enable_man_compression"
1402 case $enableval in
1403 yes) { { echo "$as_me:$LINENO: error: missing argument to --enable-man-compression" >&5
1404 echo "$as_me: error: missing argument to --enable-man-compression" >&2;}
1405 { (exit 1); exit 1; }; };;
1406 no) ;;
1407 *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";;
1408 esac
1409 else
1410 enableval="no"
1411 fi;
1412 echo "$as_me:$LINENO: result: $enableval" >&5
1413 echo "${ECHO_T}$enableval" >&6
1414 if test "$enableval" != "no"; then
1415 echo "$as_me:$LINENO: checking for compressed file suffix" >&5
1416 echo $ECHO_N "checking for compressed file suffix... $ECHO_C" >&6
1417 touch TeST
1418 $enableval TeST
1419 Z=`ls TeST.* | sed 's/^....//'`
1420 rm -f TeST*
1421 MAN_FLAGS="$MAN_FLAGS --extension $Z"
1422 echo "$as_me:$LINENO: result: $Z" >&5
1423 echo "${ECHO_T}$Z" >&6
1424 fi
1425
1426 echo "$as_me:$LINENO: checking whether to add a package name suffix for the manpages" >&5
1427 echo $ECHO_N "checking whether to add a package name suffix for the manpages... $ECHO_C" >&6
1428 # Check whether --enable-man-suffix or --disable-man-suffix was given.
1429 if test "${enable_man_suffix+set}" = set; then
1430 enableval="$enable_man_suffix"
1431 case $enableval in
1432 yes) enableval="tcl" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
1433 no) ;;
1434 *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
1435 esac
1436 else
1437 enableval="no"
1438 fi;
1439 echo "$as_me:$LINENO: result: $enableval" >&5
1440 echo "${ECHO_T}$enableval" >&6
1441
1442
1443
1444
1445 #------------------------------------------------------------------------
1446 # Standard compiler checks
1447 #------------------------------------------------------------------------
1448
1449 # If the user did not set CFLAGS, set it now to keep
1450 # the AC_PROG_CC macro from adding "-g -O2".
1451 if test "${CFLAGS+set}" != "set" ; then
1452 CFLAGS=""
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1481 fi
1482 done
1483 done
1484
1485 fi
1486 fi
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1494 fi
1495
1496 fi
1497 if test -z "$ac_cv_prog_CC"; then
1498 ac_ct_CC=$CC
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1519 fi
1520 done
1521 done
1522
1523 fi
1524 fi
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1529 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 fi
1533
1534 CC=$ac_ct_CC
1535 else
1536 CC="$ac_cv_prog_CC"
1537 fi
1538
1539 if test -z "$CC"; then
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562 done
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 fi
1577 if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614 CC=$ac_ct_CC
1615 else
1616 CC="$ac_cv_prog_CC"
1617 fi
1618
1619 fi
1620 if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 else
1631 ac_prog_rejected=no
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640 ac_prog_rejected=yes
1641 continue
1642 fi
1643 ac_cv_prog_CC="cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1646 fi
1647 done
1648 done
1649
1650 if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1653 shift
1654 if test $# != 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1658 shift
1659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1660 fi
1661 fi
1662 fi
1663 fi
1664 CC=$ac_cv_prog_CC
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1668 else
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 fi
1674 if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1676 for ac_prog in cl
1677 do
1678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 CC=$ac_cv_prog_CC
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713 test -n "$CC" && break
1714 done
1715 fi
1716 if test -z "$CC"; then
1717 ac_ct_CC=$CC
1718 for ac_prog in cl
1719 do
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1740 fi
1741 done
1742 done
1743
1744 fi
1745 fi
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if test -n "$ac_ct_CC"; then
1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749 echo "${ECHO_T}$ac_ct_CC" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753 fi
1754
1755 test -n "$ac_ct_CC" && break
1756 done
1757
1758 CC=$ac_ct_CC
1759 fi
1760
1761 fi
1762
1763
1764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&5
1766 echo "$as_me: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&2;}
1768 { (exit 1); exit 1; }; }
1769
1770 # Provide some information about the compiler.
1771 echo "$as_me:$LINENO:" \
1772 "checking for C compiler version" >&5
1773 ac_compiler=`set X $ac_compile; echo $2`
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1775 (eval $ac_compiler --version </dev/null >&5) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1780 (eval $ac_compiler -v </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1785 (eval $ac_compiler -V </dev/null >&5) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789
1790 cat >conftest.$ac_ext <<_ACEOF
1791 /* confdefs.h. */
1792 _ACEOF
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
1796
1797 int
1798 main ()
1799 {
1800
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 ac_clean_files_save=$ac_clean_files
1806 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1807 # Try to create an executable without -o first, disregard a.out.
1808 # It will help us diagnose broken compilers, and finding out an intuition
1809 # of exeext.
1810 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1811 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1812 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1813 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1814 (eval $ac_link_default) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 # Find the output, starting from the most likely. This scheme is
1819 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1820 # resort.
1821
1822 # Be careful to initialize this variable, since it used to be cached.
1823 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1824 ac_cv_exeext=
1825 # b.out is created by i960 compilers.
1826 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1827 do
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1831 ;;
1832 conftest.$ac_ext )
1833 # This is the source file.
1834 ;;
1835 [ab].out )
1836 # We found the default executable, but exeext='' is most
1837 # certainly right.
1838 break;;
1839 *.* )
1840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 # FIXME: I believe we export ac_cv_exeext for Libtool,
1842 # but it would be cool to find out if it's true. Does anybody
1843 # maintain Libtool? --akim.
1844 export ac_cv_exeext
1845 break;;
1846 * )
1847 break;;
1848 esac
1849 done
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1855 See \`config.log' for more details." >&5
1856 echo "$as_me: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&2;}
1858 { (exit 77); exit 77; }; }
1859 fi
1860
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1864
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1878 cross_compiling=no
1879 else
1880 if test "$cross_compiling" = maybe; then
1881 cross_compiling=yes
1882 else
1883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'.
1885 See \`config.log' for more details." >&5
1886 echo "$as_me: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1890 fi
1891 fi
1892 fi
1893 echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6
1895
1896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1897 ac_clean_files=$ac_clean_files_save
1898 # Check the compiler produces executables we can run. If not, either
1899 # the compiler is broken, or we cross compile.
1900 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1902 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1903 echo "${ECHO_T}$cross_compiling" >&6
1904
1905 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1908 (eval $ac_link) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; then
1912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1914 # work properly (i.e., refer to `conftest.exe'), while it won't with
1915 # `rm'.
1916 for ac_file in conftest.exe conftest conftest.*; do
1917 test -f "$ac_file" || continue
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 export ac_cv_exeext
1922 break;;
1923 * ) break;;
1924 esac
1925 done
1926 else
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }
1932 fi
1933
1934 rm -f conftest$ac_cv_exeext
1935 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1936 echo "${ECHO_T}$ac_cv_exeext" >&6
1937
1938 rm -f conftest.$ac_ext
1939 EXEEXT=$ac_cv_exeext
1940 ac_exeext=$EXEEXT
1941 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1943 if test "${ac_cv_objext+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1952
1953 int
1954 main ()
1955 {
1956
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 rm -f conftest.o conftest.obj
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1968 case $ac_file in
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1971 break;;
1972 esac
1973 done
1974 else
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1979 See \`config.log' for more details." >&5
1980 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&2;}
1982 { (exit 1); exit 1; }; }
1983 fi
1984
1985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1986 fi
1987 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1988 echo "${ECHO_T}$ac_cv_objext" >&6
1989 OBJEXT=$ac_cv_objext
1990 ac_objext=$OBJEXT
1991 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1992 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1993 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 cat >conftest.$ac_ext <<_ACEOF
1997 /* confdefs.h. */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2002
2003 int
2004 main ()
2005 {
2006 #ifndef __GNUC__
2007 choke me
2008 #endif
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
2017 ac_status=$?
2018 grep -v '^ *+' conftest.er1 >conftest.err
2019 rm -f conftest.er1
2020 cat conftest.err >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -z "$ac_c_werror_flag"
2024 || test ! -s conftest.err'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; } &&
2030 { ac_try='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 ac_compiler_gnu=yes
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 ac_compiler_gnu=no
2042 fi
2043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2045
2046 fi
2047 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2048 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2049 GCC=`test $ac_compiler_gnu = yes && echo yes`
2050 ac_test_CFLAGS=${CFLAGS+set}
2051 ac_save_CFLAGS=$CFLAGS
2052 CFLAGS="-g"
2053 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2054 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2055 if test "${ac_cv_prog_cc_g+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 cat >conftest.$ac_ext <<_ACEOF
2059 /* confdefs.h. */
2060 _ACEOF
2061 cat confdefs.h >>conftest.$ac_ext
2062 cat >>conftest.$ac_ext <<_ACEOF
2063 /* end confdefs.h. */
2064
2065 int
2066 main ()
2067 {
2068
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 rm -f conftest.$ac_objext
2074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>conftest.er1
2076 ac_status=$?
2077 grep -v '^ *+' conftest.er1 >conftest.err
2078 rm -f conftest.er1
2079 cat conftest.err >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } &&
2082 { ac_try='test -z "$ac_c_werror_flag"
2083 || test ! -s conftest.err'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 ac_cv_prog_cc_g=yes
2096 else
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100 ac_cv_prog_cc_g=no
2101 fi
2102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2106 if test "$ac_test_CFLAGS" = set; then
2107 CFLAGS=$ac_save_CFLAGS
2108 elif test $ac_cv_prog_cc_g = yes; then
2109 if test "$GCC" = yes; then
2110 CFLAGS="-g -O2"
2111 else
2112 CFLAGS="-g"
2113 fi
2114 else
2115 if test "$GCC" = yes; then
2116 CFLAGS="-O2"
2117 else
2118 CFLAGS=
2119 fi
2120 fi
2121 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2122 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_cv_prog_cc_stdc=no
2127 ac_save_CC=$CC
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2134 #include <stdarg.h>
2135 #include <stdio.h>
2136 #include <sys/types.h>
2137 #include <sys/stat.h>
2138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2139 struct buf { int x; };
2140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2141 static char *e (p, i)
2142 char **p;
2143 int i;
2144 {
2145 return p[i];
2146 }
2147 static char *f (char * (*g) (char **, int), char **p, ...)
2148 {
2149 char *s;
2150 va_list v;
2151 va_start (v,p);
2152 s = g (p, va_arg (v,int));
2153 va_end (v);
2154 return s;
2155 }
2156
2157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2158 function prototypes and stuff, but not '\xHH' hex character constants.
2159 These don't provoke an error unfortunately, instead are silently treated
2160 as 'x'. The following induces an error, until -std1 is added to get
2161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2162 array size at least. It's necessary to write '\x00'==0 to get something
2163 that's true only with -std1. */
2164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2165
2166 int test (int i, double x);
2167 struct s1 {int (*f) (int a);};
2168 struct s2 {int (*f) (double a);};
2169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 int argc;
2171 char **argv;
2172 int
2173 main ()
2174 {
2175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 # Don't try gcc -ansi; that turns off useful extensions and
2181 # breaks some systems' header files.
2182 # AIX -qlanglvl=ansi
2183 # Ultrix and OSF/1 -std1
2184 # HP-UX 10.20 and later -Ae
2185 # HP-UX older versions -Aa -D_HPUX_SOURCE
2186 # SVR4 -Xc -D__EXTENSIONS__
2187 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2188 do
2189 CC="$ac_save_CC $ac_arg"
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc=$ac_arg
2213 break
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 fi
2219 rm -f conftest.err conftest.$ac_objext
2220 done
2221 rm -f conftest.$ac_ext conftest.$ac_objext
2222 CC=$ac_save_CC
2223
2224 fi
2225
2226 case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229 echo "${ECHO_T}none needed" >&6 ;;
2230 *)
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234 esac
2235
2236 # Some people use a C++ compiler to compile C. Since we use `exit',
2237 # in C++ we need to declare it. In case someone uses the same compiler
2238 # for both compiling C and C++ we need to have the C++ compiler decide
2239 # the declaration of exit, since it's the most demanding environment.
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #ifndef __cplusplus
2242 choke me
2243 #endif
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 for ac_declaration in \
2268 '' \
2269 'extern "C" void std::exit (int) throw (); using std::exit;' \
2270 'extern "C" void std::exit (int); using std::exit;' \
2271 'extern "C" void exit (int) throw ();' \
2272 'extern "C" void exit (int);' \
2273 'void exit (int);'
2274 do
2275 cat >conftest.$ac_ext <<_ACEOF
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2281 $ac_declaration
2282 #include <stdlib.h>
2283 int
2284 main ()
2285 {
2286 exit (42);
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2294 ac_status=$?
2295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag"
2301 || test ! -s conftest.err'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 :
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 continue
2319 fi
2320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327 $ac_declaration
2328 int
2329 main ()
2330 {
2331 exit (42);
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2339 ac_status=$?
2340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 break
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 fi
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 done
2366 rm -f conftest*
2367 if test -n "$ac_declaration"; then
2368 echo '#ifdef __cplusplus' >>confdefs.h
2369 echo $ac_declaration >>confdefs.h
2370 echo '#endif' >>confdefs.h
2371 fi
2372
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386 echo "$as_me:$LINENO: checking for inline" >&5
2387 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2388 if test "${ac_cv_c_inline+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 ac_cv_c_inline=no
2392 for ac_kw in inline __inline__ __inline; do
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h. */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2399 #ifndef __cplusplus
2400 typedef int foo_t;
2401 static $ac_kw foo_t static_foo () {return 0; }
2402 $ac_kw foo_t foo () {return 0; }
2403 #endif
2404
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408 (eval $ac_compile) 2>conftest.er1
2409 ac_status=$?
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -z "$ac_c_werror_flag"
2416 || test ! -s conftest.err'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 (eval $ac_try) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; }; then
2428 ac_cv_c_inline=$ac_kw; break
2429 else
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 fi
2434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 done
2436
2437 fi
2438 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2439 echo "${ECHO_T}$ac_cv_c_inline" >&6
2440
2441
2442 case $ac_cv_c_inline in
2443 inline | yes) ;;
2444 *)
2445 case $ac_cv_c_inline in
2446 no) ac_val=;;
2447 *) ac_val=$ac_cv_c_inline;;
2448 esac
2449 cat >>confdefs.h <<_ACEOF
2450 #ifndef __cplusplus
2451 #define inline $ac_val
2452 #endif
2453 _ACEOF
2454 ;;
2455 esac
2456
2457
2458 #--------------------------------------------------------------------
2459 # Supply substitutes for missing POSIX header files. Special notes:
2460 # - stdlib.h doesn't define strtol, strtoul, or
2461 # strtod in some versions of SunOS
2462 # - some versions of string.h don't declare procedures such
2463 # as strstr
2464 # Do this early, otherwise an autoconf bug throws errors on configure
2465 #--------------------------------------------------------------------
2466
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2473 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2474 # On Suns, sometimes $CPP names a directory.
2475 if test -n "$CPP" && test -d "$CPP"; then
2476 CPP=
2477 fi
2478 if test -z "$CPP"; then
2479 if test "${ac_cv_prog_CPP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482 # Double quotes because CPP needs to be expanded
2483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2484 do
2485 ac_preproc_ok=false
2486 for ac_c_preproc_warn_flag in '' yes
2487 do
2488 # Use a header file that comes with gcc, so configuring glibc
2489 # with a fresh cross-compiler works.
2490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2491 # <limits.h> exists even on freestanding compilers.
2492 # On the NeXT, cc -E runs the code through the compiler's parser,
2493 # not just through cpp. "Syntax error" is here to catch this case.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #ifdef __STDC__
2501 # include <limits.h>
2502 #else
2503 # include <assert.h>
2504 #endif
2505 Syntax error
2506 _ACEOF
2507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } >/dev/null; then
2515 if test -s conftest.err; then
2516 ac_cpp_err=$ac_c_preproc_warn_flag
2517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2518 else
2519 ac_cpp_err=
2520 fi
2521 else
2522 ac_cpp_err=yes
2523 fi
2524 if test -z "$ac_cpp_err"; then
2525 :
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 # Broken: fails on valid input.
2531 continue
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534
2535 # OK, works on sane cases. Now check whether non-existent headers
2536 # can be detected and how.
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2543 #include <ac_nonexistent.h>
2544 _ACEOF
2545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } >/dev/null; then
2553 if test -s conftest.err; then
2554 ac_cpp_err=$ac_c_preproc_warn_flag
2555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2556 else
2557 ac_cpp_err=
2558 fi
2559 else
2560 ac_cpp_err=yes
2561 fi
2562 if test -z "$ac_cpp_err"; then
2563 # Broken: success on invalid input.
2564 continue
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 # Passes both tests.
2570 ac_preproc_ok=:
2571 break
2572 fi
2573 rm -f conftest.err conftest.$ac_ext
2574
2575 done
2576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2577 rm -f conftest.err conftest.$ac_ext
2578 if $ac_preproc_ok; then
2579 break
2580 fi
2581
2582 done
2583 ac_cv_prog_CPP=$CPP
2584
2585 fi
2586 CPP=$ac_cv_prog_CPP
2587 else
2588 ac_cv_prog_CPP=$CPP
2589 fi
2590 echo "$as_me:$LINENO: result: $CPP" >&5
2591 echo "${ECHO_T}$CPP" >&6
2592 ac_preproc_ok=false
2593 for ac_c_preproc_warn_flag in '' yes
2594 do
2595 # Use a header file that comes with gcc, so configuring glibc
2596 # with a fresh cross-compiler works.
2597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2598 # <limits.h> exists even on freestanding compilers.
2599 # On the NeXT, cc -E runs the code through the compiler's parser,
2600 # not just through cpp. "Syntax error" is here to catch this case.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 #ifdef __STDC__
2608 # include <limits.h>
2609 #else
2610 # include <assert.h>
2611 #endif
2612 Syntax error
2613 _ACEOF
2614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } >/dev/null; then
2622 if test -s conftest.err; then
2623 ac_cpp_err=$ac_c_preproc_warn_flag
2624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2625 else
2626 ac_cpp_err=
2627 fi
2628 else
2629 ac_cpp_err=yes
2630 fi
2631 if test -z "$ac_cpp_err"; then
2632 :
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 # Broken: fails on valid input.
2638 continue
2639 fi
2640 rm -f conftest.err conftest.$ac_ext
2641
2642 # OK, works on sane cases. Now check whether non-existent headers
2643 # can be detected and how.
2644 cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h. */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2650 #include <ac_nonexistent.h>
2651 _ACEOF
2652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } >/dev/null; then
2660 if test -s conftest.err; then
2661 ac_cpp_err=$ac_c_preproc_warn_flag
2662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2663 else
2664 ac_cpp_err=
2665 fi
2666 else
2667 ac_cpp_err=yes
2668 fi
2669 if test -z "$ac_cpp_err"; then
2670 # Broken: success on invalid input.
2671 continue
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 # Passes both tests.
2677 ac_preproc_ok=:
2678 break
2679 fi
2680 rm -f conftest.err conftest.$ac_ext
2681
2682 done
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2686 :
2687 else
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }
2693 fi
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701
2702 echo "$as_me:$LINENO: checking for egrep" >&5
2703 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2704 if test "${ac_cv_prog_egrep+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2708 then ac_cv_prog_egrep='grep -E'
2709 else ac_cv_prog_egrep='egrep'
2710 fi
2711 fi
2712 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2713 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2714 EGREP=$ac_cv_prog_egrep
2715
2716
2717 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2719 if test "${ac_cv_header_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #include <stdlib.h>
2729 #include <stdarg.h>
2730 #include <string.h>
2731 #include <float.h>
2732
2733 int
2734 main ()
2735 {
2736
2737 ;
2738 return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag"
2751 || test ! -s conftest.err'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_header_stdc=yes
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_cv_header_stdc=no
2769 fi
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771
2772 if test $ac_cv_header_stdc = yes; then
2773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <string.h>
2781
2782 _ACEOF
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 $EGREP "memchr" >/dev/null 2>&1; then
2785 :
2786 else
2787 ac_cv_header_stdc=no
2788 fi
2789 rm -f conftest*
2790
2791 fi
2792
2793 if test $ac_cv_header_stdc = yes; then
2794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801 #include <stdlib.h>
2802
2803 _ACEOF
2804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805 $EGREP "free" >/dev/null 2>&1; then
2806 :
2807 else
2808 ac_cv_header_stdc=no
2809 fi
2810 rm -f conftest*
2811
2812 fi
2813
2814 if test $ac_cv_header_stdc = yes; then
2815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2816 if test "$cross_compiling" = yes; then
2817 :
2818 else
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #include <ctype.h>
2826 #include <stdlib.h>
2827 #if ((' ' & 0x0FF) == 0x020)
2828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2830 #else
2831 # define ISLOWER(c) \
2832 (('a' <= (c) && (c) <= 'i') \
2833 || ('j' <= (c) && (c) <= 'r') \
2834 || ('s' <= (c) && (c) <= 'z'))
2835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2836 #endif
2837
2838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2839 int
2840 main ()
2841 {
2842 int i;
2843 for (i = 0; i < 256; i++)
2844 if (XOR (islower (i), ISLOWER (i))
2845 || toupper (i) != TOUPPER (i))
2846 exit(2);
2847 exit (0);
2848 }
2849 _ACEOF
2850 rm -f conftest$ac_exeext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852 (eval $ac_link) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2861 :
2862 else
2863 echo "$as_me: program exited with status $ac_status" >&5
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 ( exit $ac_status )
2868 ac_cv_header_stdc=no
2869 fi
2870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 fi
2873 fi
2874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2875 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2876 if test $ac_cv_header_stdc = yes; then
2877
2878 cat >>confdefs.h <<\_ACEOF
2879 #define STDC_HEADERS 1
2880 _ACEOF
2881
2882 fi
2883
2884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2895 inttypes.h stdint.h unistd.h
2896 do
2897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2898 echo "$as_me:$LINENO: checking for $ac_header" >&5
2899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 $ac_includes_default
2910
2911 #include <$ac_header>
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag"
2923 || test ! -s conftest.err'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; } &&
2929 { ac_try='test -s conftest.$ac_objext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 eval "$as_ac_Header=yes"
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 eval "$as_ac_Header=no"
2941 fi
2942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943 fi
2944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2947 cat >>confdefs.h <<_ACEOF
2948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2949 _ACEOF
2950
2951 fi
2952
2953 done
2954
2955
2956
2957 echo "$as_me:$LINENO: checking dirent.h" >&5
2958 echo $ECHO_N "checking dirent.h... $ECHO_C" >&6
2959 if test "${tcl_cv_dirent_h+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <sys/types.h>
2970 #include <dirent.h>
2971 int
2972 main ()
2973 {
2974
2975 #ifndef _POSIX_SOURCE
2976 # ifdef __Lynx__
2977 /*
2978 * Generate compilation error to make the test fail: Lynx headers
2979 * are only valid if really in the POSIX environment.
2980 */
2981
2982 missing_procedure();
2983 # endif
2984 #endif
2985 DIR *d;
2986 struct dirent *entryPtr;
2987 char *p;
2988 d = opendir("foobar");
2989 entryPtr = readdir(d);
2990 p = entryPtr->d_name;
2991 closedir(d);
2992
2993 ;
2994 return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext conftest$ac_exeext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999 (eval $ac_link) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -z "$ac_c_werror_flag"
3007 || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 (eval $ac_try) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest$ac_exeext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 tcl_cv_dirent_h=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 tcl_cv_dirent_h=no
3025 fi
3026 rm -f conftest.err conftest.$ac_objext \
3027 conftest$ac_exeext conftest.$ac_ext
3028 fi
3029 echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
3030 echo "${ECHO_T}$tcl_cv_dirent_h" >&6
3031
3032 if test $tcl_cv_dirent_h = no; then
3033
3034 cat >>confdefs.h <<\_ACEOF
3035 #define NO_DIRENT_H 1
3036 _ACEOF
3037
3038 fi
3039
3040 if test "${ac_cv_header_float_h+set}" = set; then
3041 echo "$as_me:$LINENO: checking for float.h" >&5
3042 echo $ECHO_N "checking for float.h... $ECHO_C" >&6
3043 if test "${ac_cv_header_float_h+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
3047 echo "${ECHO_T}$ac_cv_header_float_h" >&6
3048 else
3049 # Is the header compilable?
3050 echo "$as_me:$LINENO: checking float.h usability" >&5
3051 echo $ECHO_N "checking float.h usability... $ECHO_C" >&6
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 $ac_includes_default
3059 #include <float.h>
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3063 (eval $ac_compile) 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_c_werror_flag"
3071 || test ! -s conftest.err'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 (eval $ac_try) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 ac_header_compiler=yes
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 ac_header_compiler=no
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3092 echo "${ECHO_T}$ac_header_compiler" >&6
3093
3094 # Is the header present?
3095 echo "$as_me:$LINENO: checking float.h presence" >&5
3096 echo $ECHO_N "checking float.h presence... $ECHO_C" >&6
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3103 #include <float.h>
3104 _ACEOF
3105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } >/dev/null; then
3113 if test -s conftest.err; then
3114 ac_cpp_err=$ac_c_preproc_warn_flag
3115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3116 else
3117 ac_cpp_err=
3118 fi
3119 else
3120 ac_cpp_err=yes
3121 fi
3122 if test -z "$ac_cpp_err"; then
3123 ac_header_preproc=yes
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 ac_header_preproc=no
3129 fi
3130 rm -f conftest.err conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3132 echo "${ECHO_T}$ac_header_preproc" >&6
3133
3134 # So? What about this header?
3135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3136 yes:no: )
3137 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
3138 echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3139 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
3140 echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
3141 ac_header_preproc=yes
3142 ;;
3143 no:yes:* )
3144 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
3145 echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
3146 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
3147 echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
3148 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
3149 echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
3150 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
3151 echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
3152 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
3153 echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
3154 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
3155 echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
3156 (
3157 cat <<\_ASBOX
3158 ## ------------------------------ ##
3159 ## Report this to the tcl lists. ##
3160 ## ------------------------------ ##
3161 _ASBOX
3162 ) |
3163 sed "s/^/$as_me: WARNING: /" >&2
3164 ;;
3165 esac
3166 echo "$as_me:$LINENO: checking for float.h" >&5
3167 echo $ECHO_N "checking for float.h... $ECHO_C" >&6
3168 if test "${ac_cv_header_float_h+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 ac_cv_header_float_h=$ac_header_preproc
3172 fi
3173 echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
3174 echo "${ECHO_T}$ac_cv_header_float_h" >&6
3175
3176 fi
3177 if test $ac_cv_header_float_h = yes; then
3178 :
3179 else
3180
3181 cat >>confdefs.h <<\_ACEOF
3182 #define NO_FLOAT_H 1
3183 _ACEOF
3184
3185 fi
3186
3187
3188 if test "${ac_cv_header_values_h+set}" = set; then
3189 echo "$as_me:$LINENO: checking for values.h" >&5
3190 echo $ECHO_N "checking for values.h... $ECHO_C" >&6
3191 if test "${ac_cv_header_values_h+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 fi
3194 echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
3195 echo "${ECHO_T}$ac_cv_header_values_h" >&6
3196 else
3197 # Is the header compilable?
3198 echo "$as_me:$LINENO: checking values.h usability" >&5
3199 echo $ECHO_N "checking values.h usability... $ECHO_C" >&6
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 $ac_includes_default
3207 #include <values.h>
3208 _ACEOF
3209 rm -f conftest.$ac_objext
3210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211 (eval $ac_compile) 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag"
3219 || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 ac_header_compiler=yes
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 ac_header_compiler=no
3237 fi
3238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3240 echo "${ECHO_T}$ac_header_compiler" >&6
3241
3242 # Is the header present?
3243 echo "$as_me:$LINENO: checking values.h presence" >&5
3244 echo $ECHO_N "checking values.h presence... $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 #include <values.h>
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264 else
3265 ac_cpp_err=
3266 fi
3267 else
3268 ac_cpp_err=yes
3269 fi
3270 if test -z "$ac_cpp_err"; then
3271 ac_header_preproc=yes
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 ac_header_preproc=no
3277 fi
3278 rm -f conftest.err conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3280 echo "${ECHO_T}$ac_header_preproc" >&6
3281
3282 # So? What about this header?
3283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3284 yes:no: )
3285 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
3286 echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3287 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
3288 echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
3289 ac_header_preproc=yes
3290 ;;
3291 no:yes:* )
3292 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
3293 echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
3294 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5
3295 echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;}
3296 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
3297 echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
3298 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5
3299 echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;}
3300 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
3301 echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
3302 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
3303 echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
3304 (
3305 cat <<\_ASBOX
3306 ## ------------------------------ ##
3307 ## Report this to the tcl lists. ##
3308 ## ------------------------------ ##
3309 _ASBOX
3310 ) |
3311 sed "s/^/$as_me: WARNING: /" >&2
3312 ;;
3313 esac
3314 echo "$as_me:$LINENO: checking for values.h" >&5
3315 echo $ECHO_N "checking for values.h... $ECHO_C" >&6
3316 if test "${ac_cv_header_values_h+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 ac_cv_header_values_h=$ac_header_preproc
3320 fi
3321 echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
3322 echo "${ECHO_T}$ac_cv_header_values_h" >&6
3323
3324 fi
3325 if test $ac_cv_header_values_h = yes; then
3326 :
3327 else
3328
3329 cat >>confdefs.h <<\_ACEOF
3330 #define NO_VALUES_H 1
3331 _ACEOF
3332
3333 fi
3334
3335
3336 if test "${ac_cv_header_stdlib_h+set}" = set; then
3337 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3338 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3339 if test "${ac_cv_header_stdlib_h+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 fi
3342 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3343 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3344 else
3345 # Is the header compilable?
3346 echo "$as_me:$LINENO: checking stdlib.h usability" >&5
3347 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h. */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 $ac_includes_default
3355 #include <stdlib.h>
3356 _ACEOF
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_header_compiler=yes
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 ac_header_compiler=no
3385 fi
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3388 echo "${ECHO_T}$ac_header_compiler" >&6
3389
3390 # Is the header present?
3391 echo "$as_me:$LINENO: checking stdlib.h presence" >&5
3392 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <stdlib.h>
3400 _ACEOF
3401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null; then
3409 if test -s conftest.err; then
3410 ac_cpp_err=$ac_c_preproc_warn_flag
3411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 else
3413 ac_cpp_err=
3414 fi
3415 else
3416 ac_cpp_err=yes
3417 fi
3418 if test -z "$ac_cpp_err"; then
3419 ac_header_preproc=yes
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 ac_header_preproc=no
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3428 echo "${ECHO_T}$ac_header_preproc" >&6
3429
3430 # So? What about this header?
3431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3432 yes:no: )
3433 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3434 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3435 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
3436 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
3437 ac_header_preproc=yes
3438 ;;
3439 no:yes:* )
3440 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
3441 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
3442 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
3443 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
3445 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
3446 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
3447 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3448 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
3449 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
3450 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
3451 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
3452 (
3453 cat <<\_ASBOX
3454 ## ------------------------------ ##
3455 ## Report this to the tcl lists. ##
3456 ## ------------------------------ ##
3457 _ASBOX
3458 ) |
3459 sed "s/^/$as_me: WARNING: /" >&2
3460 ;;
3461 esac
3462 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3463 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
3464 if test "${ac_cv_header_stdlib_h+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 ac_cv_header_stdlib_h=$ac_header_preproc
3468 fi
3469 echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3470 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
3471
3472 fi
3473 if test $ac_cv_header_stdlib_h = yes; then
3474 tcl_ok=1
3475 else
3476 tcl_ok=0
3477 fi
3478
3479
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 #include <stdlib.h>
3487
3488 _ACEOF
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 $EGREP "strtol" >/dev/null 2>&1; then
3491 :
3492 else
3493 tcl_ok=0
3494 fi
3495 rm -f conftest*
3496
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <stdlib.h>
3504
3505 _ACEOF
3506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3507 $EGREP "strtoul" >/dev/null 2>&1; then
3508 :
3509 else
3510 tcl_ok=0
3511 fi
3512 rm -f conftest*
3513
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <stdlib.h>
3521
3522 _ACEOF
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 $EGREP "strtod" >/dev/null 2>&1; then
3525 :
3526 else
3527 tcl_ok=0
3528 fi
3529 rm -f conftest*
3530
3531 if test $tcl_ok = 0; then
3532
3533 cat >>confdefs.h <<\_ACEOF
3534 #define NO_STDLIB_H 1
3535 _ACEOF
3536
3537 fi
3538 if test "${ac_cv_header_string_h+set}" = set; then
3539 echo "$as_me:$LINENO: checking for string.h" >&5
3540 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3541 if test "${ac_cv_header_string_h+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3545 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3546 else
3547 # Is the header compilable?
3548 echo "$as_me:$LINENO: checking string.h usability" >&5
3549 echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 $ac_includes_default
3557 #include <string.h>
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_header_compiler=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 ac_header_compiler=no
3587 fi
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3590 echo "${ECHO_T}$ac_header_compiler" >&6
3591
3592 # Is the header present?
3593 echo "$as_me:$LINENO: checking string.h presence" >&5
3594 echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <string.h>
3602 _ACEOF
3603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } >/dev/null; then
3611 if test -s conftest.err; then
3612 ac_cpp_err=$ac_c_preproc_warn_flag
3613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614 else
3615 ac_cpp_err=
3616 fi
3617 else
3618 ac_cpp_err=yes
3619 fi
3620 if test -z "$ac_cpp_err"; then
3621 ac_header_preproc=yes
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 ac_header_preproc=no
3627 fi
3628 rm -f conftest.err conftest.$ac_ext
3629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3630 echo "${ECHO_T}$ac_header_preproc" >&6
3631
3632 # So? What about this header?
3633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3634 yes:no: )
3635 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
3636 echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3637 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
3638 echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
3639 ac_header_preproc=yes
3640 ;;
3641 no:yes:* )
3642 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
3643 echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
3644 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
3645 echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
3646 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
3647 echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
3648 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
3649 echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
3650 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
3651 echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
3652 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
3653 echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
3654 (
3655 cat <<\_ASBOX
3656 ## ------------------------------ ##
3657 ## Report this to the tcl lists. ##
3658 ## ------------------------------ ##
3659 _ASBOX
3660 ) |
3661 sed "s/^/$as_me: WARNING: /" >&2
3662 ;;
3663 esac
3664 echo "$as_me:$LINENO: checking for string.h" >&5
3665 echo $ECHO_N "checking for string.h... $ECHO_C" >&6
3666 if test "${ac_cv_header_string_h+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 ac_cv_header_string_h=$ac_header_preproc
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
3672 echo "${ECHO_T}$ac_cv_header_string_h" >&6
3673
3674 fi
3675 if test $ac_cv_header_string_h = yes; then
3676 tcl_ok=1
3677 else
3678 tcl_ok=0
3679 fi
3680
3681
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 #include <string.h>
3689
3690 _ACEOF
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 $EGREP "strstr" >/dev/null 2>&1; then
3693 :
3694 else
3695 tcl_ok=0
3696 fi
3697 rm -f conftest*
3698
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <string.h>
3706
3707 _ACEOF
3708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 $EGREP "strerror" >/dev/null 2>&1; then
3710 :
3711 else
3712 tcl_ok=0
3713 fi
3714 rm -f conftest*
3715
3716
3717 # See also memmove check below for a place where NO_STRING_H can be
3718 # set and why.
3719
3720 if test $tcl_ok = 0; then
3721
3722 cat >>confdefs.h <<\_ACEOF
3723 #define NO_STRING_H 1
3724 _ACEOF
3725
3726 fi
3727
3728 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3729 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3730 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3731 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 fi
3734 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3735 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3736 else
3737 # Is the header compilable?
3738 echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
3739 echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 $ac_includes_default
3747 #include <sys/wait.h>
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 ac_header_compiler=yes
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 ac_header_compiler=no
3777 fi
3778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3780 echo "${ECHO_T}$ac_header_compiler" >&6
3781
3782 # Is the header present?
3783 echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
3784 echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h. */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #include <sys/wait.h>
3792 _ACEOF
3793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null; then
3801 if test -s conftest.err; then
3802 ac_cpp_err=$ac_c_preproc_warn_flag
3803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3804 else
3805 ac_cpp_err=
3806 fi
3807 else
3808 ac_cpp_err=yes
3809 fi
3810 if test -z "$ac_cpp_err"; then
3811 ac_header_preproc=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ac_header_preproc=no
3817 fi
3818 rm -f conftest.err conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3820 echo "${ECHO_T}$ac_header_preproc" >&6
3821
3822 # So? What about this header?
3823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3824 yes:no: )
3825 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
3826 echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
3828 echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
3829 ac_header_preproc=yes
3830 ;;
3831 no:yes:* )
3832 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
3833 echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
3834 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5
3835 echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;}
3836 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
3837 echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
3838 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5
3839 echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;}
3840 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
3841 echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
3842 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
3843 echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
3844 (
3845 cat <<\_ASBOX
3846 ## ------------------------------ ##
3847 ## Report this to the tcl lists. ##
3848 ## ------------------------------ ##
3849 _ASBOX
3850 ) |
3851 sed "s/^/$as_me: WARNING: /" >&2
3852 ;;
3853 esac
3854 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3855 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3856 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 ac_cv_header_sys_wait_h=$ac_header_preproc
3860 fi
3861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3862 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3863
3864 fi
3865 if test $ac_cv_header_sys_wait_h = yes; then
3866 :
3867 else
3868
3869 cat >>confdefs.h <<\_ACEOF
3870 #define NO_SYS_WAIT_H 1
3871 _ACEOF
3872
3873 fi
3874
3875
3876 if test "${ac_cv_header_dlfcn_h+set}" = set; then
3877 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
3878 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
3879 if test "${ac_cv_header_dlfcn_h+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 fi
3882 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
3883 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
3884 else
3885 # Is the header compilable?
3886 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
3887 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_includes_default
3895 #include <dlfcn.h>
3896 _ACEOF
3897 rm -f conftest.$ac_objext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -z "$ac_c_werror_flag"
3907 || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest.$ac_objext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_header_compiler=yes
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924 ac_header_compiler=no
3925 fi
3926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3928 echo "${ECHO_T}$ac_header_compiler" >&6
3929
3930 # Is the header present?
3931 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
3932 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <dlfcn.h>
3940 _ACEOF
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } >/dev/null; then
3949 if test -s conftest.err; then
3950 ac_cpp_err=$ac_c_preproc_warn_flag
3951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952 else
3953 ac_cpp_err=
3954 fi
3955 else
3956 ac_cpp_err=yes
3957 fi
3958 if test -z "$ac_cpp_err"; then
3959 ac_header_preproc=yes
3960 else
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 ac_header_preproc=no
3965 fi
3966 rm -f conftest.err conftest.$ac_ext
3967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3968 echo "${ECHO_T}$ac_header_preproc" >&6
3969
3970 # So? What about this header?
3971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3972 yes:no: )
3973 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
3974 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
3976 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
3977 ac_header_preproc=yes
3978 ;;
3979 no:yes:* )
3980 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
3981 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
3982 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
3983 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
3984 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
3985 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
3986 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
3987 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
3988 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
3989 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
3991 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
3992 (
3993 cat <<\_ASBOX
3994 ## ------------------------------ ##
3995 ## Report this to the tcl lists. ##
3996 ## ------------------------------ ##
3997 _ASBOX
3998 ) |
3999 sed "s/^/$as_me: WARNING: /" >&2
4000 ;;
4001 esac
4002 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
4003 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
4004 if test "${ac_cv_header_dlfcn_h+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 ac_cv_header_dlfcn_h=$ac_header_preproc
4008 fi
4009 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
4010 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
4011
4012 fi
4013 if test $ac_cv_header_dlfcn_h = yes; then
4014 :
4015 else
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define NO_DLFCN_H 1
4019 _ACEOF
4020
4021 fi
4022
4023
4024
4025 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
4026
4027 for ac_header in sys/param.h
4028 do
4029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031 echo "$as_me:$LINENO: checking for $ac_header" >&5
4032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 fi
4036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4038 else
4039 # Is the header compilable?
4040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <$ac_header>
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4054 ac_status=$?
4055 grep -v '^ *+' conftest.er1 >conftest.err
4056 rm -f conftest.er1
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 ac_header_compiler=yes
4074 else
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_header_compiler=no
4079 fi
4080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4082 echo "${ECHO_T}$ac_header_compiler" >&6
4083
4084 # Is the header present?
4085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <$ac_header>
4094 _ACEOF
4095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } >/dev/null; then
4103 if test -s conftest.err; then
4104 ac_cpp_err=$ac_c_preproc_warn_flag
4105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4106 else
4107 ac_cpp_err=
4108 fi
4109 else
4110 ac_cpp_err=yes
4111 fi
4112 if test -z "$ac_cpp_err"; then
4113 ac_header_preproc=yes
4114 else
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4117
4118 ac_header_preproc=no
4119 fi
4120 rm -f conftest.err conftest.$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4122 echo "${ECHO_T}$ac_header_preproc" >&6
4123
4124 # So? What about this header?
4125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4126 yes:no: )
4127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4131 ac_header_preproc=yes
4132 ;;
4133 no:yes:* )
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4146 (
4147 cat <<\_ASBOX
4148 ## ------------------------------ ##
4149 ## Report this to the tcl lists. ##
4150 ## ------------------------------ ##
4151 _ASBOX
4152 ) |
4153 sed "s/^/$as_me: WARNING: /" >&2
4154 ;;
4155 esac
4156 echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 eval "$as_ac_Header=\$ac_header_preproc"
4162 fi
4163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4165
4166 fi
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168 cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170 _ACEOF
4171
4172 fi
4173
4174 done
4175
4176
4177
4178 #--------------------------------------------------------------------
4179 # Determines the correct executable file extension (.exe)
4180 #--------------------------------------------------------------------
4181
4182
4183
4184 #------------------------------------------------------------------------
4185 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
4186 # It makes compiling go faster. (This is only a performance feature.)
4187 #------------------------------------------------------------------------
4188
4189 if test -z "$no_pipe" && test -n "$GCC"; then
4190 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
4191 echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
4192 if test "${tcl_cv_cc_pipe+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195
4196 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203
4204 int
4205 main ()
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 tcl_cv_cc_pipe=yes
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 tcl_cv_cc_pipe=no
4240 fi
4241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4242 CFLAGS=$hold_cflags
4243 fi
4244 echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5
4245 echo "${ECHO_T}$tcl_cv_cc_pipe" >&6
4246 if test $tcl_cv_cc_pipe = yes; then
4247 CFLAGS="$CFLAGS -pipe"
4248 fi
4249 fi
4250
4251 #------------------------------------------------------------------------
4252 # Threads support
4253 #------------------------------------------------------------------------
4254
4255
4256 # Check whether --enable-threads or --disable-threads was given.
4257 if test "${enable_threads+set}" = set; then
4258 enableval="$enable_threads"
4259 tcl_ok=$enableval
4260 else
4261 tcl_ok=yes
4262 fi;
4263
4264 if test "${TCL_THREADS}" = 1; then
4265 tcl_threaded_core=1;
4266 fi
4267
4268 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
4269 TCL_THREADS=1
4270 # USE_THREAD_ALLOC tells us to try the special thread-based
4271 # allocator that significantly reduces lock contention
4272
4273 cat >>confdefs.h <<\_ACEOF
4274 #define USE_THREAD_ALLOC 1
4275 _ACEOF
4276
4277
4278 cat >>confdefs.h <<\_ACEOF
4279 #define _REENTRANT 1
4280 _ACEOF
4281
4282 if test "`uname -s`" = "SunOS" ; then
4283
4284 cat >>confdefs.h <<\_ACEOF
4285 #define _POSIX_PTHREAD_SEMANTICS 1
4286 _ACEOF
4287
4288 fi
4289
4290 cat >>confdefs.h <<\_ACEOF
4291 #define _THREAD_SAFE 1
4292 _ACEOF
4293
4294 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
4295 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
4296 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299 ac_check_lib_save_LIBS=$LIBS
4300 LIBS="-lpthread $LIBS"
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307
4308 /* Override any gcc2 internal prototype to avoid an error. */
4309 #ifdef __cplusplus
4310 extern "C"
4311 #endif
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char pthread_mutex_init ();
4315 int
4316 main ()
4317 {
4318 pthread_mutex_init ();
4319 ;
4320 return 0;
4321 }
4322 _ACEOF
4323 rm -f conftest.$ac_objext conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_cv_lib_pthread_pthread_mutex_init=yes
4346 else
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ac_cv_lib_pthread_pthread_mutex_init=no
4351 fi
4352 rm -f conftest.err conftest.$ac_objext \
4353 conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
4357 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
4358 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
4359 tcl_ok=yes
4360 else
4361 tcl_ok=no
4362 fi
4363
4364 if test "$tcl_ok" = "no"; then
4365 # Check a little harder for __pthread_mutex_init in the same
4366 # library, as some systems hide it there until pthread.h is
4367 # defined. We could alternatively do an AC_TRY_COMPILE with
4368 # pthread.h, but that will work with libpthread really doesn't
4369 # exist, like AIX 4.2. [Bug: 4359]
4370 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
4371 echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
4372 if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 ac_check_lib_save_LIBS=$LIBS
4376 LIBS="-lpthread $LIBS"
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 #ifdef __cplusplus
4386 extern "C"
4387 #endif
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4390 char __pthread_mutex_init ();
4391 int
4392 main ()
4393 {
4394 __pthread_mutex_init ();
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext conftest$ac_exeext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4401 (eval $ac_link) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_cv_lib_pthread___pthread_mutex_init=yes
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 ac_cv_lib_pthread___pthread_mutex_init=no
4427 fi
4428 rm -f conftest.err conftest.$ac_objext \
4429 conftest$ac_exeext conftest.$ac_ext
4430 LIBS=$ac_check_lib_save_LIBS
4431 fi
4432 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
4433 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
4434 if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
4435 tcl_ok=yes
4436 else
4437 tcl_ok=no
4438 fi
4439
4440 fi
4441
4442 if test "$tcl_ok" = "yes"; then
4443 # The space is needed
4444 THREADS_LIBS=" -lpthread"
4445 else
4446 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
4447 echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
4448 if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lpthreads $LIBS"
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459
4460 /* Override any gcc2 internal prototype to avoid an error. */
4461 #ifdef __cplusplus
4462 extern "C"
4463 #endif
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char pthread_mutex_init ();
4467 int
4468 main ()
4469 {
4470 pthread_mutex_init ();
4471 ;
4472 return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 ac_cv_lib_pthreads_pthread_mutex_init=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_cv_lib_pthreads_pthread_mutex_init=no
4503 fi
4504 rm -f conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4507 fi
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
4509 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
4510 if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
4511 tcl_ok=yes
4512 else
4513 tcl_ok=no
4514 fi
4515
4516 if test "$tcl_ok" = "yes"; then
4517 # The space is needed
4518 THREADS_LIBS=" -lpthreads"
4519 else
4520 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
4521 echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6
4522 if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lc $LIBS"
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533
4534 /* Override any gcc2 internal prototype to avoid an error. */
4535 #ifdef __cplusplus
4536 extern "C"
4537 #endif
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4540 char pthread_mutex_init ();
4541 int
4542 main ()
4543 {
4544 pthread_mutex_init ();
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -z "$ac_c_werror_flag"
4559 || test ! -s conftest.err'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_lib_c_pthread_mutex_init=yes
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 ac_cv_lib_c_pthread_mutex_init=no
4577 fi
4578 rm -f conftest.err conftest.$ac_objext \
4579 conftest$ac_exeext conftest.$ac_ext
4580 LIBS=$ac_check_lib_save_LIBS
4581 fi
4582 echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
4583 echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6
4584 if test $ac_cv_lib_c_pthread_mutex_init = yes; then
4585 tcl_ok=yes
4586 else
4587 tcl_ok=no
4588 fi
4589
4590 if test "$tcl_ok" = "no"; then
4591 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
4592 echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6
4593 if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lc_r $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 #ifdef __cplusplus
4607 extern "C"
4608 #endif
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4611 char pthread_mutex_init ();
4612 int
4613 main ()
4614 {
4615 pthread_mutex_init ();
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 rm -f conftest.$ac_objext conftest$ac_exeext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622 (eval $ac_link) 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag"
4630 || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest$ac_exeext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_lib_c_r_pthread_mutex_init=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_cv_lib_c_r_pthread_mutex_init=no
4648 fi
4649 rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4652 fi
4653 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
4654 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6
4655 if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
4656 tcl_ok=yes
4657 else
4658 tcl_ok=no
4659 fi
4660
4661 if test "$tcl_ok" = "yes"; then
4662 # The space is needed
4663 THREADS_LIBS=" -pthread"
4664 else
4665 TCL_THREADS=0
4666 { echo "$as_me:$LINENO: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&5
4667 echo "$as_me: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&2;}
4668 fi
4669 fi
4670 fi
4671 fi
4672
4673 # Does the pthread-implementation provide
4674 # 'pthread_attr_setstacksize' ?
4675
4676 ac_saved_libs=$LIBS
4677 LIBS="$LIBS $THREADS_LIBS"
4678
4679
4680 for ac_func in pthread_attr_setstacksize pthread_atfork
4681 do
4682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4683 echo "$as_me:$LINENO: checking for $ac_func" >&5
4684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4685 if eval "test \"\${$as_ac_var+set}\" = set"; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4696 #define $ac_func innocuous_$ac_func
4697
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func (); below.
4700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701 <limits.h> exists even on freestanding compilers. */
4702
4703 #ifdef __STDC__
4704 # include <limits.h>
4705 #else
4706 # include <assert.h>
4707 #endif
4708
4709 #undef $ac_func
4710
4711 /* Override any gcc2 internal prototype to avoid an error. */
4712 #ifdef __cplusplus
4713 extern "C"
4714 {
4715 #endif
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4718 char $ac_func ();
4719 /* The GNU C library defines this for functions which it implements
4720 to always fail with ENOSYS. Some functions are actually named
4721 something starting with __ and the normal name is an alias. */
4722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4723 choke me
4724 #else
4725 char (*f) () = $ac_func;
4726 #endif
4727 #ifdef __cplusplus
4728 }
4729 #endif
4730
4731 int
4732 main ()
4733 {
4734 return f != $ac_func;
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext conftest$ac_exeext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741 (eval $ac_link) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest$ac_exeext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 eval "$as_ac_var=yes"
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 eval "$as_ac_var=no"
4767 fi
4768 rm -f conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770 fi
4771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4773 if test `eval echo '${'$as_ac_var'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4776 _ACEOF
4777
4778 fi
4779 done
4780
4781 LIBS=$ac_saved_libs
4782 else
4783 TCL_THREADS=0
4784 fi
4785 # Do checking message here to not mess up interleaved configure output
4786 echo "$as_me:$LINENO: checking for building with threads" >&5
4787 echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
4788 if test "${TCL_THREADS}" = 1; then
4789
4790 cat >>confdefs.h <<\_ACEOF
4791 #define TCL_THREADS 1
4792 _ACEOF
4793
4794 if test "${tcl_threaded_core}" = 1; then
4795 echo "$as_me:$LINENO: result: yes (threaded core)" >&5
4796 echo "${ECHO_T}yes (threaded core)" >&6
4797 else
4798 echo "$as_me:$LINENO: result: yes" >&5
4799 echo "${ECHO_T}yes" >&6
4800 fi
4801 else
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4804 fi
4805
4806
4807
4808
4809 #------------------------------------------------------------------------
4810 # Embedded configuration information, encoding to use for the values, TIP #59
4811 #------------------------------------------------------------------------
4812
4813
4814
4815 # Check whether --with-encoding or --without-encoding was given.
4816 if test "${with_encoding+set}" = set; then
4817 withval="$with_encoding"
4818 with_tcencoding=${withval}
4819 fi;
4820
4821 if test x"${with_tcencoding}" != x ; then
4822
4823 cat >>confdefs.h <<_ACEOF
4824 #define TCL_CFGVAL_ENCODING "${with_tcencoding}"
4825 _ACEOF
4826
4827 else
4828
4829 cat >>confdefs.h <<\_ACEOF
4830 #define TCL_CFGVAL_ENCODING "iso8859-1"
4831 _ACEOF
4832
4833 fi
4834
4835
4836 #--------------------------------------------------------------------
4837 # Look for libraries that we will need when compiling the Tcl shell
4838 #--------------------------------------------------------------------
4839
4840
4841 #--------------------------------------------------------------------
4842 # On a few very rare systems, all of the libm.a stuff is
4843 # already in libc.a. Set compiler flags accordingly.
4844 #--------------------------------------------------------------------
4845
4846 echo "$as_me:$LINENO: checking for sin" >&5
4847 echo $ECHO_N "checking for sin... $ECHO_C" >&6
4848 if test "${ac_cv_func_sin+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
4858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4859 #define sin innocuous_sin
4860
4861 /* System header to define __stub macros and hopefully few prototypes,
4862 which can conflict with char sin (); below.
4863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864 <limits.h> exists even on freestanding compilers. */
4865
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871
4872 #undef sin
4873
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 #ifdef __cplusplus
4876 extern "C"
4877 {
4878 #endif
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4881 char sin ();
4882 /* The GNU C library defines this for functions which it implements
4883 to always fail with ENOSYS. Some functions are actually named
4884 something starting with __ and the normal name is an alias. */
4885 #if defined (__stub_sin) || defined (__stub___sin)
4886 choke me
4887 #else
4888 char (*f) () = sin;
4889 #endif
4890 #ifdef __cplusplus
4891 }
4892 #endif
4893
4894 int
4895 main ()
4896 {
4897 return f != sin;
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest$ac_exeext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_cv_func_sin=yes
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_cv_func_sin=no
4930 fi
4931 rm -f conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4935 echo "${ECHO_T}$ac_cv_func_sin" >&6
4936 if test $ac_cv_func_sin = yes; then
4937 MATH_LIBS=""
4938 else
4939 MATH_LIBS="-lm"
4940 fi
4941
4942
4943 #--------------------------------------------------------------------
4944 # Interactive UNIX requires -linet instead of -lsocket, plus it
4945 # needs net/errno.h to define the socket-related error codes.
4946 #--------------------------------------------------------------------
4947
4948 echo "$as_me:$LINENO: checking for main in -linet" >&5
4949 echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
4950 if test "${ac_cv_lib_inet_main+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 ac_check_lib_save_LIBS=$LIBS
4954 LIBS="-linet $LIBS"
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961
4962
4963 int
4964 main ()
4965 {
4966 main ();
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973 (eval $ac_link) 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -z "$ac_c_werror_flag"
4981 || test ! -s conftest.err'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; } &&
4987 { ac_try='test -s conftest$ac_exeext'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; }; then
4993 ac_cv_lib_inet_main=yes
4994 else
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_cv_lib_inet_main=no
4999 fi
5000 rm -f conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
5002 LIBS=$ac_check_lib_save_LIBS
5003 fi
5004 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
5005 echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
5006 if test $ac_cv_lib_inet_main = yes; then
5007 LIBS="$LIBS -linet"
5008 fi
5009
5010 if test "${ac_cv_header_net_errno_h+set}" = set; then
5011 echo "$as_me:$LINENO: checking for net/errno.h" >&5
5012 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
5013 if test "${ac_cv_header_net_errno_h+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 fi
5016 echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
5017 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
5018 else
5019 # Is the header compilable?
5020 echo "$as_me:$LINENO: checking net/errno.h usability" >&5
5021 echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 $ac_includes_default
5029 #include <net/errno.h>
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5033 (eval $ac_compile) 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 (eval $ac_try) 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest.$ac_objext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_header_compiler=yes
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 ac_header_compiler=no
5059 fi
5060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5062 echo "${ECHO_T}$ac_header_compiler" >&6
5063
5064 # Is the header present?
5065 echo "$as_me:$LINENO: checking net/errno.h presence" >&5
5066 echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <net/errno.h>
5074 _ACEOF
5075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_c_preproc_warn_flag
5085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5086 else
5087 ac_cpp_err=
5088 fi
5089 else
5090 ac_cpp_err=yes
5091 fi
5092 if test -z "$ac_cpp_err"; then
5093 ac_header_preproc=yes
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 ac_header_preproc=no
5099 fi
5100 rm -f conftest.err conftest.$ac_ext
5101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5102 echo "${ECHO_T}$ac_header_preproc" >&6
5103
5104 # So? What about this header?
5105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5106 yes:no: )
5107 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
5108 echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
5110 echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
5111 ac_header_preproc=yes
5112 ;;
5113 no:yes:* )
5114 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
5115 echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5
5117 echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
5119 echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5
5121 echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
5123 echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
5125 echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
5126 (
5127 cat <<\_ASBOX
5128 ## ------------------------------ ##
5129 ## Report this to the tcl lists. ##
5130 ## ------------------------------ ##
5131 _ASBOX
5132 ) |
5133 sed "s/^/$as_me: WARNING: /" >&2
5134 ;;
5135 esac
5136 echo "$as_me:$LINENO: checking for net/errno.h" >&5
5137 echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
5138 if test "${ac_cv_header_net_errno_h+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 ac_cv_header_net_errno_h=$ac_header_preproc
5142 fi
5143 echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
5144 echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
5145
5146 fi
5147 if test $ac_cv_header_net_errno_h = yes; then
5148
5149
5150 cat >>confdefs.h <<\_ACEOF
5151 #define HAVE_NET_ERRNO_H 1
5152 _ACEOF
5153
5154 fi
5155
5156
5157
5158 #--------------------------------------------------------------------
5159 # Check for the existence of the -lsocket and -lnsl libraries.
5160 # The order here is important, so that they end up in the right
5161 # order in the command line generated by make. Here are some
5162 # special considerations:
5163 # 1. Use "connect" and "accept" to check for -lsocket, and
5164 # "gethostbyname" to check for -lnsl.
5165 # 2. Use each function name only once: can't redo a check because
5166 # autoconf caches the results of the last check and won't redo it.
5167 # 3. Use -lnsl and -lsocket only if they supply procedures that
5168 # aren't already present in the normal libraries. This is because
5169 # IRIX 5.2 has libraries, but they aren't needed and they're
5170 # bogus: they goof up name resolution if used.
5171 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5172 # To get around this problem, check for both libraries together
5173 # if -lsocket doesn't work by itself.
5174 #--------------------------------------------------------------------
5175
5176 tcl_checkBoth=0
5177 echo "$as_me:$LINENO: checking for connect" >&5
5178 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5179 if test "${ac_cv_func_connect+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5190 #define connect innocuous_connect
5191
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char connect (); below.
5194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 <limits.h> exists even on freestanding compilers. */
5196
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202
5203 #undef connect
5204
5205 /* Override any gcc2 internal prototype to avoid an error. */
5206 #ifdef __cplusplus
5207 extern "C"
5208 {
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212 char connect ();
5213 /* The GNU C library defines this for functions which it implements
5214 to always fail with ENOSYS. Some functions are actually named
5215 something starting with __ and the normal name is an alias. */
5216 #if defined (__stub_connect) || defined (__stub___connect)
5217 choke me
5218 #else
5219 char (*f) () = connect;
5220 #endif
5221 #ifdef __cplusplus
5222 }
5223 #endif
5224
5225 int
5226 main ()
5227 {
5228 return f != connect;
5229 ;
5230 return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 (eval $ac_try) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_func_connect=yes
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_func_connect=no
5261 fi
5262 rm -f conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5266 echo "${ECHO_T}$ac_cv_func_connect" >&6
5267 if test $ac_cv_func_connect = yes; then
5268 tcl_checkSocket=0
5269 else
5270 tcl_checkSocket=1
5271 fi
5272
5273 if test "$tcl_checkSocket" = 1; then
5274 echo "$as_me:$LINENO: checking for setsockopt" >&5
5275 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
5276 if test "${ac_cv_func_setsockopt+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
5286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5287 #define setsockopt innocuous_setsockopt
5288
5289 /* System header to define __stub macros and hopefully few prototypes,
5290 which can conflict with char setsockopt (); below.
5291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292 <limits.h> exists even on freestanding compilers. */
5293
5294 #ifdef __STDC__
5295 # include <limits.h>
5296 #else
5297 # include <assert.h>
5298 #endif
5299
5300 #undef setsockopt
5301
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 #ifdef __cplusplus
5304 extern "C"
5305 {
5306 #endif
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5309 char setsockopt ();
5310 /* The GNU C library defines this for functions which it implements
5311 to always fail with ENOSYS. Some functions are actually named
5312 something starting with __ and the normal name is an alias. */
5313 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5314 choke me
5315 #else
5316 char (*f) () = setsockopt;
5317 #endif
5318 #ifdef __cplusplus
5319 }
5320 #endif
5321
5322 int
5323 main ()
5324 {
5325 return f != setsockopt;
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 rm -f conftest.$ac_objext conftest$ac_exeext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332 (eval $ac_link) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_func_setsockopt=yes
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_cv_func_setsockopt=no
5358 fi
5359 rm -f conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 fi
5362 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
5363 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
5364 if test $ac_cv_func_setsockopt = yes; then
5365 :
5366 else
5367 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
5368 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
5369 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 ac_check_lib_save_LIBS=$LIBS
5373 LIBS="-lsocket $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 #ifdef __cplusplus
5383 extern "C"
5384 #endif
5385 /* We use char because int might match the return type of a gcc2
5386 builtin and then its argument prototype would still apply. */
5387 char setsockopt ();
5388 int
5389 main ()
5390 {
5391 setsockopt ();
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest$ac_exeext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_lib_socket_setsockopt=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_cv_lib_socket_setsockopt=no
5424 fi
5425 rm -f conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5427 LIBS=$ac_check_lib_save_LIBS
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
5430 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
5431 if test $ac_cv_lib_socket_setsockopt = yes; then
5432 LIBS="$LIBS -lsocket"
5433 else
5434 tcl_checkBoth=1
5435 fi
5436
5437 fi
5438
5439 fi
5440 if test "$tcl_checkBoth" = 1; then
5441 tk_oldLibs=$LIBS
5442 LIBS="$LIBS -lsocket -lnsl"
5443 echo "$as_me:$LINENO: checking for accept" >&5
5444 echo $ECHO_N "checking for accept... $ECHO_C" >&6
5445 if test "${ac_cv_func_accept+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
5455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5456 #define accept innocuous_accept
5457
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char accept (); below.
5460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5461 <limits.h> exists even on freestanding compilers. */
5462
5463 #ifdef __STDC__
5464 # include <limits.h>
5465 #else
5466 # include <assert.h>
5467 #endif
5468
5469 #undef accept
5470
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 #ifdef __cplusplus
5473 extern "C"
5474 {
5475 #endif
5476 /* We use char because int might match the return type of a gcc2
5477 builtin and then its argument prototype would still apply. */
5478 char accept ();
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_accept) || defined (__stub___accept)
5483 choke me
5484 #else
5485 char (*f) () = accept;
5486 #endif
5487 #ifdef __cplusplus
5488 }
5489 #endif
5490
5491 int
5492 main ()
5493 {
5494 return f != accept;
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest$ac_exeext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_func_accept=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_cv_func_accept=no
5527 fi
5528 rm -f conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 fi
5531 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
5532 echo "${ECHO_T}$ac_cv_func_accept" >&6
5533 if test $ac_cv_func_accept = yes; then
5534 tcl_checkNsl=0
5535 else
5536 LIBS=$tk_oldLibs
5537 fi
5538
5539 fi
5540 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5541 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5542 if test "${ac_cv_func_gethostbyname+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5553 #define gethostbyname innocuous_gethostbyname
5554
5555 /* System header to define __stub macros and hopefully few prototypes,
5556 which can conflict with char gethostbyname (); below.
5557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5558 <limits.h> exists even on freestanding compilers. */
5559
5560 #ifdef __STDC__
5561 # include <limits.h>
5562 #else
5563 # include <assert.h>
5564 #endif
5565
5566 #undef gethostbyname
5567
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 #ifdef __cplusplus
5570 extern "C"
5571 {
5572 #endif
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5575 char gethostbyname ();
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5580 choke me
5581 #else
5582 char (*f) () = gethostbyname;
5583 #endif
5584 #ifdef __cplusplus
5585 }
5586 #endif
5587
5588 int
5589 main ()
5590 {
5591 return f != gethostbyname;
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_func_gethostbyname=yes
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_func_gethostbyname=no
5624 fi
5625 rm -f conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5629 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5630 if test $ac_cv_func_gethostbyname = yes; then
5631 :
5632 else
5633 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5634 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5635 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 ac_check_lib_save_LIBS=$LIBS
5639 LIBS="-lnsl $LIBS"
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 #ifdef __cplusplus
5649 extern "C"
5650 #endif
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653 char gethostbyname ();
5654 int
5655 main ()
5656 {
5657 gethostbyname ();
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_nsl_gethostbyname=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 ac_cv_lib_nsl_gethostbyname=no
5690 fi
5691 rm -f conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_check_lib_save_LIBS
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5696 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5697 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5698 LIBS="$LIBS -lnsl"
5699 fi
5700
5701 fi
5702
5703
5704
5705 # Add the threads support libraries
5706 LIBS="$LIBS$THREADS_LIBS"
5707
5708
5709 echo "$as_me:$LINENO: checking how to build libraries" >&5
5710 echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
5711 # Check whether --enable-shared or --disable-shared was given.
5712 if test "${enable_shared+set}" = set; then
5713 enableval="$enable_shared"
5714 tcl_ok=$enableval
5715 else
5716 tcl_ok=yes
5717 fi;
5718 if test "$tcl_ok" = "yes" ; then
5719 echo "$as_me:$LINENO: result: shared" >&5
5720 echo "${ECHO_T}shared" >&6
5721 SHARED_BUILD=1
5722 else
5723 echo "$as_me:$LINENO: result: static" >&5
5724 echo "${ECHO_T}static" >&6
5725 SHARED_BUILD=0
5726
5727 cat >>confdefs.h <<\_ACEOF
5728 #define STATIC_BUILD 1
5729 _ACEOF
5730
5731 fi
5732
5733
5734
5735 #--------------------------------------------------------------------
5736 # Look for a native installed tclsh binary (if available)
5737 # If one cannot be found then use the binary we build (fails for
5738 # cross compiling). This is used for NATIVE_TCLSH in Makefile.
5739 #--------------------------------------------------------------------
5740
5741
5742 echo "$as_me:$LINENO: checking for tclsh" >&5
5743 echo $ECHO_N "checking for tclsh... $ECHO_C" >&6
5744 if test "${ac_cv_path_tclsh+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747
5748 search_path=`echo ${PATH} | sed -e 's/:/ /g'`
5749 for dir in $search_path ; do
5750 for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \
5751 `ls -r $dir/tclsh* 2> /dev/null` ; do
5752 if test x"$ac_cv_path_tclsh" = x ; then
5753 if test -f "$j" ; then
5754 ac_cv_path_tclsh=$j
5755 break
5756 fi
5757 fi
5758 done
5759 done
5760
5761 fi
5762
5763
5764 if test -f "$ac_cv_path_tclsh" ; then
5765 TCLSH_PROG="$ac_cv_path_tclsh"
5766 echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5
5767 echo "${ECHO_T}$TCLSH_PROG" >&6
5768 else
5769 # It is not an error if an installed version of Tcl can't be located.
5770 TCLSH_PROG=""
5771 echo "$as_me:$LINENO: result: No tclsh found on PATH" >&5
5772 echo "${ECHO_T}No tclsh found on PATH" >&6
5773 fi
5774
5775
5776 if test "$TCLSH_PROG" = ""; then
5777 TCLSH_PROG='./${TCL_EXE}'
5778 fi
5779
5780 #------------------------------------------------------------------------
5781 # Add stuff for zlib
5782 #------------------------------------------------------------------------
5783
5784 zlib_ok=yes
5785 if test "${ac_cv_header_zlib_h+set}" = set; then
5786 echo "$as_me:$LINENO: checking for zlib.h" >&5
5787 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5788 if test "${ac_cv_header_zlib_h+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5792 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5793 else
5794 # Is the header compilable?
5795 echo "$as_me:$LINENO: checking zlib.h usability" >&5
5796 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5804 #include <zlib.h>
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_header_compiler=yes
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_header_compiler=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5837 echo "${ECHO_T}$ac_header_compiler" >&6
5838
5839 # Is the header present?
5840 echo "$as_me:$LINENO: checking zlib.h presence" >&5
5841 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <zlib.h>
5849 _ACEOF
5850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev/null; then
5858 if test -s conftest.err; then
5859 ac_cpp_err=$ac_c_preproc_warn_flag
5860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5861 else
5862 ac_cpp_err=
5863 fi
5864 else
5865 ac_cpp_err=yes
5866 fi
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_header_preproc=no
5874 fi
5875 rm -f conftest.err conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5877 echo "${ECHO_T}$ac_header_preproc" >&6
5878
5879 # So? What about this header?
5880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5881 yes:no: )
5882 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5883 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5884 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5885 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5886 ac_header_preproc=yes
5887 ;;
5888 no:yes:* )
5889 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5894 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
5896 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5898 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5899 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5900 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5901 (
5902 cat <<\_ASBOX
5903 ## ------------------------------ ##
5904 ## Report this to the tcl lists. ##
5905 ## ------------------------------ ##
5906 _ASBOX
5907 ) |
5908 sed "s/^/$as_me: WARNING: /" >&2
5909 ;;
5910 esac
5911 echo "$as_me:$LINENO: checking for zlib.h" >&5
5912 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5913 if test "${ac_cv_header_zlib_h+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 ac_cv_header_zlib_h=$ac_header_preproc
5917 fi
5918 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5919 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5920
5921 fi
5922 if test $ac_cv_header_zlib_h = yes; then
5923
5924 echo "$as_me:$LINENO: checking for gz_header" >&5
5925 echo $ECHO_N "checking for gz_header... $ECHO_C" >&6
5926 if test "${ac_cv_type_gz_header+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <zlib.h>
5936
5937 int
5938 main ()
5939 {
5940 if ((gz_header *) 0)
5941 return 0;
5942 if (sizeof (gz_header))
5943 return 0;
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_type_gz_header=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_type_gz_header=no
5976 fi
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 echo "$as_me:$LINENO: result: $ac_cv_type_gz_header" >&5
5980 echo "${ECHO_T}$ac_cv_type_gz_header" >&6
5981 if test $ac_cv_type_gz_header = yes; then
5982 :
5983 else
5984 zlib_ok=no
5985 fi
5986
5987 else
5988
5989 zlib_ok=no
5990 fi
5991
5992
5993 if test $zlib_ok = yes; then
5994
5995 echo "$as_me:$LINENO: checking for library containing deflateSetHeader" >&5
5996 echo $ECHO_N "checking for library containing deflateSetHeader... $ECHO_C" >&6
5997 if test "${ac_cv_search_deflateSetHeader+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 ac_func_search_save_LIBS=$LIBS
6001 ac_cv_search_deflateSetHeader=no
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6015 char deflateSetHeader ();
6016 int
6017 main ()
6018 {
6019 deflateSetHeader ();
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest$ac_exeext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_search_deflateSetHeader="none required"
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 if test "$ac_cv_search_deflateSetHeader" = no; then
6055 for ac_lib in z; do
6056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 #ifdef __cplusplus
6066 extern "C"
6067 #endif
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6070 char deflateSetHeader ();
6071 int
6072 main ()
6073 {
6074 deflateSetHeader ();
6075 ;
6076 return 0;
6077 }
6078 _ACEOF
6079 rm -f conftest.$ac_objext conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest$ac_exeext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_search_deflateSetHeader="-l$ac_lib"
6102 break
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107 fi
6108 rm -f conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6110 done
6111 fi
6112 LIBS=$ac_func_search_save_LIBS
6113 fi
6114 echo "$as_me:$LINENO: result: $ac_cv_search_deflateSetHeader" >&5
6115 echo "${ECHO_T}$ac_cv_search_deflateSetHeader" >&6
6116 if test "$ac_cv_search_deflateSetHeader" != no; then
6117 test "$ac_cv_search_deflateSetHeader" = "none required" || LIBS="$ac_cv_search_deflateSetHeader $LIBS"
6118
6119 else
6120
6121 zlib_ok=no
6122
6123 fi
6124
6125 fi
6126
6127 if test $zlib_ok = no; then
6128
6129 ZLIB_OBJS=\${ZLIB_OBJS}
6130
6131 ZLIB_SRCS=\${ZLIB_SRCS}
6132
6133 ZLIB_INCLUDE=-I\${ZLIB_DIR}
6134
6135
6136 fi
6137
6138
6139 cat >>confdefs.h <<\_ACEOF
6140 #define HAVE_ZLIB 1
6141 _ACEOF
6142
6143
6144 #--------------------------------------------------------------------
6145 # The statements below define a collection of compile flags. This
6146 # macro depends on the value of SHARED_BUILD, and should be called
6147 # after SC_ENABLE_SHARED checks the configure switches.
6148 #--------------------------------------------------------------------
6149
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153 echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155 if test "${ac_cv_prog_RANLIB+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174
6175 fi
6176 fi
6177 RANLIB=$ac_cv_prog_RANLIB
6178 if test -n "$RANLIB"; then
6179 echo "$as_me:$LINENO: result: $RANLIB" >&5
6180 echo "${ECHO_T}$RANLIB" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6184 fi
6185
6186 fi
6187 if test -z "$ac_cv_prog_RANLIB"; then
6188 ac_ct_RANLIB=$RANLIB
6189 # Extract the first word of "ranlib", so it can be a program name with args.
6190 set dummy ranlib; ac_word=$2
6191 echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 if test -n "$ac_ct_RANLIB"; then
6197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_ac_ct_RANLIB="ranlib"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212
6213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6214 fi
6215 fi
6216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217 if test -n "$ac_ct_RANLIB"; then
6218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6220 else
6221 echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6
6223 fi
6224
6225 RANLIB=$ac_ct_RANLIB
6226 else
6227 RANLIB="$ac_cv_prog_RANLIB"
6228 fi
6229
6230
6231
6232 # Step 0.a: Enable 64 bit support?
6233
6234 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
6235 echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6
6236 # Check whether --enable-64bit or --disable-64bit was given.
6237 if test "${enable_64bit+set}" = set; then
6238 enableval="$enable_64bit"
6239 do64bit=$enableval
6240 else
6241 do64bit=no
6242 fi;
6243 echo "$as_me:$LINENO: result: $do64bit" >&5
6244 echo "${ECHO_T}$do64bit" >&6
6245
6246 # Step 0.b: Enable Solaris 64 bit VIS support?
6247
6248 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
6249 echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6
6250 # Check whether --enable-64bit-vis or --disable-64bit-vis was given.
6251 if test "${enable_64bit_vis+set}" = set; then
6252 enableval="$enable_64bit_vis"
6253 do64bitVIS=$enableval
6254 else
6255 do64bitVIS=no
6256 fi;
6257 echo "$as_me:$LINENO: result: $do64bitVIS" >&5
6258 echo "${ECHO_T}$do64bitVIS" >&6
6259 # Force 64bit on with VIS
6260 if test "$do64bitVIS" = "yes"; then
6261 do64bit=yes
6262 fi
6263
6264
6265 # Step 0.c: Check if visibility support is available. Do this here so
6266 # that platform specific alternatives can be used below if this fails.
6267
6268 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5
6269 echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6
6270 if test "${tcl_cv_cc_visibility_hidden+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273
6274 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281
6282 extern __attribute__((__visibility__("hidden"))) void f(void);
6283 void f(void) {}
6284 int
6285 main ()
6286 {
6287 f();
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag"
6302 || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 tcl_cv_cc_visibility_hidden=yes
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 tcl_cv_cc_visibility_hidden=no
6320 fi
6321 rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323 CFLAGS=$hold_cflags
6324 fi
6325 echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5
6326 echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6
6327 if test $tcl_cv_cc_visibility_hidden = yes; then
6328
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define MODULE_SCOPE extern __attribute__((__visibility__("hidden")))
6332 _ACEOF
6333
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define HAVE_HIDDEN 1
6337 _ACEOF
6338
6339
6340 fi
6341
6342
6343 # Step 0.d: Disable -rpath support?
6344
6345 echo "$as_me:$LINENO: checking if rpath support is requested" >&5
6346 echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6
6347 # Check whether --enable-rpath or --disable-rpath was given.
6348 if test "${enable_rpath+set}" = set; then
6349 enableval="$enable_rpath"
6350 doRpath=$enableval
6351 else
6352 doRpath=yes
6353 fi;
6354 echo "$as_me:$LINENO: result: $doRpath" >&5
6355 echo "${ECHO_T}$doRpath" >&6
6356
6357 # Step 1: set the variable "system" to hold the name and version number
6358 # for the system.
6359
6360
6361 echo "$as_me:$LINENO: checking system version" >&5
6362 echo $ECHO_N "checking system version... $ECHO_C" >&6
6363 if test "${tcl_cv_sys_version+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366
6367 if test -f /usr/lib/NextStep/software_version; then
6368 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
6369 else
6370 tcl_cv_sys_version=`uname -s`-`uname -r`
6371 if test "$?" -ne 0 ; then
6372 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
6373 echo "$as_me: WARNING: can't find uname command" >&2;}
6374 tcl_cv_sys_version=unknown
6375 else
6376 # Special check for weird MP-RAS system (uname returns weird
6377 # results, and the version is kept in special file).
6378
6379 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
6380 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
6381 fi
6382 if test "`uname -s`" = "AIX" ; then
6383 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6384 fi
6385 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6386 tcl_cv_sys_version=NetBSD-Debian
6387 fi
6388 fi
6389 fi
6390
6391 fi
6392 echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
6393 echo "${ECHO_T}$tcl_cv_sys_version" >&6
6394 system=$tcl_cv_sys_version
6395
6396
6397 # Step 2: check for existence of -ldl library. This is needed because
6398 # Linux can use either -ldl or -ldld for dynamic loading.
6399
6400 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6401 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405 ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-ldl $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 #ifdef __cplusplus
6416 extern "C"
6417 #endif
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6420 char dlopen ();
6421 int
6422 main ()
6423 {
6424 dlopen ();
6425 ;
6426 return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_lib_dl_dlopen=yes
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_cv_lib_dl_dlopen=no
6457 fi
6458 rm -f conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext conftest.$ac_ext
6460 LIBS=$ac_check_lib_save_LIBS
6461 fi
6462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6463 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6464 if test $ac_cv_lib_dl_dlopen = yes; then
6465 have_dl=yes
6466 else
6467 have_dl=no
6468 fi
6469
6470
6471 # Require ranlib early so we can override it in special cases below.
6472
6473
6474
6475 # Step 3: set configuration options based on system name and version.
6476
6477 do64bit_ok=no
6478 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6479 SHLIB_LD_LIBS='${LIBS}'
6480 LDFLAGS_ORIG="$LDFLAGS"
6481 # When ld needs options to work in 64-bit mode, put them in
6482 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6483 # is disabled by the user. [Bug 1016796]
6484 LDFLAGS_ARCH=""
6485 UNSHARED_LIB_SUFFIX=""
6486 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
6487 ECHO_VERSION='`echo ${VERSION}`'
6488 TCL_LIB_VERSIONS_OK=ok
6489 CFLAGS_DEBUG=-g
6490 if test "$GCC" = yes; then
6491
6492 CFLAGS_OPTIMIZE=-O2
6493 CFLAGS_WARNING="-Wall -Wpointer-arith"
6494
6495 else
6496
6497 CFLAGS_OPTIMIZE=-O
6498 CFLAGS_WARNING=""
6499
6500 fi
6501
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}ar; ac_word=$2
6505 echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507 if test "${ac_cv_prog_AR+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 if test -n "$AR"; then
6511 ac_cv_prog_AR="$AR" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_AR="${ac_tool_prefix}ar"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526
6527 fi
6528 fi
6529 AR=$ac_cv_prog_AR
6530 if test -n "$AR"; then
6531 echo "$as_me:$LINENO: result: $AR" >&5
6532 echo "${ECHO_T}$AR" >&6
6533 else
6534 echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6
6536 fi
6537
6538 fi
6539 if test -z "$ac_cv_prog_AR"; then
6540 ac_ct_AR=$AR
6541 # Extract the first word of "ar", so it can be a program name with args.
6542 set dummy ar; ac_word=$2
6543 echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6545 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 if test -n "$ac_ct_AR"; then
6549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_ac_ct_AR="ar"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564
6565 fi
6566 fi
6567 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6568 if test -n "$ac_ct_AR"; then
6569 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6570 echo "${ECHO_T}$ac_ct_AR" >&6
6571 else
6572 echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6
6574 fi
6575
6576 AR=$ac_ct_AR
6577 else
6578 AR="$ac_cv_prog_AR"
6579 fi
6580
6581 STLIB_LD='${AR} cr'
6582 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6583 PLAT_OBJS=""
6584 PLAT_SRCS=""
6585 LDAIX_SRC=""
6586 if test "x${SHLIB_VERSION}" = x; then
6587 SHLIB_VERSION=".1.0"
6588 else
6589 SHLIB_VERSION=".${SHLIB_VERSION}"
6590 fi
6591
6592 case $system in
6593 AIX-*)
6594 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then
6595
6596 # AIX requires the _r compiler when gcc isn't being used
6597 case "${CC}" in
6598 *_r|*_r\ *)
6599 # ok ...
6600 ;;
6601 *)
6602 # Make sure only first arg gets _r
6603 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6604 ;;
6605 esac
6606 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
6607 echo "${ECHO_T}Using $CC for compiling with threads" >&6
6608
6609 fi
6610
6611 LIBS="$LIBS -lc"
6612 SHLIB_CFLAGS=""
6613 SHLIB_SUFFIX=".so"
6614
6615 DL_OBJS="tclLoadDl.o"
6616 LD_LIBRARY_PATH_VAR="LIBPATH"
6617
6618 # ldAix No longer needed with use of -bexpall/-brtl
6619 # but some extensions may still reference it
6620 LDAIX_SRC='$(UNIX_DIR)/ldAix'
6621
6622 # Check to enable 64-bit flags for compiler/linker
6623 if test "$do64bit" = yes; then
6624
6625 if test "$GCC" = yes; then
6626
6627 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
6628 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6629
6630 else
6631
6632 do64bit_ok=yes
6633 CFLAGS="$CFLAGS -q64"
6634 LDFLAGS_ARCH="-q64"
6635 RANLIB="${RANLIB} -X64"
6636 AR="${AR} -X64"
6637 SHLIB_LD_FLAGS="-b64"
6638
6639 fi
6640
6641
6642 fi
6643
6644
6645 if test "`uname -m`" = ia64; then
6646
6647 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6648 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6649 # AIX-5 has dl* in libc.so
6650 DL_LIBS=""
6651 if test "$GCC" = yes; then
6652
6653 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6654
6655 else
6656
6657 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
6658
6659 fi
6660
6661 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6662
6663 else
6664
6665 if test "$GCC" = yes; then
6666
6667 SHLIB_LD='${CC} -shared -Wl,-bexpall'
6668
6669 else
6670
6671 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
6672 LDFLAGS="$LDFLAGS -brtl"
6673
6674 fi
6675
6676 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6677 DL_LIBS="-ldl"
6678 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6679 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6680
6681 fi
6682
6683 ;;
6684 BeOS*)
6685 SHLIB_CFLAGS="-fPIC"
6686 SHLIB_LD='${CC} -nostart'
6687 SHLIB_SUFFIX=".so"
6688 DL_OBJS="tclLoadDl.o"
6689 DL_LIBS="-ldl"
6690
6691 #-----------------------------------------------------------
6692 # Check for inet_ntoa in -lbind, for BeOS (which also needs
6693 # -lsocket, even if the network functions are in -lnet which
6694 # is always linked to, for compatibility.
6695 #-----------------------------------------------------------
6696 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
6697 echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6
6698 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 ac_check_lib_save_LIBS=$LIBS
6702 LIBS="-lbind $LIBS"
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716 char inet_ntoa ();
6717 int
6718 main ()
6719 {
6720 inet_ntoa ();
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_lib_bind_inet_ntoa=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ac_cv_lib_bind_inet_ntoa=no
6753 fi
6754 rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_check_lib_save_LIBS
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
6759 echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6
6760 if test $ac_cv_lib_bind_inet_ntoa = yes; then
6761 LIBS="$LIBS -lbind -lsocket"
6762 fi
6763
6764 ;;
6765 BSD/OS-2.1*|BSD/OS-3*)
6766 SHLIB_CFLAGS=""
6767 SHLIB_LD="shlicc -r"
6768 SHLIB_SUFFIX=".so"
6769 DL_OBJS="tclLoadDl.o"
6770 DL_LIBS="-ldl"
6771 CC_SEARCH_FLAGS=""
6772 LD_SEARCH_FLAGS=""
6773 ;;
6774 BSD/OS-4.*)
6775 SHLIB_CFLAGS="-export-dynamic -fPIC"
6776 SHLIB_LD='${CC} -shared'
6777 SHLIB_SUFFIX=".so"
6778 DL_OBJS="tclLoadDl.o"
6779 DL_LIBS="-ldl"
6780 LDFLAGS="$LDFLAGS -export-dynamic"
6781 CC_SEARCH_FLAGS=""
6782 LD_SEARCH_FLAGS=""
6783 ;;
6784 CYGWIN_*|MINGW32_*|MSYS_*)
6785 SHLIB_CFLAGS="-fno-common"
6786 SHLIB_LD='${CC} -shared'
6787 SHLIB_SUFFIX=".dll"
6788 DL_OBJS="tclLoadDl.o"
6789 PLAT_OBJS='${CYGWIN_OBJS}'
6790 PLAT_SRCS='${CYGWIN_SRCS}'
6791 DL_LIBS="-ldl"
6792 CC_SEARCH_FLAGS=""
6793 LD_SEARCH_FLAGS=""
6794 echo "$as_me:$LINENO: checking for Cygwin version of gcc" >&5
6795 echo $ECHO_N "checking for Cygwin version of gcc... $ECHO_C" >&6
6796 if test "${ac_cv_cygwin+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805
6806 #ifdef __CYGWIN__
6807 #error cygwin
6808 #endif
6809
6810 int
6811 main ()
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_cygwin=no
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_cygwin=yes
6846 fi
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848
6849 fi
6850 echo "$as_me:$LINENO: result: $ac_cv_cygwin" >&5
6851 echo "${ECHO_T}$ac_cv_cygwin" >&6
6852 if test "$ac_cv_cygwin" = "no"; then
6853 { { echo "$as_me:$LINENO: error: ${CC} is not a cygwin compiler." >&5
6854 echo "$as_me: error: ${CC} is not a cygwin compiler." >&2;}
6855 { (exit 1); exit 1; }; }
6856 fi
6857 if test "x${TCL_THREADS}" = "x0"; then
6858 { { echo "$as_me:$LINENO: error: CYGWIN compile is only supported with --enable-threads" >&5
6859 echo "$as_me: error: CYGWIN compile is only supported with --enable-threads" >&2;}
6860 { (exit 1); exit 1; }; }
6861 fi
6862 do64bit_ok=yes
6863 if test "x${SHARED_BUILD}" = "x1"; then
6864 echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args --enable-64bit --host=x86_64-w64-mingw32"
6865 # The eval makes quoting arguments work.
6866 if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args --enable-64bit --host=x86_64-w64-mingw32; cd ../unix
6867 then :
6868 else
6869 { echo "configure: error: configure failed for ../win" 1>&2; exit 1; }
6870 fi
6871 fi
6872 ;;
6873 dgux*)
6874 SHLIB_CFLAGS="-K PIC"
6875 SHLIB_LD='${CC} -G'
6876 SHLIB_LD_LIBS=""
6877 SHLIB_SUFFIX=".so"
6878 DL_OBJS="tclLoadDl.o"
6879 DL_LIBS="-ldl"
6880 CC_SEARCH_FLAGS=""
6881 LD_SEARCH_FLAGS=""
6882 ;;
6883 Haiku*)
6884 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6885 SHLIB_CFLAGS="-fPIC"
6886 SHLIB_SUFFIX=".so"
6887 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
6888 DL_OBJS="tclLoadDl.o"
6889 DL_LIBS="-lroot"
6890 echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5
6891 echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6
6892 if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 ac_check_lib_save_LIBS=$LIBS
6896 LIBS="-lnetwork $LIBS"
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 #ifdef __cplusplus
6906 extern "C"
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6910 char inet_ntoa ();
6911 int
6912 main ()
6913 {
6914 inet_ntoa ();
6915 ;
6916 return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921 (eval $ac_link) 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_lib_network_inet_ntoa=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_lib_network_inet_ntoa=no
6947 fi
6948 rm -f conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5
6953 echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6
6954 if test $ac_cv_lib_network_inet_ntoa = yes; then
6955 LIBS="$LIBS -lnetwork"
6956 fi
6957
6958 ;;
6959 HP-UX-*.11.*)
6960 # Use updated header definitions where possible
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define _XOPEN_SOURCE_EXTENDED 1
6964 _ACEOF
6965
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define _XOPEN_SOURCE 1
6969 _ACEOF
6970
6971 LIBS="$LIBS -lxnet" # Use the XOPEN network library
6972
6973 if test "`uname -m`" = ia64; then
6974
6975 SHLIB_SUFFIX=".so"
6976
6977 else
6978
6979 SHLIB_SUFFIX=".sl"
6980
6981 fi
6982
6983 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6984 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6985 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 ac_check_lib_save_LIBS=$LIBS
6989 LIBS="-ldld $LIBS"
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996
6997 /* Override any gcc2 internal prototype to avoid an error. */
6998 #ifdef __cplusplus
6999 extern "C"
7000 #endif
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char shl_load ();
7004 int
7005 main ()
7006 {
7007 shl_load ();
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_lib_dld_shl_load=yes
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_lib_dld_shl_load=no
7040 fi
7041 rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 LIBS=$ac_check_lib_save_LIBS
7044 fi
7045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7046 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7047 if test $ac_cv_lib_dld_shl_load = yes; then
7048 tcl_ok=yes
7049 else
7050 tcl_ok=no
7051 fi
7052
7053 if test "$tcl_ok" = yes; then
7054
7055 SHLIB_CFLAGS="+z"
7056 SHLIB_LD="ld -b"
7057 DL_OBJS="tclLoadShl.o"
7058 DL_LIBS="-ldld"
7059 LDFLAGS="$LDFLAGS -Wl,-E"
7060 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7061 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7062 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7063
7064 fi
7065
7066 if test "$GCC" = yes; then
7067
7068 SHLIB_LD='${CC} -shared'
7069 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7070
7071 else
7072
7073 CFLAGS="$CFLAGS -z"
7074
7075 fi
7076
7077
7078 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7079 #CFLAGS="$CFLAGS +DAportable"
7080
7081 # Check to enable 64-bit flags for compiler/linker
7082 if test "$do64bit" = "yes"; then
7083
7084 if test "$GCC" = yes; then
7085
7086 case `${CC} -dumpmachine` in
7087 hppa64*)
7088 # 64-bit gcc in use. Fix flags for GNU ld.
7089 do64bit_ok=yes
7090 SHLIB_LD='${CC} -shared'
7091 if test $doRpath = yes; then
7092
7093 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7094 fi
7095
7096 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7097 ;;
7098 *)
7099 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
7100 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7101 ;;
7102 esac
7103
7104 else
7105
7106 do64bit_ok=yes
7107 CFLAGS="$CFLAGS +DD64"
7108 LDFLAGS_ARCH="+DD64"
7109
7110 fi
7111
7112
7113 fi
7114 ;;
7115 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7116 SHLIB_SUFFIX=".sl"
7117 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7118 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7119 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 ac_check_lib_save_LIBS=$LIBS
7123 LIBS="-ldld $LIBS"
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130
7131 /* Override any gcc2 internal prototype to avoid an error. */
7132 #ifdef __cplusplus
7133 extern "C"
7134 #endif
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7137 char shl_load ();
7138 int
7139 main ()
7140 {
7141 shl_load ();
7142 ;
7143 return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -z "$ac_c_werror_flag"
7156 || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try='test -s conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 ac_cv_lib_dld_shl_load=yes
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173 ac_cv_lib_dld_shl_load=no
7174 fi
7175 rm -f conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 LIBS=$ac_check_lib_save_LIBS
7178 fi
7179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7180 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7181 if test $ac_cv_lib_dld_shl_load = yes; then
7182 tcl_ok=yes
7183 else
7184 tcl_ok=no
7185 fi
7186
7187 if test "$tcl_ok" = yes; then
7188
7189 SHLIB_CFLAGS="+z"
7190 SHLIB_LD="ld -b"
7191 SHLIB_LD_LIBS=""
7192 DL_OBJS="tclLoadShl.o"
7193 DL_LIBS="-ldld"
7194 LDFLAGS="$LDFLAGS -Wl,-E"
7195 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7196 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7197 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7198
7199 fi
7200 ;;
7201 IRIX-5.*)
7202 SHLIB_CFLAGS=""
7203 SHLIB_LD="ld -shared -rdata_shared"
7204 SHLIB_SUFFIX=".so"
7205 DL_OBJS="tclLoadDl.o"
7206 DL_LIBS=""
7207 case $LIBOBJS in
7208 "mkstemp.$ac_objext" | \
7209 *" mkstemp.$ac_objext" | \
7210 "mkstemp.$ac_objext "* | \
7211 *" mkstemp.$ac_objext "* ) ;;
7212 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7213 esac
7214
7215 if test $doRpath = yes; then
7216
7217 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7218 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7219 fi
7220
7221 ;;
7222 IRIX-6.*)
7223 SHLIB_CFLAGS=""
7224 SHLIB_LD="ld -n32 -shared -rdata_shared"
7225 SHLIB_SUFFIX=".so"
7226 DL_OBJS="tclLoadDl.o"
7227 DL_LIBS=""
7228 case $LIBOBJS in
7229 "mkstemp.$ac_objext" | \
7230 *" mkstemp.$ac_objext" | \
7231 "mkstemp.$ac_objext "* | \
7232 *" mkstemp.$ac_objext "* ) ;;
7233 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7234 esac
7235
7236 if test $doRpath = yes; then
7237
7238 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7239 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7240 fi
7241
7242 if test "$GCC" = yes; then
7243
7244 CFLAGS="$CFLAGS -mabi=n32"
7245 LDFLAGS="$LDFLAGS -mabi=n32"
7246
7247 else
7248
7249 case $system in
7250 IRIX-6.3)
7251 # Use to build 6.2 compatible binaries on 6.3.
7252 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7253 ;;
7254 *)
7255 CFLAGS="$CFLAGS -n32"
7256 ;;
7257 esac
7258 LDFLAGS="$LDFLAGS -n32"
7259
7260 fi
7261
7262 ;;
7263 IRIX64-6.*)
7264 SHLIB_CFLAGS=""
7265 SHLIB_LD="ld -n32 -shared -rdata_shared"
7266 SHLIB_SUFFIX=".so"
7267 DL_OBJS="tclLoadDl.o"
7268 DL_LIBS=""
7269 case $LIBOBJS in
7270 "mkstemp.$ac_objext" | \
7271 *" mkstemp.$ac_objext" | \
7272 "mkstemp.$ac_objext "* | \
7273 *" mkstemp.$ac_objext "* ) ;;
7274 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7275 esac
7276
7277 if test $doRpath = yes; then
7278
7279 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7280 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7281 fi
7282
7283
7284 # Check to enable 64-bit flags for compiler/linker
7285
7286 if test "$do64bit" = yes; then
7287
7288 if test "$GCC" = yes; then
7289
7290 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
7291 echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7292
7293 else
7294
7295 do64bit_ok=yes
7296 SHLIB_LD="ld -64 -shared -rdata_shared"
7297 CFLAGS="$CFLAGS -64"
7298 LDFLAGS_ARCH="-64"
7299
7300 fi
7301
7302
7303 fi
7304
7305 ;;
7306 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7307 SHLIB_CFLAGS="-fPIC -fno-common"
7308 SHLIB_SUFFIX=".so"
7309
7310 CFLAGS_OPTIMIZE="-O2"
7311 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
7312 # when you inline the string and math operations. Turn this off to
7313 # get rid of the warnings.
7314 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
7315
7316 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7317 DL_OBJS="tclLoadDl.o"
7318 DL_LIBS="-ldl"
7319 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7320
7321 case $system in
7322 DragonFly-*|FreeBSD-*)
7323 if test "${TCL_THREADS}" = "1"; then
7324
7325 # The -pthread needs to go in the LDFLAGS, not LIBS
7326 LIBS=`echo $LIBS | sed s/-pthread//`
7327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7328 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7329 fi
7330
7331 ;;
7332 esac
7333
7334 if test $doRpath = yes; then
7335
7336 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7337 fi
7338
7339 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7340 if test "`uname -m`" = "alpha"; then
7341 CFLAGS="$CFLAGS -mieee"
7342 fi
7343
7344 if test $do64bit = yes; then
7345
7346 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
7347 echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6
7348 if test "${tcl_cv_cc_m64+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351
7352 hold_cflags=$CFLAGS
7353 CFLAGS="$CFLAGS -m64"
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360
7361 int
7362 main ()
7363 {
7364
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 tcl_cv_cc_m64=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 tcl_cv_cc_m64=no
7397 fi
7398 rm -f conftest.err conftest.$ac_objext \
7399 conftest$ac_exeext conftest.$ac_ext
7400 CFLAGS=$hold_cflags
7401 fi
7402 echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
7403 echo "${ECHO_T}$tcl_cv_cc_m64" >&6
7404 if test $tcl_cv_cc_m64 = yes; then
7405
7406 CFLAGS="$CFLAGS -m64"
7407 do64bit_ok=yes
7408
7409 fi
7410
7411
7412 fi
7413
7414
7415 # The combo of gcc + glibc has a bug related to inlining of
7416 # functions like strtod(). The -fno-builtin flag should address
7417 # this problem but it does not work. The -fno-inline flag is kind
7418 # of overkill but it works. Disable inlining only when one of the
7419 # files in compat/*.c is being linked in.
7420
7421 if test x"${USE_COMPAT}" != x; then
7422 CFLAGS="$CFLAGS -fno-inline"
7423 fi
7424
7425 ;;
7426 Lynx*)
7427 SHLIB_CFLAGS="-fPIC"
7428 SHLIB_SUFFIX=".so"
7429 CFLAGS_OPTIMIZE=-02
7430 SHLIB_LD='${CC} -shared'
7431 DL_OBJS="tclLoadDl.o"
7432 DL_LIBS="-mshared -ldl"
7433 LD_FLAGS="-Wl,--export-dynamic"
7434 if test $doRpath = yes; then
7435
7436 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7437 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7438 fi
7439
7440 ;;
7441 MP-RAS-02*)
7442 SHLIB_CFLAGS="-K PIC"
7443 SHLIB_LD='${CC} -G'
7444 SHLIB_LD_LIBS=""
7445 SHLIB_SUFFIX=".so"
7446 DL_OBJS="tclLoadDl.o"
7447 DL_LIBS="-ldl"
7448 CC_SEARCH_FLAGS=""
7449 LD_SEARCH_FLAGS=""
7450 ;;
7451 MP-RAS-*)
7452 SHLIB_CFLAGS="-K PIC"
7453 SHLIB_LD='${CC} -G'
7454 SHLIB_LD_LIBS=""
7455 SHLIB_SUFFIX=".so"
7456 DL_OBJS="tclLoadDl.o"
7457 DL_LIBS="-ldl"
7458 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7459 CC_SEARCH_FLAGS=""
7460 LD_SEARCH_FLAGS=""
7461 ;;
7462 OpenBSD-*)
7463 arch=`arch -s`
7464 case "$arch" in
7465 alpha|sparc64)
7466 SHLIB_CFLAGS="-fPIC"
7467 ;;
7468 *)
7469 SHLIB_CFLAGS="-fpic"
7470 ;;
7471 esac
7472 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7473 SHLIB_SUFFIX=".so"
7474 DL_OBJS="tclLoadDl.o"
7475 DL_LIBS=""
7476 if test $doRpath = yes; then
7477
7478 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7479 fi
7480
7481 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7482 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7483 LDFLAGS="-Wl,-export-dynamic"
7484 CFLAGS_OPTIMIZE="-O2"
7485 if test "${TCL_THREADS}" = "1"; then
7486
7487 # On OpenBSD: Compile with -pthread
7488 # Don't link with -lpthread
7489 LIBS=`echo $LIBS | sed s/-lpthread//`
7490 CFLAGS="$CFLAGS -pthread"
7491
7492 fi
7493
7494 # OpenBSD doesn't do version numbers with dots.
7495 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7496 TCL_LIB_VERSIONS_OK=nodots
7497 ;;
7498 NetBSD-*)
7499 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7500 SHLIB_CFLAGS="-fPIC"
7501 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7502 SHLIB_SUFFIX=".so"
7503 DL_OBJS="tclLoadDl.o"
7504 DL_LIBS=""
7505 LDFLAGS="$LDFLAGS -export-dynamic"
7506 if test $doRpath = yes; then
7507
7508 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7509 fi
7510
7511 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7512 if test "${TCL_THREADS}" = "1"; then
7513
7514 # The -pthread needs to go in the CFLAGS, not LIBS
7515 LIBS=`echo $LIBS | sed s/-pthread//`
7516 CFLAGS="$CFLAGS -pthread"
7517 LDFLAGS="$LDFLAGS -pthread"
7518
7519 fi
7520
7521 ;;
7522 Darwin-*)
7523 CFLAGS_OPTIMIZE="-O2"
7524 SHLIB_CFLAGS="-fno-common"
7525 # To avoid discrepancies between what headers configure sees during
7526 # preprocessing tests and compiling tests, move any -isysroot and
7527 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7528 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7529 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7530 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7531 CFLAGS="`echo " ${CFLAGS}" | \
7532 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7533 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7534 if test $do64bit = yes; then
7535
7536 case `arch` in
7537 ppc)
7538 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
7539 echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6
7540 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543
7544 hold_cflags=$CFLAGS
7545 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552
7553 int
7554 main ()
7555 {
7556
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext conftest$ac_exeext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563 (eval $ac_link) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 tcl_cv_cc_arch_ppc64=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 tcl_cv_cc_arch_ppc64=no
7589 fi
7590 rm -f conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 CFLAGS=$hold_cflags
7593 fi
7594 echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
7595 echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6
7596 if test $tcl_cv_cc_arch_ppc64 = yes; then
7597
7598 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7599 do64bit_ok=yes
7600
7601 fi
7602 ;;
7603 i386|x86_64)
7604 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
7605 echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6
7606 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609
7610 hold_cflags=$CFLAGS
7611 CFLAGS="$CFLAGS -arch x86_64"
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618
7619 int
7620 main ()
7621 {
7622
7623 ;
7624 return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629 (eval $ac_link) 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag"
7637 || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 tcl_cv_cc_arch_x86_64=yes
7650 else
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 tcl_cv_cc_arch_x86_64=no
7655 fi
7656 rm -f conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 CFLAGS=$hold_cflags
7659 fi
7660 echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
7661 echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6
7662 if test $tcl_cv_cc_arch_x86_64 = yes; then
7663
7664 CFLAGS="$CFLAGS -arch x86_64"
7665 do64bit_ok=yes
7666
7667 fi
7668 ;;
7669 arm64)
7670 echo "$as_me:$LINENO: checking if compiler accepts -arch arm64 flag" >&5
7671 echo $ECHO_N "checking if compiler accepts -arch arm64 flag... $ECHO_C" >&6
7672 if test "${tcl_cv_cc_arch_arm64+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675
7676 hold_cflags=$CFLAGS
7677 CFLAGS="$CFLAGS -arch arm64"
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684
7685 int
7686 main ()
7687 {
7688
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest$ac_exeext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 tcl_cv_cc_arch_arm64=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 tcl_cv_cc_arch_arm64=no
7721 fi
7722 rm -f conftest.err conftest.$ac_objext \
7723 conftest$ac_exeext conftest.$ac_ext
7724 CFLAGS=$hold_cflags
7725 fi
7726 echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_arm64" >&5
7727 echo "${ECHO_T}$tcl_cv_cc_arch_arm64" >&6
7728 if test $tcl_cv_cc_arch_arm64 = yes; then
7729
7730 CFLAGS="$CFLAGS -arch arm64"
7731 do64bit_ok=yes
7732
7733 fi
7734 ;;
7735 *)
7736 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7737 echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7738 esac
7739
7740 else
7741
7742 # Check for combined 32-bit and 64-bit fat build
7743 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64|arm64) ' \
7744 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then
7745
7746 fat_32_64=yes
7747 fi
7748
7749
7750 fi
7751
7752 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
7753 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
7754 echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6
7755 if test "${tcl_cv_ld_single_module+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758
7759 hold_ldflags=$LDFLAGS
7760 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h. */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767
7768 int
7769 main ()
7770 {
7771 int i;
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 tcl_cv_ld_single_module=yes
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 tcl_cv_ld_single_module=no
7804 fi
7805 rm -f conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 LDFLAGS=$hold_ldflags
7808 fi
7809 echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
7810 echo "${ECHO_T}$tcl_cv_ld_single_module" >&6
7811 if test $tcl_cv_ld_single_module = yes; then
7812
7813 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7814
7815 fi
7816
7817 SHLIB_SUFFIX=".dylib"
7818 DL_OBJS="tclLoadDyld.o"
7819 DL_LIBS=""
7820 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7821 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
7822 echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6
7823 if test "${tcl_cv_ld_search_paths_first+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826
7827 hold_ldflags=$LDFLAGS
7828 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835
7836 int
7837 main ()
7838 {
7839 int i;
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext conftest$ac_exeext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 tcl_cv_ld_search_paths_first=yes
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 tcl_cv_ld_search_paths_first=no
7872 fi
7873 rm -f conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875 LDFLAGS=$hold_ldflags
7876 fi
7877 echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
7878 echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6
7879 if test $tcl_cv_ld_search_paths_first = yes; then
7880
7881 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7882
7883 fi
7884
7885 if test "$tcl_cv_cc_visibility_hidden" != yes; then
7886
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define MODULE_SCOPE __private_extern__
7890 _ACEOF
7891
7892 tcl_cv_cc_visibility_hidden=yes
7893
7894 fi
7895
7896 CC_SEARCH_FLAGS=""
7897 LD_SEARCH_FLAGS=""
7898 LD_LIBRARY_PATH_VAR="DYLD_FALLBACK_LIBRARY_PATH"
7899
7900 cat >>confdefs.h <<\_ACEOF
7901 #define MAC_OSX_TCL 1
7902 _ACEOF
7903
7904 PLAT_OBJS='${MAC_OSX_OBJS}'
7905 PLAT_SRCS='${MAC_OSX_SRCS}'
7906 echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5
7907 echo $ECHO_N "checking whether to use CoreFoundation... $ECHO_C" >&6
7908 # Check whether --enable-corefoundation or --disable-corefoundation was given.
7909 if test "${enable_corefoundation+set}" = set; then
7910 enableval="$enable_corefoundation"
7911 tcl_corefoundation=$enableval
7912 else
7913 tcl_corefoundation=yes
7914 fi;
7915 echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5
7916 echo "${ECHO_T}$tcl_corefoundation" >&6
7917 if test $tcl_corefoundation = yes; then
7918
7919 echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5
7920 echo $ECHO_N "checking for CoreFoundation.framework... $ECHO_C" >&6
7921 if test "${tcl_cv_lib_corefoundation+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924
7925 hold_libs=$LIBS
7926 if test "$fat_32_64" = yes; then
7927
7928 for v in CFLAGS CPPFLAGS LDFLAGS; do
7929 # On Tiger there is no 64-bit CF, so remove 64-bit
7930 # archs from CFLAGS et al. while testing for
7931 # presence of CF. 64-bit CF is disabled in
7932 # tclUnixPort.h if necessary.
7933 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7934 done
7935 fi
7936
7937 LIBS="$LIBS -framework CoreFoundation"
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <CoreFoundation/CoreFoundation.h>
7945 int
7946 main ()
7947 {
7948 CFBundleRef b = CFBundleGetMainBundle();
7949 ;
7950 return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 tcl_cv_lib_corefoundation=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 tcl_cv_lib_corefoundation=no
7981 fi
7982 rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 if test "$fat_32_64" = yes; then
7985
7986 for v in CFLAGS CPPFLAGS LDFLAGS; do
7987 eval $v'="$hold_'$v'"'
7988 done
7989 fi
7990
7991 LIBS=$hold_libs
7992 fi
7993 echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5
7994 echo "${ECHO_T}$tcl_cv_lib_corefoundation" >&6
7995 if test $tcl_cv_lib_corefoundation = yes; then
7996
7997 LIBS="$LIBS -framework CoreFoundation"
7998
7999 cat >>confdefs.h <<\_ACEOF
8000 #define HAVE_COREFOUNDATION 1
8001 _ACEOF
8002
8003
8004 else
8005 tcl_corefoundation=no
8006 fi
8007
8008 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
8009
8010 echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5
8011 echo $ECHO_N "checking for 64-bit CoreFoundation... $ECHO_C" >&6
8012 if test "${tcl_cv_lib_corefoundation_64+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015
8016 for v in CFLAGS CPPFLAGS LDFLAGS; do
8017 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8018 done
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <CoreFoundation/CoreFoundation.h>
8026 int
8027 main ()
8028 {
8029 CFBundleRef b = CFBundleGetMainBundle();
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 (eval $ac_link) 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag"
8044 || test ! -s conftest.err'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 tcl_cv_lib_corefoundation_64=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 tcl_cv_lib_corefoundation_64=no
8062 fi
8063 rm -f conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065 for v in CFLAGS CPPFLAGS LDFLAGS; do
8066 eval $v'="$hold_'$v'"'
8067 done
8068 fi
8069 echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5
8070 echo "${ECHO_T}$tcl_cv_lib_corefoundation_64" >&6
8071 if test $tcl_cv_lib_corefoundation_64 = no; then
8072
8073
8074 cat >>confdefs.h <<\_ACEOF
8075 #define NO_COREFOUNDATION_64 1
8076 _ACEOF
8077
8078 LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings"
8079
8080 fi
8081
8082
8083 fi
8084
8085
8086 fi
8087
8088 ;;
8089 NEXTSTEP-*)
8090 SHLIB_CFLAGS=""
8091 SHLIB_LD='${CC} -nostdlib -r'
8092 SHLIB_LD_LIBS=""
8093 SHLIB_SUFFIX=".so"
8094 DL_OBJS="tclLoadNext.o"
8095 DL_LIBS=""
8096 CC_SEARCH_FLAGS=""
8097 LD_SEARCH_FLAGS=""
8098 ;;
8099 OS/390-*)
8100 SHLIB_LD_LIBS=""
8101 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8102
8103 cat >>confdefs.h <<\_ACEOF
8104 #define _OE_SOCKETS 1
8105 _ACEOF
8106
8107 ;;
8108 OSF1-1.0|OSF1-1.1|OSF1-1.2)
8109 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
8110 SHLIB_CFLAGS=""
8111 # Hack: make package name same as library name
8112 SHLIB_LD='ld -R -export :'
8113 SHLIB_LD_LIBS=""
8114 SHLIB_SUFFIX=".so"
8115 DL_OBJS="tclLoadOSF.o"
8116 DL_LIBS=""
8117 CC_SEARCH_FLAGS=""
8118 LD_SEARCH_FLAGS=""
8119 ;;
8120 OSF1-1.*)
8121 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
8122 SHLIB_CFLAGS="-fPIC"
8123 if test "$SHARED_BUILD" = 1; then
8124 SHLIB_LD="ld -shared"
8125 else
8126
8127 SHLIB_LD="ld -non_shared"
8128
8129 fi
8130
8131 SHLIB_LD_LIBS=""
8132 SHLIB_SUFFIX=".so"
8133 DL_OBJS="tclLoadDl.o"
8134 DL_LIBS=""
8135 CC_SEARCH_FLAGS=""
8136 LD_SEARCH_FLAGS=""
8137 ;;
8138 OSF1-V*)
8139 # Digital OSF/1
8140 SHLIB_CFLAGS=""
8141 if test "$SHARED_BUILD" = 1; then
8142
8143 SHLIB_LD='${CC} -shared'
8144
8145 else
8146
8147 SHLIB_LD='${CC} -non_shared'
8148
8149 fi
8150
8151 SHLIB_SUFFIX=".so"
8152 DL_OBJS="tclLoadDl.o"
8153 DL_LIBS=""
8154 if test $doRpath = yes; then
8155
8156 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8157 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8158 fi
8159
8160 if test "$GCC" = yes; then
8161 CFLAGS="$CFLAGS -mieee"
8162 else
8163
8164 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
8165 fi
8166
8167 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8168 if test "${TCL_THREADS}" = 1; then
8169
8170 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8171 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8172 LIBS=`echo $LIBS | sed s/-lpthreads//`
8173 if test "$GCC" = yes; then
8174
8175 LIBS="$LIBS -lpthread -lmach -lexc"
8176
8177 else
8178
8179 CFLAGS="$CFLAGS -pthread"
8180 LDFLAGS="$LDFLAGS -pthread"
8181
8182 fi
8183
8184
8185 fi
8186
8187 ;;
8188 QNX-6*)
8189 # QNX RTP
8190 # This may work for all QNX, but it was only reported for v6.
8191 SHLIB_CFLAGS="-fPIC"
8192 SHLIB_LD="ld -Bshareable -x"
8193 SHLIB_LD_LIBS=""
8194 SHLIB_SUFFIX=".so"
8195 DL_OBJS="tclLoadDl.o"
8196 # dlopen is in -lc on QNX
8197 DL_LIBS=""
8198 CC_SEARCH_FLAGS=""
8199 LD_SEARCH_FLAGS=""
8200 ;;
8201 SCO_SV-3.2*)
8202 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
8203 # this test works, since "uname -s" was non-standard in 3.2.4 and
8204 # below.
8205 if test "$GCC" = yes; then
8206
8207 SHLIB_CFLAGS="-fPIC -melf"
8208 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8209
8210 else
8211
8212 SHLIB_CFLAGS="-Kpic -belf"
8213 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8214
8215 fi
8216
8217 SHLIB_LD="ld -G"
8218 SHLIB_LD_LIBS=""
8219 SHLIB_SUFFIX=".so"
8220 DL_OBJS="tclLoadDl.o"
8221 DL_LIBS=""
8222 CC_SEARCH_FLAGS=""
8223 LD_SEARCH_FLAGS=""
8224 ;;
8225 SINIX*5.4*)
8226 SHLIB_CFLAGS="-K PIC"
8227 SHLIB_LD='${CC} -G'
8228 SHLIB_LD_LIBS=""
8229 SHLIB_SUFFIX=".so"
8230 DL_OBJS="tclLoadDl.o"
8231 DL_LIBS="-ldl"
8232 CC_SEARCH_FLAGS=""
8233 LD_SEARCH_FLAGS=""
8234 ;;
8235 SunOS-4*)
8236 SHLIB_CFLAGS="-PIC"
8237 SHLIB_LD="ld"
8238 SHLIB_LD_LIBS=""
8239 SHLIB_SUFFIX=".so"
8240 DL_OBJS="tclLoadDl.o"
8241 DL_LIBS="-ldl"
8242 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
8243 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8244
8245 # SunOS can't handle version numbers with dots in them in library
8246 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
8247 # requires an extra version number at the end of .so file names.
8248 # So, the library has to have a name like libtcl75.so.1.0
8249
8250 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
8251 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8252 TCL_LIB_VERSIONS_OK=nodots
8253 ;;
8254 SunOS-5.[0-6])
8255 # Careful to not let 5.10+ fall into this case
8256
8257 # Note: If _REENTRANT isn't defined, then Solaris
8258 # won't define thread-safe library routines.
8259
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define _REENTRANT 1
8263 _ACEOF
8264
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define _POSIX_PTHREAD_SEMANTICS 1
8268 _ACEOF
8269
8270
8271 SHLIB_CFLAGS="-KPIC"
8272 SHLIB_SUFFIX=".so"
8273 DL_OBJS="tclLoadDl.o"
8274 DL_LIBS="-ldl"
8275 if test "$GCC" = yes; then
8276
8277 SHLIB_LD='${CC} -shared'
8278 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8279 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8280
8281 else
8282
8283 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8284 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8285 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8286
8287 fi
8288
8289 ;;
8290 SunOS-5*)
8291 # Note: If _REENTRANT isn't defined, then Solaris
8292 # won't define thread-safe library routines.
8293
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define _REENTRANT 1
8297 _ACEOF
8298
8299
8300 cat >>confdefs.h <<\_ACEOF
8301 #define _POSIX_PTHREAD_SEMANTICS 1
8302 _ACEOF
8303
8304
8305 SHLIB_CFLAGS="-KPIC"
8306
8307 # Check to enable 64-bit flags for compiler/linker
8308 if test "$do64bit" = yes; then
8309
8310 arch=`isainfo`
8311 if test "$arch" = "sparcv9 sparc"; then
8312
8313 if test "$GCC" = yes; then
8314
8315 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then
8316
8317 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8318 echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8319
8320 else
8321
8322 do64bit_ok=yes
8323 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8324 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8325 SHLIB_CFLAGS="-fPIC"
8326
8327 fi
8328
8329
8330 else
8331
8332 do64bit_ok=yes
8333 if test "$do64bitVIS" = yes; then
8334
8335 CFLAGS="$CFLAGS -xarch=v9a"
8336 LDFLAGS_ARCH="-xarch=v9a"
8337
8338 else
8339
8340 CFLAGS="$CFLAGS -xarch=v9"
8341 LDFLAGS_ARCH="-xarch=v9"
8342
8343 fi
8344
8345 # Solaris 64 uses this as well
8346 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8347
8348 fi
8349
8350
8351 else
8352 if test "$arch" = "amd64 i386"; then
8353
8354 if test "$GCC" = yes; then
8355
8356 case $system in
8357 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8358 do64bit_ok=yes
8359 CFLAGS="$CFLAGS -m64"
8360 LDFLAGS="$LDFLAGS -m64";;
8361 *)
8362 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
8363 echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8364 esac
8365
8366 else
8367
8368 do64bit_ok=yes
8369 case $system in
8370 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8371 CFLAGS="$CFLAGS -m64"
8372 LDFLAGS="$LDFLAGS -m64";;
8373 *)
8374 CFLAGS="$CFLAGS -xarch=amd64"
8375 LDFLAGS="$LDFLAGS -xarch=amd64";;
8376 esac
8377
8378 fi
8379
8380
8381 else
8382 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
8383 echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
8384 fi
8385
8386 fi
8387
8388
8389 fi
8390
8391
8392 #--------------------------------------------------------------------
8393 # On Solaris 5.x i386 with the sunpro compiler we need to link
8394 # with sunmath to get floating point rounding control
8395 #--------------------------------------------------------------------
8396 if test "$GCC" = yes; then
8397 use_sunmath=no
8398 else
8399
8400 arch=`isainfo`
8401 echo "$as_me:$LINENO: checking whether to use -lsunmath for fp rounding control" >&5
8402 echo $ECHO_N "checking whether to use -lsunmath for fp rounding control... $ECHO_C" >&6
8403 if test "$arch" = "amd64 i386" -o "$arch" = "i386"; then
8404
8405 echo "$as_me:$LINENO: result: yes" >&5
8406 echo "${ECHO_T}yes" >&6
8407 MATH_LIBS="-lsunmath $MATH_LIBS"
8408 if test "${ac_cv_header_sunmath_h+set}" = set; then
8409 echo "$as_me:$LINENO: checking for sunmath.h" >&5
8410 echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6
8411 if test "${ac_cv_header_sunmath_h+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5
8415 echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6
8416 else
8417 # Is the header compilable?
8418 echo "$as_me:$LINENO: checking sunmath.h usability" >&5
8419 echo $ECHO_N "checking sunmath.h usability... $ECHO_C" >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #include <sunmath.h>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_header_compiler=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_header_compiler=no
8457 fi
8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8460 echo "${ECHO_T}$ac_header_compiler" >&6
8461
8462 # Is the header present?
8463 echo "$as_me:$LINENO: checking sunmath.h presence" >&5
8464 echo $ECHO_N "checking sunmath.h presence... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 #include <sunmath.h>
8472 _ACEOF
8473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } >/dev/null; then
8481 if test -s conftest.err; then
8482 ac_cpp_err=$ac_c_preproc_warn_flag
8483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8484 else
8485 ac_cpp_err=
8486 fi
8487 else
8488 ac_cpp_err=yes
8489 fi
8490 if test -z "$ac_cpp_err"; then
8491 ac_header_preproc=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_header_preproc=no
8497 fi
8498 rm -f conftest.err conftest.$ac_ext
8499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8500 echo "${ECHO_T}$ac_header_preproc" >&6
8501
8502 # So? What about this header?
8503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8504 yes:no: )
8505 { echo "$as_me:$LINENO: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&5
8506 echo "$as_me: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the compiler's result" >&5
8508 echo "$as_me: WARNING: sunmath.h: proceeding with the compiler's result" >&2;}
8509 ac_header_preproc=yes
8510 ;;
8511 no:yes:* )
8512 { echo "$as_me:$LINENO: WARNING: sunmath.h: present but cannot be compiled" >&5
8513 echo "$as_me: WARNING: sunmath.h: present but cannot be compiled" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: sunmath.h: check for missing prerequisite headers?" >&5
8515 echo "$as_me: WARNING: sunmath.h: check for missing prerequisite headers?" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: sunmath.h: see the Autoconf documentation" >&5
8517 echo "$as_me: WARNING: sunmath.h: see the Autoconf documentation" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&5
8519 echo "$as_me: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: sunmath.h: proceeding with the preprocessor's result" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: sunmath.h: in the future, the compiler will take precedence" >&5
8523 echo "$as_me: WARNING: sunmath.h: in the future, the compiler will take precedence" >&2;}
8524 (
8525 cat <<\_ASBOX
8526 ## ------------------------------ ##
8527 ## Report this to the tcl lists. ##
8528 ## ------------------------------ ##
8529 _ASBOX
8530 ) |
8531 sed "s/^/$as_me: WARNING: /" >&2
8532 ;;
8533 esac
8534 echo "$as_me:$LINENO: checking for sunmath.h" >&5
8535 echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6
8536 if test "${ac_cv_header_sunmath_h+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 ac_cv_header_sunmath_h=$ac_header_preproc
8540 fi
8541 echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5
8542 echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6
8543
8544 fi
8545
8546
8547 use_sunmath=yes
8548
8549 else
8550
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 use_sunmath=no
8554
8555 fi
8556
8557
8558 fi
8559
8560 SHLIB_SUFFIX=".so"
8561 DL_OBJS="tclLoadDl.o"
8562 DL_LIBS="-ldl"
8563 if test "$GCC" = yes; then
8564
8565 SHLIB_LD='${CC} -shared'
8566 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8567 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8568 if test "$do64bit_ok" = yes; then
8569
8570 if test "$arch" = "sparcv9 sparc"; then
8571
8572 # We need to specify -static-libgcc or we need to
8573 # add the path to the sparv9 libgcc.
8574 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8575 # for finding sparcv9 libgcc, get the regular libgcc
8576 # path, remove so name and append 'sparcv9'
8577 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8578 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8579
8580 else
8581 if test "$arch" = "amd64 i386"; then
8582
8583 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8584
8585 fi
8586
8587 fi
8588
8589
8590 fi
8591
8592
8593 else
8594
8595 if test "$use_sunmath" = yes; then
8596 textmode=textoff
8597 else
8598 textmode=text
8599 fi
8600
8601 case $system in
8602 SunOS-5.[1-9][0-9]*|SunOS-5.[7-9])
8603 SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";;
8604 *)
8605 SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";;
8606 esac
8607 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
8608 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
8609
8610 fi
8611
8612 ;;
8613 UNIX_SV* | UnixWare-5*)
8614 SHLIB_CFLAGS="-KPIC"
8615 SHLIB_LD='${CC} -G'
8616 SHLIB_LD_LIBS=""
8617 SHLIB_SUFFIX=".so"
8618 DL_OBJS="tclLoadDl.o"
8619 DL_LIBS="-ldl"
8620 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8621 # that don't grok the -Bexport option. Test that it does.
8622 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
8623 echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6
8624 if test "${tcl_cv_ld_Bexport+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627
8628 hold_ldflags=$LDFLAGS
8629 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636
8637 int
8638 main ()
8639 {
8640 int i;
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 tcl_cv_ld_Bexport=yes
8668 else
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 tcl_cv_ld_Bexport=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LDFLAGS=$hold_ldflags
8677 fi
8678 echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5
8679 echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6
8680 if test $tcl_cv_ld_Bexport = yes; then
8681
8682 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8683
8684 fi
8685
8686 CC_SEARCH_FLAGS=""
8687 LD_SEARCH_FLAGS=""
8688 ;;
8689 esac
8690
8691 if test "$do64bit" = yes -a "$do64bit_ok" = no; then
8692
8693 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8694 echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8695
8696 fi
8697
8698
8699 if test "$do64bit" = yes -a "$do64bit_ok" = yes; then
8700
8701
8702 cat >>confdefs.h <<\_ACEOF
8703 #define TCL_CFG_DO64BIT 1
8704 _ACEOF
8705
8706
8707 fi
8708
8709
8710
8711
8712 # Step 4: disable dynamic loading if requested via a command-line switch.
8713
8714 # Check whether --enable-load or --disable-load was given.
8715 if test "${enable_load+set}" = set; then
8716 enableval="$enable_load"
8717 tcl_ok=$enableval
8718 else
8719 tcl_ok=yes
8720 fi;
8721 if test "$tcl_ok" = no; then
8722 DL_OBJS=""
8723 fi
8724
8725
8726 if test "x$DL_OBJS" != x; then
8727 BUILD_DLTEST="\$(DLTEST_TARGETS)"
8728 else
8729
8730 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5
8731 echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;}
8732 SHLIB_CFLAGS=""
8733 SHLIB_LD=""
8734 SHLIB_SUFFIX=""
8735 DL_OBJS="tclLoadNone.o"
8736 DL_LIBS=""
8737 LDFLAGS="$LDFLAGS_ORIG"
8738 CC_SEARCH_FLAGS=""
8739 LD_SEARCH_FLAGS=""
8740 BUILD_DLTEST=""
8741
8742 fi
8743
8744 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8745
8746 # If we're running gcc, then change the C flags for compiling shared
8747 # libraries to the right flags for gcc, instead of those for the
8748 # standard manufacturer compiler.
8749
8750 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then
8751
8752 case $system in
8753 AIX-*) ;;
8754 BSD/OS*) ;;
8755 CYGWIN_*|MINGW32_*|MSYS_*) ;;
8756 HP-UX*) ;;
8757 Darwin-*) ;;
8758 IRIX*) ;;
8759 NetBSD-*|OpenBSD-*) ;;
8760 OSF1-*) ;;
8761 SCO_SV-3.2*) ;;
8762 *) SHLIB_CFLAGS="-fPIC" ;;
8763 esac
8764 fi
8765
8766
8767 if test "$tcl_cv_cc_visibility_hidden" != yes; then
8768
8769
8770 cat >>confdefs.h <<\_ACEOF
8771 #define MODULE_SCOPE extern
8772 _ACEOF
8773
8774
8775 fi
8776
8777
8778 if test "$SHARED_LIB_SUFFIX" = ""; then
8779
8780 SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}'
8781 fi
8782
8783 if test "$UNSHARED_LIB_SUFFIX" = ""; then
8784
8785 UNSHARED_LIB_SUFFIX='${VERSION}.a'
8786 fi
8787
8788 DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)"
8789
8790 if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then
8791
8792 LIB_SUFFIX=${SHARED_LIB_SUFFIX}
8793 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${LDFLAGS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
8794 if test "${SHLIB_SUFFIX}" = ".dll"; then
8795
8796 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)"'
8797 DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)"
8798
8799 else
8800
8801 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
8802
8803 fi
8804
8805
8806 else
8807
8808 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
8809
8810 if test "$RANLIB" = ""; then
8811
8812 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
8813
8814 else
8815
8816 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
8817
8818 fi
8819
8820 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
8821
8822 fi
8823
8824
8825 # Stub lib does not depend on shared/static configuration
8826 if test "$RANLIB" = ""; then
8827
8828 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
8829
8830 else
8831
8832 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
8833
8834 fi
8835
8836 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"'
8837
8838 # Define TCL_LIBS now that we know what DL_LIBS is.
8839 # The trick here is that we don't want to change the value of TCL_LIBS if
8840 # it is already set when tclConfig.sh had been loaded by Tk.
8841 if test "x${TCL_LIBS}" = x; then
8842
8843 TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}"
8844 fi
8845
8846
8847
8848 # See if the compiler supports casting to a union type.
8849 # This is used to stop gcc from printing a compiler
8850 # warning when initializing a union member.
8851
8852 echo "$as_me:$LINENO: checking for cast to union support" >&5
8853 echo $ECHO_N "checking for cast to union support... $ECHO_C" >&6
8854 if test "${tcl_cv_cast_to_union+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8863
8864 int
8865 main ()
8866 {
8867
8868 union foo { int i; double d; };
8869 union foo f = (union foo) (int) 0;
8870
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877 (eval $ac_compile) 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -z "$ac_c_werror_flag"
8885 || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 tcl_cv_cast_to_union=yes
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 tcl_cv_cast_to_union=no
8903 fi
8904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8905
8906 fi
8907 echo "$as_me:$LINENO: result: $tcl_cv_cast_to_union" >&5
8908 echo "${ECHO_T}$tcl_cv_cast_to_union" >&6
8909 if test "$tcl_cv_cast_to_union" = "yes"; then
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_CAST_TO_UNION 1
8913 _ACEOF
8914
8915 fi
8916 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto"
8917 echo "$as_me:$LINENO: checking for working -fno-lto" >&5
8918 echo $ECHO_N "checking for working -fno-lto... $ECHO_C" >&6
8919 if test "${ac_cv_nolto+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928
8929 int
8930 main ()
8931 {
8932
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_nolto=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_nolto=no
8965 fi
8966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8967
8968 fi
8969 echo "$as_me:$LINENO: result: $ac_cv_nolto" >&5
8970 echo "${ECHO_T}$ac_cv_nolto" >&6
8971 CFLAGS=$hold_cflags
8972 if test "$ac_cv_nolto" = "yes" ; then
8973 CFLAGS_NOLTO="-fno-lto"
8974 else
8975 CFLAGS_NOLTO=""
8976 fi
8977
8978 # Check for vfork, posix_spawnp() and friends unconditionally
8979
8980
8981
8982
8983 for ac_func in vfork posix_spawnp posix_spawn_file_actions_adddup2 posix_spawnattr_setflags
8984 do
8985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986 echo "$as_me:$LINENO: checking for $ac_func" >&5
8987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_var+set}\" = set"; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8999 #define $ac_func innocuous_$ac_func
9000
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char $ac_func (); below.
9003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9004 <limits.h> exists even on freestanding compilers. */
9005
9006 #ifdef __STDC__
9007 # include <limits.h>
9008 #else
9009 # include <assert.h>
9010 #endif
9011
9012 #undef $ac_func
9013
9014 /* Override any gcc2 internal prototype to avoid an error. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 {
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9021 char $ac_func ();
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9026 choke me
9027 #else
9028 char (*f) () = $ac_func;
9029 #endif
9030 #ifdef __cplusplus
9031 }
9032 #endif
9033
9034 int
9035 main ()
9036 {
9037 return f != $ac_func;
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -z "$ac_c_werror_flag"
9052 || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 eval "$as_ac_var=yes"
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 eval "$as_ac_var=no"
9070 fi
9071 rm -f conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 fi
9074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9076 if test `eval echo '${'$as_ac_var'}'` = yes; then
9077 cat >>confdefs.h <<_ACEOF
9078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9079 _ACEOF
9080
9081 fi
9082 done
9083
9084
9085 # FIXME: This subst was left in only because the TCL_DL_LIBS
9086 # entry in tclConfig.sh uses it. It is not clear why someone
9087 # would use TCL_DL_LIBS instead of TCL_LIBS.
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 cat >>confdefs.h <<_ACEOF
9115 #define TCL_SHLIB_EXT "${SHLIB_SUFFIX}"
9116 _ACEOF
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128 echo "$as_me:$LINENO: checking for build with symbols" >&5
9129 echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6
9130 # Check whether --enable-symbols or --disable-symbols was given.
9131 if test "${enable_symbols+set}" = set; then
9132 enableval="$enable_symbols"
9133 tcl_ok=$enableval
9134 else
9135 tcl_ok=no
9136 fi;
9137 # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
9138 if test "$tcl_ok" = "no"; then
9139 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
9140 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
9141
9142 cat >>confdefs.h <<\_ACEOF
9143 #define NDEBUG 1
9144 _ACEOF
9145
9146 echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6
9148
9149 cat >>confdefs.h <<\_ACEOF
9150 #define TCL_CFG_OPTIMIZED 1
9151 _ACEOF
9152
9153 else
9154 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
9155 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
9156 if test "$tcl_ok" = "yes"; then
9157 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5
9158 echo "${ECHO_T}yes (standard debugging)" >&6
9159 fi
9160 fi
9161
9162
9163
9164 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9165
9166 cat >>confdefs.h <<\_ACEOF
9167 #define TCL_MEM_DEBUG 1
9168 _ACEOF
9169
9170 fi
9171
9172 if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
9173
9174 cat >>confdefs.h <<\_ACEOF
9175 #define TCL_COMPILE_DEBUG 1
9176 _ACEOF
9177
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define TCL_COMPILE_STATS 1
9181 _ACEOF
9182
9183 fi
9184
9185 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9186 if test "$tcl_ok" = "all"; then
9187 echo "$as_me:$LINENO: result: enabled symbols mem compile debugging" >&5
9188 echo "${ECHO_T}enabled symbols mem compile debugging" >&6
9189 else
9190 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5
9191 echo "${ECHO_T}enabled $tcl_ok debugging" >&6
9192 fi
9193 fi
9194
9195
9196
9197 cat >>confdefs.h <<\_ACEOF
9198 #define MP_PREC 4
9199 _ACEOF
9200
9201
9202 #--------------------------------------------------------------------
9203 # Detect what compiler flags to set for 64-bit support.
9204 #--------------------------------------------------------------------
9205
9206
9207 echo "$as_me:$LINENO: checking for required early compiler flags" >&5
9208 echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6
9209 tcl_flags=""
9210
9211 if test "${tcl_cv_flag__isoc99_source+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 #include <stdlib.h>
9221 int
9222 main ()
9223 {
9224 char *p = (char *)strtoll; char *q = (char *)strtoull;
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231 (eval $ac_compile) 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag"
9239 || test ! -s conftest.err'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; } &&
9245 { ac_try='test -s conftest.$ac_objext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 tcl_cv_flag__isoc99_source=no
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #define _ISOC99_SOURCE 1
9263 #include <stdlib.h>
9264 int
9265 main ()
9266 {
9267 char *p = (char *)strtoll; char *q = (char *)strtoull;
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 tcl_cv_flag__isoc99_source=yes
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 tcl_cv_flag__isoc99_source=no
9300 fi
9301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302 fi
9303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9304 fi
9305
9306 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9307
9308 cat >>confdefs.h <<\_ACEOF
9309 #define _ISOC99_SOURCE 1
9310 _ACEOF
9311
9312 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9313 fi
9314
9315
9316 if test "${tcl_cv_flag__largefile64_source+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 #include <sys/stat.h>
9326 int
9327 main ()
9328 {
9329 struct stat64 buf; int i = stat64("/", &buf);
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest.$ac_objext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 tcl_cv_flag__largefile64_source=no
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #define _LARGEFILE64_SOURCE 1
9368 #include <sys/stat.h>
9369 int
9370 main ()
9371 {
9372 struct stat64 buf; int i = stat64("/", &buf);
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag"
9387 || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9399 tcl_cv_flag__largefile64_source=yes
9400 else
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9403
9404 tcl_cv_flag__largefile64_source=no
9405 fi
9406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9409 fi
9410
9411 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define _LARGEFILE64_SOURCE 1
9415 _ACEOF
9416
9417 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
9418 fi
9419
9420 if test "x${tcl_flags}" = "x" ; then
9421 echo "$as_me:$LINENO: result: none" >&5
9422 echo "${ECHO_T}none" >&6
9423 else
9424 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5
9425 echo "${ECHO_T}${tcl_flags}" >&6
9426 fi
9427
9428
9429
9430 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5
9431 echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6
9432 if test "${tcl_cv_type_64bit+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435
9436 tcl_cv_type_64bit=none
9437 # See if the compiler knows natively about __int64
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444
9445 int
9446 main ()
9447 {
9448 __int64 value = (__int64) 0;
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest.$ac_objext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 (eval $ac_try) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 tcl_type_64bit=__int64
9476 else
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480 tcl_type_64bit="long long"
9481 fi
9482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9483 # See if we should use long anyway Note that we substitute in the
9484 # type that is our current guess for a 64-bit type inside this check
9485 # program, so it should be modified only carefully...
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492
9493 int
9494 main ()
9495 {
9496 switch (0) {
9497 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9498 }
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505 (eval $ac_compile) 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag"
9513 || test ! -s conftest.err'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest.$ac_objext'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 tcl_cv_type_64bit=${tcl_type_64bit}
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 fi
9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9532 fi
9533
9534 if test "${tcl_cv_type_64bit}" = none ; then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define TCL_WIDE_INT_IS_LONG 1
9538 _ACEOF
9539
9540 echo "$as_me:$LINENO: result: using long" >&5
9541 echo "${ECHO_T}using long" >&6
9542 else
9543
9544 cat >>confdefs.h <<_ACEOF
9545 #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
9546 _ACEOF
9547
9548 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5
9549 echo "${ECHO_T}${tcl_cv_type_64bit}" >&6
9550
9551 # Now check for auxiliary declarations
9552 echo "$as_me:$LINENO: checking for struct dirent64" >&5
9553 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
9554 if test "${tcl_cv_struct_dirent64+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <sys/types.h>
9565 #include <dirent.h>
9566 int
9567 main ()
9568 {
9569 struct dirent64 p;
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 rm -f conftest.$ac_objext
9575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9576 (eval $ac_compile) 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -z "$ac_c_werror_flag"
9584 || test ! -s conftest.err'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; } &&
9590 { ac_try='test -s conftest.$ac_objext'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 (eval $ac_try) 2>&5
9593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 tcl_cv_struct_dirent64=yes
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 tcl_cv_struct_dirent64=no
9602 fi
9603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9604 fi
9605 echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5
9606 echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6
9607 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9608
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_STRUCT_DIRENT64 1
9611 _ACEOF
9612
9613 fi
9614
9615 echo "$as_me:$LINENO: checking for DIR64" >&5
9616 echo $ECHO_N "checking for DIR64... $ECHO_C" >&6
9617 if test "${tcl_cv_DIR64+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 #include <dirent.h>
9629 int
9630 main ()
9631 {
9632 struct dirent64 *p; DIR64 d = opendir64(".");
9633 p = readdir64(d); rewinddir64(d); closedir64(d);
9634 ;
9635 return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 tcl_cv_DIR64=yes
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 tcl_cv_DIR64=no
9666 fi
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 echo "$as_me:$LINENO: result: $tcl_cv_DIR64" >&5
9670 echo "${ECHO_T}$tcl_cv_DIR64" >&6
9671 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_DIR64 1
9675 _ACEOF
9676
9677 fi
9678
9679 echo "$as_me:$LINENO: checking for struct stat64" >&5
9680 echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6
9681 if test "${tcl_cv_struct_stat64+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 #include <sys/stat.h>
9692 int
9693 main ()
9694 {
9695 struct stat64 p;
9696
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 tcl_cv_struct_stat64=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 tcl_cv_struct_stat64=no
9729 fi
9730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732 echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5
9733 echo "${ECHO_T}$tcl_cv_struct_stat64" >&6
9734 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9735
9736 cat >>confdefs.h <<\_ACEOF
9737 #define HAVE_STRUCT_STAT64 1
9738 _ACEOF
9739
9740 fi
9741
9742
9743
9744 for ac_func in open64 lseek64
9745 do
9746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9747 echo "$as_me:$LINENO: checking for $ac_func" >&5
9748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9749 if eval "test \"\${$as_ac_var+set}\" = set"; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9760 #define $ac_func innocuous_$ac_func
9761
9762 /* System header to define __stub macros and hopefully few prototypes,
9763 which can conflict with char $ac_func (); below.
9764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9765 <limits.h> exists even on freestanding compilers. */
9766
9767 #ifdef __STDC__
9768 # include <limits.h>
9769 #else
9770 # include <assert.h>
9771 #endif
9772
9773 #undef $ac_func
9774
9775 /* Override any gcc2 internal prototype to avoid an error. */
9776 #ifdef __cplusplus
9777 extern "C"
9778 {
9779 #endif
9780 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */
9782 char $ac_func ();
9783 /* The GNU C library defines this for functions which it implements
9784 to always fail with ENOSYS. Some functions are actually named
9785 something starting with __ and the normal name is an alias. */
9786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9787 choke me
9788 #else
9789 char (*f) () = $ac_func;
9790 #endif
9791 #ifdef __cplusplus
9792 }
9793 #endif
9794
9795 int
9796 main ()
9797 {
9798 return f != $ac_func;
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 eval "$as_ac_var=yes"
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 eval "$as_ac_var=no"
9831 fi
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 fi
9835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9837 if test `eval echo '${'$as_ac_var'}'` = yes; then
9838 cat >>confdefs.h <<_ACEOF
9839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9840 _ACEOF
9841
9842 fi
9843 done
9844
9845 echo "$as_me:$LINENO: checking for off64_t" >&5
9846 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
9847 if test "${tcl_cv_type_off64_t+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 #include <sys/types.h>
9858 int
9859 main ()
9860 {
9861 off64_t offset;
9862
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 tcl_cv_type_off64_t=yes
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894 tcl_cv_type_off64_t=no
9895 fi
9896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898
9899 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9900 test "x${ac_cv_func_lseek64}" = "xyes" && \
9901 test "x${ac_cv_func_open64}" = "xyes" ; then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_TYPE_OFF64_T 1
9905 _ACEOF
9906
9907 echo "$as_me:$LINENO: result: yes" >&5
9908 echo "${ECHO_T}yes" >&6
9909 else
9910 echo "$as_me:$LINENO: result: no" >&5
9911 echo "${ECHO_T}no" >&6
9912 fi
9913 fi
9914
9915
9916 #--------------------------------------------------------------------
9917 # Check endianness because we can optimize comparisons of
9918 # Tcl_UniChar strings to memcmp on big-endian systems.
9919 #--------------------------------------------------------------------
9920
9921 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9922 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9923 if test "${ac_cv_c_bigendian+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 # See if sys/param.h defines the BYTE_ORDER macro.
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 #include <sys/types.h>
9934 #include <sys/param.h>
9935
9936 int
9937 main ()
9938 {
9939 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9940 bogus endian macros
9941 #endif
9942
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest.$ac_objext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 # It does; now see whether it defined to BIG_ENDIAN or not.
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <sys/types.h>
9977 #include <sys/param.h>
9978
9979 int
9980 main ()
9981 {
9982 #if BYTE_ORDER != BIG_ENDIAN
9983 not big endian
9984 #endif
9985
9986 ;
9987 return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext
9991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9992 (eval $ac_compile) 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -z "$ac_c_werror_flag"
10000 || test ! -s conftest.err'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_c_bigendian=yes
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 ac_cv_c_bigendian=no
10018 fi
10019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10020 else
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 # It does not; compile a test program.
10025 if test "$cross_compiling" = yes; then
10026 # try to guess the endianness by grepping values into an object file
10027 ac_cv_c_bigendian=unknown
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10035 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10036 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10037 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10038 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10039 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10040 int
10041 main ()
10042 {
10043 _ascii (); _ebcdic ();
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag"
10058 || test ! -s conftest.err'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest.$ac_objext'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10071 ac_cv_c_bigendian=yes
10072 fi
10073 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10074 if test "$ac_cv_c_bigendian" = unknown; then
10075 ac_cv_c_bigendian=no
10076 else
10077 # finding both strings is unlikely to happen, but who knows?
10078 ac_cv_c_bigendian=unknown
10079 fi
10080 fi
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 fi
10086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10087 else
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 int
10095 main ()
10096 {
10097 /* Are we little or big endian? From Harbison&Steele. */
10098 union
10099 {
10100 long l;
10101 char c[sizeof (long)];
10102 } u;
10103 u.l = 1;
10104 return (u.c[sizeof (long) - 1] == 1);
10105 }
10106 _ACEOF
10107 rm -f conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_c_bigendian=no
10119 else
10120 echo "$as_me: program exited with status $ac_status" >&5
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 ( exit $ac_status )
10125 ac_cv_c_bigendian=yes
10126 fi
10127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10128 fi
10129 fi
10130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10133 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10134 case $ac_cv_c_bigendian in
10135 yes)
10136
10137 cat >>confdefs.h <<\_ACEOF
10138 #define WORDS_BIGENDIAN 1
10139 _ACEOF
10140 ;;
10141 no)
10142 ;;
10143 *)
10144 { { echo "$as_me:$LINENO: error: unknown endianness
10145 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10146 echo "$as_me: error: unknown endianness
10147 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10148 { (exit 1); exit 1; }; } ;;
10149 esac
10150
10151
10152 #--------------------------------------------------------------------
10153 # Supply substitutes for missing POSIX library procedures, or
10154 # set flags so Tcl uses alternate procedures.
10155 #--------------------------------------------------------------------
10156
10157 # Check if Posix compliant getcwd exists, if not we'll use getwd.
10158
10159 for ac_func in getcwd
10160 do
10161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10162 echo "$as_me:$LINENO: checking for $ac_func" >&5
10163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10164 if eval "test \"\${$as_ac_var+set}\" = set"; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10175 #define $ac_func innocuous_$ac_func
10176
10177 /* System header to define __stub macros and hopefully few prototypes,
10178 which can conflict with char $ac_func (); below.
10179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10180 <limits.h> exists even on freestanding compilers. */
10181
10182 #ifdef __STDC__
10183 # include <limits.h>
10184 #else
10185 # include <assert.h>
10186 #endif
10187
10188 #undef $ac_func
10189
10190 /* Override any gcc2 internal prototype to avoid an error. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 {
10194 #endif
10195 /* We use char because int might match the return type of a gcc2
10196 builtin and then its argument prototype would still apply. */
10197 char $ac_func ();
10198 /* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
10201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10202 choke me
10203 #else
10204 char (*f) () = $ac_func;
10205 #endif
10206 #ifdef __cplusplus
10207 }
10208 #endif
10209
10210 int
10211 main ()
10212 {
10213 return f != $ac_func;
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220 (eval $ac_link) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 eval "$as_ac_var=yes"
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 eval "$as_ac_var=no"
10246 fi
10247 rm -f conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 fi
10250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10252 if test `eval echo '${'$as_ac_var'}'` = yes; then
10253 cat >>confdefs.h <<_ACEOF
10254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10255 _ACEOF
10256
10257 else
10258
10259 cat >>confdefs.h <<\_ACEOF
10260 #define USEGETWD 1
10261 _ACEOF
10262
10263 fi
10264 done
10265
10266 # Nb: if getcwd uses popen and pwd(1) (like SunOS 4) we should really
10267 # define USEGETWD even if the Posix getcwd exists. Add a test ?
10268
10269
10270
10271
10272
10273 for ac_func in mkstemp opendir strtol waitpid
10274 do
10275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10276 echo "$as_me:$LINENO: checking for $ac_func" >&5
10277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10278 if eval "test \"\${$as_ac_var+set}\" = set"; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define $ac_func innocuous_$ac_func
10290
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char $ac_func (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10295
10296 #ifdef __STDC__
10297 # include <limits.h>
10298 #else
10299 # include <assert.h>
10300 #endif
10301
10302 #undef $ac_func
10303
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 {
10308 #endif
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10311 char $ac_func ();
10312 /* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10316 choke me
10317 #else
10318 char (*f) () = $ac_func;
10319 #endif
10320 #ifdef __cplusplus
10321 }
10322 #endif
10323
10324 int
10325 main ()
10326 {
10327 return f != $ac_func;
10328 ;
10329 return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 eval "$as_ac_var=yes"
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 eval "$as_ac_var=no"
10360 fi
10361 rm -f conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 fi
10364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10366 if test `eval echo '${'$as_ac_var'}'` = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10369 _ACEOF
10370
10371 else
10372 case $LIBOBJS in
10373 "$ac_func.$ac_objext" | \
10374 *" $ac_func.$ac_objext" | \
10375 "$ac_func.$ac_objext "* | \
10376 *" $ac_func.$ac_objext "* ) ;;
10377 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10378 esac
10379
10380 fi
10381 done
10382
10383
10384 echo "$as_me:$LINENO: checking for strerror" >&5
10385 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
10386 if test "${ac_cv_func_strerror+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
10396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10397 #define strerror innocuous_strerror
10398
10399 /* System header to define __stub macros and hopefully few prototypes,
10400 which can conflict with char strerror (); below.
10401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10402 <limits.h> exists even on freestanding compilers. */
10403
10404 #ifdef __STDC__
10405 # include <limits.h>
10406 #else
10407 # include <assert.h>
10408 #endif
10409
10410 #undef strerror
10411
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 #ifdef __cplusplus
10414 extern "C"
10415 {
10416 #endif
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10419 char strerror ();
10420 /* The GNU C library defines this for functions which it implements
10421 to always fail with ENOSYS. Some functions are actually named
10422 something starting with __ and the normal name is an alias. */
10423 #if defined (__stub_strerror) || defined (__stub___strerror)
10424 choke me
10425 #else
10426 char (*f) () = strerror;
10427 #endif
10428 #ifdef __cplusplus
10429 }
10430 #endif
10431
10432 int
10433 main ()
10434 {
10435 return f != strerror;
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag"
10450 || test ! -s conftest.err'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; } &&
10456 { ac_try='test -s conftest$ac_exeext'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_cv_func_strerror=yes
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_cv_func_strerror=no
10468 fi
10469 rm -f conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 fi
10472 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
10473 echo "${ECHO_T}$ac_cv_func_strerror" >&6
10474 if test $ac_cv_func_strerror = yes; then
10475 :
10476 else
10477
10478 cat >>confdefs.h <<\_ACEOF
10479 #define NO_STRERROR 1
10480 _ACEOF
10481
10482 fi
10483
10484 echo "$as_me:$LINENO: checking for getwd" >&5
10485 echo $ECHO_N "checking for getwd... $ECHO_C" >&6
10486 if test "${ac_cv_func_getwd+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 /* Define getwd to an innocuous variant, in case <limits.h> declares getwd.
10496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10497 #define getwd innocuous_getwd
10498
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char getwd (); below.
10501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502 <limits.h> exists even on freestanding compilers. */
10503
10504 #ifdef __STDC__
10505 # include <limits.h>
10506 #else
10507 # include <assert.h>
10508 #endif
10509
10510 #undef getwd
10511
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 {
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10519 char getwd ();
10520 /* The GNU C library defines this for functions which it implements
10521 to always fail with ENOSYS. Some functions are actually named
10522 something starting with __ and the normal name is an alias. */
10523 #if defined (__stub_getwd) || defined (__stub___getwd)
10524 choke me
10525 #else
10526 char (*f) () = getwd;
10527 #endif
10528 #ifdef __cplusplus
10529 }
10530 #endif
10531
10532 int
10533 main ()
10534 {
10535 return f != getwd;
10536 ;
10537 return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag"
10550 || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_func_getwd=yes
10563 else
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_cv_func_getwd=no
10568 fi
10569 rm -f conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 fi
10572 echo "$as_me:$LINENO: result: $ac_cv_func_getwd" >&5
10573 echo "${ECHO_T}$ac_cv_func_getwd" >&6
10574 if test $ac_cv_func_getwd = yes; then
10575 :
10576 else
10577
10578 cat >>confdefs.h <<\_ACEOF
10579 #define NO_GETWD 1
10580 _ACEOF
10581
10582 fi
10583
10584 echo "$as_me:$LINENO: checking for wait3" >&5
10585 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
10586 if test "${ac_cv_func_wait3+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
10596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10597 #define wait3 innocuous_wait3
10598
10599 /* System header to define __stub macros and hopefully few prototypes,
10600 which can conflict with char wait3 (); below.
10601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10602 <limits.h> exists even on freestanding compilers. */
10603
10604 #ifdef __STDC__
10605 # include <limits.h>
10606 #else
10607 # include <assert.h>
10608 #endif
10609
10610 #undef wait3
10611
10612 /* Override any gcc2 internal prototype to avoid an error. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 {
10616 #endif
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10619 char wait3 ();
10620 /* The GNU C library defines this for functions which it implements
10621 to always fail with ENOSYS. Some functions are actually named
10622 something starting with __ and the normal name is an alias. */
10623 #if defined (__stub_wait3) || defined (__stub___wait3)
10624 choke me
10625 #else
10626 char (*f) () = wait3;
10627 #endif
10628 #ifdef __cplusplus
10629 }
10630 #endif
10631
10632 int
10633 main ()
10634 {
10635 return f != wait3;
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_func_wait3=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_cv_func_wait3=no
10668 fi
10669 rm -f conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 fi
10672 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
10673 echo "${ECHO_T}$ac_cv_func_wait3" >&6
10674 if test $ac_cv_func_wait3 = yes; then
10675 :
10676 else
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define NO_WAIT3 1
10680 _ACEOF
10681
10682 fi
10683
10684 echo "$as_me:$LINENO: checking for fork" >&5
10685 echo $ECHO_N "checking for fork... $ECHO_C" >&6
10686 if test "${ac_cv_func_fork+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 /* Define fork to an innocuous variant, in case <limits.h> declares fork.
10696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10697 #define fork innocuous_fork
10698
10699 /* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char fork (); below.
10701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 <limits.h> exists even on freestanding compilers. */
10703
10704 #ifdef __STDC__
10705 # include <limits.h>
10706 #else
10707 # include <assert.h>
10708 #endif
10709
10710 #undef fork
10711
10712 /* Override any gcc2 internal prototype to avoid an error. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 {
10716 #endif
10717 /* We use char because int might match the return type of a gcc2
10718 builtin and then its argument prototype would still apply. */
10719 char fork ();
10720 /* The GNU C library defines this for functions which it implements
10721 to always fail with ENOSYS. Some functions are actually named
10722 something starting with __ and the normal name is an alias. */
10723 #if defined (__stub_fork) || defined (__stub___fork)
10724 choke me
10725 #else
10726 char (*f) () = fork;
10727 #endif
10728 #ifdef __cplusplus
10729 }
10730 #endif
10731
10732 int
10733 main ()
10734 {
10735 return f != fork;
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext conftest$ac_exeext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742 (eval $ac_link) 2>conftest.er1
10743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try='test -z "$ac_c_werror_flag"
10750 || test ! -s conftest.err'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; } &&
10756 { ac_try='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_func_fork=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_cv_func_fork=no
10768 fi
10769 rm -f conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 fi
10772 echo "$as_me:$LINENO: result: $ac_cv_func_fork" >&5
10773 echo "${ECHO_T}$ac_cv_func_fork" >&6
10774 if test $ac_cv_func_fork = yes; then
10775 :
10776 else
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define NO_FORK 1
10780 _ACEOF
10781
10782 fi
10783
10784 echo "$as_me:$LINENO: checking for mknod" >&5
10785 echo $ECHO_N "checking for mknod... $ECHO_C" >&6
10786 if test "${ac_cv_func_mknod+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h. */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 /* Define mknod to an innocuous variant, in case <limits.h> declares mknod.
10796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10797 #define mknod innocuous_mknod
10798
10799 /* System header to define __stub macros and hopefully few prototypes,
10800 which can conflict with char mknod (); below.
10801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802 <limits.h> exists even on freestanding compilers. */
10803
10804 #ifdef __STDC__
10805 # include <limits.h>
10806 #else
10807 # include <assert.h>
10808 #endif
10809
10810 #undef mknod
10811
10812 /* Override any gcc2 internal prototype to avoid an error. */
10813 #ifdef __cplusplus
10814 extern "C"
10815 {
10816 #endif
10817 /* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10819 char mknod ();
10820 /* The GNU C library defines this for functions which it implements
10821 to always fail with ENOSYS. Some functions are actually named
10822 something starting with __ and the normal name is an alias. */
10823 #if defined (__stub_mknod) || defined (__stub___mknod)
10824 choke me
10825 #else
10826 char (*f) () = mknod;
10827 #endif
10828 #ifdef __cplusplus
10829 }
10830 #endif
10831
10832 int
10833 main ()
10834 {
10835 return f != mknod;
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10842 (eval $ac_link) 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest$ac_exeext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_cv_func_mknod=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ac_cv_func_mknod=no
10868 fi
10869 rm -f conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 fi
10872 echo "$as_me:$LINENO: result: $ac_cv_func_mknod" >&5
10873 echo "${ECHO_T}$ac_cv_func_mknod" >&6
10874 if test $ac_cv_func_mknod = yes; then
10875 :
10876 else
10877
10878 cat >>confdefs.h <<\_ACEOF
10879 #define NO_MKNOD 1
10880 _ACEOF
10881
10882 fi
10883
10884 echo "$as_me:$LINENO: checking for tcdrain" >&5
10885 echo $ECHO_N "checking for tcdrain... $ECHO_C" >&6
10886 if test "${ac_cv_func_tcdrain+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889 cat >conftest.$ac_ext <<_ACEOF
10890 /* confdefs.h. */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 /* Define tcdrain to an innocuous variant, in case <limits.h> declares tcdrain.
10896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10897 #define tcdrain innocuous_tcdrain
10898
10899 /* System header to define __stub macros and hopefully few prototypes,
10900 which can conflict with char tcdrain (); below.
10901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10902 <limits.h> exists even on freestanding compilers. */
10903
10904 #ifdef __STDC__
10905 # include <limits.h>
10906 #else
10907 # include <assert.h>
10908 #endif
10909
10910 #undef tcdrain
10911
10912 /* Override any gcc2 internal prototype to avoid an error. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 {
10916 #endif
10917 /* We use char because int might match the return type of a gcc2
10918 builtin and then its argument prototype would still apply. */
10919 char tcdrain ();
10920 /* The GNU C library defines this for functions which it implements
10921 to always fail with ENOSYS. Some functions are actually named
10922 something starting with __ and the normal name is an alias. */
10923 #if defined (__stub_tcdrain) || defined (__stub___tcdrain)
10924 choke me
10925 #else
10926 char (*f) () = tcdrain;
10927 #endif
10928 #ifdef __cplusplus
10929 }
10930 #endif
10931
10932 int
10933 main ()
10934 {
10935 return f != tcdrain;
10936 ;
10937 return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10942 (eval $ac_link) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest$ac_exeext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_func_tcdrain=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 ac_cv_func_tcdrain=no
10968 fi
10969 rm -f conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 fi
10972 echo "$as_me:$LINENO: result: $ac_cv_func_tcdrain" >&5
10973 echo "${ECHO_T}$ac_cv_func_tcdrain" >&6
10974 if test $ac_cv_func_tcdrain = yes; then
10975 :
10976 else
10977
10978 cat >>confdefs.h <<\_ACEOF
10979 #define NO_TCDRAIN 1
10980 _ACEOF
10981
10982 fi
10983
10984 echo "$as_me:$LINENO: checking for uname" >&5
10985 echo $ECHO_N "checking for uname... $ECHO_C" >&6
10986 if test "${ac_cv_func_uname+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 /* Define uname to an innocuous variant, in case <limits.h> declares uname.
10996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10997 #define uname innocuous_uname
10998
10999 /* System header to define __stub macros and hopefully few prototypes,
11000 which can conflict with char uname (); below.
11001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11002 <limits.h> exists even on freestanding compilers. */
11003
11004 #ifdef __STDC__
11005 # include <limits.h>
11006 #else
11007 # include <assert.h>
11008 #endif
11009
11010 #undef uname
11011
11012 /* Override any gcc2 internal prototype to avoid an error. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 {
11016 #endif
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11019 char uname ();
11020 /* The GNU C library defines this for functions which it implements
11021 to always fail with ENOSYS. Some functions are actually named
11022 something starting with __ and the normal name is an alias. */
11023 #if defined (__stub_uname) || defined (__stub___uname)
11024 choke me
11025 #else
11026 char (*f) () = uname;
11027 #endif
11028 #ifdef __cplusplus
11029 }
11030 #endif
11031
11032 int
11033 main ()
11034 {
11035 return f != uname;
11036 ;
11037 return 0;
11038 }
11039 _ACEOF
11040 rm -f conftest.$ac_objext conftest$ac_exeext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11042 (eval $ac_link) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_func_uname=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_func_uname=no
11068 fi
11069 rm -f conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 fi
11072 echo "$as_me:$LINENO: result: $ac_cv_func_uname" >&5
11073 echo "${ECHO_T}$ac_cv_func_uname" >&6
11074 if test $ac_cv_func_uname = yes; then
11075 :
11076 else
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define NO_UNAME 1
11080 _ACEOF
11081
11082 fi
11083
11084
11085 if test "`uname -s`" = "Darwin" && test "${TCL_THREADS}" = 1 && \
11086 test "`uname -r | awk -F. '{print $1}'`" -lt 7; then
11087 # prior to Darwin 7, realpath is not threadsafe, so don't
11088 # use it when threads are enabled, c.f. bug # 711232
11089 ac_cv_func_realpath=no
11090 fi
11091 echo "$as_me:$LINENO: checking for realpath" >&5
11092 echo $ECHO_N "checking for realpath... $ECHO_C" >&6
11093 if test "${ac_cv_func_realpath+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Define realpath to an innocuous variant, in case <limits.h> declares realpath.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104 #define realpath innocuous_realpath
11105
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char realpath (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11110
11111 #ifdef __STDC__
11112 # include <limits.h>
11113 #else
11114 # include <assert.h>
11115 #endif
11116
11117 #undef realpath
11118
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 {
11123 #endif
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char realpath ();
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_realpath) || defined (__stub___realpath)
11131 choke me
11132 #else
11133 char (*f) () = realpath;
11134 #endif
11135 #ifdef __cplusplus
11136 }
11137 #endif
11138
11139 int
11140 main ()
11141 {
11142 return f != realpath;
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -z "$ac_c_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_func_realpath=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_cv_func_realpath=no
11175 fi
11176 rm -f conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 fi
11179 echo "$as_me:$LINENO: result: $ac_cv_func_realpath" >&5
11180 echo "${ECHO_T}$ac_cv_func_realpath" >&6
11181 if test $ac_cv_func_realpath = yes; then
11182 :
11183 else
11184
11185 cat >>confdefs.h <<\_ACEOF
11186 #define NO_REALPATH 1
11187 _ACEOF
11188
11189 fi
11190
11191
11192
11193 NEED_FAKE_RFC2553=0
11194
11195
11196
11197
11198 for ac_func in getnameinfo getaddrinfo freeaddrinfo gai_strerror
11199 do
11200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201 echo "$as_me:$LINENO: checking for $ac_func" >&5
11202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_var+set}\" = set"; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11214 #define $ac_func innocuous_$ac_func
11215
11216 /* System header to define __stub macros and hopefully few prototypes,
11217 which can conflict with char $ac_func (); below.
11218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 <limits.h> exists even on freestanding compilers. */
11220
11221 #ifdef __STDC__
11222 # include <limits.h>
11223 #else
11224 # include <assert.h>
11225 #endif
11226
11227 #undef $ac_func
11228
11229 /* Override any gcc2 internal prototype to avoid an error. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 {
11233 #endif
11234 /* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236 char $ac_func ();
11237 /* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11241 choke me
11242 #else
11243 char (*f) () = $ac_func;
11244 #endif
11245 #ifdef __cplusplus
11246 }
11247 #endif
11248
11249 int
11250 main ()
11251 {
11252 return f != $ac_func;
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest$ac_exeext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 eval "$as_ac_var=yes"
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 eval "$as_ac_var=no"
11285 fi
11286 rm -f conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 fi
11289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 else
11297 NEED_FAKE_RFC2553=1
11298 fi
11299 done
11300
11301 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11302 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11303 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312
11313 #include <sys/types.h>
11314 #include <sys/socket.h>
11315 #include <netinet/in.h>
11316 #include <netdb.h>
11317
11318
11319 int
11320 main ()
11321 {
11322 if ((struct addrinfo *) 0)
11323 return 0;
11324 if (sizeof (struct addrinfo))
11325 return 0;
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_type_struct_addrinfo=yes
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_cv_type_struct_addrinfo=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11362 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11363 if test $ac_cv_type_struct_addrinfo = yes; then
11364
11365 cat >>confdefs.h <<_ACEOF
11366 #define HAVE_STRUCT_ADDRINFO 1
11367 _ACEOF
11368
11369
11370 else
11371 NEED_FAKE_RFC2553=1
11372 fi
11373 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
11374 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
11375 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384
11385 #include <sys/types.h>
11386 #include <sys/socket.h>
11387 #include <netinet/in.h>
11388 #include <netdb.h>
11389
11390
11391 int
11392 main ()
11393 {
11394 if ((struct in6_addr *) 0)
11395 return 0;
11396 if (sizeof (struct in6_addr))
11397 return 0;
11398 ;
11399 return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest.$ac_objext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_type_struct_in6_addr=yes
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 ac_cv_type_struct_in6_addr=no
11430 fi
11431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
11434 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
11435 if test $ac_cv_type_struct_in6_addr = yes; then
11436
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_STRUCT_IN6_ADDR 1
11439 _ACEOF
11440
11441
11442 else
11443 NEED_FAKE_RFC2553=1
11444 fi
11445 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11446 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11447 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h. */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456
11457 #include <sys/types.h>
11458 #include <sys/socket.h>
11459 #include <netinet/in.h>
11460 #include <netdb.h>
11461
11462
11463 int
11464 main ()
11465 {
11466 if ((struct sockaddr_in6 *) 0)
11467 return 0;
11468 if (sizeof (struct sockaddr_in6))
11469 return 0;
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476 (eval $ac_compile) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -z "$ac_c_werror_flag"
11484 || test ! -s conftest.err'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_cv_type_struct_sockaddr_in6=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_cv_type_struct_sockaddr_in6=no
11502 fi
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11506 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11507 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11508
11509 cat >>confdefs.h <<_ACEOF
11510 #define HAVE_STRUCT_SOCKADDR_IN6 1
11511 _ACEOF
11512
11513
11514 else
11515 NEED_FAKE_RFC2553=1
11516 fi
11517 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11518 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11519 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528
11529 #include <sys/types.h>
11530 #include <sys/socket.h>
11531 #include <netinet/in.h>
11532 #include <netdb.h>
11533
11534
11535 int
11536 main ()
11537 {
11538 if ((struct sockaddr_storage *) 0)
11539 return 0;
11540 if (sizeof (struct sockaddr_storage))
11541 return 0;
11542 ;
11543 return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548 (eval $ac_compile) 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag"
11556 || test ! -s conftest.err'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest.$ac_objext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 ac_cv_type_struct_sockaddr_storage=yes
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 ac_cv_type_struct_sockaddr_storage=no
11574 fi
11575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11576 fi
11577 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11578 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11579 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11580
11581 cat >>confdefs.h <<_ACEOF
11582 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11583 _ACEOF
11584
11585
11586 else
11587 NEED_FAKE_RFC2553=1
11588 fi
11589
11590 if test "x$NEED_FAKE_RFC2553" = "x1"; then
11591
11592 cat >>confdefs.h <<\_ACEOF
11593 #define NEED_FAKE_RFC2553 1
11594 _ACEOF
11595
11596 case $LIBOBJS in
11597 "fake-rfc2553.$ac_objext" | \
11598 *" fake-rfc2553.$ac_objext" | \
11599 "fake-rfc2553.$ac_objext "* | \
11600 *" fake-rfc2553.$ac_objext "* ) ;;
11601 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" ;;
11602 esac
11603
11604 echo "$as_me:$LINENO: checking for strlcpy" >&5
11605 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
11606 if test "${ac_cv_func_strlcpy+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617 #define strlcpy innocuous_strlcpy
11618
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char strlcpy (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11623
11624 #ifdef __STDC__
11625 # include <limits.h>
11626 #else
11627 # include <assert.h>
11628 #endif
11629
11630 #undef strlcpy
11631
11632 /* Override any gcc2 internal prototype to avoid an error. */
11633 #ifdef __cplusplus
11634 extern "C"
11635 {
11636 #endif
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char strlcpy ();
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined (__stub_strlcpy) || defined (__stub___strlcpy)
11644 choke me
11645 #else
11646 char (*f) () = strlcpy;
11647 #endif
11648 #ifdef __cplusplus
11649 }
11650 #endif
11651
11652 int
11653 main ()
11654 {
11655 return f != strlcpy;
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest$ac_exeext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_func_strlcpy=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_cv_func_strlcpy=no
11688 fi
11689 rm -f conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 fi
11692 echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
11693 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
11694
11695 fi
11696
11697
11698 #--------------------------------------------------------------------
11699 # Look for thread-safe variants of some library functions.
11700 #--------------------------------------------------------------------
11701
11702 if test "${TCL_THREADS}" = 1; then
11703 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
11704 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
11705 if test "${ac_cv_func_getpwuid_r+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r.
11715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11716 #define getpwuid_r innocuous_getpwuid_r
11717
11718 /* System header to define __stub macros and hopefully few prototypes,
11719 which can conflict with char getpwuid_r (); below.
11720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11721 <limits.h> exists even on freestanding compilers. */
11722
11723 #ifdef __STDC__
11724 # include <limits.h>
11725 #else
11726 # include <assert.h>
11727 #endif
11728
11729 #undef getpwuid_r
11730
11731 /* Override any gcc2 internal prototype to avoid an error. */
11732 #ifdef __cplusplus
11733 extern "C"
11734 {
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char getpwuid_r ();
11739 /* The GNU C library defines this for functions which it implements
11740 to always fail with ENOSYS. Some functions are actually named
11741 something starting with __ and the normal name is an alias. */
11742 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
11743 choke me
11744 #else
11745 char (*f) () = getpwuid_r;
11746 #endif
11747 #ifdef __cplusplus
11748 }
11749 #endif
11750
11751 int
11752 main ()
11753 {
11754 return f != getpwuid_r;
11755 ;
11756 return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_func_getpwuid_r=yes
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_func_getpwuid_r=no
11787 fi
11788 rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 fi
11791 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
11792 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
11793 if test $ac_cv_func_getpwuid_r = yes; then
11794
11795 echo "$as_me:$LINENO: checking for getpwuid_r with 5 args" >&5
11796 echo $ECHO_N "checking for getpwuid_r with 5 args... $ECHO_C" >&6
11797 if test "${tcl_cv_api_getpwuid_r_5+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807
11808 #include <sys/types.h>
11809 #include <pwd.h>
11810
11811 int
11812 main ()
11813 {
11814
11815 uid_t uid;
11816 struct passwd pw, *pwp;
11817 char buf[512];
11818 int buflen = 512;
11819
11820 (void) getpwuid_r(uid, &pw, buf, buflen, &pwp);
11821
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11828 (eval $ac_compile) 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 tcl_cv_api_getpwuid_r_5=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 tcl_cv_api_getpwuid_r_5=no
11854 fi
11855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 echo "$as_me:$LINENO: result: $tcl_cv_api_getpwuid_r_5" >&5
11858 echo "${ECHO_T}$tcl_cv_api_getpwuid_r_5" >&6
11859 tcl_ok=$tcl_cv_api_getpwuid_r_5
11860 if test "$tcl_ok" = yes; then
11861
11862 cat >>confdefs.h <<\_ACEOF
11863 #define HAVE_GETPWUID_R_5 1
11864 _ACEOF
11865
11866 else
11867 echo "$as_me:$LINENO: checking for getpwuid_r with 4 args" >&5
11868 echo $ECHO_N "checking for getpwuid_r with 4 args... $ECHO_C" >&6
11869 if test "${tcl_cv_api_getpwuid_r_4+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879
11880 #include <sys/types.h>
11881 #include <pwd.h>
11882
11883 int
11884 main ()
11885 {
11886
11887 uid_t uid;
11888 struct passwd pw;
11889 char buf[512];
11890 int buflen = 512;
11891
11892 (void)getpwnam_r(uid, &pw, buf, buflen);
11893
11894 ;
11895 return 0;
11896 }
11897 _ACEOF
11898 rm -f conftest.$ac_objext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 tcl_cv_api_getpwuid_r_4=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 tcl_cv_api_getpwuid_r_4=no
11926 fi
11927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 fi
11929 echo "$as_me:$LINENO: result: $tcl_cv_api_getpwuid_r_4" >&5
11930 echo "${ECHO_T}$tcl_cv_api_getpwuid_r_4" >&6
11931 tcl_ok=$tcl_cv_api_getpwuid_r_4
11932 if test "$tcl_ok" = yes; then
11933
11934 cat >>confdefs.h <<\_ACEOF
11935 #define HAVE_GETPWUID_R_4 1
11936 _ACEOF
11937
11938 fi
11939 fi
11940 if test "$tcl_ok" = yes; then
11941
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_GETPWUID_R 1
11944 _ACEOF
11945
11946 fi
11947
11948 fi
11949
11950 echo "$as_me:$LINENO: checking for getpwnam_r" >&5
11951 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
11952 if test "${ac_cv_func_getpwnam_r+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r.
11962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11963 #define getpwnam_r innocuous_getpwnam_r
11964
11965 /* System header to define __stub macros and hopefully few prototypes,
11966 which can conflict with char getpwnam_r (); below.
11967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968 <limits.h> exists even on freestanding compilers. */
11969
11970 #ifdef __STDC__
11971 # include <limits.h>
11972 #else
11973 # include <assert.h>
11974 #endif
11975
11976 #undef getpwnam_r
11977
11978 /* Override any gcc2 internal prototype to avoid an error. */
11979 #ifdef __cplusplus
11980 extern "C"
11981 {
11982 #endif
11983 /* We use char because int might match the return type of a gcc2
11984 builtin and then its argument prototype would still apply. */
11985 char getpwnam_r ();
11986 /* The GNU C library defines this for functions which it implements
11987 to always fail with ENOSYS. Some functions are actually named
11988 something starting with __ and the normal name is an alias. */
11989 #if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
11990 choke me
11991 #else
11992 char (*f) () = getpwnam_r;
11993 #endif
11994 #ifdef __cplusplus
11995 }
11996 #endif
11997
11998 int
11999 main ()
12000 {
12001 return f != getpwnam_r;
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_func_getpwnam_r=yes
12029 else
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 ac_cv_func_getpwnam_r=no
12034 fi
12035 rm -f conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 fi
12038 echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5
12039 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6
12040 if test $ac_cv_func_getpwnam_r = yes; then
12041
12042 echo "$as_me:$LINENO: checking for getpwnam_r with 5 args" >&5
12043 echo $ECHO_N "checking for getpwnam_r with 5 args... $ECHO_C" >&6
12044 if test "${tcl_cv_api_getpwnam_r_5+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054
12055 #include <sys/types.h>
12056 #include <pwd.h>
12057
12058 int
12059 main ()
12060 {
12061
12062 char *name;
12063 struct passwd pw, *pwp;
12064 char buf[512];
12065 int buflen = 512;
12066
12067 (void) getpwnam_r(name, &pw, buf, buflen, &pwp);
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 tcl_cv_api_getpwnam_r_5=yes
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 tcl_cv_api_getpwnam_r_5=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 fi
12104 echo "$as_me:$LINENO: result: $tcl_cv_api_getpwnam_r_5" >&5
12105 echo "${ECHO_T}$tcl_cv_api_getpwnam_r_5" >&6
12106 tcl_ok=$tcl_cv_api_getpwnam_r_5
12107 if test "$tcl_ok" = yes; then
12108
12109 cat >>confdefs.h <<\_ACEOF
12110 #define HAVE_GETPWNAM_R_5 1
12111 _ACEOF
12112
12113 else
12114 echo "$as_me:$LINENO: checking for getpwnam_r with 4 args" >&5
12115 echo $ECHO_N "checking for getpwnam_r with 4 args... $ECHO_C" >&6
12116 if test "${tcl_cv_api_getpwnam_r_4+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119
12120 cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h. */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126
12127 #include <sys/types.h>
12128 #include <pwd.h>
12129
12130 int
12131 main ()
12132 {
12133
12134 char *name;
12135 struct passwd pw;
12136 char buf[512];
12137 int buflen = 512;
12138
12139 (void)getpwnam_r(name, &pw, buf, buflen);
12140
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag"
12155 || test ! -s conftest.err'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest.$ac_objext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 tcl_cv_api_getpwnam_r_4=yes
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 tcl_cv_api_getpwnam_r_4=no
12173 fi
12174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12175 fi
12176 echo "$as_me:$LINENO: result: $tcl_cv_api_getpwnam_r_4" >&5
12177 echo "${ECHO_T}$tcl_cv_api_getpwnam_r_4" >&6
12178 tcl_ok=$tcl_cv_api_getpwnam_r_4
12179 if test "$tcl_ok" = yes; then
12180
12181 cat >>confdefs.h <<\_ACEOF
12182 #define HAVE_GETPWNAM_R_4 1
12183 _ACEOF
12184
12185 fi
12186 fi
12187 if test "$tcl_ok" = yes; then
12188
12189 cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_GETPWNAM_R 1
12191 _ACEOF
12192
12193 fi
12194
12195 fi
12196
12197 echo "$as_me:$LINENO: checking for getgrgid_r" >&5
12198 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6
12199 if test "${ac_cv_func_getgrgid_r+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210 #define getgrgid_r innocuous_getgrgid_r
12211
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char getgrgid_r (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12216
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12222
12223 #undef getgrgid_r
12224
12225 /* Override any gcc2 internal prototype to avoid an error. */
12226 #ifdef __cplusplus
12227 extern "C"
12228 {
12229 #endif
12230 /* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12232 char getgrgid_r ();
12233 /* The GNU C library defines this for functions which it implements
12234 to always fail with ENOSYS. Some functions are actually named
12235 something starting with __ and the normal name is an alias. */
12236 #if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
12237 choke me
12238 #else
12239 char (*f) () = getgrgid_r;
12240 #endif
12241 #ifdef __cplusplus
12242 }
12243 #endif
12244
12245 int
12246 main ()
12247 {
12248 return f != getgrgid_r;
12249 ;
12250 return 0;
12251 }
12252 _ACEOF
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try='test -z "$ac_c_werror_flag"
12263 || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_func_getgrgid_r=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_cv_func_getgrgid_r=no
12281 fi
12282 rm -f conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 fi
12285 echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5
12286 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6
12287 if test $ac_cv_func_getgrgid_r = yes; then
12288
12289 echo "$as_me:$LINENO: checking for getgrgid_r with 5 args" >&5
12290 echo $ECHO_N "checking for getgrgid_r with 5 args... $ECHO_C" >&6
12291 if test "${tcl_cv_api_getgrgid_r_5+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301
12302 #include <sys/types.h>
12303 #include <grp.h>
12304
12305 int
12306 main ()
12307 {
12308
12309 gid_t gid;
12310 struct group gr, *grp;
12311 char buf[512];
12312 int buflen = 512;
12313
12314 (void) getgrgid_r(gid, &gr, buf, buflen, &grp);
12315
12316 ;
12317 return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322 (eval $ac_compile) 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag"
12330 || test ! -s conftest.err'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 tcl_cv_api_getgrgid_r_5=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 tcl_cv_api_getgrgid_r_5=no
12348 fi
12349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 fi
12351 echo "$as_me:$LINENO: result: $tcl_cv_api_getgrgid_r_5" >&5
12352 echo "${ECHO_T}$tcl_cv_api_getgrgid_r_5" >&6
12353 tcl_ok=$tcl_cv_api_getgrgid_r_5
12354 if test "$tcl_ok" = yes; then
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_GETGRGID_R_5 1
12358 _ACEOF
12359
12360 else
12361 echo "$as_me:$LINENO: checking for getgrgid_r with 4 args" >&5
12362 echo $ECHO_N "checking for getgrgid_r with 4 args... $ECHO_C" >&6
12363 if test "${tcl_cv_api_getgrgid_r_4+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373
12374 #include <sys/types.h>
12375 #include <grp.h>
12376
12377 int
12378 main ()
12379 {
12380
12381 gid_t gid;
12382 struct group gr;
12383 char buf[512];
12384 int buflen = 512;
12385
12386 (void)getgrgid_r(gid, &gr, buf, buflen);
12387
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394 (eval $ac_compile) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 tcl_cv_api_getgrgid_r_4=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 tcl_cv_api_getgrgid_r_4=no
12420 fi
12421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 fi
12423 echo "$as_me:$LINENO: result: $tcl_cv_api_getgrgid_r_4" >&5
12424 echo "${ECHO_T}$tcl_cv_api_getgrgid_r_4" >&6
12425 tcl_ok=$tcl_cv_api_getgrgid_r_4
12426 if test "$tcl_ok" = yes; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_GETGRGID_R_4 1
12430 _ACEOF
12431
12432 fi
12433 fi
12434 if test "$tcl_ok" = yes; then
12435
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_GETGRGID_R 1
12438 _ACEOF
12439
12440 fi
12441
12442 fi
12443
12444 echo "$as_me:$LINENO: checking for getgrnam_r" >&5
12445 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6
12446 if test "${ac_cv_func_getgrnam_r+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define getgrnam_r innocuous_getgrnam_r
12458
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char getgrnam_r (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12463
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12469
12470 #undef getgrnam_r
12471
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 {
12476 #endif
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char getgrnam_r ();
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
12484 choke me
12485 #else
12486 char (*f) () = getgrnam_r;
12487 #endif
12488 #ifdef __cplusplus
12489 }
12490 #endif
12491
12492 int
12493 main ()
12494 {
12495 return f != getgrnam_r;
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_func_getgrnam_r=yes
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 ac_cv_func_getgrnam_r=no
12528 fi
12529 rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 fi
12532 echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5
12533 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6
12534 if test $ac_cv_func_getgrnam_r = yes; then
12535
12536 echo "$as_me:$LINENO: checking for getgrnam_r with 5 args" >&5
12537 echo $ECHO_N "checking for getgrnam_r with 5 args... $ECHO_C" >&6
12538 if test "${tcl_cv_api_getgrnam_r_5+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548
12549 #include <sys/types.h>
12550 #include <grp.h>
12551
12552 int
12553 main ()
12554 {
12555
12556 char *name;
12557 struct group gr, *grp;
12558 char buf[512];
12559 int buflen = 512;
12560
12561 (void) getgrnam_r(name, &gr, buf, buflen, &grp);
12562
12563 ;
12564 return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest.$ac_objext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12569 (eval $ac_compile) 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag"
12577 || test ! -s conftest.err'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 tcl_cv_api_getgrnam_r_5=yes
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 tcl_cv_api_getgrnam_r_5=no
12595 fi
12596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 echo "$as_me:$LINENO: result: $tcl_cv_api_getgrnam_r_5" >&5
12599 echo "${ECHO_T}$tcl_cv_api_getgrnam_r_5" >&6
12600 tcl_ok=$tcl_cv_api_getgrnam_r_5
12601 if test "$tcl_ok" = yes; then
12602
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_GETGRNAM_R_5 1
12605 _ACEOF
12606
12607 else
12608 echo "$as_me:$LINENO: checking for getgrnam_r with 4 args" >&5
12609 echo $ECHO_N "checking for getgrnam_r with 4 args... $ECHO_C" >&6
12610 if test "${tcl_cv_api_getgrnam_r_4+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620
12621 #include <sys/types.h>
12622 #include <grp.h>
12623
12624 int
12625 main ()
12626 {
12627
12628 char *name;
12629 struct group gr;
12630 char buf[512];
12631 int buflen = 512;
12632
12633 (void)getgrnam_r(name, &gr, buf, buflen);
12634
12635 ;
12636 return 0;
12637 }
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 tcl_cv_api_getgrnam_r_4=yes
12662 else
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 tcl_cv_api_getgrnam_r_4=no
12667 fi
12668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12669 fi
12670 echo "$as_me:$LINENO: result: $tcl_cv_api_getgrnam_r_4" >&5
12671 echo "${ECHO_T}$tcl_cv_api_getgrnam_r_4" >&6
12672 tcl_ok=$tcl_cv_api_getgrnam_r_4
12673 if test "$tcl_ok" = yes; then
12674
12675 cat >>confdefs.h <<\_ACEOF
12676 #define HAVE_GETGRNAM_R_4 1
12677 _ACEOF
12678
12679 fi
12680 fi
12681 if test "$tcl_ok" = yes; then
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define HAVE_GETGRNAM_R 1
12685 _ACEOF
12686
12687 fi
12688
12689 fi
12690
12691 if test "`uname -s`" = "Darwin" && \
12692 test "`uname -r | awk -F. '{print $1}'`" -gt 5; then
12693 # Starting with Darwin 6 (Mac OSX 10.2), gethostbyX
12694 # are actually MT-safe as they always return pointers
12695 # from TSD instead of static storage.
12696
12697 cat >>confdefs.h <<\_ACEOF
12698 #define HAVE_MTSAFE_GETHOSTBYNAME 1
12699 _ACEOF
12700
12701
12702 cat >>confdefs.h <<\_ACEOF
12703 #define HAVE_MTSAFE_GETHOSTBYADDR 1
12704 _ACEOF
12705
12706
12707 elif test "`uname -s`" = "HP-UX" && \
12708 test "`uname -r|sed -e 's|B\.||' -e 's|\..*$||'`" -gt 10; then
12709 # Starting with HPUX 11.00 (we believe), gethostbyX
12710 # are actually MT-safe as they always return pointers
12711 # from TSD instead of static storage.
12712
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_MTSAFE_GETHOSTBYNAME 1
12715 _ACEOF
12716
12717
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_MTSAFE_GETHOSTBYADDR 1
12720 _ACEOF
12721
12722
12723 else
12724
12725 # Avoids picking hidden internal symbol from libc
12726 echo "$as_me:$LINENO: checking whether gethostbyname_r is declared" >&5
12727 echo $ECHO_N "checking whether gethostbyname_r is declared... $ECHO_C" >&6
12728 if test "${ac_cv_have_decl_gethostbyname_r+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 #include <netdb.h>
12738
12739 int
12740 main ()
12741 {
12742 #ifndef gethostbyname_r
12743 char *p = (char *) gethostbyname_r;
12744 #endif
12745
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_have_decl_gethostbyname_r=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_cv_have_decl_gethostbyname_r=no
12778 fi
12779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12780 fi
12781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyname_r" >&5
12782 echo "${ECHO_T}$ac_cv_have_decl_gethostbyname_r" >&6
12783 if test $ac_cv_have_decl_gethostbyname_r = yes; then
12784
12785 cat >>confdefs.h <<_ACEOF
12786 #define HAVE_DECL_GETHOSTBYNAME_R 1
12787 _ACEOF
12788
12789
12790 tcl_cv_api_gethostbyname_r=yes
12791 else
12792 cat >>confdefs.h <<_ACEOF
12793 #define HAVE_DECL_GETHOSTBYNAME_R 0
12794 _ACEOF
12795
12796 tcl_cv_api_gethostbyname_r=no
12797 fi
12798
12799
12800
12801
12802 if test "$tcl_cv_api_gethostbyname_r" = yes; then
12803 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
12804 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
12805 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
12815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12816 #define gethostbyname_r innocuous_gethostbyname_r
12817
12818 /* System header to define __stub macros and hopefully few prototypes,
12819 which can conflict with char gethostbyname_r (); below.
12820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12821 <limits.h> exists even on freestanding compilers. */
12822
12823 #ifdef __STDC__
12824 # include <limits.h>
12825 #else
12826 # include <assert.h>
12827 #endif
12828
12829 #undef gethostbyname_r
12830
12831 /* Override any gcc2 internal prototype to avoid an error. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 {
12835 #endif
12836 /* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12838 char gethostbyname_r ();
12839 /* The GNU C library defines this for functions which it implements
12840 to always fail with ENOSYS. Some functions are actually named
12841 something starting with __ and the normal name is an alias. */
12842 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
12843 choke me
12844 #else
12845 char (*f) () = gethostbyname_r;
12846 #endif
12847 #ifdef __cplusplus
12848 }
12849 #endif
12850
12851 int
12852 main ()
12853 {
12854 return f != gethostbyname_r;
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest$ac_exeext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_func_gethostbyname_r=yes
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886 ac_cv_func_gethostbyname_r=no
12887 fi
12888 rm -f conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 fi
12891 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
12892 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
12893 if test $ac_cv_func_gethostbyname_r = yes; then
12894
12895 echo "$as_me:$LINENO: checking for gethostbyname_r with 6 args" >&5
12896 echo $ECHO_N "checking for gethostbyname_r with 6 args... $ECHO_C" >&6
12897 if test "${tcl_cv_api_gethostbyname_r_6+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 else
12900
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h. */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12907
12908 #include <netdb.h>
12909
12910 int
12911 main ()
12912 {
12913
12914 char *name;
12915 struct hostent *he, *res;
12916 char buffer[2048];
12917 int buflen = 2048;
12918 int h_errnop;
12919
12920 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop);
12921
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 tcl_cv_api_gethostbyname_r_6=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 tcl_cv_api_gethostbyname_r_6=no
12954 fi
12955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12956 fi
12957 echo "$as_me:$LINENO: result: $tcl_cv_api_gethostbyname_r_6" >&5
12958 echo "${ECHO_T}$tcl_cv_api_gethostbyname_r_6" >&6
12959 tcl_ok=$tcl_cv_api_gethostbyname_r_6
12960 if test "$tcl_ok" = yes; then
12961
12962 cat >>confdefs.h <<\_ACEOF
12963 #define HAVE_GETHOSTBYNAME_R_6 1
12964 _ACEOF
12965
12966 else
12967 echo "$as_me:$LINENO: checking for gethostbyname_r with 5 args" >&5
12968 echo $ECHO_N "checking for gethostbyname_r with 5 args... $ECHO_C" >&6
12969 if test "${tcl_cv_api_gethostbyname_r_5+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979
12980 #include <netdb.h>
12981
12982 int
12983 main ()
12984 {
12985
12986 char *name;
12987 struct hostent *he;
12988 char buffer[2048];
12989 int buflen = 2048;
12990 int h_errnop;
12991
12992 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop);
12993
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000 (eval $ac_compile) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_c_werror_flag"
13008 || test ! -s conftest.err'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 tcl_cv_api_gethostbyname_r_5=yes
13021 else
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025 tcl_cv_api_gethostbyname_r_5=no
13026 fi
13027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13028 fi
13029 echo "$as_me:$LINENO: result: $tcl_cv_api_gethostbyname_r_5" >&5
13030 echo "${ECHO_T}$tcl_cv_api_gethostbyname_r_5" >&6
13031 tcl_ok=$tcl_cv_api_gethostbyname_r_5
13032 if test "$tcl_ok" = yes; then
13033
13034 cat >>confdefs.h <<\_ACEOF
13035 #define HAVE_GETHOSTBYNAME_R_5 1
13036 _ACEOF
13037
13038 else
13039 echo "$as_me:$LINENO: checking for gethostbyname_r with 3 args" >&5
13040 echo $ECHO_N "checking for gethostbyname_r with 3 args... $ECHO_C" >&6
13041 if test "${tcl_cv_api_gethostbyname_r_3+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051
13052 #include <netdb.h>
13053
13054 int
13055 main ()
13056 {
13057
13058 char *name;
13059 struct hostent *he;
13060 struct hostent_data data;
13061
13062 (void) gethostbyname_r(name, he, &data);
13063
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070 (eval $ac_compile) 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest.$ac_objext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 tcl_cv_api_gethostbyname_r_3=yes
13091 else
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 tcl_cv_api_gethostbyname_r_3=no
13096 fi
13097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 echo "$as_me:$LINENO: result: $tcl_cv_api_gethostbyname_r_3" >&5
13100 echo "${ECHO_T}$tcl_cv_api_gethostbyname_r_3" >&6
13101 tcl_ok=$tcl_cv_api_gethostbyname_r_3
13102 if test "$tcl_ok" = yes; then
13103
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_GETHOSTBYNAME_R_3 1
13106 _ACEOF
13107
13108 fi
13109 fi
13110 fi
13111 if test "$tcl_ok" = yes; then
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_GETHOSTBYNAME_R 1
13115 _ACEOF
13116
13117 fi
13118
13119 fi
13120
13121 fi
13122
13123
13124 # Avoids picking hidden internal symbol from libc
13125 echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
13126 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6
13127 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 #include <netdb.h>
13137
13138 int
13139 main ()
13140 {
13141 #ifndef gethostbyaddr_r
13142 char *p = (char *) gethostbyaddr_r;
13143 #endif
13144
13145 ;
13146 return 0;
13147 }
13148 _ACEOF
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest.$ac_objext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 ac_cv_have_decl_gethostbyaddr_r=yes
13172 else
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13175
13176 ac_cv_have_decl_gethostbyaddr_r=no
13177 fi
13178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13179 fi
13180 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
13181 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6
13182 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
13183
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_DECL_GETHOSTBYADDR_R 1
13186 _ACEOF
13187
13188
13189 tcl_cv_api_gethostbyaddr_r=yes
13190 else
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_DECL_GETHOSTBYADDR_R 0
13193 _ACEOF
13194
13195 tcl_cv_api_gethostbyaddr_r=no
13196 fi
13197
13198
13199
13200
13201 if test "$tcl_cv_api_gethostbyaddr_r" = yes; then
13202 echo "$as_me:$LINENO: checking for gethostbyaddr_r" >&5
13203 echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6
13204 if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
13214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13215 #define gethostbyaddr_r innocuous_gethostbyaddr_r
13216
13217 /* System header to define __stub macros and hopefully few prototypes,
13218 which can conflict with char gethostbyaddr_r (); below.
13219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13220 <limits.h> exists even on freestanding compilers. */
13221
13222 #ifdef __STDC__
13223 # include <limits.h>
13224 #else
13225 # include <assert.h>
13226 #endif
13227
13228 #undef gethostbyaddr_r
13229
13230 /* Override any gcc2 internal prototype to avoid an error. */
13231 #ifdef __cplusplus
13232 extern "C"
13233 {
13234 #endif
13235 /* We use char because int might match the return type of a gcc2
13236 builtin and then its argument prototype would still apply. */
13237 char gethostbyaddr_r ();
13238 /* The GNU C library defines this for functions which it implements
13239 to always fail with ENOSYS. Some functions are actually named
13240 something starting with __ and the normal name is an alias. */
13241 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
13242 choke me
13243 #else
13244 char (*f) () = gethostbyaddr_r;
13245 #endif
13246 #ifdef __cplusplus
13247 }
13248 #endif
13249
13250 int
13251 main ()
13252 {
13253 return f != gethostbyaddr_r;
13254 ;
13255 return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13260 (eval $ac_link) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_cv_func_gethostbyaddr_r=yes
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_cv_func_gethostbyaddr_r=no
13286 fi
13287 rm -f conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 fi
13290 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_r" >&5
13291 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6
13292 if test $ac_cv_func_gethostbyaddr_r = yes; then
13293
13294 echo "$as_me:$LINENO: checking for gethostbyaddr_r with 7 args" >&5
13295 echo $ECHO_N "checking for gethostbyaddr_r with 7 args... $ECHO_C" >&6
13296 if test "${tcl_cv_api_gethostbyaddr_r_7+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306
13307 #include <netdb.h>
13308
13309 int
13310 main ()
13311 {
13312
13313 char *addr;
13314 int length;
13315 int type;
13316 struct hostent *result;
13317 char buffer[2048];
13318 int buflen = 2048;
13319 int h_errnop;
13320
13321 (void) gethostbyaddr_r(addr, length, type, result, buffer, buflen,
13322 &h_errnop);
13323
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag"
13338 || test ! -s conftest.err'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 tcl_cv_api_gethostbyaddr_r_7=yes
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355 tcl_cv_api_gethostbyaddr_r_7=no
13356 fi
13357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13358 fi
13359 echo "$as_me:$LINENO: result: $tcl_cv_api_gethostbyaddr_r_7" >&5
13360 echo "${ECHO_T}$tcl_cv_api_gethostbyaddr_r_7" >&6
13361 tcl_ok=$tcl_cv_api_gethostbyaddr_r_7
13362 if test "$tcl_ok" = yes; then
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_GETHOSTBYADDR_R_7 1
13366 _ACEOF
13367
13368 else
13369 echo "$as_me:$LINENO: checking for gethostbyaddr_r with 8 args" >&5
13370 echo $ECHO_N "checking for gethostbyaddr_r with 8 args... $ECHO_C" >&6
13371 if test "${tcl_cv_api_gethostbyaddr_r_8+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381
13382 #include <netdb.h>
13383
13384 int
13385 main ()
13386 {
13387
13388 char *addr;
13389 int length;
13390 int type;
13391 struct hostent *result, *resultp;
13392 char buffer[2048];
13393 int buflen = 2048;
13394 int h_errnop;
13395
13396 (void) gethostbyaddr_r(addr, length, type, result, buffer, buflen,
13397 &resultp, &h_errnop);
13398
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag"
13413 || test ! -s conftest.err'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421 (eval $ac_try) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 tcl_cv_api_gethostbyaddr_r_8=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 tcl_cv_api_gethostbyaddr_r_8=no
13431 fi
13432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13433 fi
13434 echo "$as_me:$LINENO: result: $tcl_cv_api_gethostbyaddr_r_8" >&5
13435 echo "${ECHO_T}$tcl_cv_api_gethostbyaddr_r_8" >&6
13436 tcl_ok=$tcl_cv_api_gethostbyaddr_r_8
13437 if test "$tcl_ok" = yes; then
13438
13439 cat >>confdefs.h <<\_ACEOF
13440 #define HAVE_GETHOSTBYADDR_R_8 1
13441 _ACEOF
13442
13443 fi
13444 fi
13445 if test "$tcl_ok" = yes; then
13446
13447 cat >>confdefs.h <<\_ACEOF
13448 #define HAVE_GETHOSTBYADDR_R 1
13449 _ACEOF
13450
13451 fi
13452
13453 fi
13454
13455 fi
13456
13457 fi
13458 fi
13459
13460 #---------------------------------------------------------------------------
13461 # Check for serial port interface.
13462 #
13463 # termios.h is present on all POSIX systems.
13464 # sys/ioctl.h is almost always present, though what it contains
13465 # is system-specific.
13466 # sys/modem.h is needed on HP-UX.
13467 #---------------------------------------------------------------------------
13468
13469
13470 for ac_header in termios.h
13471 do
13472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13474 echo "$as_me:$LINENO: checking for $ac_header" >&5
13475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 fi
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13481 else
13482 # Is the header compilable?
13483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 $ac_includes_default
13492 #include <$ac_header>
13493 _ACEOF
13494 rm -f conftest.$ac_objext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_header_compiler=yes
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_header_compiler=no
13522 fi
13523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13525 echo "${ECHO_T}$ac_header_compiler" >&6
13526
13527 # Is the header present?
13528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h. */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 #include <$ac_header>
13537 _ACEOF
13538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } >/dev/null; then
13546 if test -s conftest.err; then
13547 ac_cpp_err=$ac_c_preproc_warn_flag
13548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13549 else
13550 ac_cpp_err=
13551 fi
13552 else
13553 ac_cpp_err=yes
13554 fi
13555 if test -z "$ac_cpp_err"; then
13556 ac_header_preproc=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 ac_header_preproc=no
13562 fi
13563 rm -f conftest.err conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13565 echo "${ECHO_T}$ac_header_preproc" >&6
13566
13567 # So? What about this header?
13568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13569 yes:no: )
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13574 ac_header_preproc=yes
13575 ;;
13576 no:yes:* )
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13589 (
13590 cat <<\_ASBOX
13591 ## ------------------------------ ##
13592 ## Report this to the tcl lists. ##
13593 ## ------------------------------ ##
13594 _ASBOX
13595 ) |
13596 sed "s/^/$as_me: WARNING: /" >&2
13597 ;;
13598 esac
13599 echo "$as_me:$LINENO: checking for $ac_header" >&5
13600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604 eval "$as_ac_Header=\$ac_header_preproc"
13605 fi
13606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13608
13609 fi
13610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13611 cat >>confdefs.h <<_ACEOF
13612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13613 _ACEOF
13614
13615 fi
13616
13617 done
13618
13619
13620 for ac_header in sys/ioctl.h
13621 do
13622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13624 echo "$as_me:$LINENO: checking for $ac_header" >&5
13625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 fi
13629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13631 else
13632 # Is the header compilable?
13633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 $ac_includes_default
13642 #include <$ac_header>
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_header_compiler=yes
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 ac_header_compiler=no
13672 fi
13673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675 echo "${ECHO_T}$ac_header_compiler" >&6
13676
13677 # Is the header present?
13678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <$ac_header>
13687 _ACEOF
13688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13690 ac_status=$?
13691 grep -v '^ *+' conftest.er1 >conftest.err
13692 rm -f conftest.er1
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } >/dev/null; then
13696 if test -s conftest.err; then
13697 ac_cpp_err=$ac_c_preproc_warn_flag
13698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13699 else
13700 ac_cpp_err=
13701 fi
13702 else
13703 ac_cpp_err=yes
13704 fi
13705 if test -z "$ac_cpp_err"; then
13706 ac_header_preproc=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 ac_header_preproc=no
13712 fi
13713 rm -f conftest.err conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13715 echo "${ECHO_T}$ac_header_preproc" >&6
13716
13717 # So? What about this header?
13718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13719 yes:no: )
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13724 ac_header_preproc=yes
13725 ;;
13726 no:yes:* )
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13739 (
13740 cat <<\_ASBOX
13741 ## ------------------------------ ##
13742 ## Report this to the tcl lists. ##
13743 ## ------------------------------ ##
13744 _ASBOX
13745 ) |
13746 sed "s/^/$as_me: WARNING: /" >&2
13747 ;;
13748 esac
13749 echo "$as_me:$LINENO: checking for $ac_header" >&5
13750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 eval "$as_ac_Header=\$ac_header_preproc"
13755 fi
13756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13758
13759 fi
13760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13761 cat >>confdefs.h <<_ACEOF
13762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13763 _ACEOF
13764
13765 fi
13766
13767 done
13768
13769
13770 for ac_header in sys/modem.h
13771 do
13772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13774 echo "$as_me:$LINENO: checking for $ac_header" >&5
13775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 fi
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13781 else
13782 # Is the header compilable?
13783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 #include <$ac_header>
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag"
13804 || test ! -s conftest.err'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816 ac_header_compiler=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 ac_header_compiler=no
13822 fi
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13825 echo "${ECHO_T}$ac_header_compiler" >&6
13826
13827 # Is the header present?
13828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <$ac_header>
13837 _ACEOF
13838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } >/dev/null; then
13846 if test -s conftest.err; then
13847 ac_cpp_err=$ac_c_preproc_warn_flag
13848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13849 else
13850 ac_cpp_err=
13851 fi
13852 else
13853 ac_cpp_err=yes
13854 fi
13855 if test -z "$ac_cpp_err"; then
13856 ac_header_preproc=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_header_preproc=no
13862 fi
13863 rm -f conftest.err conftest.$ac_ext
13864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13865 echo "${ECHO_T}$ac_header_preproc" >&6
13866
13867 # So? What about this header?
13868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13869 yes:no: )
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13874 ac_header_preproc=yes
13875 ;;
13876 no:yes:* )
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13889 (
13890 cat <<\_ASBOX
13891 ## ------------------------------ ##
13892 ## Report this to the tcl lists. ##
13893 ## ------------------------------ ##
13894 _ASBOX
13895 ) |
13896 sed "s/^/$as_me: WARNING: /" >&2
13897 ;;
13898 esac
13899 echo "$as_me:$LINENO: checking for $ac_header" >&5
13900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904 eval "$as_ac_Header=\$ac_header_preproc"
13905 fi
13906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13908
13909 fi
13910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13911 cat >>confdefs.h <<_ACEOF
13912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 _ACEOF
13914
13915 fi
13916
13917 done
13918
13919
13920 #--------------------------------------------------------------------
13921 # Include sys/select.h if it exists and if it supplies things
13922 # that appear to be useful and aren't already in sys/types.h.
13923 # This appears to be true only on the RS/6000 under AIX. Some
13924 # systems like OSF/1 have a sys/select.h that's of no use, and
13925 # other systems like SCO UNIX have a sys/select.h that's
13926 # pernicious. If "fd_set" isn't defined anywhere then set a
13927 # special flag.
13928 #--------------------------------------------------------------------
13929
13930 echo "$as_me:$LINENO: checking for fd_set in sys/types" >&5
13931 echo $ECHO_N "checking for fd_set in sys/types... $ECHO_C" >&6
13932 if test "${tcl_cv_type_fd_set+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935
13936 cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h. */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <sys/types.h>
13943 int
13944 main ()
13945 {
13946 fd_set readMask, writeMask;
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953 (eval $ac_compile) 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_c_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest.$ac_objext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 tcl_cv_type_fd_set=yes
13974 else
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 tcl_cv_type_fd_set=no
13979 fi
13980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 echo "$as_me:$LINENO: result: $tcl_cv_type_fd_set" >&5
13983 echo "${ECHO_T}$tcl_cv_type_fd_set" >&6
13984 tcl_ok=$tcl_cv_type_fd_set
13985 if test $tcl_ok = no; then
13986 echo "$as_me:$LINENO: checking for fd_mask in sys/select" >&5
13987 echo $ECHO_N "checking for fd_mask in sys/select... $ECHO_C" >&6
13988 if test "${tcl_cv_grep_fd_mask+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <sys/select.h>
13999
14000 _ACEOF
14001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14002 $EGREP "fd_mask" >/dev/null 2>&1; then
14003 tcl_cv_grep_fd_mask=present
14004 else
14005 tcl_cv_grep_fd_mask=missing
14006 fi
14007 rm -f conftest*
14008
14009 fi
14010 echo "$as_me:$LINENO: result: $tcl_cv_grep_fd_mask" >&5
14011 echo "${ECHO_T}$tcl_cv_grep_fd_mask" >&6
14012 if test $tcl_cv_grep_fd_mask = present; then
14013
14014 cat >>confdefs.h <<\_ACEOF
14015 #define HAVE_SYS_SELECT_H 1
14016 _ACEOF
14017
14018 tcl_ok=yes
14019 fi
14020 fi
14021 if test $tcl_ok = no; then
14022
14023 cat >>confdefs.h <<\_ACEOF
14024 #define NO_FD_SET 1
14025 _ACEOF
14026
14027 fi
14028
14029 #------------------------------------------------------------------------------
14030 # Find out all about time handling differences.
14031 #------------------------------------------------------------------------------
14032
14033
14034
14035 for ac_header in sys/time.h
14036 do
14037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14039 echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 fi
14044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14046 else
14047 # Is the header compilable?
14048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 $ac_includes_default
14057 #include <$ac_header>
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_header_compiler=yes
14082 else
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_compiler=no
14087 fi
14088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090 echo "${ECHO_T}$ac_header_compiler" >&6
14091
14092 # Is the header present?
14093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h. */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 #include <$ac_header>
14102 _ACEOF
14103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } >/dev/null; then
14111 if test -s conftest.err; then
14112 ac_cpp_err=$ac_c_preproc_warn_flag
14113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14114 else
14115 ac_cpp_err=
14116 fi
14117 else
14118 ac_cpp_err=yes
14119 fi
14120 if test -z "$ac_cpp_err"; then
14121 ac_header_preproc=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 ac_header_preproc=no
14127 fi
14128 rm -f conftest.err conftest.$ac_ext
14129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 echo "${ECHO_T}$ac_header_preproc" >&6
14131
14132 # So? What about this header?
14133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14134 yes:no: )
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14139 ac_header_preproc=yes
14140 ;;
14141 no:yes:* )
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14154 (
14155 cat <<\_ASBOX
14156 ## ------------------------------ ##
14157 ## Report this to the tcl lists. ##
14158 ## ------------------------------ ##
14159 _ASBOX
14160 ) |
14161 sed "s/^/$as_me: WARNING: /" >&2
14162 ;;
14163 esac
14164 echo "$as_me:$LINENO: checking for $ac_header" >&5
14165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 eval "$as_ac_Header=\$ac_header_preproc"
14170 fi
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14173
14174 fi
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176 cat >>confdefs.h <<_ACEOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 _ACEOF
14179
14180 fi
14181
14182 done
14183
14184 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14185 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14186 if test "${ac_cv_header_time+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 #include <sys/types.h>
14196 #include <sys/time.h>
14197 #include <time.h>
14198
14199 int
14200 main ()
14201 {
14202 if ((struct tm *) 0)
14203 return 0;
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 rm -f conftest.$ac_objext
14209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14210 (eval $ac_compile) 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag"
14218 || test ! -s conftest.err'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 ac_cv_header_time=yes
14231 else
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235 ac_cv_header_time=no
14236 fi
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 fi
14239 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14240 echo "${ECHO_T}$ac_cv_header_time" >&6
14241 if test $ac_cv_header_time = yes; then
14242
14243 cat >>confdefs.h <<\_ACEOF
14244 #define TIME_WITH_SYS_TIME 1
14245 _ACEOF
14246
14247 fi
14248
14249
14250
14251
14252
14253 for ac_func in gmtime_r localtime_r mktime
14254 do
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14258 if eval "test \"\${$as_ac_var+set}\" = set"; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14269 #define $ac_func innocuous_$ac_func
14270
14271 /* System header to define __stub macros and hopefully few prototypes,
14272 which can conflict with char $ac_func (); below.
14273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274 <limits.h> exists even on freestanding compilers. */
14275
14276 #ifdef __STDC__
14277 # include <limits.h>
14278 #else
14279 # include <assert.h>
14280 #endif
14281
14282 #undef $ac_func
14283
14284 /* Override any gcc2 internal prototype to avoid an error. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 {
14288 #endif
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14291 char $ac_func ();
14292 /* The GNU C library defines this for functions which it implements
14293 to always fail with ENOSYS. Some functions are actually named
14294 something starting with __ and the normal name is an alias. */
14295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14296 choke me
14297 #else
14298 char (*f) () = $ac_func;
14299 #endif
14300 #ifdef __cplusplus
14301 }
14302 #endif
14303
14304 int
14305 main ()
14306 {
14307 return f != $ac_func;
14308 ;
14309 return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14314 (eval $ac_link) 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 eval "$as_ac_var=yes"
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 eval "$as_ac_var=no"
14340 fi
14341 rm -f conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14343 fi
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14346 if test `eval echo '${'$as_ac_var'}'` = yes; then
14347 cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14349 _ACEOF
14350
14351 fi
14352 done
14353
14354
14355 echo "$as_me:$LINENO: checking tm_tzadj in struct tm" >&5
14356 echo $ECHO_N "checking tm_tzadj in struct tm... $ECHO_C" >&6
14357 if test "${tcl_cv_member_tm_tzadj+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <time.h>
14368 int
14369 main ()
14370 {
14371 struct tm tm; (void)tm.tm_tzadj;
14372 ;
14373 return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 tcl_cv_member_tm_tzadj=yes
14399 else
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 tcl_cv_member_tm_tzadj=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406 fi
14407 echo "$as_me:$LINENO: result: $tcl_cv_member_tm_tzadj" >&5
14408 echo "${ECHO_T}$tcl_cv_member_tm_tzadj" >&6
14409 if test $tcl_cv_member_tm_tzadj = yes ; then
14410
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_TM_TZADJ 1
14413 _ACEOF
14414
14415 fi
14416
14417 echo "$as_me:$LINENO: checking tm_gmtoff in struct tm" >&5
14418 echo $ECHO_N "checking tm_gmtoff in struct tm... $ECHO_C" >&6
14419 if test "${tcl_cv_member_tm_gmtoff+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 #include <time.h>
14430 int
14431 main ()
14432 {
14433 struct tm tm; (void)tm.tm_gmtoff;
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 tcl_cv_member_tm_gmtoff=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 tcl_cv_member_tm_gmtoff=no
14466 fi
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 echo "$as_me:$LINENO: result: $tcl_cv_member_tm_gmtoff" >&5
14470 echo "${ECHO_T}$tcl_cv_member_tm_gmtoff" >&6
14471 if test $tcl_cv_member_tm_gmtoff = yes ; then
14472
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_TM_GMTOFF 1
14475 _ACEOF
14476
14477 fi
14478
14479 #
14480 # Its important to include time.h in this check, as some systems
14481 # (like convex) have timezone functions, etc.
14482 #
14483 echo "$as_me:$LINENO: checking long timezone variable" >&5
14484 echo $ECHO_N "checking long timezone variable... $ECHO_C" >&6
14485 if test "${tcl_cv_timezone_long+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <time.h>
14496 #include <stdlib.h>
14497 int
14498 main ()
14499 {
14500 extern long timezone;
14501 timezone += 1;
14502 exit (0);
14503 ;
14504 return 0;
14505 }
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 tcl_cv_timezone_long=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 tcl_cv_timezone_long=no
14535 fi
14536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 echo "$as_me:$LINENO: result: $tcl_cv_timezone_long" >&5
14539 echo "${ECHO_T}$tcl_cv_timezone_long" >&6
14540 if test $tcl_cv_timezone_long = yes ; then
14541
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_TIMEZONE_VAR 1
14544 _ACEOF
14545
14546 else
14547 #
14548 # On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
14549 #
14550 echo "$as_me:$LINENO: checking time_t timezone variable" >&5
14551 echo $ECHO_N "checking time_t timezone variable... $ECHO_C" >&6
14552 if test "${tcl_cv_timezone_time+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
14555
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h. */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 #include <time.h>
14563 #include <stdlib.h>
14564 int
14565 main ()
14566 {
14567 extern time_t timezone;
14568 timezone += 1;
14569 exit (0);
14570 ;
14571 return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
14583 { ac_try='test -z "$ac_c_werror_flag"
14584 || test ! -s conftest.err'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 tcl_cv_timezone_time=yes
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 tcl_cv_timezone_time=no
14602 fi
14603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14604 fi
14605 echo "$as_me:$LINENO: result: $tcl_cv_timezone_time" >&5
14606 echo "${ECHO_T}$tcl_cv_timezone_time" >&6
14607 if test $tcl_cv_timezone_time = yes ; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_TIMEZONE_VAR 1
14611 _ACEOF
14612
14613 fi
14614 fi
14615
14616
14617 #--------------------------------------------------------------------
14618 # Some systems (e.g., IRIX 4.0.5) lack some fields in struct stat. But
14619 # we might be able to use fstatfs instead. Some systems (OpenBSD?) also
14620 # lack blkcnt_t.
14621 #--------------------------------------------------------------------
14622
14623 if test "$ac_cv_cygwin" != "yes"; then
14624 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14625 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14626 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 $ac_includes_default
14636 int
14637 main ()
14638 {
14639 static struct stat ac_aggr;
14640 if (ac_aggr.st_blocks)
14641 return 0;
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 rm -f conftest.$ac_objext
14647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_member_struct_stat_st_blocks=yes
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 $ac_includes_default
14680 int
14681 main ()
14682 {
14683 static struct stat ac_aggr;
14684 if (sizeof ac_aggr.st_blocks)
14685 return 0;
14686 ;
14687 return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -z "$ac_c_werror_flag"
14700 || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_member_struct_stat_st_blocks=yes
14713 else
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ac_cv_member_struct_stat_st_blocks=no
14718 fi
14719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14720 fi
14721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14722 fi
14723 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14724 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14725 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14726
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14729 _ACEOF
14730
14731
14732 fi
14733 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14734 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14735 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h. */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 $ac_includes_default
14745 int
14746 main ()
14747 {
14748 static struct stat ac_aggr;
14749 if (ac_aggr.st_blksize)
14750 return 0;
14751 ;
14752 return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag"
14765 || test ! -s conftest.err'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14768 ac_status=$?
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest.$ac_objext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_member_struct_stat_st_blksize=yes
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 $ac_includes_default
14789 int
14790 main ()
14791 {
14792 static struct stat ac_aggr;
14793 if (sizeof ac_aggr.st_blksize)
14794 return 0;
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag"
14809 || test ! -s conftest.err'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_member_struct_stat_st_blksize=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_cv_member_struct_stat_st_blksize=no
14827 fi
14828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14829 fi
14830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 fi
14832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14833 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14834 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14835
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14838 _ACEOF
14839
14840
14841 fi
14842
14843 fi
14844 echo "$as_me:$LINENO: checking for blkcnt_t" >&5
14845 echo $ECHO_N "checking for blkcnt_t... $ECHO_C" >&6
14846 if test "${ac_cv_type_blkcnt_t+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h. */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 $ac_includes_default
14856 int
14857 main ()
14858 {
14859 if ((blkcnt_t *) 0)
14860 return 0;
14861 if (sizeof (blkcnt_t))
14862 return 0;
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_type_blkcnt_t=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_cv_type_blkcnt_t=no
14895 fi
14896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 echo "$as_me:$LINENO: result: $ac_cv_type_blkcnt_t" >&5
14899 echo "${ECHO_T}$ac_cv_type_blkcnt_t" >&6
14900 if test $ac_cv_type_blkcnt_t = yes; then
14901
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_BLKCNT_T 1
14904 _ACEOF
14905
14906
14907 fi
14908
14909 echo "$as_me:$LINENO: checking for fstatfs" >&5
14910 echo $ECHO_N "checking for fstatfs... $ECHO_C" >&6
14911 if test "${ac_cv_func_fstatfs+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 /* Define fstatfs to an innocuous variant, in case <limits.h> declares fstatfs.
14921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14922 #define fstatfs innocuous_fstatfs
14923
14924 /* System header to define __stub macros and hopefully few prototypes,
14925 which can conflict with char fstatfs (); below.
14926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927 <limits.h> exists even on freestanding compilers. */
14928
14929 #ifdef __STDC__
14930 # include <limits.h>
14931 #else
14932 # include <assert.h>
14933 #endif
14934
14935 #undef fstatfs
14936
14937 /* Override any gcc2 internal prototype to avoid an error. */
14938 #ifdef __cplusplus
14939 extern "C"
14940 {
14941 #endif
14942 /* We use char because int might match the return type of a gcc2
14943 builtin and then its argument prototype would still apply. */
14944 char fstatfs ();
14945 /* The GNU C library defines this for functions which it implements
14946 to always fail with ENOSYS. Some functions are actually named
14947 something starting with __ and the normal name is an alias. */
14948 #if defined (__stub_fstatfs) || defined (__stub___fstatfs)
14949 choke me
14950 #else
14951 char (*f) () = fstatfs;
14952 #endif
14953 #ifdef __cplusplus
14954 }
14955 #endif
14956
14957 int
14958 main ()
14959 {
14960 return f != fstatfs;
14961 ;
14962 return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14967 (eval $ac_link) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -z "$ac_c_werror_flag"
14975 || test ! -s conftest.err'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest$ac_exeext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_func_fstatfs=yes
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 ac_cv_func_fstatfs=no
14993 fi
14994 rm -f conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
14996 fi
14997 echo "$as_me:$LINENO: result: $ac_cv_func_fstatfs" >&5
14998 echo "${ECHO_T}$ac_cv_func_fstatfs" >&6
14999 if test $ac_cv_func_fstatfs = yes; then
15000 :
15001 else
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define NO_FSTATFS 1
15005 _ACEOF
15006
15007 fi
15008
15009
15010 #--------------------------------------------------------------------
15011 # Some system have no memcmp or it does not work with 8 bit data, this
15012 # checks it and add memcmp.o to LIBOBJS if needed
15013 #--------------------------------------------------------------------
15014
15015 echo "$as_me:$LINENO: checking for working memcmp" >&5
15016 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
15017 if test "${ac_cv_func_memcmp_working+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 if test "$cross_compiling" = yes; then
15021 ac_cv_func_memcmp_working=no
15022 else
15023 cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 int
15031 main ()
15032 {
15033
15034 /* Some versions of memcmp are not 8-bit clean. */
15035 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15036 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15037 exit (1);
15038
15039 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15040 or more and with at least one buffer not starting on a 4-byte boundary.
15041 William Lewis provided this test program. */
15042 {
15043 char foo[21];
15044 char bar[21];
15045 int i;
15046 for (i = 0; i < 4; i++)
15047 {
15048 char *a = foo + i;
15049 char *b = bar + i;
15050 strcpy (a, "--------01111111");
15051 strcpy (b, "--------10000000");
15052 if (memcmp (a, b, 16) >= 0)
15053 exit (1);
15054 }
15055 exit (0);
15056 }
15057
15058 ;
15059 return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_func_memcmp_working=yes
15074 else
15075 echo "$as_me: program exited with status $ac_status" >&5
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ( exit $ac_status )
15080 ac_cv_func_memcmp_working=no
15081 fi
15082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 fi
15085 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15086 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15087 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
15088 "memcmp.$ac_objext" | \
15089 *" memcmp.$ac_objext" | \
15090 "memcmp.$ac_objext "* | \
15091 *" memcmp.$ac_objext "* ) ;;
15092 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
15093 esac
15094
15095
15096
15097 #--------------------------------------------------------------------
15098 # Some system like SunOS 4 and other BSD like systems have no memmove
15099 # (we assume they have bcopy instead). {The replacement define is in
15100 # compat/string.h}
15101 #--------------------------------------------------------------------
15102
15103 echo "$as_me:$LINENO: checking for memmove" >&5
15104 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
15105 if test "${ac_cv_func_memmove+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
15115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15116 #define memmove innocuous_memmove
15117
15118 /* System header to define __stub macros and hopefully few prototypes,
15119 which can conflict with char memmove (); below.
15120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15121 <limits.h> exists even on freestanding compilers. */
15122
15123 #ifdef __STDC__
15124 # include <limits.h>
15125 #else
15126 # include <assert.h>
15127 #endif
15128
15129 #undef memmove
15130
15131 /* Override any gcc2 internal prototype to avoid an error. */
15132 #ifdef __cplusplus
15133 extern "C"
15134 {
15135 #endif
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char memmove ();
15139 /* The GNU C library defines this for functions which it implements
15140 to always fail with ENOSYS. Some functions are actually named
15141 something starting with __ and the normal name is an alias. */
15142 #if defined (__stub_memmove) || defined (__stub___memmove)
15143 choke me
15144 #else
15145 char (*f) () = memmove;
15146 #endif
15147 #ifdef __cplusplus
15148 }
15149 #endif
15150
15151 int
15152 main ()
15153 {
15154 return f != memmove;
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15161 (eval $ac_link) 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag"
15169 || test ! -s conftest.err'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } &&
15175 { ac_try='test -s conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_cv_func_memmove=yes
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_cv_func_memmove=no
15187 fi
15188 rm -f conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15190 fi
15191 echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
15192 echo "${ECHO_T}$ac_cv_func_memmove" >&6
15193 if test $ac_cv_func_memmove = yes; then
15194 :
15195 else
15196
15197
15198 cat >>confdefs.h <<\_ACEOF
15199 #define NO_MEMMOVE 1
15200 _ACEOF
15201
15202
15203 cat >>confdefs.h <<\_ACEOF
15204 #define NO_STRING_H 1
15205 _ACEOF
15206
15207 fi
15208
15209
15210 #--------------------------------------------------------------------
15211 # On some systems strstr is broken: it returns a pointer even if
15212 # the original string is empty.
15213 #--------------------------------------------------------------------
15214
15215
15216 echo "$as_me:$LINENO: checking for strstr" >&5
15217 echo $ECHO_N "checking for strstr... $ECHO_C" >&6
15218 if test "${ac_cv_func_strstr+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 /* Define strstr to an innocuous variant, in case <limits.h> declares strstr.
15228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15229 #define strstr innocuous_strstr
15230
15231 /* System header to define __stub macros and hopefully few prototypes,
15232 which can conflict with char strstr (); below.
15233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15234 <limits.h> exists even on freestanding compilers. */
15235
15236 #ifdef __STDC__
15237 # include <limits.h>
15238 #else
15239 # include <assert.h>
15240 #endif
15241
15242 #undef strstr
15243
15244 /* Override any gcc2 internal prototype to avoid an error. */
15245 #ifdef __cplusplus
15246 extern "C"
15247 {
15248 #endif
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char strstr ();
15252 /* The GNU C library defines this for functions which it implements
15253 to always fail with ENOSYS. Some functions are actually named
15254 something starting with __ and the normal name is an alias. */
15255 #if defined (__stub_strstr) || defined (__stub___strstr)
15256 choke me
15257 #else
15258 char (*f) () = strstr;
15259 #endif
15260 #ifdef __cplusplus
15261 }
15262 #endif
15263
15264 int
15265 main ()
15266 {
15267 return f != strstr;
15268 ;
15269 return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -z "$ac_c_werror_flag"
15282 || test ! -s conftest.err'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_cv_func_strstr=yes
15295 else
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299 ac_cv_func_strstr=no
15300 fi
15301 rm -f conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15303 fi
15304 echo "$as_me:$LINENO: result: $ac_cv_func_strstr" >&5
15305 echo "${ECHO_T}$ac_cv_func_strstr" >&6
15306 if test $ac_cv_func_strstr = yes; then
15307 tcl_ok=1
15308 else
15309 tcl_ok=0
15310 fi
15311
15312 if test "$tcl_ok" = 1; then
15313 echo "$as_me:$LINENO: checking proper strstr implementation" >&5
15314 echo $ECHO_N "checking proper strstr implementation... $ECHO_C" >&6
15315 if test "${tcl_cv_strstr_unbroken+set}" = set; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318 if test "$cross_compiling" = yes; then
15319 tcl_cv_strstr_unbroken=unknown
15320 else
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327
15328 #include <stdlib.h>
15329 #include <string.h>
15330 int main() {
15331 exit(strstr("\0test", "test") ? 1 : 0);
15332 }
15333 _ACEOF
15334 rm -f conftest$ac_exeext
15335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15336 (eval $ac_link) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 tcl_cv_strstr_unbroken=ok
15346 else
15347 echo "$as_me: program exited with status $ac_status" >&5
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 ( exit $ac_status )
15352 tcl_cv_strstr_unbroken=broken
15353 fi
15354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15355 fi
15356 fi
15357 echo "$as_me:$LINENO: result: $tcl_cv_strstr_unbroken" >&5
15358 echo "${ECHO_T}$tcl_cv_strstr_unbroken" >&6
15359 if test "$tcl_cv_strstr_unbroken" = "ok"; then
15360 tcl_ok=1
15361 else
15362 tcl_ok=0
15363 fi
15364 fi
15365 if test "$tcl_ok" = 0; then
15366 case $LIBOBJS in
15367 "strstr.$ac_objext" | \
15368 *" strstr.$ac_objext" | \
15369 "strstr.$ac_objext "* | \
15370 *" strstr.$ac_objext "* ) ;;
15371 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" ;;
15372 esac
15373
15374 USE_COMPAT=1
15375 fi
15376
15377
15378 #--------------------------------------------------------------------
15379 # Check for strtoul function. This is tricky because under some
15380 # versions of AIX strtoul returns an incorrect terminator
15381 # pointer for the string "0".
15382 #--------------------------------------------------------------------
15383
15384
15385 echo "$as_me:$LINENO: checking for strtoul" >&5
15386 echo $ECHO_N "checking for strtoul... $ECHO_C" >&6
15387 if test "${ac_cv_func_strtoul+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390 cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h. */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
15397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15398 #define strtoul innocuous_strtoul
15399
15400 /* System header to define __stub macros and hopefully few prototypes,
15401 which can conflict with char strtoul (); below.
15402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15403 <limits.h> exists even on freestanding compilers. */
15404
15405 #ifdef __STDC__
15406 # include <limits.h>
15407 #else
15408 # include <assert.h>
15409 #endif
15410
15411 #undef strtoul
15412
15413 /* Override any gcc2 internal prototype to avoid an error. */
15414 #ifdef __cplusplus
15415 extern "C"
15416 {
15417 #endif
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15420 char strtoul ();
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_strtoul) || defined (__stub___strtoul)
15425 choke me
15426 #else
15427 char (*f) () = strtoul;
15428 #endif
15429 #ifdef __cplusplus
15430 }
15431 #endif
15432
15433 int
15434 main ()
15435 {
15436 return f != strtoul;
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_func_strtoul=yes
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_cv_func_strtoul=no
15469 fi
15470 rm -f conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15472 fi
15473 echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
15474 echo "${ECHO_T}$ac_cv_func_strtoul" >&6
15475 if test $ac_cv_func_strtoul = yes; then
15476 tcl_ok=1
15477 else
15478 tcl_ok=0
15479 fi
15480
15481 if test "$tcl_ok" = 1; then
15482 echo "$as_me:$LINENO: checking proper strtoul implementation" >&5
15483 echo $ECHO_N "checking proper strtoul implementation... $ECHO_C" >&6
15484 if test "${tcl_cv_strtoul_unbroken+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487 if test "$cross_compiling" = yes; then
15488 tcl_cv_strtoul_unbroken=unknown
15489 else
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496
15497 #include <stdlib.h>
15498 #include <string.h>
15499 int main() {
15500 char *term, *string = "0";
15501 exit(strtoul(string,&term,0) != 0 || term != string+1);
15502 }
15503 _ACEOF
15504 rm -f conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 tcl_cv_strtoul_unbroken=ok
15516 else
15517 echo "$as_me: program exited with status $ac_status" >&5
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ( exit $ac_status )
15522 tcl_cv_strtoul_unbroken=broken
15523 fi
15524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525 fi
15526 fi
15527 echo "$as_me:$LINENO: result: $tcl_cv_strtoul_unbroken" >&5
15528 echo "${ECHO_T}$tcl_cv_strtoul_unbroken" >&6
15529 if test "$tcl_cv_strtoul_unbroken" = "ok"; then
15530 tcl_ok=1
15531 else
15532 tcl_ok=0
15533 fi
15534 fi
15535 if test "$tcl_ok" = 0; then
15536 case $LIBOBJS in
15537 "strtoul.$ac_objext" | \
15538 *" strtoul.$ac_objext" | \
15539 "strtoul.$ac_objext "* | \
15540 *" strtoul.$ac_objext "* ) ;;
15541 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" ;;
15542 esac
15543
15544 USE_COMPAT=1
15545 fi
15546
15547
15548 #--------------------------------------------------------------------
15549 # Check for various typedefs and provide substitutes if
15550 # they don't exist.
15551 #--------------------------------------------------------------------
15552
15553 echo "$as_me:$LINENO: checking for mode_t" >&5
15554 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15555 if test "${ac_cv_type_mode_t+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 if ((mode_t *) 0)
15569 return 0;
15570 if (sizeof (mode_t))
15571 return 0;
15572 ;
15573 return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15578 (eval $ac_compile) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_type_mode_t=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 ac_cv_type_mode_t=no
15604 fi
15605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15608 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15609 if test $ac_cv_type_mode_t = yes; then
15610 :
15611 else
15612
15613 cat >>confdefs.h <<_ACEOF
15614 #define mode_t int
15615 _ACEOF
15616
15617 fi
15618
15619 echo "$as_me:$LINENO: checking for pid_t" >&5
15620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15621 if test "${ac_cv_type_pid_t+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 $ac_includes_default
15631 int
15632 main ()
15633 {
15634 if ((pid_t *) 0)
15635 return 0;
15636 if (sizeof (pid_t))
15637 return 0;
15638 ;
15639 return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_cv_type_pid_t=yes
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669 ac_cv_type_pid_t=no
15670 fi
15671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 fi
15673 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15675 if test $ac_cv_type_pid_t = yes; then
15676 :
15677 else
15678
15679 cat >>confdefs.h <<_ACEOF
15680 #define pid_t int
15681 _ACEOF
15682
15683 fi
15684
15685 echo "$as_me:$LINENO: checking for size_t" >&5
15686 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15687 if test "${ac_cv_type_size_t+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 $ac_includes_default
15697 int
15698 main ()
15699 {
15700 if ((size_t *) 0)
15701 return 0;
15702 if (sizeof (size_t))
15703 return 0;
15704 ;
15705 return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 { ac_try='test -z "$ac_c_werror_flag"
15718 || test ! -s conftest.err'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_cv_type_size_t=yes
15731 else
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_cv_type_size_t=no
15736 fi
15737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15738 fi
15739 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15740 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15741 if test $ac_cv_type_size_t = yes; then
15742 :
15743 else
15744
15745 cat >>confdefs.h <<_ACEOF
15746 #define size_t unsigned
15747 _ACEOF
15748
15749 fi
15750
15751 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15752 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15753 if test "${ac_cv_type_uid_t+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <sys/types.h>
15763
15764 _ACEOF
15765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15766 $EGREP "uid_t" >/dev/null 2>&1; then
15767 ac_cv_type_uid_t=yes
15768 else
15769 ac_cv_type_uid_t=no
15770 fi
15771 rm -f conftest*
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15775 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15776 if test $ac_cv_type_uid_t = no; then
15777
15778 cat >>confdefs.h <<\_ACEOF
15779 #define uid_t int
15780 _ACEOF
15781
15782
15783 cat >>confdefs.h <<\_ACEOF
15784 #define gid_t int
15785 _ACEOF
15786
15787 fi
15788
15789
15790 echo "$as_me:$LINENO: checking for socklen_t" >&5
15791 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15792 if test "${tcl_cv_type_socklen_t+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802
15803 #include <sys/types.h>
15804 #include <sys/socket.h>
15805
15806 int
15807 main ()
15808 {
15809
15810 socklen_t foo;
15811
15812 ;
15813 return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15818 (eval $ac_compile) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag"
15826 || test ! -s conftest.err'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 tcl_cv_type_socklen_t=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 tcl_cv_type_socklen_t=no
15844 fi
15845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15846 fi
15847 echo "$as_me:$LINENO: result: $tcl_cv_type_socklen_t" >&5
15848 echo "${ECHO_T}$tcl_cv_type_socklen_t" >&6
15849 if test $tcl_cv_type_socklen_t = no; then
15850
15851 cat >>confdefs.h <<\_ACEOF
15852 #define socklen_t int
15853 _ACEOF
15854
15855 fi
15856
15857 echo "$as_me:$LINENO: checking for intptr_t" >&5
15858 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
15859 if test "${ac_cv_type_intptr_t+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15868 $ac_includes_default
15869 int
15870 main ()
15871 {
15872 if ((intptr_t *) 0)
15873 return 0;
15874 if (sizeof (intptr_t))
15875 return 0;
15876 ;
15877 return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15883 ac_status=$?
15884 grep -v '^ *+' conftest.er1 >conftest.err
15885 rm -f conftest.er1
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_cv_type_intptr_t=yes
15903 else
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_cv_type_intptr_t=no
15908 fi
15909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15912 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
15913 if test $ac_cv_type_intptr_t = yes; then
15914
15915
15916 cat >>confdefs.h <<\_ACEOF
15917 #define HAVE_INTPTR_T 1
15918 _ACEOF
15919
15920 else
15921
15922 echo "$as_me:$LINENO: checking for pointer-size signed integer type" >&5
15923 echo $ECHO_N "checking for pointer-size signed integer type... $ECHO_C" >&6
15924 if test "${tcl_cv_intptr_t+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927
15928 for tcl_cv_intptr_t in "int" "long" "long long" none; do
15929 if test "$tcl_cv_intptr_t" != none; then
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h. */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 $ac_includes_default
15937 int
15938 main ()
15939 {
15940 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))];
15941 test_array [0] = 0
15942
15943 ;
15944 return 0;
15945 }
15946 _ACEOF
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -z "$ac_c_werror_flag"
15957 || test ! -s conftest.err'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 tcl_ok=yes
15970 else
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 tcl_ok=no
15975 fi
15976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15977 test "$tcl_ok" = yes && break; fi
15978 done
15979 fi
15980 echo "$as_me:$LINENO: result: $tcl_cv_intptr_t" >&5
15981 echo "${ECHO_T}$tcl_cv_intptr_t" >&6
15982 if test "$tcl_cv_intptr_t" != none; then
15983
15984 cat >>confdefs.h <<_ACEOF
15985 #define intptr_t $tcl_cv_intptr_t
15986 _ACEOF
15987
15988 fi
15989
15990 fi
15991
15992 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15993 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15994 if test "${ac_cv_type_uintptr_t+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 $ac_includes_default
16004 int
16005 main ()
16006 {
16007 if ((uintptr_t *) 0)
16008 return 0;
16009 if (sizeof (uintptr_t))
16010 return 0;
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext
16016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16017 (eval $ac_compile) 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } &&
16024 { ac_try='test -z "$ac_c_werror_flag"
16025 || test ! -s conftest.err'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 ac_cv_type_uintptr_t=yes
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_cv_type_uintptr_t=no
16043 fi
16044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16045 fi
16046 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16047 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16048 if test $ac_cv_type_uintptr_t = yes; then
16049
16050
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE_UINTPTR_T 1
16053 _ACEOF
16054
16055 else
16056
16057 echo "$as_me:$LINENO: checking for pointer-size unsigned integer type" >&5
16058 echo $ECHO_N "checking for pointer-size unsigned integer type... $ECHO_C" >&6
16059 if test "${tcl_cv_uintptr_t+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062
16063 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \
16064 none; do
16065 if test "$tcl_cv_uintptr_t" != none; then
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 $ac_includes_default
16073 int
16074 main ()
16075 {
16076 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))];
16077 test_array [0] = 0
16078
16079 ;
16080 return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try='test -z "$ac_c_werror_flag"
16093 || test ! -s conftest.err'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 tcl_ok=yes
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 tcl_ok=no
16111 fi
16112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113 test "$tcl_ok" = yes && break; fi
16114 done
16115 fi
16116 echo "$as_me:$LINENO: result: $tcl_cv_uintptr_t" >&5
16117 echo "${ECHO_T}$tcl_cv_uintptr_t" >&6
16118 if test "$tcl_cv_uintptr_t" != none; then
16119
16120 cat >>confdefs.h <<_ACEOF
16121 #define uintptr_t $tcl_cv_uintptr_t
16122 _ACEOF
16123
16124 fi
16125
16126 fi
16127
16128
16129 #--------------------------------------------------------------------
16130 # If a system doesn't have an opendir function (man, that's old!)
16131 # then we have to supply a different version of dirent.h which
16132 # is compatible with the substitute version of opendir that's
16133 # provided. This version only works with V7-style directories.
16134 #--------------------------------------------------------------------
16135
16136 echo "$as_me:$LINENO: checking for opendir" >&5
16137 echo $ECHO_N "checking for opendir... $ECHO_C" >&6
16138 if test "${ac_cv_func_opendir+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 /* Define opendir to an innocuous variant, in case <limits.h> declares opendir.
16148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16149 #define opendir innocuous_opendir
16150
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char opendir (); below.
16153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16154 <limits.h> exists even on freestanding compilers. */
16155
16156 #ifdef __STDC__
16157 # include <limits.h>
16158 #else
16159 # include <assert.h>
16160 #endif
16161
16162 #undef opendir
16163
16164 /* Override any gcc2 internal prototype to avoid an error. */
16165 #ifdef __cplusplus
16166 extern "C"
16167 {
16168 #endif
16169 /* We use char because int might match the return type of a gcc2
16170 builtin and then its argument prototype would still apply. */
16171 char opendir ();
16172 /* The GNU C library defines this for functions which it implements
16173 to always fail with ENOSYS. Some functions are actually named
16174 something starting with __ and the normal name is an alias. */
16175 #if defined (__stub_opendir) || defined (__stub___opendir)
16176 choke me
16177 #else
16178 char (*f) () = opendir;
16179 #endif
16180 #ifdef __cplusplus
16181 }
16182 #endif
16183
16184 int
16185 main ()
16186 {
16187 return f != opendir;
16188 ;
16189 return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest$ac_exeext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_func_opendir=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_func_opendir=no
16220 fi
16221 rm -f conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16223 fi
16224 echo "$as_me:$LINENO: result: $ac_cv_func_opendir" >&5
16225 echo "${ECHO_T}$ac_cv_func_opendir" >&6
16226 if test $ac_cv_func_opendir = yes; then
16227 :
16228 else
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define USE_DIRENT2_H 1
16232 _ACEOF
16233
16234 fi
16235
16236
16237 #--------------------------------------------------------------------
16238 # The check below checks whether <sys/wait.h> defines the type
16239 # "union wait" correctly. It's needed because of weirdness in
16240 # HP-UX where "union wait" is defined in both the BSD and SYS-V
16241 # environments. Checking the usability of WIFEXITED seems to do
16242 # the trick.
16243 #--------------------------------------------------------------------
16244
16245 echo "$as_me:$LINENO: checking union wait" >&5
16246 echo $ECHO_N "checking union wait... $ECHO_C" >&6
16247 if test "${tcl_cv_union_wait+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <sys/types.h>
16258 #include <sys/wait.h>
16259 int
16260 main ()
16261 {
16262
16263 union wait x;
16264 WIFEXITED(x); /* Generates compiler error if WIFEXITED
16265 * uses an int. */
16266
16267 ;
16268 return 0;
16269 }
16270 _ACEOF
16271 rm -f conftest.$ac_objext conftest$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 tcl_cv_union_wait=yes
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 tcl_cv_union_wait=no
16299 fi
16300 rm -f conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 fi
16303 echo "$as_me:$LINENO: result: $tcl_cv_union_wait" >&5
16304 echo "${ECHO_T}$tcl_cv_union_wait" >&6
16305 if test $tcl_cv_union_wait = no; then
16306
16307 cat >>confdefs.h <<\_ACEOF
16308 #define NO_UNION_WAIT 1
16309 _ACEOF
16310
16311 fi
16312
16313 #--------------------------------------------------------------------
16314 # Check whether there is an strncasecmp function on this system.
16315 # This is a bit tricky because under SCO it's in -lsocket and
16316 # under Sequent Dynix it's in -linet.
16317 #--------------------------------------------------------------------
16318
16319 echo "$as_me:$LINENO: checking for strncasecmp" >&5
16320 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
16321 if test "${ac_cv_func_strncasecmp+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
16331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16332 #define strncasecmp innocuous_strncasecmp
16333
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char strncasecmp (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16338
16339 #ifdef __STDC__
16340 # include <limits.h>
16341 #else
16342 # include <assert.h>
16343 #endif
16344
16345 #undef strncasecmp
16346
16347 /* Override any gcc2 internal prototype to avoid an error. */
16348 #ifdef __cplusplus
16349 extern "C"
16350 {
16351 #endif
16352 /* We use char because int might match the return type of a gcc2
16353 builtin and then its argument prototype would still apply. */
16354 char strncasecmp ();
16355 /* The GNU C library defines this for functions which it implements
16356 to always fail with ENOSYS. Some functions are actually named
16357 something starting with __ and the normal name is an alias. */
16358 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
16359 choke me
16360 #else
16361 char (*f) () = strncasecmp;
16362 #endif
16363 #ifdef __cplusplus
16364 }
16365 #endif
16366
16367 int
16368 main ()
16369 {
16370 return f != strncasecmp;
16371 ;
16372 return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext conftest$ac_exeext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377 (eval $ac_link) 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag"
16385 || test ! -s conftest.err'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest$ac_exeext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_func_strncasecmp=yes
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 ac_cv_func_strncasecmp=no
16403 fi
16404 rm -f conftest.err conftest.$ac_objext \
16405 conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
16408 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
16409 if test $ac_cv_func_strncasecmp = yes; then
16410 tcl_ok=1
16411 else
16412 tcl_ok=0
16413 fi
16414
16415 if test "$tcl_ok" = 0; then
16416 echo "$as_me:$LINENO: checking for strncasecmp in -lsocket" >&5
16417 echo $ECHO_N "checking for strncasecmp in -lsocket... $ECHO_C" >&6
16418 if test "${ac_cv_lib_socket_strncasecmp+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421 ac_check_lib_save_LIBS=$LIBS
16422 LIBS="-lsocket $LIBS"
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429
16430 /* Override any gcc2 internal prototype to avoid an error. */
16431 #ifdef __cplusplus
16432 extern "C"
16433 #endif
16434 /* We use char because int might match the return type of a gcc2
16435 builtin and then its argument prototype would still apply. */
16436 char strncasecmp ();
16437 int
16438 main ()
16439 {
16440 strncasecmp ();
16441 ;
16442 return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext conftest$ac_exeext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16447 (eval $ac_link) 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag"
16455 || test ! -s conftest.err'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; }; then
16467 ac_cv_lib_socket_strncasecmp=yes
16468 else
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 ac_cv_lib_socket_strncasecmp=no
16473 fi
16474 rm -f conftest.err conftest.$ac_objext \
16475 conftest$ac_exeext conftest.$ac_ext
16476 LIBS=$ac_check_lib_save_LIBS
16477 fi
16478 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_strncasecmp" >&5
16479 echo "${ECHO_T}$ac_cv_lib_socket_strncasecmp" >&6
16480 if test $ac_cv_lib_socket_strncasecmp = yes; then
16481 tcl_ok=1
16482 else
16483 tcl_ok=0
16484 fi
16485
16486 fi
16487 if test "$tcl_ok" = 0; then
16488 echo "$as_me:$LINENO: checking for strncasecmp in -linet" >&5
16489 echo $ECHO_N "checking for strncasecmp in -linet... $ECHO_C" >&6
16490 if test "${ac_cv_lib_inet_strncasecmp+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493 ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-linet $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h. */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501
16502 /* Override any gcc2 internal prototype to avoid an error. */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 /* We use char because int might match the return type of a gcc2
16507 builtin and then its argument prototype would still apply. */
16508 char strncasecmp ();
16509 int
16510 main ()
16511 {
16512 strncasecmp ();
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519 (eval $ac_link) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest$ac_exeext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_lib_inet_strncasecmp=yes
16540 else
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 ac_cv_lib_inet_strncasecmp=no
16545 fi
16546 rm -f conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 LIBS=$ac_check_lib_save_LIBS
16549 fi
16550 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_strncasecmp" >&5
16551 echo "${ECHO_T}$ac_cv_lib_inet_strncasecmp" >&6
16552 if test $ac_cv_lib_inet_strncasecmp = yes; then
16553 tcl_ok=1
16554 else
16555 tcl_ok=0
16556 fi
16557
16558 fi
16559 if test "$tcl_ok" = 0; then
16560 case $LIBOBJS in
16561 "strncasecmp.$ac_objext" | \
16562 *" strncasecmp.$ac_objext" | \
16563 "strncasecmp.$ac_objext "* | \
16564 *" strncasecmp.$ac_objext "* ) ;;
16565 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
16566 esac
16567
16568 USE_COMPAT=1
16569 fi
16570
16571 #--------------------------------------------------------------------
16572 # The code below deals with several issues related to gettimeofday:
16573 # 1. Some systems don't provide a gettimeofday function at all
16574 # (set NO_GETTOD if this is the case).
16575 # 2. See if gettimeofday is declared in the <sys/time.h> header file.
16576 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
16577 # declare it.
16578 #--------------------------------------------------------------------
16579
16580 echo "$as_me:$LINENO: checking for gettimeofday" >&5
16581 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
16582 if test "${ac_cv_func_gettimeofday+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
16592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16593 #define gettimeofday innocuous_gettimeofday
16594
16595 /* System header to define __stub macros and hopefully few prototypes,
16596 which can conflict with char gettimeofday (); below.
16597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598 <limits.h> exists even on freestanding compilers. */
16599
16600 #ifdef __STDC__
16601 # include <limits.h>
16602 #else
16603 # include <assert.h>
16604 #endif
16605
16606 #undef gettimeofday
16607
16608 /* Override any gcc2 internal prototype to avoid an error. */
16609 #ifdef __cplusplus
16610 extern "C"
16611 {
16612 #endif
16613 /* We use char because int might match the return type of a gcc2
16614 builtin and then its argument prototype would still apply. */
16615 char gettimeofday ();
16616 /* The GNU C library defines this for functions which it implements
16617 to always fail with ENOSYS. Some functions are actually named
16618 something starting with __ and the normal name is an alias. */
16619 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
16620 choke me
16621 #else
16622 char (*f) () = gettimeofday;
16623 #endif
16624 #ifdef __cplusplus
16625 }
16626 #endif
16627
16628 int
16629 main ()
16630 {
16631 return f != gettimeofday;
16632 ;
16633 return 0;
16634 }
16635 _ACEOF
16636 rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16638 (eval $ac_link) 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag"
16646 || test ! -s conftest.err'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_func_gettimeofday=yes
16659 else
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663 ac_cv_func_gettimeofday=no
16664 fi
16665 rm -f conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
16669 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
16670 if test $ac_cv_func_gettimeofday = yes; then
16671 :
16672 else
16673
16674
16675 cat >>confdefs.h <<\_ACEOF
16676 #define NO_GETTOD 1
16677 _ACEOF
16678
16679
16680 fi
16681
16682 echo "$as_me:$LINENO: checking for gettimeofday declaration" >&5
16683 echo $ECHO_N "checking for gettimeofday declaration... $ECHO_C" >&6
16684 if test "${tcl_cv_grep_gettimeofday+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 #include <sys/time.h>
16695
16696 _ACEOF
16697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16698 $EGREP "gettimeofday" >/dev/null 2>&1; then
16699 tcl_cv_grep_gettimeofday=present
16700 else
16701 tcl_cv_grep_gettimeofday=missing
16702 fi
16703 rm -f conftest*
16704
16705 fi
16706 echo "$as_me:$LINENO: result: $tcl_cv_grep_gettimeofday" >&5
16707 echo "${ECHO_T}$tcl_cv_grep_gettimeofday" >&6
16708 if test $tcl_cv_grep_gettimeofday = missing ; then
16709
16710 cat >>confdefs.h <<\_ACEOF
16711 #define GETTOD_NOT_DECLARED 1
16712 _ACEOF
16713
16714 fi
16715
16716 #--------------------------------------------------------------------
16717 # The following code checks to see whether it is possible to get
16718 # signed chars on this platform. This is needed in order to
16719 # properly generate sign-extended ints from character values.
16720 #--------------------------------------------------------------------
16721
16722
16723 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
16724 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
16725 if test "${ac_cv_c_char_unsigned+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 $ac_includes_default
16735 int
16736 main ()
16737 {
16738 static int test_array [1 - 2 * !(((char) -1) < 0)];
16739 test_array [0] = 0
16740
16741 ;
16742 return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747 (eval $ac_compile) 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag"
16755 || test ! -s conftest.err'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_c_char_unsigned=no
16768 else
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 ac_cv_c_char_unsigned=yes
16773 fi
16774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 fi
16776 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
16777 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
16778 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
16779 cat >>confdefs.h <<\_ACEOF
16780 #define __CHAR_UNSIGNED__ 1
16781 _ACEOF
16782
16783 fi
16784
16785 echo "$as_me:$LINENO: checking signed char declarations" >&5
16786 echo $ECHO_N "checking signed char declarations... $ECHO_C" >&6
16787 if test "${tcl_cv_char_signed+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790
16791 cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h. */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797
16798 int
16799 main ()
16800 {
16801
16802 signed char *p;
16803 p = 0;
16804
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext
16810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16811 (eval $ac_compile) 2>conftest.er1
16812 ac_status=$?
16813 grep -v '^ *+' conftest.er1 >conftest.err
16814 rm -f conftest.er1
16815 cat conftest.err >&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -z "$ac_c_werror_flag"
16819 || test ! -s conftest.err'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 tcl_cv_char_signed=yes
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 tcl_cv_char_signed=no
16837 fi
16838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16839 fi
16840 echo "$as_me:$LINENO: result: $tcl_cv_char_signed" >&5
16841 echo "${ECHO_T}$tcl_cv_char_signed" >&6
16842 if test $tcl_cv_char_signed = yes; then
16843
16844 cat >>confdefs.h <<\_ACEOF
16845 #define HAVE_SIGNED_CHAR 1
16846 _ACEOF
16847
16848 fi
16849
16850 #--------------------------------------------------------------------
16851 # Does putenv() copy or not? We need to know to avoid memory leaks.
16852 #--------------------------------------------------------------------
16853
16854 echo "$as_me:$LINENO: checking for a putenv() that copies the buffer" >&5
16855 echo $ECHO_N "checking for a putenv() that copies the buffer... $ECHO_C" >&6
16856 if test "${tcl_cv_putenv_copy+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859
16860 if test "$cross_compiling" = yes; then
16861 tcl_cv_putenv_copy=no
16862 else
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869
16870 #include <stdlib.h>
16871 #include <string.h>
16872 #define OURVAR "havecopy=yes"
16873 int main (int argc, char *argv[])
16874 {
16875 char *foo, *bar;
16876 foo = (char *)strdup(OURVAR);
16877 putenv(foo);
16878 strcpy((char *)(strchr(foo, '=') + 1), "no");
16879 bar = getenv("havecopy");
16880 if (!strcmp(bar, "no")) {
16881 /* doesnt copy */
16882 return 0;
16883 } else {
16884 /* does copy */
16885 return 1;
16886 }
16887 }
16888
16889 _ACEOF
16890 rm -f conftest$ac_exeext
16891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16892 (eval $ac_link) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 tcl_cv_putenv_copy=no
16902 else
16903 echo "$as_me: program exited with status $ac_status" >&5
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 ( exit $ac_status )
16908 tcl_cv_putenv_copy=yes
16909 fi
16910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16911 fi
16912 fi
16913 echo "$as_me:$LINENO: result: $tcl_cv_putenv_copy" >&5
16914 echo "${ECHO_T}$tcl_cv_putenv_copy" >&6
16915 if test $tcl_cv_putenv_copy = yes; then
16916
16917 cat >>confdefs.h <<\_ACEOF
16918 #define HAVE_PUTENV_THAT_COPIES 1
16919 _ACEOF
16920
16921 fi
16922
16923 #--------------------------------------------------------------------
16924 # Check for support of nl_langinfo function
16925 #--------------------------------------------------------------------
16926
16927
16928 # Check whether --enable-langinfo or --disable-langinfo was given.
16929 if test "${enable_langinfo+set}" = set; then
16930 enableval="$enable_langinfo"
16931 langinfo_ok=$enableval
16932 else
16933 langinfo_ok=yes
16934 fi;
16935
16936 HAVE_LANGINFO=0
16937 if test "$langinfo_ok" = "yes"; then
16938 if test "${ac_cv_header_langinfo_h+set}" = set; then
16939 echo "$as_me:$LINENO: checking for langinfo.h" >&5
16940 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
16941 if test "${ac_cv_header_langinfo_h+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 fi
16944 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
16945 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
16946 else
16947 # Is the header compilable?
16948 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
16949 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
16950 cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h. */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 $ac_includes_default
16957 #include <langinfo.h>
16958 _ACEOF
16959 rm -f conftest.$ac_objext
16960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961 (eval $ac_compile) 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -z "$ac_c_werror_flag"
16969 || test ! -s conftest.err'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 ac_header_compiler=yes
16982 else
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 ac_header_compiler=no
16987 fi
16988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16990 echo "${ECHO_T}$ac_header_compiler" >&6
16991
16992 # Is the header present?
16993 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
16994 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 #include <langinfo.h>
17002 _ACEOF
17003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } >/dev/null; then
17011 if test -s conftest.err; then
17012 ac_cpp_err=$ac_c_preproc_warn_flag
17013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17014 else
17015 ac_cpp_err=
17016 fi
17017 else
17018 ac_cpp_err=yes
17019 fi
17020 if test -z "$ac_cpp_err"; then
17021 ac_header_preproc=yes
17022 else
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 ac_header_preproc=no
17027 fi
17028 rm -f conftest.err conftest.$ac_ext
17029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17030 echo "${ECHO_T}$ac_header_preproc" >&6
17031
17032 # So? What about this header?
17033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17034 yes:no: )
17035 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
17036 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
17038 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
17039 ac_header_preproc=yes
17040 ;;
17041 no:yes:* )
17042 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
17043 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
17045 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
17046 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
17047 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
17048 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
17049 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
17051 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
17053 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
17054 (
17055 cat <<\_ASBOX
17056 ## ------------------------------ ##
17057 ## Report this to the tcl lists. ##
17058 ## ------------------------------ ##
17059 _ASBOX
17060 ) |
17061 sed "s/^/$as_me: WARNING: /" >&2
17062 ;;
17063 esac
17064 echo "$as_me:$LINENO: checking for langinfo.h" >&5
17065 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
17066 if test "${ac_cv_header_langinfo_h+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069 ac_cv_header_langinfo_h=$ac_header_preproc
17070 fi
17071 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
17072 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
17073
17074 fi
17075 if test $ac_cv_header_langinfo_h = yes; then
17076 langinfo_ok=yes
17077 else
17078 langinfo_ok=no
17079 fi
17080
17081
17082 fi
17083 echo "$as_me:$LINENO: checking whether to use nl_langinfo" >&5
17084 echo $ECHO_N "checking whether to use nl_langinfo... $ECHO_C" >&6
17085 if test "$langinfo_ok" = "yes"; then
17086 if test "${tcl_cv_langinfo_h+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h. */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 #include <langinfo.h>
17097 int
17098 main ()
17099 {
17100 nl_langinfo(CODESET);
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 tcl_cv_langinfo_h=yes
17128 else
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132 tcl_cv_langinfo_h=no
17133 fi
17134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17135 fi
17136
17137 echo "$as_me:$LINENO: result: $tcl_cv_langinfo_h" >&5
17138 echo "${ECHO_T}$tcl_cv_langinfo_h" >&6
17139 if test $tcl_cv_langinfo_h = yes; then
17140
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_LANGINFO 1
17143 _ACEOF
17144
17145 fi
17146 else
17147 echo "$as_me:$LINENO: result: $langinfo_ok" >&5
17148 echo "${ECHO_T}$langinfo_ok" >&6
17149 fi
17150
17151
17152 #--------------------------------------------------------------------
17153 # Check for support of chflags and mkstemps functions
17154 #--------------------------------------------------------------------
17155
17156
17157
17158 for ac_func in chflags mkstemps
17159 do
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17163 if eval "test \"\${$as_ac_var+set}\" = set"; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166 cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h. */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17174 #define $ac_func innocuous_$ac_func
17175
17176 /* System header to define __stub macros and hopefully few prototypes,
17177 which can conflict with char $ac_func (); below.
17178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179 <limits.h> exists even on freestanding compilers. */
17180
17181 #ifdef __STDC__
17182 # include <limits.h>
17183 #else
17184 # include <assert.h>
17185 #endif
17186
17187 #undef $ac_func
17188
17189 /* Override any gcc2 internal prototype to avoid an error. */
17190 #ifdef __cplusplus
17191 extern "C"
17192 {
17193 #endif
17194 /* We use char because int might match the return type of a gcc2
17195 builtin and then its argument prototype would still apply. */
17196 char $ac_func ();
17197 /* The GNU C library defines this for functions which it implements
17198 to always fail with ENOSYS. Some functions are actually named
17199 something starting with __ and the normal name is an alias. */
17200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17201 choke me
17202 #else
17203 char (*f) () = $ac_func;
17204 #endif
17205 #ifdef __cplusplus
17206 }
17207 #endif
17208
17209 int
17210 main ()
17211 {
17212 return f != $ac_func;
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest$ac_exeext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 eval "$as_ac_var=yes"
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 eval "$as_ac_var=no"
17245 fi
17246 rm -f conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248 fi
17249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 _ACEOF
17255
17256 fi
17257 done
17258
17259
17260 #--------------------------------------------------------------------
17261 # Check for support of isnan() function or macro
17262 #--------------------------------------------------------------------
17263
17264 echo "$as_me:$LINENO: checking isnan" >&5
17265 echo $ECHO_N "checking isnan... $ECHO_C" >&6
17266 if test "${tcl_cv_isnan+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <math.h>
17277 int
17278 main ()
17279 {
17280
17281 isnan(0.0); /* Generates an error if isnan is missing */
17282
17283 ;
17284 return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 tcl_cv_isnan=yes
17310 else
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 tcl_cv_isnan=no
17315 fi
17316 rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 fi
17319 echo "$as_me:$LINENO: result: $tcl_cv_isnan" >&5
17320 echo "${ECHO_T}$tcl_cv_isnan" >&6
17321 if test $tcl_cv_isnan = no; then
17322
17323 cat >>confdefs.h <<\_ACEOF
17324 #define NO_ISNAN 1
17325 _ACEOF
17326
17327 fi
17328
17329 #--------------------------------------------------------------------
17330 # Darwin specific API checks and defines
17331 #--------------------------------------------------------------------
17332
17333 if test "`uname -s`" = "Darwin" ; then
17334
17335 for ac_func in getattrlist
17336 do
17337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17338 echo "$as_me:$LINENO: checking for $ac_func" >&5
17339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17340 if eval "test \"\${$as_ac_var+set}\" = set"; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351 #define $ac_func innocuous_$ac_func
17352
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char $ac_func (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
17357
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17363
17364 #undef $ac_func
17365
17366 /* Override any gcc2 internal prototype to avoid an error. */
17367 #ifdef __cplusplus
17368 extern "C"
17369 {
17370 #endif
17371 /* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17373 char $ac_func ();
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17378 choke me
17379 #else
17380 char (*f) () = $ac_func;
17381 #endif
17382 #ifdef __cplusplus
17383 }
17384 #endif
17385
17386 int
17387 main ()
17388 {
17389 return f != $ac_func;
17390 ;
17391 return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396 (eval $ac_link) 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag"
17404 || test ! -s conftest.err'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 eval "$as_ac_var=yes"
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 eval "$as_ac_var=no"
17422 fi
17423 rm -f conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17428 if test `eval echo '${'$as_ac_var'}'` = yes; then
17429 cat >>confdefs.h <<_ACEOF
17430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17431 _ACEOF
17432
17433 fi
17434 done
17435
17436
17437 for ac_header in copyfile.h
17438 do
17439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441 echo "$as_me:$LINENO: checking for $ac_header" >&5
17442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 fi
17446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17448 else
17449 # Is the header compilable?
17450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 #include <$ac_header>
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17463 (eval $ac_compile) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_header_compiler=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 ac_header_compiler=no
17489 fi
17490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6
17493
17494 # Is the header present?
17495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <$ac_header>
17504 _ACEOF
17505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } >/dev/null; then
17513 if test -s conftest.err; then
17514 ac_cpp_err=$ac_c_preproc_warn_flag
17515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17516 else
17517 ac_cpp_err=
17518 fi
17519 else
17520 ac_cpp_err=yes
17521 fi
17522 if test -z "$ac_cpp_err"; then
17523 ac_header_preproc=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528 ac_header_preproc=no
17529 fi
17530 rm -f conftest.err conftest.$ac_ext
17531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6
17533
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17536 yes:no: )
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17541 ac_header_preproc=yes
17542 ;;
17543 no:yes:* )
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17556 (
17557 cat <<\_ASBOX
17558 ## ------------------------------ ##
17559 ## Report this to the tcl lists. ##
17560 ## ------------------------------ ##
17561 _ASBOX
17562 ) |
17563 sed "s/^/$as_me: WARNING: /" >&2
17564 ;;
17565 esac
17566 echo "$as_me:$LINENO: checking for $ac_header" >&5
17567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571 eval "$as_ac_Header=\$ac_header_preproc"
17572 fi
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17575
17576 fi
17577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17580 _ACEOF
17581
17582 fi
17583
17584 done
17585
17586
17587 for ac_func in copyfile
17588 do
17589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17590 echo "$as_me:$LINENO: checking for $ac_func" >&5
17591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17592 if eval "test \"\${$as_ac_var+set}\" = set"; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17603 #define $ac_func innocuous_$ac_func
17604
17605 /* System header to define __stub macros and hopefully few prototypes,
17606 which can conflict with char $ac_func (); below.
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608 <limits.h> exists even on freestanding compilers. */
17609
17610 #ifdef __STDC__
17611 # include <limits.h>
17612 #else
17613 # include <assert.h>
17614 #endif
17615
17616 #undef $ac_func
17617
17618 /* Override any gcc2 internal prototype to avoid an error. */
17619 #ifdef __cplusplus
17620 extern "C"
17621 {
17622 #endif
17623 /* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625 char $ac_func ();
17626 /* The GNU C library defines this for functions which it implements
17627 to always fail with ENOSYS. Some functions are actually named
17628 something starting with __ and the normal name is an alias. */
17629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17630 choke me
17631 #else
17632 char (*f) () = $ac_func;
17633 #endif
17634 #ifdef __cplusplus
17635 }
17636 #endif
17637
17638 int
17639 main ()
17640 {
17641 return f != $ac_func;
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17672
17673 eval "$as_ac_var=no"
17674 fi
17675 rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677 fi
17678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 _ACEOF
17684
17685 fi
17686 done
17687
17688 if test $tcl_corefoundation = yes; then
17689
17690 for ac_header in libkern/OSAtomic.h
17691 do
17692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17694 echo "$as_me:$LINENO: checking for $ac_header" >&5
17695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 fi
17699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17701 else
17702 # Is the header compilable?
17703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 $ac_includes_default
17712 #include <$ac_header>
17713 _ACEOF
17714 rm -f conftest.$ac_objext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17716 (eval $ac_compile) 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag"
17724 || test ! -s conftest.err'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest.$ac_objext'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_header_compiler=yes
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 ac_header_compiler=no
17742 fi
17743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17745 echo "${ECHO_T}$ac_header_compiler" >&6
17746
17747 # Is the header present?
17748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 #include <$ac_header>
17757 _ACEOF
17758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17760 ac_status=$?
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } >/dev/null; then
17766 if test -s conftest.err; then
17767 ac_cpp_err=$ac_c_preproc_warn_flag
17768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17769 else
17770 ac_cpp_err=
17771 fi
17772 else
17773 ac_cpp_err=yes
17774 fi
17775 if test -z "$ac_cpp_err"; then
17776 ac_header_preproc=yes
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_header_preproc=no
17782 fi
17783 rm -f conftest.err conftest.$ac_ext
17784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17785 echo "${ECHO_T}$ac_header_preproc" >&6
17786
17787 # So? What about this header?
17788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17789 yes:no: )
17790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17794 ac_header_preproc=yes
17795 ;;
17796 no:yes:* )
17797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17809 (
17810 cat <<\_ASBOX
17811 ## ------------------------------ ##
17812 ## Report this to the tcl lists. ##
17813 ## ------------------------------ ##
17814 _ASBOX
17815 ) |
17816 sed "s/^/$as_me: WARNING: /" >&2
17817 ;;
17818 esac
17819 echo "$as_me:$LINENO: checking for $ac_header" >&5
17820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824 eval "$as_ac_Header=\$ac_header_preproc"
17825 fi
17826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17828
17829 fi
17830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17831 cat >>confdefs.h <<_ACEOF
17832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17833 _ACEOF
17834
17835 fi
17836
17837 done
17838
17839
17840 for ac_func in OSSpinLockLock
17841 do
17842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17843 echo "$as_me:$LINENO: checking for $ac_func" >&5
17844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17845 if eval "test \"\${$as_ac_var+set}\" = set"; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17856 #define $ac_func innocuous_$ac_func
17857
17858 /* System header to define __stub macros and hopefully few prototypes,
17859 which can conflict with char $ac_func (); below.
17860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17861 <limits.h> exists even on freestanding compilers. */
17862
17863 #ifdef __STDC__
17864 # include <limits.h>
17865 #else
17866 # include <assert.h>
17867 #endif
17868
17869 #undef $ac_func
17870
17871 /* Override any gcc2 internal prototype to avoid an error. */
17872 #ifdef __cplusplus
17873 extern "C"
17874 {
17875 #endif
17876 /* We use char because int might match the return type of a gcc2
17877 builtin and then its argument prototype would still apply. */
17878 char $ac_func ();
17879 /* The GNU C library defines this for functions which it implements
17880 to always fail with ENOSYS. Some functions are actually named
17881 something starting with __ and the normal name is an alias. */
17882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17883 choke me
17884 #else
17885 char (*f) () = $ac_func;
17886 #endif
17887 #ifdef __cplusplus
17888 }
17889 #endif
17890
17891 int
17892 main ()
17893 {
17894 return f != $ac_func;
17895 ;
17896 return 0;
17897 }
17898 _ACEOF
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901 (eval $ac_link) 2>conftest.er1
17902 ac_status=$?
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -z "$ac_c_werror_flag"
17909 || test ! -s conftest.err'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest$ac_exeext'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 eval "$as_ac_var=yes"
17922 else
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926 eval "$as_ac_var=no"
17927 fi
17928 rm -f conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 fi
17931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17933 if test `eval echo '${'$as_ac_var'}'` = yes; then
17934 cat >>confdefs.h <<_ACEOF
17935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17936 _ACEOF
17937
17938 fi
17939 done
17940
17941 fi
17942
17943 cat >>confdefs.h <<\_ACEOF
17944 #define TCL_DEFAULT_ENCODING "utf-8"
17945 _ACEOF
17946
17947
17948 cat >>confdefs.h <<\_ACEOF
17949 #define TCL_LOAD_FROM_MEMORY 1
17950 _ACEOF
17951
17952
17953 cat >>confdefs.h <<\_ACEOF
17954 #define TCL_WIDE_CLICKS 1
17955 _ACEOF
17956
17957
17958 for ac_header in AvailabilityMacros.h
17959 do
17960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17962 echo "$as_me:$LINENO: checking for $ac_header" >&5
17963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 fi
17967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17969 else
17970 # Is the header compilable?
17971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17973 cat >conftest.$ac_ext <<_ACEOF
17974 /* confdefs.h. */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 $ac_includes_default
17980 #include <$ac_header>
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_header_compiler=yes
18005 else
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_header_compiler=no
18010 fi
18011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18013 echo "${ECHO_T}$ac_header_compiler" >&6
18014
18015 # Is the header present?
18016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 #include <$ac_header>
18025 _ACEOF
18026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18028 ac_status=$?
18029 grep -v '^ *+' conftest.er1 >conftest.err
18030 rm -f conftest.er1
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } >/dev/null; then
18034 if test -s conftest.err; then
18035 ac_cpp_err=$ac_c_preproc_warn_flag
18036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18037 else
18038 ac_cpp_err=
18039 fi
18040 else
18041 ac_cpp_err=yes
18042 fi
18043 if test -z "$ac_cpp_err"; then
18044 ac_header_preproc=yes
18045 else
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18048
18049 ac_header_preproc=no
18050 fi
18051 rm -f conftest.err conftest.$ac_ext
18052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18053 echo "${ECHO_T}$ac_header_preproc" >&6
18054
18055 # So? What about this header?
18056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18057 yes:no: )
18058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18062 ac_header_preproc=yes
18063 ;;
18064 no:yes:* )
18065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18077 (
18078 cat <<\_ASBOX
18079 ## ------------------------------ ##
18080 ## Report this to the tcl lists. ##
18081 ## ------------------------------ ##
18082 _ASBOX
18083 ) |
18084 sed "s/^/$as_me: WARNING: /" >&2
18085 ;;
18086 esac
18087 echo "$as_me:$LINENO: checking for $ac_header" >&5
18088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 eval "$as_ac_Header=\$ac_header_preproc"
18093 fi
18094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18096
18097 fi
18098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18099 cat >>confdefs.h <<_ACEOF
18100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18101 _ACEOF
18102
18103 fi
18104
18105 done
18106
18107 if test "$ac_cv_header_AvailabilityMacros_h" = yes; then
18108 echo "$as_me:$LINENO: checking if weak import is available" >&5
18109 echo $ECHO_N "checking if weak import is available... $ECHO_C" >&6
18110 if test "${tcl_cv_cc_weak_import+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113
18114 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121
18122 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
18123 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
18124 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
18125 #endif
18126 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020
18127 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020
18128 #endif
18129 int rand(void) __attribute__((weak_import));
18130
18131 int
18132 main ()
18133 {
18134 rand();
18135 ;
18136 return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141 (eval $ac_link) 2>conftest.er1
18142 ac_status=$?
18143 grep -v '^ *+' conftest.er1 >conftest.err
18144 rm -f conftest.er1
18145 cat conftest.err >&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -z "$ac_c_werror_flag"
18149 || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 tcl_cv_cc_weak_import=yes
18162 else
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 tcl_cv_cc_weak_import=no
18167 fi
18168 rm -f conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170 CFLAGS=$hold_cflags
18171 fi
18172 echo "$as_me:$LINENO: result: $tcl_cv_cc_weak_import" >&5
18173 echo "${ECHO_T}$tcl_cv_cc_weak_import" >&6
18174 if test $tcl_cv_cc_weak_import = yes; then
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_WEAK_IMPORT 1
18178 _ACEOF
18179
18180 fi
18181 echo "$as_me:$LINENO: checking if Darwin SUSv3 extensions are available" >&5
18182 echo $ECHO_N "checking if Darwin SUSv3 extensions are available... $ECHO_C" >&6
18183 if test "${tcl_cv_cc_darwin_c_source+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186
18187 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194
18195 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
18196 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
18197 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
18198 #endif
18199 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050
18200 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050
18201 #endif
18202 #define _DARWIN_C_SOURCE 1
18203 #include <sys/cdefs.h>
18204
18205 int
18206 main ()
18207 {
18208
18209 ;
18210 return 0;
18211 }
18212 _ACEOF
18213 rm -f conftest.$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215 (eval $ac_compile) 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest.$ac_objext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 tcl_cv_cc_darwin_c_source=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18239
18240 tcl_cv_cc_darwin_c_source=no
18241 fi
18242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18243 CFLAGS=$hold_cflags
18244 fi
18245 echo "$as_me:$LINENO: result: $tcl_cv_cc_darwin_c_source" >&5
18246 echo "${ECHO_T}$tcl_cv_cc_darwin_c_source" >&6
18247 if test $tcl_cv_cc_darwin_c_source = yes; then
18248
18249 cat >>confdefs.h <<\_ACEOF
18250 #define _DARWIN_C_SOURCE 1
18251 _ACEOF
18252
18253 fi
18254 fi
18255 # Build .bundle dltest binaries in addition to .dylib
18256 DLTEST_LD='${CC} -bundle -Wl,-w ${CFLAGS} ${LDFLAGS}'
18257 DLTEST_SUFFIX=".bundle"
18258 else
18259 DLTEST_LD='${SHLIB_LD}'
18260 DLTEST_SUFFIX=""
18261 fi
18262
18263 #--------------------------------------------------------------------
18264 # Check for support of fts functions (readdir replacement)
18265 #--------------------------------------------------------------------
18266
18267 echo "$as_me:$LINENO: checking for fts" >&5
18268 echo $ECHO_N "checking for fts... $ECHO_C" >&6
18269 if test "${tcl_cv_api_fts+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279
18280 #include <sys/param.h>
18281 #include <sys/stat.h>
18282 #include <fts.h>
18283
18284 int
18285 main ()
18286 {
18287
18288 char*const p[2] = {"/", NULL};
18289 FTS *f = fts_open(p, FTS_PHYSICAL|FTS_NOCHDIR|FTS_NOSTAT, NULL);
18290 FTSENT *e = fts_read(f); fts_close(f);
18291
18292 ;
18293 return 0;
18294 }
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>conftest.er1
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } &&
18305 { ac_try='test -z "$ac_c_werror_flag"
18306 || test ! -s conftest.err'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 tcl_cv_api_fts=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 tcl_cv_api_fts=no
18324 fi
18325 rm -f conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 fi
18328 echo "$as_me:$LINENO: result: $tcl_cv_api_fts" >&5
18329 echo "${ECHO_T}$tcl_cv_api_fts" >&6
18330 if test $tcl_cv_api_fts = yes; then
18331
18332 cat >>confdefs.h <<\_ACEOF
18333 #define HAVE_FTS 1
18334 _ACEOF
18335
18336 fi
18337
18338 #--------------------------------------------------------------------
18339 # The statements below check for systems where POSIX-style non-blocking
18340 # I/O (O_NONBLOCK) doesn't work or is unimplemented. On these systems
18341 # (mostly older ones), use the old BSD-style FIONBIO approach instead.
18342 #--------------------------------------------------------------------
18343
18344
18345
18346 for ac_header in sys/ioctl.h
18347 do
18348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18350 echo "$as_me:$LINENO: checking for $ac_header" >&5
18351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 fi
18355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18357 else
18358 # Is the header compilable?
18359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 $ac_includes_default
18368 #include <$ac_header>
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -z "$ac_c_werror_flag"
18380 || test ! -s conftest.err'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_header_compiler=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 ac_header_compiler=no
18398 fi
18399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18401 echo "${ECHO_T}$ac_header_compiler" >&6
18402
18403 # Is the header present?
18404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 #include <$ac_header>
18413 _ACEOF
18414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } >/dev/null; then
18422 if test -s conftest.err; then
18423 ac_cpp_err=$ac_c_preproc_warn_flag
18424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18425 else
18426 ac_cpp_err=
18427 fi
18428 else
18429 ac_cpp_err=yes
18430 fi
18431 if test -z "$ac_cpp_err"; then
18432 ac_header_preproc=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437 ac_header_preproc=no
18438 fi
18439 rm -f conftest.err conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6
18442
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 yes:no: )
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18451 ;;
18452 no:yes:* )
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18465 (
18466 cat <<\_ASBOX
18467 ## ------------------------------ ##
18468 ## Report this to the tcl lists. ##
18469 ## ------------------------------ ##
18470 _ASBOX
18471 ) |
18472 sed "s/^/$as_me: WARNING: /" >&2
18473 ;;
18474 esac
18475 echo "$as_me:$LINENO: checking for $ac_header" >&5
18476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 eval "$as_ac_Header=\$ac_header_preproc"
18481 fi
18482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18484
18485 fi
18486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18487 cat >>confdefs.h <<_ACEOF
18488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18489 _ACEOF
18490
18491 fi
18492
18493 done
18494
18495
18496 for ac_header in sys/filio.h
18497 do
18498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18500 echo "$as_me:$LINENO: checking for $ac_header" >&5
18501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 fi
18505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18507 else
18508 # Is the header compilable?
18509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 $ac_includes_default
18518 #include <$ac_header>
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_header_compiler=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_header_compiler=no
18548 fi
18549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18551 echo "${ECHO_T}$ac_header_compiler" >&6
18552
18553 # Is the header present?
18554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h. */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 #include <$ac_header>
18563 _ACEOF
18564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } >/dev/null; then
18572 if test -s conftest.err; then
18573 ac_cpp_err=$ac_c_preproc_warn_flag
18574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18575 else
18576 ac_cpp_err=
18577 fi
18578 else
18579 ac_cpp_err=yes
18580 fi
18581 if test -z "$ac_cpp_err"; then
18582 ac_header_preproc=yes
18583 else
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 ac_header_preproc=no
18588 fi
18589 rm -f conftest.err conftest.$ac_ext
18590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18591 echo "${ECHO_T}$ac_header_preproc" >&6
18592
18593 # So? What about this header?
18594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18595 yes:no: )
18596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18600 ac_header_preproc=yes
18601 ;;
18602 no:yes:* )
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18615 (
18616 cat <<\_ASBOX
18617 ## ------------------------------ ##
18618 ## Report this to the tcl lists. ##
18619 ## ------------------------------ ##
18620 _ASBOX
18621 ) |
18622 sed "s/^/$as_me: WARNING: /" >&2
18623 ;;
18624 esac
18625 echo "$as_me:$LINENO: checking for $ac_header" >&5
18626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 eval "$as_ac_Header=\$ac_header_preproc"
18631 fi
18632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18634
18635 fi
18636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18637 cat >>confdefs.h <<_ACEOF
18638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18639 _ACEOF
18640
18641 fi
18642
18643 done
18644
18645
18646 echo "$as_me:$LINENO: checking system version" >&5
18647 echo $ECHO_N "checking system version... $ECHO_C" >&6
18648 if test "${tcl_cv_sys_version+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651
18652 if test -f /usr/lib/NextStep/software_version; then
18653 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
18654 else
18655 tcl_cv_sys_version=`uname -s`-`uname -r`
18656 if test "$?" -ne 0 ; then
18657 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
18658 echo "$as_me: WARNING: can't find uname command" >&2;}
18659 tcl_cv_sys_version=unknown
18660 else
18661 # Special check for weird MP-RAS system (uname returns weird
18662 # results, and the version is kept in special file).
18663
18664 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
18665 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
18666 fi
18667 if test "`uname -s`" = "AIX" ; then
18668 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
18669 fi
18670 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
18671 tcl_cv_sys_version=NetBSD-Debian
18672 fi
18673 fi
18674 fi
18675
18676 fi
18677 echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
18678 echo "${ECHO_T}$tcl_cv_sys_version" >&6
18679 system=$tcl_cv_sys_version
18680
18681 echo "$as_me:$LINENO: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
18682 echo $ECHO_N "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... $ECHO_C" >&6
18683 case $system in
18684 OSF*)
18685
18686 cat >>confdefs.h <<\_ACEOF
18687 #define USE_FIONBIO 1
18688 _ACEOF
18689
18690 echo "$as_me:$LINENO: result: FIONBIO" >&5
18691 echo "${ECHO_T}FIONBIO" >&6
18692 ;;
18693 SunOS-4*)
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define USE_FIONBIO 1
18697 _ACEOF
18698
18699 echo "$as_me:$LINENO: result: FIONBIO" >&5
18700 echo "${ECHO_T}FIONBIO" >&6
18701 ;;
18702 *)
18703 echo "$as_me:$LINENO: result: O_NONBLOCK" >&5
18704 echo "${ECHO_T}O_NONBLOCK" >&6
18705 ;;
18706 esac
18707
18708
18709 #------------------------------------------------------------------------
18710
18711 echo "$as_me:$LINENO: checking whether to use dll unloading" >&5
18712 echo $ECHO_N "checking whether to use dll unloading... $ECHO_C" >&6
18713 # Check whether --enable-dll-unloading or --disable-dll-unloading was given.
18714 if test "${enable_dll_unloading+set}" = set; then
18715 enableval="$enable_dll_unloading"
18716 tcl_ok=$enableval
18717 else
18718 tcl_ok=yes
18719 fi;
18720 if test $tcl_ok = yes; then
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define TCL_UNLOAD_DLLS 1
18724 _ACEOF
18725
18726 fi
18727 echo "$as_me:$LINENO: result: $tcl_ok" >&5
18728 echo "${ECHO_T}$tcl_ok" >&6
18729
18730 #------------------------------------------------------------------------
18731 # Check whether the timezone data is supplied by the OS or has
18732 # to be installed by Tcl. The default is autodetection, but can
18733 # be overridden on the configure command line either way.
18734 #------------------------------------------------------------------------
18735
18736 echo "$as_me:$LINENO: checking for timezone data" >&5
18737 echo $ECHO_N "checking for timezone data... $ECHO_C" >&6
18738
18739 # Check whether --with-tzdata or --without-tzdata was given.
18740 if test "${with_tzdata+set}" = set; then
18741 withval="$with_tzdata"
18742 tcl_ok=$withval
18743 else
18744 tcl_ok=auto
18745 fi;
18746 #
18747 # Any directories that get added here must also be added to the
18748 # search path in ::tcl::clock::Initialize (library/clock.tcl).
18749 #
18750 case $tcl_ok in
18751 no)
18752 echo "$as_me:$LINENO: result: supplied by OS vendor" >&5
18753 echo "${ECHO_T}supplied by OS vendor" >&6
18754 ;;
18755 yes)
18756 # nothing to do here
18757 ;;
18758 auto*)
18759 if test "${tcl_cv_dir_zoneinfo+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762
18763 for dir in /usr/share/zoneinfo \
18764 /usr/share/lib/zoneinfo \
18765 /usr/lib/zoneinfo
18766 do
18767 if test -f $dir/UTC -o -f $dir/GMT
18768 then
18769 tcl_cv_dir_zoneinfo="$dir"
18770 break
18771 fi
18772 done
18773 fi
18774
18775 if test -n "$tcl_cv_dir_zoneinfo"; then
18776 tcl_ok=no
18777 echo "$as_me:$LINENO: result: $dir" >&5
18778 echo "${ECHO_T}$dir" >&6
18779 else
18780 tcl_ok=yes
18781 fi
18782 ;;
18783 *)
18784 { { echo "$as_me:$LINENO: error: invalid argument: $tcl_ok" >&5
18785 echo "$as_me: error: invalid argument: $tcl_ok" >&2;}
18786 { (exit 1); exit 1; }; }
18787 ;;
18788 esac
18789 if test $tcl_ok = yes
18790 then
18791 echo "$as_me:$LINENO: result: supplied by Tcl" >&5
18792 echo "${ECHO_T}supplied by Tcl" >&6
18793 INSTALL_TZDATA=install-tzdata
18794 fi
18795
18796 #--------------------------------------------------------------------
18797 # DTrace support
18798 #--------------------------------------------------------------------
18799
18800 # Check whether --enable-dtrace or --disable-dtrace was given.
18801 if test "${enable_dtrace+set}" = set; then
18802 enableval="$enable_dtrace"
18803 tcl_ok=$enableval
18804 else
18805 tcl_ok=no
18806 fi;
18807 if test $tcl_ok = yes; then
18808 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
18809 echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
18810 echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6
18811 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 fi
18814 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
18815 echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6
18816 else
18817 # Is the header compilable?
18818 echo "$as_me:$LINENO: checking sys/sdt.h usability" >&5
18819 echo $ECHO_N "checking sys/sdt.h usability... $ECHO_C" >&6
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 $ac_includes_default
18827 #include <sys/sdt.h>
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_header_compiler=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 ac_header_compiler=no
18857 fi
18858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18860 echo "${ECHO_T}$ac_header_compiler" >&6
18861
18862 # Is the header present?
18863 echo "$as_me:$LINENO: checking sys/sdt.h presence" >&5
18864 echo $ECHO_N "checking sys/sdt.h presence... $ECHO_C" >&6
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 #include <sys/sdt.h>
18872 _ACEOF
18873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } >/dev/null; then
18881 if test -s conftest.err; then
18882 ac_cpp_err=$ac_c_preproc_warn_flag
18883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18884 else
18885 ac_cpp_err=
18886 fi
18887 else
18888 ac_cpp_err=yes
18889 fi
18890 if test -z "$ac_cpp_err"; then
18891 ac_header_preproc=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_header_preproc=no
18897 fi
18898 rm -f conftest.err conftest.$ac_ext
18899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18900 echo "${ECHO_T}$ac_header_preproc" >&6
18901
18902 # So? What about this header?
18903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18904 yes:no: )
18905 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18906 echo "$as_me: WARNING: sys/sdt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the compiler's result" >&5
18908 echo "$as_me: WARNING: sys/sdt.h: proceeding with the compiler's result" >&2;}
18909 ac_header_preproc=yes
18910 ;;
18911 no:yes:* )
18912 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: present but cannot be compiled" >&5
18913 echo "$as_me: WARNING: sys/sdt.h: present but cannot be compiled" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: check for missing prerequisite headers?" >&5
18915 echo "$as_me: WARNING: sys/sdt.h: check for missing prerequisite headers?" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: see the Autoconf documentation" >&5
18917 echo "$as_me: WARNING: sys/sdt.h: see the Autoconf documentation" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: section \"Present But Cannot Be Compiled\"" >&5
18919 echo "$as_me: WARNING: sys/sdt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18920 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&5
18921 echo "$as_me: WARNING: sys/sdt.h: proceeding with the preprocessor's result" >&2;}
18922 { echo "$as_me:$LINENO: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&5
18923 echo "$as_me: WARNING: sys/sdt.h: in the future, the compiler will take precedence" >&2;}
18924 (
18925 cat <<\_ASBOX
18926 ## ------------------------------ ##
18927 ## Report this to the tcl lists. ##
18928 ## ------------------------------ ##
18929 _ASBOX
18930 ) |
18931 sed "s/^/$as_me: WARNING: /" >&2
18932 ;;
18933 esac
18934 echo "$as_me:$LINENO: checking for sys/sdt.h" >&5
18935 echo $ECHO_N "checking for sys/sdt.h... $ECHO_C" >&6
18936 if test "${ac_cv_header_sys_sdt_h+set}" = set; then
18937 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 else
18939 ac_cv_header_sys_sdt_h=$ac_header_preproc
18940 fi
18941 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sdt_h" >&5
18942 echo "${ECHO_T}$ac_cv_header_sys_sdt_h" >&6
18943
18944 fi
18945 if test $ac_cv_header_sys_sdt_h = yes; then
18946 tcl_ok=yes
18947 else
18948 tcl_ok=no
18949 fi
18950
18951
18952 fi
18953 if test $tcl_ok = yes; then
18954 # Extract the first word of "dtrace", so it can be a program name with args.
18955 set dummy dtrace; ac_word=$2
18956 echo "$as_me:$LINENO: checking for $ac_word" >&5
18957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18958 if test "${ac_cv_path_DTRACE+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 case $DTRACE in
18962 [\\/]* | ?:[\\/]*)
18963 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
18964 ;;
18965 *)
18966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18967 as_dummy="$PATH:/usr/sbin"
18968 for as_dir in $as_dummy
18969 do
18970 IFS=$as_save_IFS
18971 test -z "$as_dir" && as_dir=.
18972 for ac_exec_ext in '' $ac_executable_extensions; do
18973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18974 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
18975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18976 break 2
18977 fi
18978 done
18979 done
18980
18981 ;;
18982 esac
18983 fi
18984 DTRACE=$ac_cv_path_DTRACE
18985
18986 if test -n "$DTRACE"; then
18987 echo "$as_me:$LINENO: result: $DTRACE" >&5
18988 echo "${ECHO_T}$DTRACE" >&6
18989 else
18990 echo "$as_me:$LINENO: result: no" >&5
18991 echo "${ECHO_T}no" >&6
18992 fi
18993
18994 test -z "$ac_cv_path_DTRACE" && tcl_ok=no
18995 fi
18996 echo "$as_me:$LINENO: checking whether to enable DTrace support" >&5
18997 echo $ECHO_N "checking whether to enable DTrace support... $ECHO_C" >&6
18998 MAKEFILE_SHELL='/bin/sh'
18999 if test $tcl_ok = yes; then
19000
19001 cat >>confdefs.h <<\_ACEOF
19002 #define USE_DTRACE 1
19003 _ACEOF
19004
19005 DTRACE_SRC="\${DTRACE_SRC}"
19006 DTRACE_HDR="\${DTRACE_HDR}"
19007 if test "`uname -s`" != "Darwin" ; then
19008 DTRACE_OBJ="\${DTRACE_OBJ}"
19009 if test "`uname -s`" = "SunOS" -a "$SHARED_BUILD" = "0" ; then
19010 # Need to create an intermediate object file to ensure tclDTrace.o
19011 # gets included when linking against the static tcl library.
19012 STLIB_LD='stlib_ld () { /usr/ccs/bin/ld -r -o $${1%.a}.o "$${@:2}" && '"${STLIB_LD}"' $${1} $${1%.a}.o ; } && stlib_ld'
19013 MAKEFILE_SHELL='/bin/bash'
19014 # Force use of Sun ar and ranlib, the GNU versions choke on
19015 # tclDTrace.o and the combined object file above.
19016 AR='/usr/ccs/bin/ar'
19017 RANLIB='/usr/ccs/bin/ranlib'
19018 fi
19019 fi
19020 fi
19021 echo "$as_me:$LINENO: result: $tcl_ok" >&5
19022 echo "${ECHO_T}$tcl_ok" >&6
19023
19024 #--------------------------------------------------------------------
19025 # The check below checks whether the cpuid instruction is usable.
19026 #--------------------------------------------------------------------
19027
19028 echo "$as_me:$LINENO: checking whether the cpuid instruction is usable" >&5
19029 echo $ECHO_N "checking whether the cpuid instruction is usable... $ECHO_C" >&6
19030 if test "${tcl_cv_cpuid+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040
19041 int
19042 main ()
19043 {
19044
19045 int index,regsPtr[4];
19046 __asm__ __volatile__("mov %%ebx, %%edi \n\t"
19047 "cpuid \n\t"
19048 "mov %%ebx, %%esi \n\t"
19049 "mov %%edi, %%ebx \n\t"
19050 : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3])
19051 : "a"(index) : "edi");
19052
19053 ;
19054 return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059 (eval $ac_link) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 tcl_cv_cpuid=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 tcl_cv_cpuid=no
19085 fi
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 fi
19089 echo "$as_me:$LINENO: result: $tcl_cv_cpuid" >&5
19090 echo "${ECHO_T}$tcl_cv_cpuid" >&6
19091 if test $tcl_cv_cpuid = yes; then
19092
19093 cat >>confdefs.h <<\_ACEOF
19094 #define HAVE_CPUID 1
19095 _ACEOF
19096
19097 fi
19098
19099 #--------------------------------------------------------------------
19100 # The statements below define a collection of symbols related to
19101 # building libtcl as a shared library instead of a static library.
19102 #--------------------------------------------------------------------
19103
19104 TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
19105 TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}
19106 eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
19107
19108 # tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
19109 # since on some platforms TCL_LIB_FILE contains shell escapes.
19110 # (See also: TCL_TRIM_DOTS).
19111
19112 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
19113
19114 test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)'
19115 PRIVATE_INCLUDE_DIR='$(includedir)'
19116 HTML_DIR='$(DISTDIR)/html'
19117
19118 # Note: in the following variable, it's important to use the absolute
19119 # path name of the Tcl directory rather than "..": this is because
19120 # AIX remembers this path and will attempt to use it at run-time to look
19121 # up the Tcl library.
19122
19123 if test "`uname -s`" = "Darwin" ; then
19124
19125 if test "`uname -s`" = "Darwin" ; then
19126 echo "$as_me:$LINENO: checking how to package libraries" >&5
19127 echo $ECHO_N "checking how to package libraries... $ECHO_C" >&6
19128 # Check whether --enable-framework or --disable-framework was given.
19129 if test "${enable_framework+set}" = set; then
19130 enableval="$enable_framework"
19131 enable_framework=$enableval
19132 else
19133 enable_framework=no
19134 fi;
19135 if test $enable_framework = yes; then
19136 if test $SHARED_BUILD = 0; then
19137 { echo "$as_me:$LINENO: WARNING: Frameworks can only be built if --enable-shared is yes" >&5
19138 echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;}
19139 enable_framework=no
19140 fi
19141 if test $tcl_corefoundation = no; then
19142 { echo "$as_me:$LINENO: WARNING: Frameworks can only be used when CoreFoundation is available" >&5
19143 echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;}
19144 enable_framework=no
19145 fi
19146 fi
19147 if test $enable_framework = yes; then
19148 echo "$as_me:$LINENO: result: framework" >&5
19149 echo "${ECHO_T}framework" >&6
19150 FRAMEWORK_BUILD=1
19151 else
19152 if test $SHARED_BUILD = 1; then
19153 echo "$as_me:$LINENO: result: shared library" >&5
19154 echo "${ECHO_T}shared library" >&6
19155 else
19156 echo "$as_me:$LINENO: result: static library" >&5
19157 echo "${ECHO_T}static library" >&6
19158 fi
19159 FRAMEWORK_BUILD=0
19160 fi
19161 fi
19162
19163 TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_VERSION} -current_version ${TCL_VERSION}`echo ${TCL_PATCH_LEVEL} | awk '{match($0, "\\\.[0-9]+"); print substr($0,RSTART,RLENGTH)}'`"
19164 TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -install_name "${DYLIB_INSTALL_DIR}"/${TCL_LIB_FILE}'
19165 echo "$LDFLAGS " | grep -q -- '-prebind ' && TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -seg1addr 0xA000000'
19166 TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tcl-Info.plist'
19167 EXTRA_TCLSH_LIBS='-sectcreate __TEXT __info_plist Tclsh-Info.plist'
19168 EXTRA_APP_CC_SWITCHES='-mdynamic-no-pic'
19169 ac_config_files="$ac_config_files Tcl-Info.plist:../macosx/Tcl-Info.plist.in Tclsh-Info.plist:../macosx/Tclsh-Info.plist.in"
19170
19171 TCL_YEAR="`date +%Y`"
19172 fi
19173
19174 if test "$FRAMEWORK_BUILD" = "1" ; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define TCL_FRAMEWORK 1
19178 _ACEOF
19179
19180 # Construct a fake local framework structure to make linking with
19181 # '-framework Tcl' and running of tcltest work
19182 ac_config_commands="$ac_config_commands Tcl.framework"
19183
19184 LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH"
19185 # default install directory for bundled packages
19186 if test "${libdir}" = '${exec_prefix}/lib' -o "`basename ${libdir}`" = 'Frameworks'; then
19187 PACKAGE_DIR="/Library/Tcl"
19188 else
19189 PACKAGE_DIR="$libdir"
19190 fi
19191 if test "${libdir}" = '${exec_prefix}/lib'; then
19192 # override libdir default
19193 libdir="/Library/Frameworks"
19194 fi
19195 TCL_LIB_FILE="Tcl"
19196 TCL_LIB_FLAG="-framework Tcl"
19197 TCL_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tcl"
19198 TCL_LIB_SPEC="-F${libdir} -framework Tcl"
19199 libdir="${libdir}/Tcl.framework/Versions/\${VERSION}"
19200 TCL_LIBRARY="${libdir}/Resources/Scripts"
19201 includedir="${libdir}/Headers"
19202 PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders"
19203 HTML_DIR="${libdir}/Resources/Documentation/Reference/Tcl"
19204 EXTRA_INSTALL="install-private-headers html-tcl"
19205 EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)/TclTOC.html"'
19206 EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tcl-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"'
19207 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing license.terms to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA) "$(TOP_DIR)/license.terms" "$(LIB_INSTALL_DIR)/Resources"'
19208 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Finalizing Tcl.framework" && rm -f "$(LIB_INSTALL_DIR)/../Current" && ln -s "$(VERSION)" "$(LIB_INSTALL_DIR)/../Current" && for f in "$(LIB_FILE)" tclConfig.sh Resources Headers PrivateHeaders; do rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/Current/$$f" "$(LIB_INSTALL_DIR)/../.."; done && f="$(STUB_LIB_FILE)" && rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/$(VERSION)/$$f" "$(LIB_INSTALL_DIR)/../.."'
19209 # Don't use AC_DEFINE for the following as the framework version define
19210 # needs to go into the Makefile even when using autoheader, so that we
19211 # can pick up a potential make override of VERSION. Also, don't put this
19212 # into CFLAGS as it should not go into tclConfig.sh
19213 EXTRA_CC_SWITCHES='-DTCL_FRAMEWORK_VERSION=\"$(VERSION)\"'
19214 else
19215 # libdir must be a fully qualified path and not ${exec_prefix}/lib
19216 eval libdir="$libdir"
19217 # default install directory for bundled packages
19218 PACKAGE_DIR="$libdir"
19219 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
19220 TCL_LIB_FLAG="-ltcl${TCL_VERSION}"
19221 else
19222 TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`"
19223 fi
19224 TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}"
19225 TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
19226 fi
19227 VERSION='${VERSION}'
19228 eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
19229 eval "CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}"
19230 VERSION=${TCL_VERSION}
19231
19232 #--------------------------------------------------------------------
19233 # The statements below define the symbol TCL_PACKAGE_PATH, which
19234 # gives a list of directories that may contain packages. The list
19235 # consists of one directory for machine-dependent binaries and
19236 # another for platform-independent scripts.
19237 #--------------------------------------------------------------------
19238
19239 if test "$FRAMEWORK_BUILD" = "1" ; then
19240 test -z "$TCL_PACKAGE_PATH" && \
19241 TCL_PACKAGE_PATH="~/Library/Tcl:/Library/Tcl:~/Library/Frameworks:/Library/Frameworks"
19242 test -z "$TCL_MODULE_PATH" && \
19243 TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl"
19244 elif test "$prefix/lib" != "$libdir"; then
19245 test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir}:${prefix}/lib"
19246 else
19247 test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib"
19248 fi
19249
19250 #--------------------------------------------------------------------
19251 # The statements below define various symbols relating to Tcl
19252 # stub support.
19253 #--------------------------------------------------------------------
19254
19255 # Replace ${VERSION} with contents of ${TCL_VERSION}
19256 # double-eval to account for TCL_TRIM_DOTS.
19257 #
19258 eval "TCL_STUB_LIB_FILE=libtclstub${TCL_UNSHARED_LIB_SUFFIX}"
19259 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19260 eval "TCL_STUB_LIB_DIR=\"${libdir}\""
19261
19262 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
19263 TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}"
19264 else
19265 TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`"
19266 fi
19267
19268 TCL_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
19269 TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
19270 TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
19271 TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
19272
19273 # Install time header dir can be set via --includedir
19274 eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
19275
19276 #------------------------------------------------------------------------
19277 # tclConfig.sh refers to this by a different name
19278 #------------------------------------------------------------------------
19279
19280 TCL_SHARED_BUILD=${SHARED_BUILD}
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342 ac_config_files="$ac_config_files Makefile:../unix/Makefile.in dltest/Makefile:../unix/dltest/Makefile.in tclConfig.sh:../unix/tclConfig.sh.in tcl.pc:../unix/tcl.pc.in"
19343
19344 cat >confcache <<\_ACEOF
19345 # This file is a shell script that caches the results of configure
19346 # tests run on this system so they can be shared between configure
19347 # scripts and configure runs, see configure's option --config-cache.
19348 # It is not useful on other systems. If it contains results you don't
19349 # want to keep, you may remove or edit it.
19350 #
19351 # config.status only pays attention to the cache file if you give it
19352 # the --recheck option to rerun configure.
19353 #
19354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19356 # following values.
19357
19358 _ACEOF
19359
19360 # The following way of writing the cache mishandles newlines in values,
19361 # but we know of no workaround that is simple, portable, and efficient.
19362 # So, don't put newlines in cache variables' values.
19363 # Ultrix sh set writes to stderr and can't be redirected directly,
19364 # and sets the high bit in the cache file unless we assign to the vars.
19365 {
19366 (set) 2>&1 |
19367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19368 *ac_space=\ *)
19369 # `set' does not quote correctly, so add quotes (double-quote
19370 # substitution turns \\\\ into \\, and sed turns \\ into \).
19371 sed -n \
19372 "s/'/'\\\\''/g;
19373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19374 ;;
19375 *)
19376 # `set' quotes correctly as required by POSIX, so do not add quotes.
19377 sed -n \
19378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19379 ;;
19380 esac;
19381 } |
19382 sed '
19383 t clear
19384 : clear
19385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19386 t end
19387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19388 : end' >>confcache
19389 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19390 if test -w $cache_file; then
19391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19392 cat confcache >$cache_file
19393 else
19394 echo "not updating unwritable cache $cache_file"
19395 fi
19396 fi
19397 rm -f confcache
19398
19399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19400 # Let make expand exec_prefix.
19401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19402
19403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19405 # trailing colons and then remove the whole line if VPATH becomes empty
19406 # (actually we leave an empty line to preserve line numbers).
19407 if test "x$srcdir" = x.; then
19408 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19409 s/:*\$(srcdir):*/:/;
19410 s/:*\${srcdir}:*/:/;
19411 s/:*@srcdir@:*/:/;
19412 s/^\([^=]*=[ ]*\):*/\1/;
19413 s/:*$//;
19414 s/^[^=]*=[ ]*$//;
19415 }'
19416 fi
19417
19418 # Transform confdefs.h into DEFS.
19419 # Protect against shell expansion while executing Makefile rules.
19420 # Protect against Makefile macro expansion.
19421 #
19422 # If the first sed substitution is executed (which looks for macros that
19423 # take arguments), then we branch to the quote section. Otherwise,
19424 # look for a macro that doesn't take arguments.
19425 cat >confdef2opt.sed <<\_ACEOF
19426 t clear
19427 : clear
19428 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19429 t quote
19430 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19431 t quote
19432 d
19433 : quote
19434 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19435 s,\[,\\&,g
19436 s,\],\\&,g
19437 s,\$,$$,g
19438 p
19439 _ACEOF
19440 # We use echo to avoid assuming a particular line-breaking character.
19441 # The extra dot is to prevent the shell from consuming trailing
19442 # line-breaks from the sub-command output. A line-break within
19443 # single-quotes doesn't work because, if this script is created in a
19444 # platform that uses two characters for line-breaks (e.g., DOS), tr
19445 # would break.
19446 ac_LF_and_DOT=`echo; echo .`
19447 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19448 rm -f confdef2opt.sed
19449
19450
19451
19452 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
19453
19454 : ${CONFIG_STATUS=./config.status}
19455 ac_clean_files_save=$ac_clean_files
19456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19457 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19458 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19459 cat >$CONFIG_STATUS <<_ACEOF
19460 #! $SHELL
19461 # Generated by $as_me.
19462 # Run this file to recreate the current configuration.
19463 # Compiler output produced by configure, useful for debugging
19464 # configure, is in config.log if it exists.
19465
19466 debug=false
19467 ac_cs_recheck=false
19468 ac_cs_silent=false
19469 SHELL=\${CONFIG_SHELL-$SHELL}
19470 _ACEOF
19471
19472 cat >>$CONFIG_STATUS <<\_ACEOF
19473 ## --------------------- ##
19474 ## M4sh Initialization. ##
19475 ## --------------------- ##
19476
19477 # Be Bourne compatible
19478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19479 emulate sh
19480 NULLCMD=:
19481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19482 # is contrary to our usage. Disable this feature.
19483 alias -g '${1+"$@"}'='"$@"'
19484 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19485 set -o posix
19486 fi
19487 DUALCASE=1; export DUALCASE # for MKS sh
19488
19489 # Support unset when possible.
19490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19491 as_unset=unset
19492 else
19493 as_unset=false
19494 fi
19495
19496
19497 # Work around bugs in pre-3.0 UWIN ksh.
19498 $as_unset ENV MAIL MAILPATH
19499 PS1='$ '
19500 PS2='> '
19501 PS4='+ '
19502
19503 # NLS nuisances.
19504 for as_var in \
19505 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19506 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19507 LC_TELEPHONE LC_TIME
19508 do
19509 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19510 eval $as_var=C; export $as_var
19511 else
19512 $as_unset $as_var
19513 fi
19514 done
19515
19516 # Required to use basename.
19517 if expr a : '\(a\)' >/dev/null 2>&1; then
19518 as_expr=expr
19519 else
19520 as_expr=false
19521 fi
19522
19523 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19524 as_basename=basename
19525 else
19526 as_basename=false
19527 fi
19528
19529
19530 # Name of the executable.
19531 as_me=`$as_basename "$0" ||
19532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19533 X"$0" : 'X\(//\)$' \| \
19534 X"$0" : 'X\(/\)$' \| \
19535 . : '\(.\)' 2>/dev/null ||
19536 echo X/"$0" |
19537 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19538 /^X\/\(\/\/\)$/{ s//\1/; q; }
19539 /^X\/\(\/\).*/{ s//\1/; q; }
19540 s/.*/./; q'`
19541
19542
19543 # PATH needs CR, and LINENO needs CR and PATH.
19544 # Avoid depending upon Character Ranges.
19545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19548 as_cr_digits='0123456789'
19549 as_cr_alnum=$as_cr_Letters$as_cr_digits
19550
19551 # The user is always right.
19552 if test "${PATH_SEPARATOR+set}" != set; then
19553 echo "#! /bin/sh" >conf$$.sh
19554 echo "exit 0" >>conf$$.sh
19555 chmod +x conf$$.sh
19556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19557 PATH_SEPARATOR=';'
19558 else
19559 PATH_SEPARATOR=:
19560 fi
19561 rm -f conf$$.sh
19562 fi
19563
19564
19565 as_lineno_1=$LINENO
19566 as_lineno_2=$LINENO
19567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19568 test "x$as_lineno_1" != "x$as_lineno_2" &&
19569 test "x$as_lineno_3" = "x$as_lineno_2" || {
19570 # Find who we are. Look in the path if we contain no path at all
19571 # relative or not.
19572 case $0 in
19573 *[\\/]* ) as_myself=$0 ;;
19574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19575 for as_dir in $PATH
19576 do
19577 IFS=$as_save_IFS
19578 test -z "$as_dir" && as_dir=.
19579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19580 done
19581
19582 ;;
19583 esac
19584 # We did not find ourselves, most probably we were run as `sh COMMAND'
19585 # in which case we are not to be found in the path.
19586 if test "x$as_myself" = x; then
19587 as_myself=$0
19588 fi
19589 if test ! -f "$as_myself"; then
19590 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19591 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19592 { (exit 1); exit 1; }; }
19593 fi
19594 case $CONFIG_SHELL in
19595 '')
19596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19597 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19598 do
19599 IFS=$as_save_IFS
19600 test -z "$as_dir" && as_dir=.
19601 for as_base in sh bash ksh sh5; do
19602 case $as_dir in
19603 /*)
19604 if ("$as_dir/$as_base" -c '
19605 as_lineno_1=$LINENO
19606 as_lineno_2=$LINENO
19607 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19608 test "x$as_lineno_1" != "x$as_lineno_2" &&
19609 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19610 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19611 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19612 CONFIG_SHELL=$as_dir/$as_base
19613 export CONFIG_SHELL
19614 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19615 fi;;
19616 esac
19617 done
19618 done
19619 ;;
19620 esac
19621
19622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19623 # uniformly replaced by the line number. The first 'sed' inserts a
19624 # line-number line before each line; the second 'sed' does the real
19625 # work. The second script uses 'N' to pair each line-number line
19626 # with the numbered line, and appends trailing '-' during
19627 # substitution so that $LINENO is not a special case at line end.
19628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19629 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19630 sed '=' <$as_myself |
19631 sed '
19632 N
19633 s,$,-,
19634 : loop
19635 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19636 t loop
19637 s,-$,,
19638 s,^['$as_cr_digits']*\n,,
19639 ' >$as_me.lineno &&
19640 chmod +x $as_me.lineno ||
19641 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19642 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19643 { (exit 1); exit 1; }; }
19644
19645 # Don't try to exec as it changes $[0], causing all sort of problems
19646 # (the dirname of $[0] is not the place where we might find the
19647 # original and so on. Autoconf is especially sensible to this).
19648 . ./$as_me.lineno
19649 # Exit status is that of the last command.
19650 exit
19651 }
19652
19653
19654 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19655 *c*,-n*) ECHO_N= ECHO_C='
19656 ' ECHO_T=' ' ;;
19657 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19658 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19659 esac
19660
19661 if expr a : '\(a\)' >/dev/null 2>&1; then
19662 as_expr=expr
19663 else
19664 as_expr=false
19665 fi
19666
19667 rm -f conf$$ conf$$.exe conf$$.file
19668 echo >conf$$.file
19669 if ln -s conf$$.file conf$$ 2>/dev/null; then
19670 # We could just check for DJGPP; but this test a) works b) is more generic
19671 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19672 if test -f conf$$.exe; then
19673 # Don't use ln at all; we don't have any links
19674 as_ln_s='cp -p'
19675 else
19676 as_ln_s='ln -s'
19677 fi
19678 elif ln conf$$.file conf$$ 2>/dev/null; then
19679 as_ln_s=ln
19680 else
19681 as_ln_s='cp -p'
19682 fi
19683 rm -f conf$$ conf$$.exe conf$$.file
19684
19685 if mkdir -p . 2>/dev/null; then
19686 as_mkdir_p=:
19687 else
19688 test -d ./-p && rmdir ./-p
19689 as_mkdir_p=false
19690 fi
19691
19692 as_executable_p="test -f"
19693
19694 # Sed expression to map a string onto a valid CPP name.
19695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19696
19697 # Sed expression to map a string onto a valid variable name.
19698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19699
19700
19701 # IFS
19702 # We need space, tab and new line, in precisely that order.
19703 as_nl='
19704 '
19705 IFS=" $as_nl"
19706
19707 # CDPATH.
19708 $as_unset CDPATH
19709
19710 exec 6>&1
19711
19712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19713 # report actual input values of CONFIG_FILES etc. instead of their
19714 # values after options handling. Logging --version etc. is OK.
19715 exec 5>>config.log
19716 {
19717 echo
19718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19719 ## Running $as_me. ##
19720 _ASBOX
19721 } >&5
19722 cat >&5 <<_CSEOF
19723
19724 This file was extended by tcl $as_me 8.6, which was
19725 generated by GNU Autoconf 2.59. Invocation command line was
19726
19727 CONFIG_FILES = $CONFIG_FILES
19728 CONFIG_HEADERS = $CONFIG_HEADERS
19729 CONFIG_LINKS = $CONFIG_LINKS
19730 CONFIG_COMMANDS = $CONFIG_COMMANDS
19731 $ $0 $@
19732
19733 _CSEOF
19734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19735 echo >&5
19736 _ACEOF
19737
19738 # Files that config.status was made for.
19739 if test -n "$ac_config_files"; then
19740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19741 fi
19742
19743 if test -n "$ac_config_headers"; then
19744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19745 fi
19746
19747 if test -n "$ac_config_links"; then
19748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19749 fi
19750
19751 if test -n "$ac_config_commands"; then
19752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19753 fi
19754
19755 cat >>$CONFIG_STATUS <<\_ACEOF
19756
19757 ac_cs_usage="\
19758 \`$as_me' instantiates files from templates according to the
19759 current configuration.
19760
19761 Usage: $0 [OPTIONS] [FILE]...
19762
19763 -h, --help print this help, then exit
19764 -V, --version print version number, then exit
19765 -q, --quiet do not print progress messages
19766 -d, --debug don't remove temporary files
19767 --recheck update $as_me by reconfiguring in the same conditions
19768 --file=FILE[:TEMPLATE]
19769 instantiate the configuration file FILE
19770
19771 Configuration files:
19772 $config_files
19773
19774 Configuration commands:
19775 $config_commands
19776
19777 Report bugs to <[email protected]>."
19778 _ACEOF
19779
19780 cat >>$CONFIG_STATUS <<_ACEOF
19781 ac_cs_version="\\
19782 tcl config.status 8.6
19783 configured by $0, generated by GNU Autoconf 2.59,
19784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19785
19786 Copyright (C) 2003 Free Software Foundation, Inc.
19787 This config.status script is free software; the Free Software Foundation
19788 gives unlimited permission to copy, distribute and modify it."
19789 srcdir=$srcdir
19790 _ACEOF
19791
19792 cat >>$CONFIG_STATUS <<\_ACEOF
19793 # If no file are specified by the user, then we need to provide default
19794 # value. By we need to know if files were specified by the user.
19795 ac_need_defaults=:
19796 while test $# != 0
19797 do
19798 case $1 in
19799 --*=*)
19800 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19801 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19802 ac_shift=:
19803 ;;
19804 -*)
19805 ac_option=$1
19806 ac_optarg=$2
19807 ac_shift=shift
19808 ;;
19809 *) # This is not an option, so the user has probably given explicit
19810 # arguments.
19811 ac_option=$1
19812 ac_need_defaults=false;;
19813 esac
19814
19815 case $ac_option in
19816 # Handling of the options.
19817 _ACEOF
19818 cat >>$CONFIG_STATUS <<\_ACEOF
19819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19820 ac_cs_recheck=: ;;
19821 --version | --vers* | -V )
19822 echo "$ac_cs_version"; exit 0 ;;
19823 --he | --h)
19824 # Conflict between --help and --header
19825 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19826 Try \`$0 --help' for more information." >&5
19827 echo "$as_me: error: ambiguous option: $1
19828 Try \`$0 --help' for more information." >&2;}
19829 { (exit 1); exit 1; }; };;
19830 --help | --hel | -h )
19831 echo "$ac_cs_usage"; exit 0 ;;
19832 --debug | --d* | -d )
19833 debug=: ;;
19834 --file | --fil | --fi | --f )
19835 $ac_shift
19836 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19837 ac_need_defaults=false;;
19838 --header | --heade | --head | --hea )
19839 $ac_shift
19840 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19841 ac_need_defaults=false;;
19842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19844 ac_cs_silent=: ;;
19845
19846 # This is an error.
19847 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19848 Try \`$0 --help' for more information." >&5
19849 echo "$as_me: error: unrecognized option: $1
19850 Try \`$0 --help' for more information." >&2;}
19851 { (exit 1); exit 1; }; } ;;
19852
19853 *) ac_config_targets="$ac_config_targets $1" ;;
19854
19855 esac
19856 shift
19857 done
19858
19859 ac_configure_extra_args=
19860
19861 if $ac_cs_silent; then
19862 exec 6>/dev/null
19863 ac_configure_extra_args="$ac_configure_extra_args --silent"
19864 fi
19865
19866 _ACEOF
19867 cat >>$CONFIG_STATUS <<_ACEOF
19868 if \$ac_cs_recheck; then
19869 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19870 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19871 fi
19872
19873 _ACEOF
19874
19875 cat >>$CONFIG_STATUS <<_ACEOF
19876 #
19877 # INIT-COMMANDS section.
19878 #
19879
19880 VERSION=${TCL_VERSION}
19881
19882 _ACEOF
19883
19884
19885
19886 cat >>$CONFIG_STATUS <<\_ACEOF
19887 for ac_config_target in $ac_config_targets
19888 do
19889 case "$ac_config_target" in
19890 # Handling of arguments.
19891 "Tcl-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Tcl-Info.plist:../macosx/Tcl-Info.plist.in" ;;
19892 "Tclsh-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Tclsh-Info.plist:../macosx/Tclsh-Info.plist.in" ;;
19893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;;
19894 "dltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES dltest/Makefile:../unix/dltest/Makefile.in" ;;
19895 "tclConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tclConfig.sh:../unix/tclConfig.sh.in" ;;
19896 "tcl.pc" ) CONFIG_FILES="$CONFIG_FILES tcl.pc:../unix/tcl.pc.in" ;;
19897 "Tcl.framework" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Tcl.framework" ;;
19898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19899 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19900 { (exit 1); exit 1; }; };;
19901 esac
19902 done
19903
19904 # If the user did not use the arguments to specify the items to instantiate,
19905 # then the envvar interface is used. Set only those that are not.
19906 # We use the long form for the default assignment because of an extremely
19907 # bizarre bug on SunOS 4.1.3.
19908 if $ac_need_defaults; then
19909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19911 fi
19912
19913 # Have a temporary directory for convenience. Make it in the build tree
19914 # simply because there is no reason to put it here, and in addition,
19915 # creating and moving files from /tmp can sometimes cause problems.
19916 # Create a temporary directory, and hook for its removal unless debugging.
19917 $debug ||
19918 {
19919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19920 trap '{ (exit 1); exit 1; }' 1 2 13 15
19921 }
19922
19923 # Create a (secure) tmp directory for tmp files.
19924
19925 {
19926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19927 test -n "$tmp" && test -d "$tmp"
19928 } ||
19929 {
19930 tmp=./confstat$$-$RANDOM
19931 (umask 077 && mkdir $tmp)
19932 } ||
19933 {
19934 echo "$me: cannot create a temporary directory in ." >&2
19935 { (exit 1); exit 1; }
19936 }
19937
19938 _ACEOF
19939
19940 cat >>$CONFIG_STATUS <<_ACEOF
19941
19942 #
19943 # CONFIG_FILES section.
19944 #
19945
19946 # No need to generate the scripts if there are no CONFIG_FILES.
19947 # This happens for instance when ./config.status config.h
19948 if test -n "\$CONFIG_FILES"; then
19949 # Protect against being on the right side of a sed subst in config.status.
19950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19952 s,@SHELL@,$SHELL,;t t
19953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19959 s,@exec_prefix@,$exec_prefix,;t t
19960 s,@prefix@,$prefix,;t t
19961 s,@program_transform_name@,$program_transform_name,;t t
19962 s,@bindir@,$bindir,;t t
19963 s,@sbindir@,$sbindir,;t t
19964 s,@libexecdir@,$libexecdir,;t t
19965 s,@datadir@,$datadir,;t t
19966 s,@sysconfdir@,$sysconfdir,;t t
19967 s,@sharedstatedir@,$sharedstatedir,;t t
19968 s,@localstatedir@,$localstatedir,;t t
19969 s,@libdir@,$libdir,;t t
19970 s,@includedir@,$includedir,;t t
19971 s,@oldincludedir@,$oldincludedir,;t t
19972 s,@infodir@,$infodir,;t t
19973 s,@mandir@,$mandir,;t t
19974 s,@build_alias@,$build_alias,;t t
19975 s,@host_alias@,$host_alias,;t t
19976 s,@target_alias@,$target_alias,;t t
19977 s,@DEFS@,$DEFS,;t t
19978 s,@ECHO_C@,$ECHO_C,;t t
19979 s,@ECHO_N@,$ECHO_N,;t t
19980 s,@ECHO_T@,$ECHO_T,;t t
19981 s,@LIBS@,$LIBS,;t t
19982 s,@MAN_FLAGS@,$MAN_FLAGS,;t t
19983 s,@CC@,$CC,;t t
19984 s,@CFLAGS@,$CFLAGS,;t t
19985 s,@LDFLAGS@,$LDFLAGS,;t t
19986 s,@CPPFLAGS@,$CPPFLAGS,;t t
19987 s,@ac_ct_CC@,$ac_ct_CC,;t t
19988 s,@EXEEXT@,$EXEEXT,;t t
19989 s,@OBJEXT@,$OBJEXT,;t t
19990 s,@CPP@,$CPP,;t t
19991 s,@EGREP@,$EGREP,;t t
19992 s,@TCL_THREADS@,$TCL_THREADS,;t t
19993 s,@SHARED_BUILD@,$SHARED_BUILD,;t t
19994 s,@TCLSH_PROG@,$TCLSH_PROG,;t t
19995 s,@ZLIB_OBJS@,$ZLIB_OBJS,;t t
19996 s,@ZLIB_SRCS@,$ZLIB_SRCS,;t t
19997 s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
19998 s,@RANLIB@,$RANLIB,;t t
19999 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20000 s,@AR@,$AR,;t t
20001 s,@ac_ct_AR@,$ac_ct_AR,;t t
20002 s,@LIBOBJS@,$LIBOBJS,;t t
20003 s,@TCL_LIBS@,$TCL_LIBS,;t t
20004 s,@DL_LIBS@,$DL_LIBS,;t t
20005 s,@DL_OBJS@,$DL_OBJS,;t t
20006 s,@PLAT_OBJS@,$PLAT_OBJS,;t t
20007 s,@PLAT_SRCS@,$PLAT_SRCS,;t t
20008 s,@LDAIX_SRC@,$LDAIX_SRC,;t t
20009 s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
20010 s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
20011 s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t
20012 s,@CFLAGS_NOLTO@,$CFLAGS_NOLTO,;t t
20013 s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t
20014 s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t
20015 s,@CC_SEARCH_FLAGS@,$CC_SEARCH_FLAGS,;t t
20016 s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t
20017 s,@STLIB_LD@,$STLIB_LD,;t t
20018 s,@SHLIB_LD@,$SHLIB_LD,;t t
20019 s,@TCL_SHLIB_LD_EXTRAS@,$TCL_SHLIB_LD_EXTRAS,;t t
20020 s,@TK_SHLIB_LD_EXTRAS@,$TK_SHLIB_LD_EXTRAS,;t t
20021 s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
20022 s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
20023 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
20024 s,@MAKE_LIB@,$MAKE_LIB,;t t
20025 s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t
20026 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
20027 s,@DLL_INSTALL_DIR@,$DLL_INSTALL_DIR,;t t
20028 s,@INSTALL_STUB_LIB@,$INSTALL_STUB_LIB,;t t
20029 s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t
20030 s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t
20031 s,@DTRACE@,$DTRACE,;t t
20032 s,@TCL_VERSION@,$TCL_VERSION,;t t
20033 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
20034 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
20035 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
20036 s,@TCL_YEAR@,$TCL_YEAR,;t t
20037 s,@PKG_CFG_ARGS@,$PKG_CFG_ARGS,;t t
20038 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
20039 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
20040 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
20041 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
20042 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
20043 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
20044 s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t
20045 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
20046 s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t
20047 s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t
20048 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
20049 s,@CFG_TCL_SHARED_LIB_SUFFIX@,$CFG_TCL_SHARED_LIB_SUFFIX,;t t
20050 s,@CFG_TCL_UNSHARED_LIB_SUFFIX@,$CFG_TCL_UNSHARED_LIB_SUFFIX,;t t
20051 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
20052 s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t
20053 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
20054 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
20055 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
20056 s,@TCL_UNSHARED_LIB_SUFFIX@,$TCL_UNSHARED_LIB_SUFFIX,;t t
20057 s,@TCL_HAS_LONGLONG@,$TCL_HAS_LONGLONG,;t t
20058 s,@INSTALL_TZDATA@,$INSTALL_TZDATA,;t t
20059 s,@DTRACE_SRC@,$DTRACE_SRC,;t t
20060 s,@DTRACE_HDR@,$DTRACE_HDR,;t t
20061 s,@DTRACE_OBJ@,$DTRACE_OBJ,;t t
20062 s,@MAKEFILE_SHELL@,$MAKEFILE_SHELL,;t t
20063 s,@BUILD_DLTEST@,$BUILD_DLTEST,;t t
20064 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
20065 s,@TCL_MODULE_PATH@,$TCL_MODULE_PATH,;t t
20066 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
20067 s,@PRIVATE_INCLUDE_DIR@,$PRIVATE_INCLUDE_DIR,;t t
20068 s,@HTML_DIR@,$HTML_DIR,;t t
20069 s,@PACKAGE_DIR@,$PACKAGE_DIR,;t t
20070 s,@EXTRA_CC_SWITCHES@,$EXTRA_CC_SWITCHES,;t t
20071 s,@EXTRA_APP_CC_SWITCHES@,$EXTRA_APP_CC_SWITCHES,;t t
20072 s,@EXTRA_INSTALL@,$EXTRA_INSTALL,;t t
20073 s,@EXTRA_INSTALL_BINARIES@,$EXTRA_INSTALL_BINARIES,;t t
20074 s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;t t
20075 s,@EXTRA_TCLSH_LIBS@,$EXTRA_TCLSH_LIBS,;t t
20076 s,@DLTEST_LD@,$DLTEST_LD,;t t
20077 s,@DLTEST_SUFFIX@,$DLTEST_SUFFIX,;t t
20078 CEOF
20079
20080 _ACEOF
20081
20082 cat >>$CONFIG_STATUS <<\_ACEOF
20083 # Split the substitutions into bite-sized pieces for seds with
20084 # small command number limits, like on Digital OSF/1 and HP-UX.
20085 ac_max_sed_lines=48
20086 ac_sed_frag=1 # Number of current file.
20087 ac_beg=1 # First line for current file.
20088 ac_end=$ac_max_sed_lines # Line after last line for current file.
20089 ac_more_lines=:
20090 ac_sed_cmds=
20091 while $ac_more_lines; do
20092 if test $ac_beg -gt 1; then
20093 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20094 else
20095 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20096 fi
20097 if test ! -s $tmp/subs.frag; then
20098 ac_more_lines=false
20099 else
20100 # The purpose of the label and of the branching condition is to
20101 # speed up the sed processing (if there are no `@' at all, there
20102 # is no need to browse any of the substitutions).
20103 # These are the two extra sed commands mentioned above.
20104 (echo ':t
20105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20106 if test -z "$ac_sed_cmds"; then
20107 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20108 else
20109 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20110 fi
20111 ac_sed_frag=`expr $ac_sed_frag + 1`
20112 ac_beg=$ac_end
20113 ac_end=`expr $ac_end + $ac_max_sed_lines`
20114 fi
20115 done
20116 if test -z "$ac_sed_cmds"; then
20117 ac_sed_cmds=cat
20118 fi
20119 fi # test -n "$CONFIG_FILES"
20120
20121 _ACEOF
20122 cat >>$CONFIG_STATUS <<\_ACEOF
20123 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20125 case $ac_file in
20126 - | *:- | *:-:* ) # input from stdin
20127 cat >$tmp/stdin
20128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20132 * ) ac_file_in=$ac_file.in ;;
20133 esac
20134
20135 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20136 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20138 X"$ac_file" : 'X\(//\)[^/]' \| \
20139 X"$ac_file" : 'X\(//\)$' \| \
20140 X"$ac_file" : 'X\(/\)' \| \
20141 . : '\(.\)' 2>/dev/null ||
20142 echo X"$ac_file" |
20143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20145 /^X\(\/\/\)$/{ s//\1/; q; }
20146 /^X\(\/\).*/{ s//\1/; q; }
20147 s/.*/./; q'`
20148 { if $as_mkdir_p; then
20149 mkdir -p "$ac_dir"
20150 else
20151 as_dir="$ac_dir"
20152 as_dirs=
20153 while test ! -d "$as_dir"; do
20154 as_dirs="$as_dir $as_dirs"
20155 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20157 X"$as_dir" : 'X\(//\)[^/]' \| \
20158 X"$as_dir" : 'X\(//\)$' \| \
20159 X"$as_dir" : 'X\(/\)' \| \
20160 . : '\(.\)' 2>/dev/null ||
20161 echo X"$as_dir" |
20162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20164 /^X\(\/\/\)$/{ s//\1/; q; }
20165 /^X\(\/\).*/{ s//\1/; q; }
20166 s/.*/./; q'`
20167 done
20168 test ! -n "$as_dirs" || mkdir $as_dirs
20169 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20171 { (exit 1); exit 1; }; }; }
20172
20173 ac_builddir=.
20174
20175 if test "$ac_dir" != .; then
20176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20177 # A "../" for each directory in $ac_dir_suffix.
20178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20179 else
20180 ac_dir_suffix= ac_top_builddir=
20181 fi
20182
20183 case $srcdir in
20184 .) # No --srcdir option. We are building in place.
20185 ac_srcdir=.
20186 if test -z "$ac_top_builddir"; then
20187 ac_top_srcdir=.
20188 else
20189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20190 fi ;;
20191 [\\/]* | ?:[\\/]* ) # Absolute path.
20192 ac_srcdir=$srcdir$ac_dir_suffix;
20193 ac_top_srcdir=$srcdir ;;
20194 *) # Relative path.
20195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20197 esac
20198
20199 # Do not use `cd foo && pwd` to compute absolute paths, because
20200 # the directories may not exist.
20201 case `pwd` in
20202 .) ac_abs_builddir="$ac_dir";;
20203 *)
20204 case "$ac_dir" in
20205 .) ac_abs_builddir=`pwd`;;
20206 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20207 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20208 esac;;
20209 esac
20210 case $ac_abs_builddir in
20211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20212 *)
20213 case ${ac_top_builddir}. in
20214 .) ac_abs_top_builddir=$ac_abs_builddir;;
20215 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20216 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20217 esac;;
20218 esac
20219 case $ac_abs_builddir in
20220 .) ac_abs_srcdir=$ac_srcdir;;
20221 *)
20222 case $ac_srcdir in
20223 .) ac_abs_srcdir=$ac_abs_builddir;;
20224 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20225 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20226 esac;;
20227 esac
20228 case $ac_abs_builddir in
20229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20230 *)
20231 case $ac_top_srcdir in
20232 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20233 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20234 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20235 esac;;
20236 esac
20237
20238
20239
20240 if test x"$ac_file" != x-; then
20241 { echo "$as_me:$LINENO: creating $ac_file" >&5
20242 echo "$as_me: creating $ac_file" >&6;}
20243 rm -f "$ac_file"
20244 fi
20245 # Let's still pretend it is `configure' which instantiates (i.e., don't
20246 # use $as_me), people would be surprised to read:
20247 # /* config.h. Generated by config.status. */
20248 if test x"$ac_file" = x-; then
20249 configure_input=
20250 else
20251 configure_input="$ac_file. "
20252 fi
20253 configure_input=$configure_input"Generated from `echo $ac_file_in |
20254 sed 's,.*/,,'` by configure."
20255
20256 # First look for the input files in the build tree, otherwise in the
20257 # src tree.
20258 ac_file_inputs=`IFS=:
20259 for f in $ac_file_in; do
20260 case $f in
20261 -) echo $tmp/stdin ;;
20262 [\\/$]*)
20263 # Absolute (can't be DOS-style, as IFS=:)
20264 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20265 echo "$as_me: error: cannot find input file: $f" >&2;}
20266 { (exit 1); exit 1; }; }
20267 echo "$f";;
20268 *) # Relative
20269 if test -f "$f"; then
20270 # Build tree
20271 echo "$f"
20272 elif test -f "$srcdir/$f"; then
20273 # Source tree
20274 echo "$srcdir/$f"
20275 else
20276 # /dev/null tree
20277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20278 echo "$as_me: error: cannot find input file: $f" >&2;}
20279 { (exit 1); exit 1; }; }
20280 fi;;
20281 esac
20282 done` || { (exit 1); exit 1; }
20283 _ACEOF
20284 cat >>$CONFIG_STATUS <<_ACEOF
20285 sed "$ac_vpsub
20286 $extrasub
20287 _ACEOF
20288 cat >>$CONFIG_STATUS <<\_ACEOF
20289 :t
20290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20291 s,@configure_input@,$configure_input,;t t
20292 s,@srcdir@,$ac_srcdir,;t t
20293 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20294 s,@top_srcdir@,$ac_top_srcdir,;t t
20295 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20296 s,@builddir@,$ac_builddir,;t t
20297 s,@abs_builddir@,$ac_abs_builddir,;t t
20298 s,@top_builddir@,$ac_top_builddir,;t t
20299 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20301 rm -f $tmp/stdin
20302 if test x"$ac_file" != x-; then
20303 mv $tmp/out $ac_file
20304 else
20305 cat $tmp/out
20306 rm -f $tmp/out
20307 fi
20308
20309 done
20310 _ACEOF
20311 cat >>$CONFIG_STATUS <<\_ACEOF
20312
20313 #
20314 # CONFIG_COMMANDS section.
20315 #
20316 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20317 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20318 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20319 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20320 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321 X"$ac_dest" : 'X\(//\)[^/]' \| \
20322 X"$ac_dest" : 'X\(//\)$' \| \
20323 X"$ac_dest" : 'X\(/\)' \| \
20324 . : '\(.\)' 2>/dev/null ||
20325 echo X"$ac_dest" |
20326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20328 /^X\(\/\/\)$/{ s//\1/; q; }
20329 /^X\(\/\).*/{ s//\1/; q; }
20330 s/.*/./; q'`
20331 { if $as_mkdir_p; then
20332 mkdir -p "$ac_dir"
20333 else
20334 as_dir="$ac_dir"
20335 as_dirs=
20336 while test ! -d "$as_dir"; do
20337 as_dirs="$as_dir $as_dirs"
20338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20340 X"$as_dir" : 'X\(//\)[^/]' \| \
20341 X"$as_dir" : 'X\(//\)$' \| \
20342 X"$as_dir" : 'X\(/\)' \| \
20343 . : '\(.\)' 2>/dev/null ||
20344 echo X"$as_dir" |
20345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20347 /^X\(\/\/\)$/{ s//\1/; q; }
20348 /^X\(\/\).*/{ s//\1/; q; }
20349 s/.*/./; q'`
20350 done
20351 test ! -n "$as_dirs" || mkdir $as_dirs
20352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20354 { (exit 1); exit 1; }; }; }
20355
20356 ac_builddir=.
20357
20358 if test "$ac_dir" != .; then
20359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20360 # A "../" for each directory in $ac_dir_suffix.
20361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20362 else
20363 ac_dir_suffix= ac_top_builddir=
20364 fi
20365
20366 case $srcdir in
20367 .) # No --srcdir option. We are building in place.
20368 ac_srcdir=.
20369 if test -z "$ac_top_builddir"; then
20370 ac_top_srcdir=.
20371 else
20372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20373 fi ;;
20374 [\\/]* | ?:[\\/]* ) # Absolute path.
20375 ac_srcdir=$srcdir$ac_dir_suffix;
20376 ac_top_srcdir=$srcdir ;;
20377 *) # Relative path.
20378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20380 esac
20381
20382 # Do not use `cd foo && pwd` to compute absolute paths, because
20383 # the directories may not exist.
20384 case `pwd` in
20385 .) ac_abs_builddir="$ac_dir";;
20386 *)
20387 case "$ac_dir" in
20388 .) ac_abs_builddir=`pwd`;;
20389 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20390 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20391 esac;;
20392 esac
20393 case $ac_abs_builddir in
20394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20395 *)
20396 case ${ac_top_builddir}. in
20397 .) ac_abs_top_builddir=$ac_abs_builddir;;
20398 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20399 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20400 esac;;
20401 esac
20402 case $ac_abs_builddir in
20403 .) ac_abs_srcdir=$ac_srcdir;;
20404 *)
20405 case $ac_srcdir in
20406 .) ac_abs_srcdir=$ac_abs_builddir;;
20407 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20408 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20409 esac;;
20410 esac
20411 case $ac_abs_builddir in
20412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20413 *)
20414 case $ac_top_srcdir in
20415 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20416 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20417 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20418 esac;;
20419 esac
20420
20421
20422 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20423 echo "$as_me: executing $ac_dest commands" >&6;}
20424 case $ac_dest in
20425 Tcl.framework ) n=Tcl &&
20426 f=$n.framework && v=Versions/$VERSION &&
20427 rm -rf $f && mkdir -p $f/$v/Resources &&
20428 ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v &&
20429 ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist &&
20430 unset n f v
20431 ;;
20432 esac
20433 done
20434 _ACEOF
20435
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437
20438 { (exit 0); exit 0; }
20439 _ACEOF
20440 chmod +x $CONFIG_STATUS
20441 ac_clean_files=$ac_clean_files_save
20442
20443
20444 # configure is writing to config.log, and then calls config.status.
20445 # config.status does its own redirection, appending to config.log.
20446 # Unfortunately, on DOS this fails, as config.log is still kept open
20447 # by configure, so config.status won't be able to write to it; its
20448 # output is simply discarded. So we exec the FD to /dev/null,
20449 # effectively closing config.log, so it can be properly (re)opened and
20450 # appended to by config.status. When coming back to configure, we
20451 # need to make the FD available again.
20452 if test "$no_create" != yes; then
20453 ac_cs_success=:
20454 ac_config_status_args=
20455 test "$silent" = yes &&
20456 ac_config_status_args="$ac_config_status_args --quiet"
20457 exec 5>/dev/null
20458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20459 exec 5>>config.log
20460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20461 # would make configure fail if this is the last instruction.
20462 $ac_cs_success || { (exit 1); exit 1; }
20463 fi
20464
20465