sl@0
|
1 |
#! /bin/sh
|
sl@0
|
2 |
|
sl@0
|
3 |
# Guess values for system-dependent variables and create Makefiles.
|
sl@0
|
4 |
# Generated automatically using autoconf version 2.13
|
sl@0
|
5 |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
sl@0
|
6 |
#
|
sl@0
|
7 |
# This configure script is free software; the Free Software Foundation
|
sl@0
|
8 |
# gives unlimited permission to copy, distribute and modify it.
|
sl@0
|
9 |
|
sl@0
|
10 |
# Defaults:
|
sl@0
|
11 |
ac_help=
|
sl@0
|
12 |
ac_default_prefix=/usr/local
|
sl@0
|
13 |
# Any additions from configure.in:
|
sl@0
|
14 |
ac_help="$ac_help
|
sl@0
|
15 |
--enable-man-symlinks use symlinks for the manpages"
|
sl@0
|
16 |
ac_help="$ac_help
|
sl@0
|
17 |
--enable-man-compression=PROG
|
sl@0
|
18 |
compress the manpages with PROG"
|
sl@0
|
19 |
ac_help="$ac_help
|
sl@0
|
20 |
--enable-man-suffix=STRING
|
sl@0
|
21 |
use STRING as a suffix to manpage file names
|
sl@0
|
22 |
(default: tcl)"
|
sl@0
|
23 |
ac_help="$ac_help
|
sl@0
|
24 |
--enable-threads build with threads"
|
sl@0
|
25 |
ac_help="$ac_help
|
sl@0
|
26 |
--enable-shared build and link with shared libraries [--enable-shared]"
|
sl@0
|
27 |
ac_help="$ac_help
|
sl@0
|
28 |
--enable-64bit enable 64bit support (where applicable)"
|
sl@0
|
29 |
ac_help="$ac_help
|
sl@0
|
30 |
--enable-64bit-vis enable 64bit Sparc VIS support"
|
sl@0
|
31 |
ac_help="$ac_help
|
sl@0
|
32 |
--enable-corefoundation use CoreFoundation API [--enable-corefoundation]"
|
sl@0
|
33 |
ac_help="$ac_help
|
sl@0
|
34 |
--disable-load disallow dynamic loading and "load" command"
|
sl@0
|
35 |
ac_help="$ac_help
|
sl@0
|
36 |
--enable-symbols build with debugging symbols [--disable-symbols]"
|
sl@0
|
37 |
ac_help="$ac_help
|
sl@0
|
38 |
--enable-langinfo use nl_langinfo if possible to determine
|
sl@0
|
39 |
encoding at startup, otherwise use old heuristic"
|
sl@0
|
40 |
ac_help="$ac_help
|
sl@0
|
41 |
--enable-framework package shared libraries in MacOSX frameworks [--disable-framework]"
|
sl@0
|
42 |
|
sl@0
|
43 |
# Initialize some variables set by options.
|
sl@0
|
44 |
# The variables have the same names as the options, with
|
sl@0
|
45 |
# dashes changed to underlines.
|
sl@0
|
46 |
build=NONE
|
sl@0
|
47 |
cache_file=./config.cache
|
sl@0
|
48 |
exec_prefix=NONE
|
sl@0
|
49 |
host=NONE
|
sl@0
|
50 |
no_create=
|
sl@0
|
51 |
nonopt=NONE
|
sl@0
|
52 |
no_recursion=
|
sl@0
|
53 |
prefix=NONE
|
sl@0
|
54 |
program_prefix=NONE
|
sl@0
|
55 |
program_suffix=NONE
|
sl@0
|
56 |
program_transform_name=s,x,x,
|
sl@0
|
57 |
silent=
|
sl@0
|
58 |
site=
|
sl@0
|
59 |
srcdir=
|
sl@0
|
60 |
target=NONE
|
sl@0
|
61 |
verbose=
|
sl@0
|
62 |
x_includes=NONE
|
sl@0
|
63 |
x_libraries=NONE
|
sl@0
|
64 |
bindir='${exec_prefix}/bin'
|
sl@0
|
65 |
sbindir='${exec_prefix}/sbin'
|
sl@0
|
66 |
libexecdir='${exec_prefix}/libexec'
|
sl@0
|
67 |
datadir='${prefix}/share'
|
sl@0
|
68 |
sysconfdir='${prefix}/etc'
|
sl@0
|
69 |
sharedstatedir='${prefix}/com'
|
sl@0
|
70 |
localstatedir='${prefix}/var'
|
sl@0
|
71 |
libdir='${exec_prefix}/lib'
|
sl@0
|
72 |
includedir='${prefix}/include'
|
sl@0
|
73 |
oldincludedir='/usr/include'
|
sl@0
|
74 |
infodir='${prefix}/info'
|
sl@0
|
75 |
mandir='${prefix}/man'
|
sl@0
|
76 |
|
sl@0
|
77 |
# Initialize some other variables.
|
sl@0
|
78 |
subdirs=
|
sl@0
|
79 |
MFLAGS= MAKEFLAGS=
|
sl@0
|
80 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
sl@0
|
81 |
# Maximum number of lines to put in a shell here document.
|
sl@0
|
82 |
ac_max_here_lines=12
|
sl@0
|
83 |
|
sl@0
|
84 |
ac_prev=
|
sl@0
|
85 |
for ac_option
|
sl@0
|
86 |
do
|
sl@0
|
87 |
|
sl@0
|
88 |
# If the previous option needs an argument, assign it.
|
sl@0
|
89 |
if test -n "$ac_prev"; then
|
sl@0
|
90 |
eval "$ac_prev=\$ac_option"
|
sl@0
|
91 |
ac_prev=
|
sl@0
|
92 |
continue
|
sl@0
|
93 |
fi
|
sl@0
|
94 |
|
sl@0
|
95 |
case "$ac_option" in
|
sl@0
|
96 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
sl@0
|
97 |
*) ac_optarg= ;;
|
sl@0
|
98 |
esac
|
sl@0
|
99 |
|
sl@0
|
100 |
# Accept the important Cygnus configure options, so we can diagnose typos.
|
sl@0
|
101 |
|
sl@0
|
102 |
case "$ac_option" in
|
sl@0
|
103 |
|
sl@0
|
104 |
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
sl@0
|
105 |
ac_prev=bindir ;;
|
sl@0
|
106 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
sl@0
|
107 |
bindir="$ac_optarg" ;;
|
sl@0
|
108 |
|
sl@0
|
109 |
-build | --build | --buil | --bui | --bu)
|
sl@0
|
110 |
ac_prev=build ;;
|
sl@0
|
111 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
sl@0
|
112 |
build="$ac_optarg" ;;
|
sl@0
|
113 |
|
sl@0
|
114 |
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
sl@0
|
115 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
sl@0
|
116 |
ac_prev=cache_file ;;
|
sl@0
|
117 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
sl@0
|
118 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
sl@0
|
119 |
cache_file="$ac_optarg" ;;
|
sl@0
|
120 |
|
sl@0
|
121 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
sl@0
|
122 |
ac_prev=datadir ;;
|
sl@0
|
123 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
sl@0
|
124 |
| --da=*)
|
sl@0
|
125 |
datadir="$ac_optarg" ;;
|
sl@0
|
126 |
|
sl@0
|
127 |
-disable-* | --disable-*)
|
sl@0
|
128 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
sl@0
|
129 |
# Reject names that are not valid shell variable names.
|
sl@0
|
130 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
sl@0
|
131 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
sl@0
|
132 |
fi
|
sl@0
|
133 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
sl@0
|
134 |
eval "enable_${ac_feature}=no" ;;
|
sl@0
|
135 |
|
sl@0
|
136 |
-enable-* | --enable-*)
|
sl@0
|
137 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
sl@0
|
138 |
# Reject names that are not valid shell variable names.
|
sl@0
|
139 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
sl@0
|
140 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
sl@0
|
141 |
fi
|
sl@0
|
142 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
sl@0
|
143 |
case "$ac_option" in
|
sl@0
|
144 |
*=*) ;;
|
sl@0
|
145 |
*) ac_optarg=yes ;;
|
sl@0
|
146 |
esac
|
sl@0
|
147 |
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
sl@0
|
148 |
|
sl@0
|
149 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
sl@0
|
150 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
sl@0
|
151 |
| --exec | --exe | --ex)
|
sl@0
|
152 |
ac_prev=exec_prefix ;;
|
sl@0
|
153 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
sl@0
|
154 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
sl@0
|
155 |
| --exec=* | --exe=* | --ex=*)
|
sl@0
|
156 |
exec_prefix="$ac_optarg" ;;
|
sl@0
|
157 |
|
sl@0
|
158 |
-gas | --gas | --ga | --g)
|
sl@0
|
159 |
# Obsolete; use --with-gas.
|
sl@0
|
160 |
with_gas=yes ;;
|
sl@0
|
161 |
|
sl@0
|
162 |
-help | --help | --hel | --he)
|
sl@0
|
163 |
# Omit some internal or obsolete options to make the list less imposing.
|
sl@0
|
164 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
sl@0
|
165 |
cat << EOF
|
sl@0
|
166 |
Usage: configure [options] [host]
|
sl@0
|
167 |
Options: [defaults in brackets after descriptions]
|
sl@0
|
168 |
Configuration:
|
sl@0
|
169 |
--cache-file=FILE cache test results in FILE
|
sl@0
|
170 |
--help print this message
|
sl@0
|
171 |
--no-create do not create output files
|
sl@0
|
172 |
--quiet, --silent do not print \`checking...' messages
|
sl@0
|
173 |
--version print the version of autoconf that created configure
|
sl@0
|
174 |
Directory and file names:
|
sl@0
|
175 |
--prefix=PREFIX install architecture-independent files in PREFIX
|
sl@0
|
176 |
[$ac_default_prefix]
|
sl@0
|
177 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
sl@0
|
178 |
[same as prefix]
|
sl@0
|
179 |
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
sl@0
|
180 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
sl@0
|
181 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
sl@0
|
182 |
--datadir=DIR read-only architecture-independent data in DIR
|
sl@0
|
183 |
[PREFIX/share]
|
sl@0
|
184 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
sl@0
|
185 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
sl@0
|
186 |
[PREFIX/com]
|
sl@0
|
187 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
sl@0
|
188 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
sl@0
|
189 |
--includedir=DIR C header files in DIR [PREFIX/include]
|
sl@0
|
190 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
sl@0
|
191 |
--infodir=DIR info documentation in DIR [PREFIX/info]
|
sl@0
|
192 |
--mandir=DIR man documentation in DIR [PREFIX/man]
|
sl@0
|
193 |
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
sl@0
|
194 |
--program-prefix=PREFIX prepend PREFIX to installed program names
|
sl@0
|
195 |
--program-suffix=SUFFIX append SUFFIX to installed program names
|
sl@0
|
196 |
--program-transform-name=PROGRAM
|
sl@0
|
197 |
run sed PROGRAM on installed program names
|
sl@0
|
198 |
EOF
|
sl@0
|
199 |
cat << EOF
|
sl@0
|
200 |
Host type:
|
sl@0
|
201 |
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
sl@0
|
202 |
--host=HOST configure for HOST [guessed]
|
sl@0
|
203 |
--target=TARGET configure for TARGET [TARGET=HOST]
|
sl@0
|
204 |
Features and packages:
|
sl@0
|
205 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
sl@0
|
206 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
sl@0
|
207 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
sl@0
|
208 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
sl@0
|
209 |
--x-includes=DIR X include files are in DIR
|
sl@0
|
210 |
--x-libraries=DIR X library files are in DIR
|
sl@0
|
211 |
EOF
|
sl@0
|
212 |
if test -n "$ac_help"; then
|
sl@0
|
213 |
echo "--enable and --with options recognized:$ac_help"
|
sl@0
|
214 |
fi
|
sl@0
|
215 |
exit 0 ;;
|
sl@0
|
216 |
|
sl@0
|
217 |
-host | --host | --hos | --ho)
|
sl@0
|
218 |
ac_prev=host ;;
|
sl@0
|
219 |
-host=* | --host=* | --hos=* | --ho=*)
|
sl@0
|
220 |
host="$ac_optarg" ;;
|
sl@0
|
221 |
|
sl@0
|
222 |
-includedir | --includedir | --includedi | --included | --include \
|
sl@0
|
223 |
| --includ | --inclu | --incl | --inc)
|
sl@0
|
224 |
ac_prev=includedir ;;
|
sl@0
|
225 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
sl@0
|
226 |
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
sl@0
|
227 |
includedir="$ac_optarg" ;;
|
sl@0
|
228 |
|
sl@0
|
229 |
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
sl@0
|
230 |
ac_prev=infodir ;;
|
sl@0
|
231 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
sl@0
|
232 |
infodir="$ac_optarg" ;;
|
sl@0
|
233 |
|
sl@0
|
234 |
-libdir | --libdir | --libdi | --libd)
|
sl@0
|
235 |
ac_prev=libdir ;;
|
sl@0
|
236 |
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
sl@0
|
237 |
libdir="$ac_optarg" ;;
|
sl@0
|
238 |
|
sl@0
|
239 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
sl@0
|
240 |
| --libexe | --libex | --libe)
|
sl@0
|
241 |
ac_prev=libexecdir ;;
|
sl@0
|
242 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
sl@0
|
243 |
| --libexe=* | --libex=* | --libe=*)
|
sl@0
|
244 |
libexecdir="$ac_optarg" ;;
|
sl@0
|
245 |
|
sl@0
|
246 |
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
sl@0
|
247 |
| --localstate | --localstat | --localsta | --localst \
|
sl@0
|
248 |
| --locals | --local | --loca | --loc | --lo)
|
sl@0
|
249 |
ac_prev=localstatedir ;;
|
sl@0
|
250 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
sl@0
|
251 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
sl@0
|
252 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
sl@0
|
253 |
localstatedir="$ac_optarg" ;;
|
sl@0
|
254 |
|
sl@0
|
255 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
sl@0
|
256 |
ac_prev=mandir ;;
|
sl@0
|
257 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
sl@0
|
258 |
mandir="$ac_optarg" ;;
|
sl@0
|
259 |
|
sl@0
|
260 |
-nfp | --nfp | --nf)
|
sl@0
|
261 |
# Obsolete; use --without-fp.
|
sl@0
|
262 |
with_fp=no ;;
|
sl@0
|
263 |
|
sl@0
|
264 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
sl@0
|
265 |
| --no-cr | --no-c)
|
sl@0
|
266 |
no_create=yes ;;
|
sl@0
|
267 |
|
sl@0
|
268 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
sl@0
|
269 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
sl@0
|
270 |
no_recursion=yes ;;
|
sl@0
|
271 |
|
sl@0
|
272 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
sl@0
|
273 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
sl@0
|
274 |
| --oldin | --oldi | --old | --ol | --o)
|
sl@0
|
275 |
ac_prev=oldincludedir ;;
|
sl@0
|
276 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
sl@0
|
277 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
sl@0
|
278 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
sl@0
|
279 |
oldincludedir="$ac_optarg" ;;
|
sl@0
|
280 |
|
sl@0
|
281 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
sl@0
|
282 |
ac_prev=prefix ;;
|
sl@0
|
283 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
sl@0
|
284 |
prefix="$ac_optarg" ;;
|
sl@0
|
285 |
|
sl@0
|
286 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
sl@0
|
287 |
| --program-pre | --program-pr | --program-p)
|
sl@0
|
288 |
ac_prev=program_prefix ;;
|
sl@0
|
289 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
sl@0
|
290 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
sl@0
|
291 |
program_prefix="$ac_optarg" ;;
|
sl@0
|
292 |
|
sl@0
|
293 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
sl@0
|
294 |
| --program-suf | --program-su | --program-s)
|
sl@0
|
295 |
ac_prev=program_suffix ;;
|
sl@0
|
296 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
sl@0
|
297 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
sl@0
|
298 |
program_suffix="$ac_optarg" ;;
|
sl@0
|
299 |
|
sl@0
|
300 |
-program-transform-name | --program-transform-name \
|
sl@0
|
301 |
| --program-transform-nam | --program-transform-na \
|
sl@0
|
302 |
| --program-transform-n | --program-transform- \
|
sl@0
|
303 |
| --program-transform | --program-transfor \
|
sl@0
|
304 |
| --program-transfo | --program-transf \
|
sl@0
|
305 |
| --program-trans | --program-tran \
|
sl@0
|
306 |
| --progr-tra | --program-tr | --program-t)
|
sl@0
|
307 |
ac_prev=program_transform_name ;;
|
sl@0
|
308 |
-program-transform-name=* | --program-transform-name=* \
|
sl@0
|
309 |
| --program-transform-nam=* | --program-transform-na=* \
|
sl@0
|
310 |
| --program-transform-n=* | --program-transform-=* \
|
sl@0
|
311 |
| --program-transform=* | --program-transfor=* \
|
sl@0
|
312 |
| --program-transfo=* | --program-transf=* \
|
sl@0
|
313 |
| --program-trans=* | --program-tran=* \
|
sl@0
|
314 |
| --progr-tra=* | --program-tr=* | --program-t=*)
|
sl@0
|
315 |
program_transform_name="$ac_optarg" ;;
|
sl@0
|
316 |
|
sl@0
|
317 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
sl@0
|
318 |
| -silent | --silent | --silen | --sile | --sil)
|
sl@0
|
319 |
silent=yes ;;
|
sl@0
|
320 |
|
sl@0
|
321 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
sl@0
|
322 |
ac_prev=sbindir ;;
|
sl@0
|
323 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
sl@0
|
324 |
| --sbi=* | --sb=*)
|
sl@0
|
325 |
sbindir="$ac_optarg" ;;
|
sl@0
|
326 |
|
sl@0
|
327 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
sl@0
|
328 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
sl@0
|
329 |
| --sharedst | --shareds | --shared | --share | --shar \
|
sl@0
|
330 |
| --sha | --sh)
|
sl@0
|
331 |
ac_prev=sharedstatedir ;;
|
sl@0
|
332 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
sl@0
|
333 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
sl@0
|
334 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
sl@0
|
335 |
| --sha=* | --sh=*)
|
sl@0
|
336 |
sharedstatedir="$ac_optarg" ;;
|
sl@0
|
337 |
|
sl@0
|
338 |
-site | --site | --sit)
|
sl@0
|
339 |
ac_prev=site ;;
|
sl@0
|
340 |
-site=* | --site=* | --sit=*)
|
sl@0
|
341 |
site="$ac_optarg" ;;
|
sl@0
|
342 |
|
sl@0
|
343 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
sl@0
|
344 |
ac_prev=srcdir ;;
|
sl@0
|
345 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
sl@0
|
346 |
srcdir="$ac_optarg" ;;
|
sl@0
|
347 |
|
sl@0
|
348 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
sl@0
|
349 |
| --syscon | --sysco | --sysc | --sys | --sy)
|
sl@0
|
350 |
ac_prev=sysconfdir ;;
|
sl@0
|
351 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
sl@0
|
352 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
sl@0
|
353 |
sysconfdir="$ac_optarg" ;;
|
sl@0
|
354 |
|
sl@0
|
355 |
-target | --target | --targe | --targ | --tar | --ta | --t)
|
sl@0
|
356 |
ac_prev=target ;;
|
sl@0
|
357 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
sl@0
|
358 |
target="$ac_optarg" ;;
|
sl@0
|
359 |
|
sl@0
|
360 |
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
sl@0
|
361 |
verbose=yes ;;
|
sl@0
|
362 |
|
sl@0
|
363 |
-version | --version | --versio | --versi | --vers)
|
sl@0
|
364 |
echo "configure generated by autoconf version 2.13"
|
sl@0
|
365 |
exit 0 ;;
|
sl@0
|
366 |
|
sl@0
|
367 |
-with-* | --with-*)
|
sl@0
|
368 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
sl@0
|
369 |
# Reject names that are not valid shell variable names.
|
sl@0
|
370 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
sl@0
|
371 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
sl@0
|
372 |
fi
|
sl@0
|
373 |
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
sl@0
|
374 |
case "$ac_option" in
|
sl@0
|
375 |
*=*) ;;
|
sl@0
|
376 |
*) ac_optarg=yes ;;
|
sl@0
|
377 |
esac
|
sl@0
|
378 |
eval "with_${ac_package}='$ac_optarg'" ;;
|
sl@0
|
379 |
|
sl@0
|
380 |
-without-* | --without-*)
|
sl@0
|
381 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
sl@0
|
382 |
# Reject names that are not valid shell variable names.
|
sl@0
|
383 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
sl@0
|
384 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
sl@0
|
385 |
fi
|
sl@0
|
386 |
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
sl@0
|
387 |
eval "with_${ac_package}=no" ;;
|
sl@0
|
388 |
|
sl@0
|
389 |
--x)
|
sl@0
|
390 |
# Obsolete; use --with-x.
|
sl@0
|
391 |
with_x=yes ;;
|
sl@0
|
392 |
|
sl@0
|
393 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
sl@0
|
394 |
| --x-incl | --x-inc | --x-in | --x-i)
|
sl@0
|
395 |
ac_prev=x_includes ;;
|
sl@0
|
396 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
sl@0
|
397 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
sl@0
|
398 |
x_includes="$ac_optarg" ;;
|
sl@0
|
399 |
|
sl@0
|
400 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
sl@0
|
401 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
sl@0
|
402 |
ac_prev=x_libraries ;;
|
sl@0
|
403 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
sl@0
|
404 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
sl@0
|
405 |
x_libraries="$ac_optarg" ;;
|
sl@0
|
406 |
|
sl@0
|
407 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
sl@0
|
408 |
;;
|
sl@0
|
409 |
|
sl@0
|
410 |
*)
|
sl@0
|
411 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
sl@0
|
412 |
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
sl@0
|
413 |
fi
|
sl@0
|
414 |
if test "x$nonopt" != xNONE; then
|
sl@0
|
415 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
sl@0
|
416 |
fi
|
sl@0
|
417 |
nonopt="$ac_option"
|
sl@0
|
418 |
;;
|
sl@0
|
419 |
|
sl@0
|
420 |
esac
|
sl@0
|
421 |
done
|
sl@0
|
422 |
|
sl@0
|
423 |
if test -n "$ac_prev"; then
|
sl@0
|
424 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
sl@0
|
425 |
fi
|
sl@0
|
426 |
|
sl@0
|
427 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
sl@0
|
428 |
|
sl@0
|
429 |
# File descriptor usage:
|
sl@0
|
430 |
# 0 standard input
|
sl@0
|
431 |
# 1 file creation
|
sl@0
|
432 |
# 2 errors and warnings
|
sl@0
|
433 |
# 3 some systems may open it to /dev/tty
|
sl@0
|
434 |
# 4 used on the Kubota Titan
|
sl@0
|
435 |
# 6 checking for... messages and results
|
sl@0
|
436 |
# 5 compiler messages saved in config.log
|
sl@0
|
437 |
if test "$silent" = yes; then
|
sl@0
|
438 |
exec 6>/dev/null
|
sl@0
|
439 |
else
|
sl@0
|
440 |
exec 6>&1
|
sl@0
|
441 |
fi
|
sl@0
|
442 |
exec 5>./config.log
|
sl@0
|
443 |
|
sl@0
|
444 |
echo "\
|
sl@0
|
445 |
This file contains any messages produced by compilers while
|
sl@0
|
446 |
running configure, to aid debugging if configure makes a mistake.
|
sl@0
|
447 |
" 1>&5
|
sl@0
|
448 |
|
sl@0
|
449 |
# Strip out --no-create and --no-recursion so they do not pile up.
|
sl@0
|
450 |
# Also quote any args containing shell metacharacters.
|
sl@0
|
451 |
ac_configure_args=
|
sl@0
|
452 |
for ac_arg
|
sl@0
|
453 |
do
|
sl@0
|
454 |
case "$ac_arg" in
|
sl@0
|
455 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
sl@0
|
456 |
| --no-cr | --no-c) ;;
|
sl@0
|
457 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
sl@0
|
458 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
sl@0
|
459 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
sl@0
|
460 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
sl@0
|
461 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
sl@0
|
462 |
esac
|
sl@0
|
463 |
done
|
sl@0
|
464 |
|
sl@0
|
465 |
# NLS nuisances.
|
sl@0
|
466 |
# Only set these to C if already set. These must not be set unconditionally
|
sl@0
|
467 |
# because not all systems understand e.g. LANG=C (notably SCO).
|
sl@0
|
468 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
sl@0
|
469 |
# Non-C LC_CTYPE values break the ctype check.
|
sl@0
|
470 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
sl@0
|
471 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
sl@0
|
472 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
sl@0
|
473 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
sl@0
|
474 |
|
sl@0
|
475 |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
sl@0
|
476 |
rm -rf conftest* confdefs.h
|
sl@0
|
477 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
sl@0
|
478 |
echo > confdefs.h
|
sl@0
|
479 |
|
sl@0
|
480 |
# A filename unique to this package, relative to the directory that
|
sl@0
|
481 |
# configure is in, which we can look for to find out if srcdir is correct.
|
sl@0
|
482 |
ac_unique_file=../generic/tcl.h
|
sl@0
|
483 |
|
sl@0
|
484 |
# Find the source files, if location was not specified.
|
sl@0
|
485 |
if test -z "$srcdir"; then
|
sl@0
|
486 |
ac_srcdir_defaulted=yes
|
sl@0
|
487 |
# Try the directory containing this script, then its parent.
|
sl@0
|
488 |
ac_prog=$0
|
sl@0
|
489 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
sl@0
|
490 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
sl@0
|
491 |
srcdir=$ac_confdir
|
sl@0
|
492 |
if test ! -r $srcdir/$ac_unique_file; then
|
sl@0
|
493 |
srcdir=..
|
sl@0
|
494 |
fi
|
sl@0
|
495 |
else
|
sl@0
|
496 |
ac_srcdir_defaulted=no
|
sl@0
|
497 |
fi
|
sl@0
|
498 |
if test ! -r $srcdir/$ac_unique_file; then
|
sl@0
|
499 |
if test "$ac_srcdir_defaulted" = yes; then
|
sl@0
|
500 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
sl@0
|
501 |
else
|
sl@0
|
502 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
sl@0
|
503 |
fi
|
sl@0
|
504 |
fi
|
sl@0
|
505 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
sl@0
|
506 |
|
sl@0
|
507 |
# Prefer explicitly selected file to automatically selected ones.
|
sl@0
|
508 |
if test -z "$CONFIG_SITE"; then
|
sl@0
|
509 |
if test "x$prefix" != xNONE; then
|
sl@0
|
510 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
sl@0
|
511 |
else
|
sl@0
|
512 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
sl@0
|
513 |
fi
|
sl@0
|
514 |
fi
|
sl@0
|
515 |
for ac_site_file in $CONFIG_SITE; do
|
sl@0
|
516 |
if test -r "$ac_site_file"; then
|
sl@0
|
517 |
echo "loading site script $ac_site_file"
|
sl@0
|
518 |
. "$ac_site_file"
|
sl@0
|
519 |
fi
|
sl@0
|
520 |
done
|
sl@0
|
521 |
|
sl@0
|
522 |
if test -r "$cache_file"; then
|
sl@0
|
523 |
echo "loading cache $cache_file"
|
sl@0
|
524 |
. $cache_file
|
sl@0
|
525 |
else
|
sl@0
|
526 |
echo "creating cache $cache_file"
|
sl@0
|
527 |
> $cache_file
|
sl@0
|
528 |
fi
|
sl@0
|
529 |
|
sl@0
|
530 |
ac_ext=c
|
sl@0
|
531 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
sl@0
|
532 |
ac_cpp='$CPP $CPPFLAGS'
|
sl@0
|
533 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
sl@0
|
534 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
sl@0
|
535 |
cross_compiling=$ac_cv_prog_cc_cross
|
sl@0
|
536 |
|
sl@0
|
537 |
ac_exeext=
|
sl@0
|
538 |
ac_objext=o
|
sl@0
|
539 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
sl@0
|
540 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
sl@0
|
541 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
sl@0
|
542 |
ac_n= ac_c='
|
sl@0
|
543 |
' ac_t=' '
|
sl@0
|
544 |
else
|
sl@0
|
545 |
ac_n=-n ac_c= ac_t=
|
sl@0
|
546 |
fi
|
sl@0
|
547 |
else
|
sl@0
|
548 |
ac_n= ac_c='\c' ac_t=
|
sl@0
|
549 |
fi
|
sl@0
|
550 |
|
sl@0
|
551 |
|
sl@0
|
552 |
|
sl@0
|
553 |
|
sl@0
|
554 |
TCL_VERSION=8.4
|
sl@0
|
555 |
TCL_MAJOR_VERSION=8
|
sl@0
|
556 |
TCL_MINOR_VERSION=4
|
sl@0
|
557 |
TCL_PATCH_LEVEL=".15"
|
sl@0
|
558 |
VERSION=${TCL_VERSION}
|
sl@0
|
559 |
|
sl@0
|
560 |
#------------------------------------------------------------------------
|
sl@0
|
561 |
# Handle the --prefix=... option
|
sl@0
|
562 |
#------------------------------------------------------------------------
|
sl@0
|
563 |
|
sl@0
|
564 |
if test "${prefix}" = "NONE"; then
|
sl@0
|
565 |
prefix=/usr/local
|
sl@0
|
566 |
fi
|
sl@0
|
567 |
if test "${exec_prefix}" = "NONE"; then
|
sl@0
|
568 |
exec_prefix=$prefix
|
sl@0
|
569 |
fi
|
sl@0
|
570 |
# Make sure srcdir is fully qualified!
|
sl@0
|
571 |
srcdir=`cd $srcdir ; pwd`
|
sl@0
|
572 |
TCL_SRC_DIR=`cd $srcdir/..; pwd`
|
sl@0
|
573 |
|
sl@0
|
574 |
#------------------------------------------------------------------------
|
sl@0
|
575 |
# Compress and/or soft link the manpages?
|
sl@0
|
576 |
#------------------------------------------------------------------------
|
sl@0
|
577 |
|
sl@0
|
578 |
|
sl@0
|
579 |
echo $ac_n "checking whether to use symlinks for manpages""... $ac_c" 1>&6
|
sl@0
|
580 |
echo "configure:581: checking whether to use symlinks for manpages" >&5
|
sl@0
|
581 |
# Check whether --enable-man-symlinks or --disable-man-symlinks was given.
|
sl@0
|
582 |
if test "${enable_man_symlinks+set}" = set; then
|
sl@0
|
583 |
enableval="$enable_man_symlinks"
|
sl@0
|
584 |
test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks"
|
sl@0
|
585 |
else
|
sl@0
|
586 |
enableval="no"
|
sl@0
|
587 |
fi
|
sl@0
|
588 |
|
sl@0
|
589 |
echo "$ac_t""$enableval" 1>&6
|
sl@0
|
590 |
|
sl@0
|
591 |
echo $ac_n "checking whether to compress the manpages""... $ac_c" 1>&6
|
sl@0
|
592 |
echo "configure:593: checking whether to compress the manpages" >&5
|
sl@0
|
593 |
# Check whether --enable-man-compression or --disable-man-compression was given.
|
sl@0
|
594 |
if test "${enable_man_compression+set}" = set; then
|
sl@0
|
595 |
enableval="$enable_man_compression"
|
sl@0
|
596 |
case $enableval in
|
sl@0
|
597 |
yes) { echo "configure: error: missing argument to --enable-man-compression" 1>&2; exit 1; };;
|
sl@0
|
598 |
no) ;;
|
sl@0
|
599 |
*) MAN_FLAGS="$MAN_FLAGS --compress $enableval";;
|
sl@0
|
600 |
esac
|
sl@0
|
601 |
else
|
sl@0
|
602 |
enableval="no"
|
sl@0
|
603 |
fi
|
sl@0
|
604 |
|
sl@0
|
605 |
echo "$ac_t""$enableval" 1>&6
|
sl@0
|
606 |
if test "$enableval" != "no"; then
|
sl@0
|
607 |
echo $ac_n "checking for compressed file suffix""... $ac_c" 1>&6
|
sl@0
|
608 |
echo "configure:609: checking for compressed file suffix" >&5
|
sl@0
|
609 |
touch TeST
|
sl@0
|
610 |
$enableval TeST
|
sl@0
|
611 |
Z=`ls TeST* | sed 's/^....//'`
|
sl@0
|
612 |
rm -f TeST*
|
sl@0
|
613 |
MAN_FLAGS="$MAN_FLAGS --extension $Z"
|
sl@0
|
614 |
echo "$ac_t""$Z" 1>&6
|
sl@0
|
615 |
fi
|
sl@0
|
616 |
|
sl@0
|
617 |
echo $ac_n "checking whether to add a package name suffix for the manpages""... $ac_c" 1>&6
|
sl@0
|
618 |
echo "configure:619: checking whether to add a package name suffix for the manpages" >&5
|
sl@0
|
619 |
# Check whether --enable-man-suffix or --disable-man-suffix was given.
|
sl@0
|
620 |
if test "${enable_man_suffix+set}" = set; then
|
sl@0
|
621 |
enableval="$enable_man_suffix"
|
sl@0
|
622 |
case $enableval in
|
sl@0
|
623 |
yes) enableval="tcl" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
|
sl@0
|
624 |
no) ;;
|
sl@0
|
625 |
*) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";;
|
sl@0
|
626 |
esac
|
sl@0
|
627 |
else
|
sl@0
|
628 |
enableval="no"
|
sl@0
|
629 |
fi
|
sl@0
|
630 |
|
sl@0
|
631 |
echo "$ac_t""$enableval" 1>&6
|
sl@0
|
632 |
|
sl@0
|
633 |
|
sl@0
|
634 |
|
sl@0
|
635 |
|
sl@0
|
636 |
#------------------------------------------------------------------------
|
sl@0
|
637 |
# Standard compiler checks
|
sl@0
|
638 |
#------------------------------------------------------------------------
|
sl@0
|
639 |
|
sl@0
|
640 |
# If the user did not set CFLAGS, set it now to keep
|
sl@0
|
641 |
# the AC_PROG_CC macro from adding "-g -O2".
|
sl@0
|
642 |
if test "${CFLAGS+set}" != "set" ; then
|
sl@0
|
643 |
CFLAGS=""
|
sl@0
|
644 |
fi
|
sl@0
|
645 |
|
sl@0
|
646 |
# Extract the first word of "gcc", so it can be a program name with args.
|
sl@0
|
647 |
set dummy gcc; ac_word=$2
|
sl@0
|
648 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
sl@0
|
649 |
echo "configure:650: checking for $ac_word" >&5
|
sl@0
|
650 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
sl@0
|
651 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
652 |
else
|
sl@0
|
653 |
if test -n "$CC"; then
|
sl@0
|
654 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
sl@0
|
655 |
else
|
sl@0
|
656 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
sl@0
|
657 |
ac_dummy="$PATH"
|
sl@0
|
658 |
for ac_dir in $ac_dummy; do
|
sl@0
|
659 |
test -z "$ac_dir" && ac_dir=.
|
sl@0
|
660 |
if test -f $ac_dir/$ac_word; then
|
sl@0
|
661 |
ac_cv_prog_CC="gcc"
|
sl@0
|
662 |
break
|
sl@0
|
663 |
fi
|
sl@0
|
664 |
done
|
sl@0
|
665 |
IFS="$ac_save_ifs"
|
sl@0
|
666 |
fi
|
sl@0
|
667 |
fi
|
sl@0
|
668 |
CC="$ac_cv_prog_CC"
|
sl@0
|
669 |
if test -n "$CC"; then
|
sl@0
|
670 |
echo "$ac_t""$CC" 1>&6
|
sl@0
|
671 |
else
|
sl@0
|
672 |
echo "$ac_t""no" 1>&6
|
sl@0
|
673 |
fi
|
sl@0
|
674 |
|
sl@0
|
675 |
if test -z "$CC"; then
|
sl@0
|
676 |
# Extract the first word of "cc", so it can be a program name with args.
|
sl@0
|
677 |
set dummy cc; ac_word=$2
|
sl@0
|
678 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
sl@0
|
679 |
echo "configure:680: checking for $ac_word" >&5
|
sl@0
|
680 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
sl@0
|
681 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
682 |
else
|
sl@0
|
683 |
if test -n "$CC"; then
|
sl@0
|
684 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
sl@0
|
685 |
else
|
sl@0
|
686 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
sl@0
|
687 |
ac_prog_rejected=no
|
sl@0
|
688 |
ac_dummy="$PATH"
|
sl@0
|
689 |
for ac_dir in $ac_dummy; do
|
sl@0
|
690 |
test -z "$ac_dir" && ac_dir=.
|
sl@0
|
691 |
if test -f $ac_dir/$ac_word; then
|
sl@0
|
692 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
sl@0
|
693 |
ac_prog_rejected=yes
|
sl@0
|
694 |
continue
|
sl@0
|
695 |
fi
|
sl@0
|
696 |
ac_cv_prog_CC="cc"
|
sl@0
|
697 |
break
|
sl@0
|
698 |
fi
|
sl@0
|
699 |
done
|
sl@0
|
700 |
IFS="$ac_save_ifs"
|
sl@0
|
701 |
if test $ac_prog_rejected = yes; then
|
sl@0
|
702 |
# We found a bogon in the path, so make sure we never use it.
|
sl@0
|
703 |
set dummy $ac_cv_prog_CC
|
sl@0
|
704 |
shift
|
sl@0
|
705 |
if test $# -gt 0; then
|
sl@0
|
706 |
# We chose a different compiler from the bogus one.
|
sl@0
|
707 |
# However, it has the same basename, so the bogon will be chosen
|
sl@0
|
708 |
# first if we set CC to just the basename; use the full file name.
|
sl@0
|
709 |
shift
|
sl@0
|
710 |
set dummy "$ac_dir/$ac_word" "$@"
|
sl@0
|
711 |
shift
|
sl@0
|
712 |
ac_cv_prog_CC="$@"
|
sl@0
|
713 |
fi
|
sl@0
|
714 |
fi
|
sl@0
|
715 |
fi
|
sl@0
|
716 |
fi
|
sl@0
|
717 |
CC="$ac_cv_prog_CC"
|
sl@0
|
718 |
if test -n "$CC"; then
|
sl@0
|
719 |
echo "$ac_t""$CC" 1>&6
|
sl@0
|
720 |
else
|
sl@0
|
721 |
echo "$ac_t""no" 1>&6
|
sl@0
|
722 |
fi
|
sl@0
|
723 |
|
sl@0
|
724 |
if test -z "$CC"; then
|
sl@0
|
725 |
case "`uname -s`" in
|
sl@0
|
726 |
*win32* | *WIN32*)
|
sl@0
|
727 |
# Extract the first word of "cl", so it can be a program name with args.
|
sl@0
|
728 |
set dummy cl; ac_word=$2
|
sl@0
|
729 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
sl@0
|
730 |
echo "configure:731: checking for $ac_word" >&5
|
sl@0
|
731 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
sl@0
|
732 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
733 |
else
|
sl@0
|
734 |
if test -n "$CC"; then
|
sl@0
|
735 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
sl@0
|
736 |
else
|
sl@0
|
737 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
sl@0
|
738 |
ac_dummy="$PATH"
|
sl@0
|
739 |
for ac_dir in $ac_dummy; do
|
sl@0
|
740 |
test -z "$ac_dir" && ac_dir=.
|
sl@0
|
741 |
if test -f $ac_dir/$ac_word; then
|
sl@0
|
742 |
ac_cv_prog_CC="cl"
|
sl@0
|
743 |
break
|
sl@0
|
744 |
fi
|
sl@0
|
745 |
done
|
sl@0
|
746 |
IFS="$ac_save_ifs"
|
sl@0
|
747 |
fi
|
sl@0
|
748 |
fi
|
sl@0
|
749 |
CC="$ac_cv_prog_CC"
|
sl@0
|
750 |
if test -n "$CC"; then
|
sl@0
|
751 |
echo "$ac_t""$CC" 1>&6
|
sl@0
|
752 |
else
|
sl@0
|
753 |
echo "$ac_t""no" 1>&6
|
sl@0
|
754 |
fi
|
sl@0
|
755 |
;;
|
sl@0
|
756 |
esac
|
sl@0
|
757 |
fi
|
sl@0
|
758 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
sl@0
|
759 |
fi
|
sl@0
|
760 |
|
sl@0
|
761 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
sl@0
|
762 |
echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
sl@0
|
763 |
|
sl@0
|
764 |
ac_ext=c
|
sl@0
|
765 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
sl@0
|
766 |
ac_cpp='$CPP $CPPFLAGS'
|
sl@0
|
767 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
sl@0
|
768 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
sl@0
|
769 |
cross_compiling=$ac_cv_prog_cc_cross
|
sl@0
|
770 |
|
sl@0
|
771 |
cat > conftest.$ac_ext << EOF
|
sl@0
|
772 |
|
sl@0
|
773 |
#line 774 "configure"
|
sl@0
|
774 |
#include "confdefs.h"
|
sl@0
|
775 |
|
sl@0
|
776 |
main(){return(0);}
|
sl@0
|
777 |
EOF
|
sl@0
|
778 |
if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
779 |
ac_cv_prog_cc_works=yes
|
sl@0
|
780 |
# If we can't run a trivial program, we are probably using a cross compiler.
|
sl@0
|
781 |
if (./conftest; exit) 2>/dev/null; then
|
sl@0
|
782 |
ac_cv_prog_cc_cross=no
|
sl@0
|
783 |
else
|
sl@0
|
784 |
ac_cv_prog_cc_cross=yes
|
sl@0
|
785 |
fi
|
sl@0
|
786 |
else
|
sl@0
|
787 |
echo "configure: failed program was:" >&5
|
sl@0
|
788 |
cat conftest.$ac_ext >&5
|
sl@0
|
789 |
ac_cv_prog_cc_works=no
|
sl@0
|
790 |
fi
|
sl@0
|
791 |
rm -fr conftest*
|
sl@0
|
792 |
ac_ext=c
|
sl@0
|
793 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
sl@0
|
794 |
ac_cpp='$CPP $CPPFLAGS'
|
sl@0
|
795 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
sl@0
|
796 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
sl@0
|
797 |
cross_compiling=$ac_cv_prog_cc_cross
|
sl@0
|
798 |
|
sl@0
|
799 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
sl@0
|
800 |
if test $ac_cv_prog_cc_works = no; then
|
sl@0
|
801 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
sl@0
|
802 |
fi
|
sl@0
|
803 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
sl@0
|
804 |
echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
sl@0
|
805 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
sl@0
|
806 |
cross_compiling=$ac_cv_prog_cc_cross
|
sl@0
|
807 |
|
sl@0
|
808 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
sl@0
|
809 |
echo "configure:810: checking whether we are using GNU C" >&5
|
sl@0
|
810 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
sl@0
|
811 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
812 |
else
|
sl@0
|
813 |
cat > conftest.c <<EOF
|
sl@0
|
814 |
#ifdef __GNUC__
|
sl@0
|
815 |
yes;
|
sl@0
|
816 |
#endif
|
sl@0
|
817 |
EOF
|
sl@0
|
818 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
sl@0
|
819 |
ac_cv_prog_gcc=yes
|
sl@0
|
820 |
else
|
sl@0
|
821 |
ac_cv_prog_gcc=no
|
sl@0
|
822 |
fi
|
sl@0
|
823 |
fi
|
sl@0
|
824 |
|
sl@0
|
825 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
sl@0
|
826 |
|
sl@0
|
827 |
if test $ac_cv_prog_gcc = yes; then
|
sl@0
|
828 |
GCC=yes
|
sl@0
|
829 |
else
|
sl@0
|
830 |
GCC=
|
sl@0
|
831 |
fi
|
sl@0
|
832 |
|
sl@0
|
833 |
ac_test_CFLAGS="${CFLAGS+set}"
|
sl@0
|
834 |
ac_save_CFLAGS="$CFLAGS"
|
sl@0
|
835 |
CFLAGS=
|
sl@0
|
836 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
sl@0
|
837 |
echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
|
sl@0
|
838 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
sl@0
|
839 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
840 |
else
|
sl@0
|
841 |
echo 'void f(){}' > conftest.c
|
sl@0
|
842 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
sl@0
|
843 |
ac_cv_prog_cc_g=yes
|
sl@0
|
844 |
else
|
sl@0
|
845 |
ac_cv_prog_cc_g=no
|
sl@0
|
846 |
fi
|
sl@0
|
847 |
rm -f conftest*
|
sl@0
|
848 |
|
sl@0
|
849 |
fi
|
sl@0
|
850 |
|
sl@0
|
851 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
sl@0
|
852 |
if test "$ac_test_CFLAGS" = set; then
|
sl@0
|
853 |
CFLAGS="$ac_save_CFLAGS"
|
sl@0
|
854 |
elif test $ac_cv_prog_cc_g = yes; then
|
sl@0
|
855 |
if test "$GCC" = yes; then
|
sl@0
|
856 |
CFLAGS="-g -O2"
|
sl@0
|
857 |
else
|
sl@0
|
858 |
CFLAGS="-g"
|
sl@0
|
859 |
fi
|
sl@0
|
860 |
else
|
sl@0
|
861 |
if test "$GCC" = yes; then
|
sl@0
|
862 |
CFLAGS="-O2"
|
sl@0
|
863 |
else
|
sl@0
|
864 |
CFLAGS=
|
sl@0
|
865 |
fi
|
sl@0
|
866 |
fi
|
sl@0
|
867 |
|
sl@0
|
868 |
|
sl@0
|
869 |
#--------------------------------------------------------------------
|
sl@0
|
870 |
# Supply substitutes for missing POSIX header files. Special notes:
|
sl@0
|
871 |
# - stdlib.h doesn't define strtol, strtoul, or
|
sl@0
|
872 |
# strtod insome versions of SunOS
|
sl@0
|
873 |
# - some versions of string.h don't declare procedures such
|
sl@0
|
874 |
# as strstr
|
sl@0
|
875 |
# Do this early, otherwise an autoconf bug throws errors on configure
|
sl@0
|
876 |
#--------------------------------------------------------------------
|
sl@0
|
877 |
|
sl@0
|
878 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
sl@0
|
879 |
echo "configure:880: checking how to run the C preprocessor" >&5
|
sl@0
|
880 |
# On Suns, sometimes $CPP names a directory.
|
sl@0
|
881 |
if test -n "$CPP" && test -d "$CPP"; then
|
sl@0
|
882 |
CPP=
|
sl@0
|
883 |
fi
|
sl@0
|
884 |
if test -z "$CPP"; then
|
sl@0
|
885 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
sl@0
|
886 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
887 |
else
|
sl@0
|
888 |
# This must be in double quotes, not single quotes, because CPP may get
|
sl@0
|
889 |
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
sl@0
|
890 |
CPP="${CC-cc} -E"
|
sl@0
|
891 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
sl@0
|
892 |
# not just through cpp.
|
sl@0
|
893 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
894 |
#line 895 "configure"
|
sl@0
|
895 |
#include "confdefs.h"
|
sl@0
|
896 |
#include <assert.h>
|
sl@0
|
897 |
Syntax Error
|
sl@0
|
898 |
EOF
|
sl@0
|
899 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
900 |
{ (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
901 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
902 |
if test -z "$ac_err"; then
|
sl@0
|
903 |
:
|
sl@0
|
904 |
else
|
sl@0
|
905 |
echo "$ac_err" >&5
|
sl@0
|
906 |
echo "configure: failed program was:" >&5
|
sl@0
|
907 |
cat conftest.$ac_ext >&5
|
sl@0
|
908 |
rm -rf conftest*
|
sl@0
|
909 |
CPP="${CC-cc} -E -traditional-cpp"
|
sl@0
|
910 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
911 |
#line 912 "configure"
|
sl@0
|
912 |
#include "confdefs.h"
|
sl@0
|
913 |
#include <assert.h>
|
sl@0
|
914 |
Syntax Error
|
sl@0
|
915 |
EOF
|
sl@0
|
916 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
917 |
{ (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
918 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
919 |
if test -z "$ac_err"; then
|
sl@0
|
920 |
:
|
sl@0
|
921 |
else
|
sl@0
|
922 |
echo "$ac_err" >&5
|
sl@0
|
923 |
echo "configure: failed program was:" >&5
|
sl@0
|
924 |
cat conftest.$ac_ext >&5
|
sl@0
|
925 |
rm -rf conftest*
|
sl@0
|
926 |
CPP="${CC-cc} -nologo -E"
|
sl@0
|
927 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
928 |
#line 929 "configure"
|
sl@0
|
929 |
#include "confdefs.h"
|
sl@0
|
930 |
#include <assert.h>
|
sl@0
|
931 |
Syntax Error
|
sl@0
|
932 |
EOF
|
sl@0
|
933 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
934 |
{ (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
935 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
936 |
if test -z "$ac_err"; then
|
sl@0
|
937 |
:
|
sl@0
|
938 |
else
|
sl@0
|
939 |
echo "$ac_err" >&5
|
sl@0
|
940 |
echo "configure: failed program was:" >&5
|
sl@0
|
941 |
cat conftest.$ac_ext >&5
|
sl@0
|
942 |
rm -rf conftest*
|
sl@0
|
943 |
CPP=/lib/cpp
|
sl@0
|
944 |
fi
|
sl@0
|
945 |
rm -f conftest*
|
sl@0
|
946 |
fi
|
sl@0
|
947 |
rm -f conftest*
|
sl@0
|
948 |
fi
|
sl@0
|
949 |
rm -f conftest*
|
sl@0
|
950 |
ac_cv_prog_CPP="$CPP"
|
sl@0
|
951 |
fi
|
sl@0
|
952 |
CPP="$ac_cv_prog_CPP"
|
sl@0
|
953 |
else
|
sl@0
|
954 |
ac_cv_prog_CPP="$CPP"
|
sl@0
|
955 |
fi
|
sl@0
|
956 |
echo "$ac_t""$CPP" 1>&6
|
sl@0
|
957 |
|
sl@0
|
958 |
|
sl@0
|
959 |
echo $ac_n "checking dirent.h""... $ac_c" 1>&6
|
sl@0
|
960 |
echo "configure:961: checking dirent.h" >&5
|
sl@0
|
961 |
if eval "test \"`echo '$''{'tcl_cv_dirent_h'+set}'`\" = set"; then
|
sl@0
|
962 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
963 |
else
|
sl@0
|
964 |
|
sl@0
|
965 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
966 |
#line 967 "configure"
|
sl@0
|
967 |
#include "confdefs.h"
|
sl@0
|
968 |
#include <sys/types.h>
|
sl@0
|
969 |
#include <dirent.h>
|
sl@0
|
970 |
int main() {
|
sl@0
|
971 |
|
sl@0
|
972 |
#ifndef _POSIX_SOURCE
|
sl@0
|
973 |
# ifdef __Lynx__
|
sl@0
|
974 |
/*
|
sl@0
|
975 |
* Generate compilation error to make the test fail: Lynx headers
|
sl@0
|
976 |
* are only valid if really in the POSIX environment.
|
sl@0
|
977 |
*/
|
sl@0
|
978 |
|
sl@0
|
979 |
missing_procedure();
|
sl@0
|
980 |
# endif
|
sl@0
|
981 |
#endif
|
sl@0
|
982 |
DIR *d;
|
sl@0
|
983 |
struct dirent *entryPtr;
|
sl@0
|
984 |
char *p;
|
sl@0
|
985 |
d = opendir("foobar");
|
sl@0
|
986 |
entryPtr = readdir(d);
|
sl@0
|
987 |
p = entryPtr->d_name;
|
sl@0
|
988 |
closedir(d);
|
sl@0
|
989 |
|
sl@0
|
990 |
; return 0; }
|
sl@0
|
991 |
EOF
|
sl@0
|
992 |
if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
993 |
rm -rf conftest*
|
sl@0
|
994 |
tcl_cv_dirent_h=yes
|
sl@0
|
995 |
else
|
sl@0
|
996 |
echo "configure: failed program was:" >&5
|
sl@0
|
997 |
cat conftest.$ac_ext >&5
|
sl@0
|
998 |
rm -rf conftest*
|
sl@0
|
999 |
tcl_cv_dirent_h=no
|
sl@0
|
1000 |
fi
|
sl@0
|
1001 |
rm -f conftest*
|
sl@0
|
1002 |
fi
|
sl@0
|
1003 |
|
sl@0
|
1004 |
echo "$ac_t""$tcl_cv_dirent_h" 1>&6
|
sl@0
|
1005 |
|
sl@0
|
1006 |
if test $tcl_cv_dirent_h = no; then
|
sl@0
|
1007 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1008 |
#define NO_DIRENT_H 1
|
sl@0
|
1009 |
EOF
|
sl@0
|
1010 |
|
sl@0
|
1011 |
fi
|
sl@0
|
1012 |
|
sl@0
|
1013 |
ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1014 |
echo $ac_n "checking for errno.h""... $ac_c" 1>&6
|
sl@0
|
1015 |
echo "configure:1016: checking for errno.h" >&5
|
sl@0
|
1016 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1017 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1018 |
else
|
sl@0
|
1019 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1020 |
#line 1021 "configure"
|
sl@0
|
1021 |
#include "confdefs.h"
|
sl@0
|
1022 |
#include <errno.h>
|
sl@0
|
1023 |
EOF
|
sl@0
|
1024 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1025 |
{ (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1026 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1027 |
if test -z "$ac_err"; then
|
sl@0
|
1028 |
rm -rf conftest*
|
sl@0
|
1029 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1030 |
else
|
sl@0
|
1031 |
echo "$ac_err" >&5
|
sl@0
|
1032 |
echo "configure: failed program was:" >&5
|
sl@0
|
1033 |
cat conftest.$ac_ext >&5
|
sl@0
|
1034 |
rm -rf conftest*
|
sl@0
|
1035 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1036 |
fi
|
sl@0
|
1037 |
rm -f conftest*
|
sl@0
|
1038 |
fi
|
sl@0
|
1039 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1040 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1041 |
:
|
sl@0
|
1042 |
else
|
sl@0
|
1043 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1044 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1045 |
#define NO_ERRNO_H 1
|
sl@0
|
1046 |
EOF
|
sl@0
|
1047 |
|
sl@0
|
1048 |
fi
|
sl@0
|
1049 |
|
sl@0
|
1050 |
ac_safe=`echo "float.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1051 |
echo $ac_n "checking for float.h""... $ac_c" 1>&6
|
sl@0
|
1052 |
echo "configure:1053: checking for float.h" >&5
|
sl@0
|
1053 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1054 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1055 |
else
|
sl@0
|
1056 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1057 |
#line 1058 "configure"
|
sl@0
|
1058 |
#include "confdefs.h"
|
sl@0
|
1059 |
#include <float.h>
|
sl@0
|
1060 |
EOF
|
sl@0
|
1061 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1062 |
{ (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1063 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1064 |
if test -z "$ac_err"; then
|
sl@0
|
1065 |
rm -rf conftest*
|
sl@0
|
1066 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1067 |
else
|
sl@0
|
1068 |
echo "$ac_err" >&5
|
sl@0
|
1069 |
echo "configure: failed program was:" >&5
|
sl@0
|
1070 |
cat conftest.$ac_ext >&5
|
sl@0
|
1071 |
rm -rf conftest*
|
sl@0
|
1072 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1073 |
fi
|
sl@0
|
1074 |
rm -f conftest*
|
sl@0
|
1075 |
fi
|
sl@0
|
1076 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1077 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1078 |
:
|
sl@0
|
1079 |
else
|
sl@0
|
1080 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1081 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1082 |
#define NO_FLOAT_H 1
|
sl@0
|
1083 |
EOF
|
sl@0
|
1084 |
|
sl@0
|
1085 |
fi
|
sl@0
|
1086 |
|
sl@0
|
1087 |
ac_safe=`echo "values.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1088 |
echo $ac_n "checking for values.h""... $ac_c" 1>&6
|
sl@0
|
1089 |
echo "configure:1090: checking for values.h" >&5
|
sl@0
|
1090 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1091 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1092 |
else
|
sl@0
|
1093 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1094 |
#line 1095 "configure"
|
sl@0
|
1095 |
#include "confdefs.h"
|
sl@0
|
1096 |
#include <values.h>
|
sl@0
|
1097 |
EOF
|
sl@0
|
1098 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1099 |
{ (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1100 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1101 |
if test -z "$ac_err"; then
|
sl@0
|
1102 |
rm -rf conftest*
|
sl@0
|
1103 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1104 |
else
|
sl@0
|
1105 |
echo "$ac_err" >&5
|
sl@0
|
1106 |
echo "configure: failed program was:" >&5
|
sl@0
|
1107 |
cat conftest.$ac_ext >&5
|
sl@0
|
1108 |
rm -rf conftest*
|
sl@0
|
1109 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1110 |
fi
|
sl@0
|
1111 |
rm -f conftest*
|
sl@0
|
1112 |
fi
|
sl@0
|
1113 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1114 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1115 |
:
|
sl@0
|
1116 |
else
|
sl@0
|
1117 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1118 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1119 |
#define NO_VALUES_H 1
|
sl@0
|
1120 |
EOF
|
sl@0
|
1121 |
|
sl@0
|
1122 |
fi
|
sl@0
|
1123 |
|
sl@0
|
1124 |
ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1125 |
echo $ac_n "checking for limits.h""... $ac_c" 1>&6
|
sl@0
|
1126 |
echo "configure:1127: checking for limits.h" >&5
|
sl@0
|
1127 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1128 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1129 |
else
|
sl@0
|
1130 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1131 |
#line 1132 "configure"
|
sl@0
|
1132 |
#include "confdefs.h"
|
sl@0
|
1133 |
#include <limits.h>
|
sl@0
|
1134 |
EOF
|
sl@0
|
1135 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1136 |
{ (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1137 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1138 |
if test -z "$ac_err"; then
|
sl@0
|
1139 |
rm -rf conftest*
|
sl@0
|
1140 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1141 |
else
|
sl@0
|
1142 |
echo "$ac_err" >&5
|
sl@0
|
1143 |
echo "configure: failed program was:" >&5
|
sl@0
|
1144 |
cat conftest.$ac_ext >&5
|
sl@0
|
1145 |
rm -rf conftest*
|
sl@0
|
1146 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1147 |
fi
|
sl@0
|
1148 |
rm -f conftest*
|
sl@0
|
1149 |
fi
|
sl@0
|
1150 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1151 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1152 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1153 |
#define HAVE_LIMITS_H 1
|
sl@0
|
1154 |
EOF
|
sl@0
|
1155 |
|
sl@0
|
1156 |
else
|
sl@0
|
1157 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1158 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1159 |
#define NO_LIMITS_H 1
|
sl@0
|
1160 |
EOF
|
sl@0
|
1161 |
|
sl@0
|
1162 |
fi
|
sl@0
|
1163 |
|
sl@0
|
1164 |
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1165 |
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
|
sl@0
|
1166 |
echo "configure:1167: checking for stdlib.h" >&5
|
sl@0
|
1167 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1168 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1169 |
else
|
sl@0
|
1170 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1171 |
#line 1172 "configure"
|
sl@0
|
1172 |
#include "confdefs.h"
|
sl@0
|
1173 |
#include <stdlib.h>
|
sl@0
|
1174 |
EOF
|
sl@0
|
1175 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1176 |
{ (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1177 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1178 |
if test -z "$ac_err"; then
|
sl@0
|
1179 |
rm -rf conftest*
|
sl@0
|
1180 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1181 |
else
|
sl@0
|
1182 |
echo "$ac_err" >&5
|
sl@0
|
1183 |
echo "configure: failed program was:" >&5
|
sl@0
|
1184 |
cat conftest.$ac_ext >&5
|
sl@0
|
1185 |
rm -rf conftest*
|
sl@0
|
1186 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1187 |
fi
|
sl@0
|
1188 |
rm -f conftest*
|
sl@0
|
1189 |
fi
|
sl@0
|
1190 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1191 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1192 |
tcl_ok=1
|
sl@0
|
1193 |
else
|
sl@0
|
1194 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1195 |
tcl_ok=0
|
sl@0
|
1196 |
fi
|
sl@0
|
1197 |
|
sl@0
|
1198 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1199 |
#line 1200 "configure"
|
sl@0
|
1200 |
#include "confdefs.h"
|
sl@0
|
1201 |
#include <stdlib.h>
|
sl@0
|
1202 |
EOF
|
sl@0
|
1203 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
1204 |
egrep "strtol" >/dev/null 2>&1; then
|
sl@0
|
1205 |
:
|
sl@0
|
1206 |
else
|
sl@0
|
1207 |
rm -rf conftest*
|
sl@0
|
1208 |
tcl_ok=0
|
sl@0
|
1209 |
fi
|
sl@0
|
1210 |
rm -f conftest*
|
sl@0
|
1211 |
|
sl@0
|
1212 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1213 |
#line 1214 "configure"
|
sl@0
|
1214 |
#include "confdefs.h"
|
sl@0
|
1215 |
#include <stdlib.h>
|
sl@0
|
1216 |
EOF
|
sl@0
|
1217 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
1218 |
egrep "strtoul" >/dev/null 2>&1; then
|
sl@0
|
1219 |
:
|
sl@0
|
1220 |
else
|
sl@0
|
1221 |
rm -rf conftest*
|
sl@0
|
1222 |
tcl_ok=0
|
sl@0
|
1223 |
fi
|
sl@0
|
1224 |
rm -f conftest*
|
sl@0
|
1225 |
|
sl@0
|
1226 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1227 |
#line 1228 "configure"
|
sl@0
|
1228 |
#include "confdefs.h"
|
sl@0
|
1229 |
#include <stdlib.h>
|
sl@0
|
1230 |
EOF
|
sl@0
|
1231 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
1232 |
egrep "strtod" >/dev/null 2>&1; then
|
sl@0
|
1233 |
:
|
sl@0
|
1234 |
else
|
sl@0
|
1235 |
rm -rf conftest*
|
sl@0
|
1236 |
tcl_ok=0
|
sl@0
|
1237 |
fi
|
sl@0
|
1238 |
rm -f conftest*
|
sl@0
|
1239 |
|
sl@0
|
1240 |
if test $tcl_ok = 0; then
|
sl@0
|
1241 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1242 |
#define NO_STDLIB_H 1
|
sl@0
|
1243 |
EOF
|
sl@0
|
1244 |
|
sl@0
|
1245 |
fi
|
sl@0
|
1246 |
ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1247 |
echo $ac_n "checking for string.h""... $ac_c" 1>&6
|
sl@0
|
1248 |
echo "configure:1249: checking for string.h" >&5
|
sl@0
|
1249 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1250 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1251 |
else
|
sl@0
|
1252 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1253 |
#line 1254 "configure"
|
sl@0
|
1254 |
#include "confdefs.h"
|
sl@0
|
1255 |
#include <string.h>
|
sl@0
|
1256 |
EOF
|
sl@0
|
1257 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1258 |
{ (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1259 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1260 |
if test -z "$ac_err"; then
|
sl@0
|
1261 |
rm -rf conftest*
|
sl@0
|
1262 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1263 |
else
|
sl@0
|
1264 |
echo "$ac_err" >&5
|
sl@0
|
1265 |
echo "configure: failed program was:" >&5
|
sl@0
|
1266 |
cat conftest.$ac_ext >&5
|
sl@0
|
1267 |
rm -rf conftest*
|
sl@0
|
1268 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1269 |
fi
|
sl@0
|
1270 |
rm -f conftest*
|
sl@0
|
1271 |
fi
|
sl@0
|
1272 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1273 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1274 |
tcl_ok=1
|
sl@0
|
1275 |
else
|
sl@0
|
1276 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1277 |
tcl_ok=0
|
sl@0
|
1278 |
fi
|
sl@0
|
1279 |
|
sl@0
|
1280 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1281 |
#line 1282 "configure"
|
sl@0
|
1282 |
#include "confdefs.h"
|
sl@0
|
1283 |
#include <string.h>
|
sl@0
|
1284 |
EOF
|
sl@0
|
1285 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
1286 |
egrep "strstr" >/dev/null 2>&1; then
|
sl@0
|
1287 |
:
|
sl@0
|
1288 |
else
|
sl@0
|
1289 |
rm -rf conftest*
|
sl@0
|
1290 |
tcl_ok=0
|
sl@0
|
1291 |
fi
|
sl@0
|
1292 |
rm -f conftest*
|
sl@0
|
1293 |
|
sl@0
|
1294 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1295 |
#line 1296 "configure"
|
sl@0
|
1296 |
#include "confdefs.h"
|
sl@0
|
1297 |
#include <string.h>
|
sl@0
|
1298 |
EOF
|
sl@0
|
1299 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
1300 |
egrep "strerror" >/dev/null 2>&1; then
|
sl@0
|
1301 |
:
|
sl@0
|
1302 |
else
|
sl@0
|
1303 |
rm -rf conftest*
|
sl@0
|
1304 |
tcl_ok=0
|
sl@0
|
1305 |
fi
|
sl@0
|
1306 |
rm -f conftest*
|
sl@0
|
1307 |
|
sl@0
|
1308 |
|
sl@0
|
1309 |
# See also memmove check below for a place where NO_STRING_H can be
|
sl@0
|
1310 |
# set and why.
|
sl@0
|
1311 |
|
sl@0
|
1312 |
if test $tcl_ok = 0; then
|
sl@0
|
1313 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1314 |
#define NO_STRING_H 1
|
sl@0
|
1315 |
EOF
|
sl@0
|
1316 |
|
sl@0
|
1317 |
fi
|
sl@0
|
1318 |
|
sl@0
|
1319 |
ac_safe=`echo "sys/wait.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1320 |
echo $ac_n "checking for sys/wait.h""... $ac_c" 1>&6
|
sl@0
|
1321 |
echo "configure:1322: checking for sys/wait.h" >&5
|
sl@0
|
1322 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1323 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1324 |
else
|
sl@0
|
1325 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1326 |
#line 1327 "configure"
|
sl@0
|
1327 |
#include "confdefs.h"
|
sl@0
|
1328 |
#include <sys/wait.h>
|
sl@0
|
1329 |
EOF
|
sl@0
|
1330 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1331 |
{ (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1332 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1333 |
if test -z "$ac_err"; then
|
sl@0
|
1334 |
rm -rf conftest*
|
sl@0
|
1335 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1336 |
else
|
sl@0
|
1337 |
echo "$ac_err" >&5
|
sl@0
|
1338 |
echo "configure: failed program was:" >&5
|
sl@0
|
1339 |
cat conftest.$ac_ext >&5
|
sl@0
|
1340 |
rm -rf conftest*
|
sl@0
|
1341 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1342 |
fi
|
sl@0
|
1343 |
rm -f conftest*
|
sl@0
|
1344 |
fi
|
sl@0
|
1345 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1346 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1347 |
:
|
sl@0
|
1348 |
else
|
sl@0
|
1349 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1350 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1351 |
#define NO_SYS_WAIT_H 1
|
sl@0
|
1352 |
EOF
|
sl@0
|
1353 |
|
sl@0
|
1354 |
fi
|
sl@0
|
1355 |
|
sl@0
|
1356 |
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
1357 |
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
sl@0
|
1358 |
echo "configure:1359: checking for dlfcn.h" >&5
|
sl@0
|
1359 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1360 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1361 |
else
|
sl@0
|
1362 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1363 |
#line 1364 "configure"
|
sl@0
|
1364 |
#include "confdefs.h"
|
sl@0
|
1365 |
#include <dlfcn.h>
|
sl@0
|
1366 |
EOF
|
sl@0
|
1367 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1368 |
{ (eval echo configure:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1369 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1370 |
if test -z "$ac_err"; then
|
sl@0
|
1371 |
rm -rf conftest*
|
sl@0
|
1372 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1373 |
else
|
sl@0
|
1374 |
echo "$ac_err" >&5
|
sl@0
|
1375 |
echo "configure: failed program was:" >&5
|
sl@0
|
1376 |
cat conftest.$ac_ext >&5
|
sl@0
|
1377 |
rm -rf conftest*
|
sl@0
|
1378 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1379 |
fi
|
sl@0
|
1380 |
rm -f conftest*
|
sl@0
|
1381 |
fi
|
sl@0
|
1382 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1383 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1384 |
:
|
sl@0
|
1385 |
else
|
sl@0
|
1386 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1387 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1388 |
#define NO_DLFCN_H 1
|
sl@0
|
1389 |
EOF
|
sl@0
|
1390 |
|
sl@0
|
1391 |
fi
|
sl@0
|
1392 |
|
sl@0
|
1393 |
|
sl@0
|
1394 |
# OS/390 lacks sys/param.h (and doesn't need it, by chance).
|
sl@0
|
1395 |
for ac_hdr in unistd.h sys/param.h
|
sl@0
|
1396 |
do
|
sl@0
|
1397 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
1398 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
1399 |
echo "configure:1400: checking for $ac_hdr" >&5
|
sl@0
|
1400 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
1401 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1402 |
else
|
sl@0
|
1403 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1404 |
#line 1405 "configure"
|
sl@0
|
1405 |
#include "confdefs.h"
|
sl@0
|
1406 |
#include <$ac_hdr>
|
sl@0
|
1407 |
EOF
|
sl@0
|
1408 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
1409 |
{ (eval echo configure:1410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
1410 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
1411 |
if test -z "$ac_err"; then
|
sl@0
|
1412 |
rm -rf conftest*
|
sl@0
|
1413 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
1414 |
else
|
sl@0
|
1415 |
echo "$ac_err" >&5
|
sl@0
|
1416 |
echo "configure: failed program was:" >&5
|
sl@0
|
1417 |
cat conftest.$ac_ext >&5
|
sl@0
|
1418 |
rm -rf conftest*
|
sl@0
|
1419 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
1420 |
fi
|
sl@0
|
1421 |
rm -f conftest*
|
sl@0
|
1422 |
fi
|
sl@0
|
1423 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
1424 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1425 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
1426 |
cat >> confdefs.h <<EOF
|
sl@0
|
1427 |
#define $ac_tr_hdr 1
|
sl@0
|
1428 |
EOF
|
sl@0
|
1429 |
|
sl@0
|
1430 |
else
|
sl@0
|
1431 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1432 |
fi
|
sl@0
|
1433 |
done
|
sl@0
|
1434 |
|
sl@0
|
1435 |
|
sl@0
|
1436 |
|
sl@0
|
1437 |
#------------------------------------------------------------------------
|
sl@0
|
1438 |
# If we're using GCC, see if the compiler understands -pipe. If so, use it.
|
sl@0
|
1439 |
# It makes compiling go faster. (This is only a performance feature.)
|
sl@0
|
1440 |
#------------------------------------------------------------------------
|
sl@0
|
1441 |
|
sl@0
|
1442 |
if test -z "$no_pipe" && test -n "$GCC"; then
|
sl@0
|
1443 |
echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
|
sl@0
|
1444 |
echo "configure:1445: checking if the compiler understands -pipe" >&5
|
sl@0
|
1445 |
if eval "test \"`echo '$''{'tcl_cv_cc_pipe'+set}'`\" = set"; then
|
sl@0
|
1446 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1447 |
else
|
sl@0
|
1448 |
|
sl@0
|
1449 |
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
|
sl@0
|
1450 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1451 |
#line 1452 "configure"
|
sl@0
|
1452 |
#include "confdefs.h"
|
sl@0
|
1453 |
|
sl@0
|
1454 |
int main() {
|
sl@0
|
1455 |
|
sl@0
|
1456 |
; return 0; }
|
sl@0
|
1457 |
EOF
|
sl@0
|
1458 |
if { (eval echo configure:1459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
1459 |
rm -rf conftest*
|
sl@0
|
1460 |
tcl_cv_cc_pipe=yes
|
sl@0
|
1461 |
else
|
sl@0
|
1462 |
echo "configure: failed program was:" >&5
|
sl@0
|
1463 |
cat conftest.$ac_ext >&5
|
sl@0
|
1464 |
rm -rf conftest*
|
sl@0
|
1465 |
tcl_cv_cc_pipe=no
|
sl@0
|
1466 |
fi
|
sl@0
|
1467 |
rm -f conftest*
|
sl@0
|
1468 |
CFLAGS=$hold_cflags
|
sl@0
|
1469 |
fi
|
sl@0
|
1470 |
|
sl@0
|
1471 |
echo "$ac_t""$tcl_cv_cc_pipe" 1>&6
|
sl@0
|
1472 |
if test $tcl_cv_cc_pipe = yes; then
|
sl@0
|
1473 |
CFLAGS="$CFLAGS -pipe"
|
sl@0
|
1474 |
fi
|
sl@0
|
1475 |
fi
|
sl@0
|
1476 |
|
sl@0
|
1477 |
#------------------------------------------------------------------------
|
sl@0
|
1478 |
# Threads support
|
sl@0
|
1479 |
#------------------------------------------------------------------------
|
sl@0
|
1480 |
|
sl@0
|
1481 |
|
sl@0
|
1482 |
# Check whether --enable-threads or --disable-threads was given.
|
sl@0
|
1483 |
if test "${enable_threads+set}" = set; then
|
sl@0
|
1484 |
enableval="$enable_threads"
|
sl@0
|
1485 |
tcl_ok=$enableval
|
sl@0
|
1486 |
else
|
sl@0
|
1487 |
tcl_ok=no
|
sl@0
|
1488 |
fi
|
sl@0
|
1489 |
|
sl@0
|
1490 |
|
sl@0
|
1491 |
if test "${TCL_THREADS}" = 1; then
|
sl@0
|
1492 |
tcl_threaded_core=1;
|
sl@0
|
1493 |
fi
|
sl@0
|
1494 |
|
sl@0
|
1495 |
if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
|
sl@0
|
1496 |
TCL_THREADS=1
|
sl@0
|
1497 |
# USE_THREAD_ALLOC tells us to try the special thread-based
|
sl@0
|
1498 |
# allocator that significantly reduces lock contention
|
sl@0
|
1499 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1500 |
#define USE_THREAD_ALLOC 1
|
sl@0
|
1501 |
EOF
|
sl@0
|
1502 |
|
sl@0
|
1503 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1504 |
#define _REENTRANT 1
|
sl@0
|
1505 |
EOF
|
sl@0
|
1506 |
|
sl@0
|
1507 |
if test "`uname -s`" = "SunOS" ; then
|
sl@0
|
1508 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1509 |
#define _POSIX_PTHREAD_SEMANTICS 1
|
sl@0
|
1510 |
EOF
|
sl@0
|
1511 |
|
sl@0
|
1512 |
fi
|
sl@0
|
1513 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1514 |
#define _THREAD_SAFE 1
|
sl@0
|
1515 |
EOF
|
sl@0
|
1516 |
|
sl@0
|
1517 |
echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
|
sl@0
|
1518 |
echo "configure:1519: checking for pthread_mutex_init in -lpthread" >&5
|
sl@0
|
1519 |
ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
|
sl@0
|
1520 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1521 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1522 |
else
|
sl@0
|
1523 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1524 |
LIBS="-lpthread $LIBS"
|
sl@0
|
1525 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1526 |
#line 1527 "configure"
|
sl@0
|
1527 |
#include "confdefs.h"
|
sl@0
|
1528 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1529 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1530 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1531 |
char pthread_mutex_init();
|
sl@0
|
1532 |
|
sl@0
|
1533 |
int main() {
|
sl@0
|
1534 |
pthread_mutex_init()
|
sl@0
|
1535 |
; return 0; }
|
sl@0
|
1536 |
EOF
|
sl@0
|
1537 |
if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1538 |
rm -rf conftest*
|
sl@0
|
1539 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1540 |
else
|
sl@0
|
1541 |
echo "configure: failed program was:" >&5
|
sl@0
|
1542 |
cat conftest.$ac_ext >&5
|
sl@0
|
1543 |
rm -rf conftest*
|
sl@0
|
1544 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1545 |
fi
|
sl@0
|
1546 |
rm -f conftest*
|
sl@0
|
1547 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1548 |
|
sl@0
|
1549 |
fi
|
sl@0
|
1550 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1551 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1552 |
tcl_ok=yes
|
sl@0
|
1553 |
else
|
sl@0
|
1554 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1555 |
tcl_ok=no
|
sl@0
|
1556 |
fi
|
sl@0
|
1557 |
|
sl@0
|
1558 |
if test "$tcl_ok" = "no"; then
|
sl@0
|
1559 |
# Check a little harder for __pthread_mutex_init in the same
|
sl@0
|
1560 |
# library, as some systems hide it there until pthread.h is
|
sl@0
|
1561 |
# defined. We could alternatively do an AC_TRY_COMPILE with
|
sl@0
|
1562 |
# pthread.h, but that will work with libpthread really doesn't
|
sl@0
|
1563 |
# exist, like AIX 4.2. [Bug: 4359]
|
sl@0
|
1564 |
echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6
|
sl@0
|
1565 |
echo "configure:1566: checking for __pthread_mutex_init in -lpthread" >&5
|
sl@0
|
1566 |
ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`
|
sl@0
|
1567 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1568 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1569 |
else
|
sl@0
|
1570 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1571 |
LIBS="-lpthread $LIBS"
|
sl@0
|
1572 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1573 |
#line 1574 "configure"
|
sl@0
|
1574 |
#include "confdefs.h"
|
sl@0
|
1575 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1576 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1577 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1578 |
char __pthread_mutex_init();
|
sl@0
|
1579 |
|
sl@0
|
1580 |
int main() {
|
sl@0
|
1581 |
__pthread_mutex_init()
|
sl@0
|
1582 |
; return 0; }
|
sl@0
|
1583 |
EOF
|
sl@0
|
1584 |
if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1585 |
rm -rf conftest*
|
sl@0
|
1586 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1587 |
else
|
sl@0
|
1588 |
echo "configure: failed program was:" >&5
|
sl@0
|
1589 |
cat conftest.$ac_ext >&5
|
sl@0
|
1590 |
rm -rf conftest*
|
sl@0
|
1591 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1592 |
fi
|
sl@0
|
1593 |
rm -f conftest*
|
sl@0
|
1594 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1595 |
|
sl@0
|
1596 |
fi
|
sl@0
|
1597 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1598 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1599 |
tcl_ok=yes
|
sl@0
|
1600 |
else
|
sl@0
|
1601 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1602 |
tcl_ok=no
|
sl@0
|
1603 |
fi
|
sl@0
|
1604 |
|
sl@0
|
1605 |
fi
|
sl@0
|
1606 |
|
sl@0
|
1607 |
if test "$tcl_ok" = "yes"; then
|
sl@0
|
1608 |
# The space is needed
|
sl@0
|
1609 |
THREADS_LIBS=" -lpthread"
|
sl@0
|
1610 |
else
|
sl@0
|
1611 |
echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6
|
sl@0
|
1612 |
echo "configure:1613: checking for pthread_mutex_init in -lpthreads" >&5
|
sl@0
|
1613 |
ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
|
sl@0
|
1614 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1615 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1616 |
else
|
sl@0
|
1617 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1618 |
LIBS="-lpthreads $LIBS"
|
sl@0
|
1619 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1620 |
#line 1621 "configure"
|
sl@0
|
1621 |
#include "confdefs.h"
|
sl@0
|
1622 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1623 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1624 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1625 |
char pthread_mutex_init();
|
sl@0
|
1626 |
|
sl@0
|
1627 |
int main() {
|
sl@0
|
1628 |
pthread_mutex_init()
|
sl@0
|
1629 |
; return 0; }
|
sl@0
|
1630 |
EOF
|
sl@0
|
1631 |
if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1632 |
rm -rf conftest*
|
sl@0
|
1633 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1634 |
else
|
sl@0
|
1635 |
echo "configure: failed program was:" >&5
|
sl@0
|
1636 |
cat conftest.$ac_ext >&5
|
sl@0
|
1637 |
rm -rf conftest*
|
sl@0
|
1638 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1639 |
fi
|
sl@0
|
1640 |
rm -f conftest*
|
sl@0
|
1641 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1642 |
|
sl@0
|
1643 |
fi
|
sl@0
|
1644 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1645 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1646 |
tcl_ok=yes
|
sl@0
|
1647 |
else
|
sl@0
|
1648 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1649 |
tcl_ok=no
|
sl@0
|
1650 |
fi
|
sl@0
|
1651 |
|
sl@0
|
1652 |
if test "$tcl_ok" = "yes"; then
|
sl@0
|
1653 |
# The space is needed
|
sl@0
|
1654 |
THREADS_LIBS=" -lpthreads"
|
sl@0
|
1655 |
else
|
sl@0
|
1656 |
echo $ac_n "checking for pthread_mutex_init in -lc""... $ac_c" 1>&6
|
sl@0
|
1657 |
echo "configure:1658: checking for pthread_mutex_init in -lc" >&5
|
sl@0
|
1658 |
ac_lib_var=`echo c'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
|
sl@0
|
1659 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1660 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1661 |
else
|
sl@0
|
1662 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1663 |
LIBS="-lc $LIBS"
|
sl@0
|
1664 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1665 |
#line 1666 "configure"
|
sl@0
|
1666 |
#include "confdefs.h"
|
sl@0
|
1667 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1668 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1669 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1670 |
char pthread_mutex_init();
|
sl@0
|
1671 |
|
sl@0
|
1672 |
int main() {
|
sl@0
|
1673 |
pthread_mutex_init()
|
sl@0
|
1674 |
; return 0; }
|
sl@0
|
1675 |
EOF
|
sl@0
|
1676 |
if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1677 |
rm -rf conftest*
|
sl@0
|
1678 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1679 |
else
|
sl@0
|
1680 |
echo "configure: failed program was:" >&5
|
sl@0
|
1681 |
cat conftest.$ac_ext >&5
|
sl@0
|
1682 |
rm -rf conftest*
|
sl@0
|
1683 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1684 |
fi
|
sl@0
|
1685 |
rm -f conftest*
|
sl@0
|
1686 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1687 |
|
sl@0
|
1688 |
fi
|
sl@0
|
1689 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1690 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1691 |
tcl_ok=yes
|
sl@0
|
1692 |
else
|
sl@0
|
1693 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1694 |
tcl_ok=no
|
sl@0
|
1695 |
fi
|
sl@0
|
1696 |
|
sl@0
|
1697 |
if test "$tcl_ok" = "no"; then
|
sl@0
|
1698 |
echo $ac_n "checking for pthread_mutex_init in -lc_r""... $ac_c" 1>&6
|
sl@0
|
1699 |
echo "configure:1700: checking for pthread_mutex_init in -lc_r" >&5
|
sl@0
|
1700 |
ac_lib_var=`echo c_r'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
|
sl@0
|
1701 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1702 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1703 |
else
|
sl@0
|
1704 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1705 |
LIBS="-lc_r $LIBS"
|
sl@0
|
1706 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1707 |
#line 1708 "configure"
|
sl@0
|
1708 |
#include "confdefs.h"
|
sl@0
|
1709 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1710 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1711 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1712 |
char pthread_mutex_init();
|
sl@0
|
1713 |
|
sl@0
|
1714 |
int main() {
|
sl@0
|
1715 |
pthread_mutex_init()
|
sl@0
|
1716 |
; return 0; }
|
sl@0
|
1717 |
EOF
|
sl@0
|
1718 |
if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1719 |
rm -rf conftest*
|
sl@0
|
1720 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1721 |
else
|
sl@0
|
1722 |
echo "configure: failed program was:" >&5
|
sl@0
|
1723 |
cat conftest.$ac_ext >&5
|
sl@0
|
1724 |
rm -rf conftest*
|
sl@0
|
1725 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1726 |
fi
|
sl@0
|
1727 |
rm -f conftest*
|
sl@0
|
1728 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1729 |
|
sl@0
|
1730 |
fi
|
sl@0
|
1731 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1732 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1733 |
tcl_ok=yes
|
sl@0
|
1734 |
else
|
sl@0
|
1735 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1736 |
tcl_ok=no
|
sl@0
|
1737 |
fi
|
sl@0
|
1738 |
|
sl@0
|
1739 |
if test "$tcl_ok" = "yes"; then
|
sl@0
|
1740 |
# The space is needed
|
sl@0
|
1741 |
THREADS_LIBS=" -pthread"
|
sl@0
|
1742 |
else
|
sl@0
|
1743 |
TCL_THREADS=0
|
sl@0
|
1744 |
echo "configure: warning: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." 1>&2
|
sl@0
|
1745 |
fi
|
sl@0
|
1746 |
fi
|
sl@0
|
1747 |
fi
|
sl@0
|
1748 |
fi
|
sl@0
|
1749 |
|
sl@0
|
1750 |
# Does the pthread-implementation provide
|
sl@0
|
1751 |
# 'pthread_attr_setstacksize' ?
|
sl@0
|
1752 |
|
sl@0
|
1753 |
ac_saved_libs=$LIBS
|
sl@0
|
1754 |
LIBS="$LIBS $THREADS_LIBS"
|
sl@0
|
1755 |
for ac_func in pthread_attr_setstacksize
|
sl@0
|
1756 |
do
|
sl@0
|
1757 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
1758 |
echo "configure:1759: checking for $ac_func" >&5
|
sl@0
|
1759 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
1760 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1761 |
else
|
sl@0
|
1762 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1763 |
#line 1764 "configure"
|
sl@0
|
1764 |
#include "confdefs.h"
|
sl@0
|
1765 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
1766 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
1767 |
#include <assert.h>
|
sl@0
|
1768 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1769 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1770 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1771 |
char $ac_func();
|
sl@0
|
1772 |
|
sl@0
|
1773 |
int main() {
|
sl@0
|
1774 |
|
sl@0
|
1775 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
1776 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
1777 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
1778 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
1779 |
choke me
|
sl@0
|
1780 |
#else
|
sl@0
|
1781 |
$ac_func();
|
sl@0
|
1782 |
#endif
|
sl@0
|
1783 |
|
sl@0
|
1784 |
; return 0; }
|
sl@0
|
1785 |
EOF
|
sl@0
|
1786 |
if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1787 |
rm -rf conftest*
|
sl@0
|
1788 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
1789 |
else
|
sl@0
|
1790 |
echo "configure: failed program was:" >&5
|
sl@0
|
1791 |
cat conftest.$ac_ext >&5
|
sl@0
|
1792 |
rm -rf conftest*
|
sl@0
|
1793 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
1794 |
fi
|
sl@0
|
1795 |
rm -f conftest*
|
sl@0
|
1796 |
fi
|
sl@0
|
1797 |
|
sl@0
|
1798 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
1799 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1800 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
1801 |
cat >> confdefs.h <<EOF
|
sl@0
|
1802 |
#define $ac_tr_func 1
|
sl@0
|
1803 |
EOF
|
sl@0
|
1804 |
|
sl@0
|
1805 |
else
|
sl@0
|
1806 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1807 |
fi
|
sl@0
|
1808 |
done
|
sl@0
|
1809 |
|
sl@0
|
1810 |
for ac_func in pthread_atfork
|
sl@0
|
1811 |
do
|
sl@0
|
1812 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
1813 |
echo "configure:1814: checking for $ac_func" >&5
|
sl@0
|
1814 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
1815 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1816 |
else
|
sl@0
|
1817 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1818 |
#line 1819 "configure"
|
sl@0
|
1819 |
#include "confdefs.h"
|
sl@0
|
1820 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
1821 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
1822 |
#include <assert.h>
|
sl@0
|
1823 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1824 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1825 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1826 |
char $ac_func();
|
sl@0
|
1827 |
|
sl@0
|
1828 |
int main() {
|
sl@0
|
1829 |
|
sl@0
|
1830 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
1831 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
1832 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
1833 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
1834 |
choke me
|
sl@0
|
1835 |
#else
|
sl@0
|
1836 |
$ac_func();
|
sl@0
|
1837 |
#endif
|
sl@0
|
1838 |
|
sl@0
|
1839 |
; return 0; }
|
sl@0
|
1840 |
EOF
|
sl@0
|
1841 |
if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1842 |
rm -rf conftest*
|
sl@0
|
1843 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
1844 |
else
|
sl@0
|
1845 |
echo "configure: failed program was:" >&5
|
sl@0
|
1846 |
cat conftest.$ac_ext >&5
|
sl@0
|
1847 |
rm -rf conftest*
|
sl@0
|
1848 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
1849 |
fi
|
sl@0
|
1850 |
rm -f conftest*
|
sl@0
|
1851 |
fi
|
sl@0
|
1852 |
|
sl@0
|
1853 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
1854 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1855 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
1856 |
cat >> confdefs.h <<EOF
|
sl@0
|
1857 |
#define $ac_tr_func 1
|
sl@0
|
1858 |
EOF
|
sl@0
|
1859 |
|
sl@0
|
1860 |
else
|
sl@0
|
1861 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1862 |
fi
|
sl@0
|
1863 |
done
|
sl@0
|
1864 |
|
sl@0
|
1865 |
LIBS=$ac_saved_libs
|
sl@0
|
1866 |
else
|
sl@0
|
1867 |
TCL_THREADS=0
|
sl@0
|
1868 |
fi
|
sl@0
|
1869 |
# Do checking message here to not mess up interleaved configure output
|
sl@0
|
1870 |
echo $ac_n "checking for building with threads""... $ac_c" 1>&6
|
sl@0
|
1871 |
echo "configure:1872: checking for building with threads" >&5
|
sl@0
|
1872 |
if test "${TCL_THREADS}" = 1; then
|
sl@0
|
1873 |
cat >> confdefs.h <<\EOF
|
sl@0
|
1874 |
#define TCL_THREADS 1
|
sl@0
|
1875 |
EOF
|
sl@0
|
1876 |
|
sl@0
|
1877 |
if test "${tcl_threaded_core}" = 1; then
|
sl@0
|
1878 |
echo "$ac_t""yes (threaded core)" 1>&6
|
sl@0
|
1879 |
else
|
sl@0
|
1880 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1881 |
fi
|
sl@0
|
1882 |
else
|
sl@0
|
1883 |
echo "$ac_t""no (default)" 1>&6
|
sl@0
|
1884 |
fi
|
sl@0
|
1885 |
|
sl@0
|
1886 |
|
sl@0
|
1887 |
|
sl@0
|
1888 |
|
sl@0
|
1889 |
#--------------------------------------------------------------------
|
sl@0
|
1890 |
# Look for libraries that we will need when compiling the Tcl shell
|
sl@0
|
1891 |
#--------------------------------------------------------------------
|
sl@0
|
1892 |
|
sl@0
|
1893 |
|
sl@0
|
1894 |
#--------------------------------------------------------------------
|
sl@0
|
1895 |
# On a few very rare systems, all of the libm.a stuff is
|
sl@0
|
1896 |
# already in libc.a. Set compiler flags accordingly.
|
sl@0
|
1897 |
# Also, Linux requires the "ieee" library for math to work
|
sl@0
|
1898 |
# right (and it must appear before "-lm").
|
sl@0
|
1899 |
#--------------------------------------------------------------------
|
sl@0
|
1900 |
|
sl@0
|
1901 |
echo $ac_n "checking for sin""... $ac_c" 1>&6
|
sl@0
|
1902 |
echo "configure:1903: checking for sin" >&5
|
sl@0
|
1903 |
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
|
sl@0
|
1904 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1905 |
else
|
sl@0
|
1906 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1907 |
#line 1908 "configure"
|
sl@0
|
1908 |
#include "confdefs.h"
|
sl@0
|
1909 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
1910 |
which can conflict with char sin(); below. */
|
sl@0
|
1911 |
#include <assert.h>
|
sl@0
|
1912 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
1913 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
1914 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
1915 |
char sin();
|
sl@0
|
1916 |
|
sl@0
|
1917 |
int main() {
|
sl@0
|
1918 |
|
sl@0
|
1919 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
1920 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
1921 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
1922 |
#if defined (__stub_sin) || defined (__stub___sin)
|
sl@0
|
1923 |
choke me
|
sl@0
|
1924 |
#else
|
sl@0
|
1925 |
sin();
|
sl@0
|
1926 |
#endif
|
sl@0
|
1927 |
|
sl@0
|
1928 |
; return 0; }
|
sl@0
|
1929 |
EOF
|
sl@0
|
1930 |
if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1931 |
rm -rf conftest*
|
sl@0
|
1932 |
eval "ac_cv_func_sin=yes"
|
sl@0
|
1933 |
else
|
sl@0
|
1934 |
echo "configure: failed program was:" >&5
|
sl@0
|
1935 |
cat conftest.$ac_ext >&5
|
sl@0
|
1936 |
rm -rf conftest*
|
sl@0
|
1937 |
eval "ac_cv_func_sin=no"
|
sl@0
|
1938 |
fi
|
sl@0
|
1939 |
rm -f conftest*
|
sl@0
|
1940 |
fi
|
sl@0
|
1941 |
|
sl@0
|
1942 |
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
sl@0
|
1943 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1944 |
MATH_LIBS=""
|
sl@0
|
1945 |
else
|
sl@0
|
1946 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1947 |
MATH_LIBS="-lm"
|
sl@0
|
1948 |
fi
|
sl@0
|
1949 |
|
sl@0
|
1950 |
echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
|
sl@0
|
1951 |
echo "configure:1952: checking for main in -lieee" >&5
|
sl@0
|
1952 |
ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
|
sl@0
|
1953 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1954 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1955 |
else
|
sl@0
|
1956 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1957 |
LIBS="-lieee $LIBS"
|
sl@0
|
1958 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
1959 |
#line 1960 "configure"
|
sl@0
|
1960 |
#include "confdefs.h"
|
sl@0
|
1961 |
|
sl@0
|
1962 |
int main() {
|
sl@0
|
1963 |
main()
|
sl@0
|
1964 |
; return 0; }
|
sl@0
|
1965 |
EOF
|
sl@0
|
1966 |
if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
1967 |
rm -rf conftest*
|
sl@0
|
1968 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
1969 |
else
|
sl@0
|
1970 |
echo "configure: failed program was:" >&5
|
sl@0
|
1971 |
cat conftest.$ac_ext >&5
|
sl@0
|
1972 |
rm -rf conftest*
|
sl@0
|
1973 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
1974 |
fi
|
sl@0
|
1975 |
rm -f conftest*
|
sl@0
|
1976 |
LIBS="$ac_save_LIBS"
|
sl@0
|
1977 |
|
sl@0
|
1978 |
fi
|
sl@0
|
1979 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
1980 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
1981 |
MATH_LIBS="-lieee $MATH_LIBS"
|
sl@0
|
1982 |
else
|
sl@0
|
1983 |
echo "$ac_t""no" 1>&6
|
sl@0
|
1984 |
fi
|
sl@0
|
1985 |
|
sl@0
|
1986 |
|
sl@0
|
1987 |
#--------------------------------------------------------------------
|
sl@0
|
1988 |
# Interactive UNIX requires -linet instead of -lsocket, plus it
|
sl@0
|
1989 |
# needs net/errno.h to define the socket-related error codes.
|
sl@0
|
1990 |
#--------------------------------------------------------------------
|
sl@0
|
1991 |
|
sl@0
|
1992 |
echo $ac_n "checking for main in -linet""... $ac_c" 1>&6
|
sl@0
|
1993 |
echo "configure:1994: checking for main in -linet" >&5
|
sl@0
|
1994 |
ac_lib_var=`echo inet'_'main | sed 'y%./+-%__p_%'`
|
sl@0
|
1995 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
1996 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
1997 |
else
|
sl@0
|
1998 |
ac_save_LIBS="$LIBS"
|
sl@0
|
1999 |
LIBS="-linet $LIBS"
|
sl@0
|
2000 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2001 |
#line 2002 "configure"
|
sl@0
|
2002 |
#include "confdefs.h"
|
sl@0
|
2003 |
|
sl@0
|
2004 |
int main() {
|
sl@0
|
2005 |
main()
|
sl@0
|
2006 |
; return 0; }
|
sl@0
|
2007 |
EOF
|
sl@0
|
2008 |
if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2009 |
rm -rf conftest*
|
sl@0
|
2010 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2011 |
else
|
sl@0
|
2012 |
echo "configure: failed program was:" >&5
|
sl@0
|
2013 |
cat conftest.$ac_ext >&5
|
sl@0
|
2014 |
rm -rf conftest*
|
sl@0
|
2015 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2016 |
fi
|
sl@0
|
2017 |
rm -f conftest*
|
sl@0
|
2018 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2019 |
|
sl@0
|
2020 |
fi
|
sl@0
|
2021 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2022 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2023 |
LIBS="$LIBS -linet"
|
sl@0
|
2024 |
else
|
sl@0
|
2025 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2026 |
fi
|
sl@0
|
2027 |
|
sl@0
|
2028 |
ac_safe=`echo "net/errno.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
2029 |
echo $ac_n "checking for net/errno.h""... $ac_c" 1>&6
|
sl@0
|
2030 |
echo "configure:2031: checking for net/errno.h" >&5
|
sl@0
|
2031 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
2032 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2033 |
else
|
sl@0
|
2034 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2035 |
#line 2036 "configure"
|
sl@0
|
2036 |
#include "confdefs.h"
|
sl@0
|
2037 |
#include <net/errno.h>
|
sl@0
|
2038 |
EOF
|
sl@0
|
2039 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
2040 |
{ (eval echo configure:2041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
2041 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
2042 |
if test -z "$ac_err"; then
|
sl@0
|
2043 |
rm -rf conftest*
|
sl@0
|
2044 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
2045 |
else
|
sl@0
|
2046 |
echo "$ac_err" >&5
|
sl@0
|
2047 |
echo "configure: failed program was:" >&5
|
sl@0
|
2048 |
cat conftest.$ac_ext >&5
|
sl@0
|
2049 |
rm -rf conftest*
|
sl@0
|
2050 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
2051 |
fi
|
sl@0
|
2052 |
rm -f conftest*
|
sl@0
|
2053 |
fi
|
sl@0
|
2054 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
2055 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2056 |
cat >> confdefs.h <<\EOF
|
sl@0
|
2057 |
#define HAVE_NET_ERRNO_H 1
|
sl@0
|
2058 |
EOF
|
sl@0
|
2059 |
|
sl@0
|
2060 |
else
|
sl@0
|
2061 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2062 |
fi
|
sl@0
|
2063 |
|
sl@0
|
2064 |
|
sl@0
|
2065 |
#--------------------------------------------------------------------
|
sl@0
|
2066 |
# Check for the existence of the -lsocket and -lnsl libraries.
|
sl@0
|
2067 |
# The order here is important, so that they end up in the right
|
sl@0
|
2068 |
# order in the command line generated by make. Here are some
|
sl@0
|
2069 |
# special considerations:
|
sl@0
|
2070 |
# 1. Use "connect" and "accept" to check for -lsocket, and
|
sl@0
|
2071 |
# "gethostbyname" to check for -lnsl.
|
sl@0
|
2072 |
# 2. Use each function name only once: can't redo a check because
|
sl@0
|
2073 |
# autoconf caches the results of the last check and won't redo it.
|
sl@0
|
2074 |
# 3. Use -lnsl and -lsocket only if they supply procedures that
|
sl@0
|
2075 |
# aren't already present in the normal libraries. This is because
|
sl@0
|
2076 |
# IRIX 5.2 has libraries, but they aren't needed and they're
|
sl@0
|
2077 |
# bogus: they goof up name resolution if used.
|
sl@0
|
2078 |
# 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
|
sl@0
|
2079 |
# To get around this problem, check for both libraries together
|
sl@0
|
2080 |
# if -lsocket doesn't work by itself.
|
sl@0
|
2081 |
#--------------------------------------------------------------------
|
sl@0
|
2082 |
|
sl@0
|
2083 |
tcl_checkBoth=0
|
sl@0
|
2084 |
echo $ac_n "checking for connect""... $ac_c" 1>&6
|
sl@0
|
2085 |
echo "configure:2086: checking for connect" >&5
|
sl@0
|
2086 |
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
sl@0
|
2087 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2088 |
else
|
sl@0
|
2089 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2090 |
#line 2091 "configure"
|
sl@0
|
2091 |
#include "confdefs.h"
|
sl@0
|
2092 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
2093 |
which can conflict with char connect(); below. */
|
sl@0
|
2094 |
#include <assert.h>
|
sl@0
|
2095 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2096 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2097 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2098 |
char connect();
|
sl@0
|
2099 |
|
sl@0
|
2100 |
int main() {
|
sl@0
|
2101 |
|
sl@0
|
2102 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
2103 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
2104 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
2105 |
#if defined (__stub_connect) || defined (__stub___connect)
|
sl@0
|
2106 |
choke me
|
sl@0
|
2107 |
#else
|
sl@0
|
2108 |
connect();
|
sl@0
|
2109 |
#endif
|
sl@0
|
2110 |
|
sl@0
|
2111 |
; return 0; }
|
sl@0
|
2112 |
EOF
|
sl@0
|
2113 |
if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2114 |
rm -rf conftest*
|
sl@0
|
2115 |
eval "ac_cv_func_connect=yes"
|
sl@0
|
2116 |
else
|
sl@0
|
2117 |
echo "configure: failed program was:" >&5
|
sl@0
|
2118 |
cat conftest.$ac_ext >&5
|
sl@0
|
2119 |
rm -rf conftest*
|
sl@0
|
2120 |
eval "ac_cv_func_connect=no"
|
sl@0
|
2121 |
fi
|
sl@0
|
2122 |
rm -f conftest*
|
sl@0
|
2123 |
fi
|
sl@0
|
2124 |
|
sl@0
|
2125 |
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
sl@0
|
2126 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2127 |
tcl_checkSocket=0
|
sl@0
|
2128 |
else
|
sl@0
|
2129 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2130 |
tcl_checkSocket=1
|
sl@0
|
2131 |
fi
|
sl@0
|
2132 |
|
sl@0
|
2133 |
if test "$tcl_checkSocket" = 1; then
|
sl@0
|
2134 |
echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
|
sl@0
|
2135 |
echo "configure:2136: checking for setsockopt" >&5
|
sl@0
|
2136 |
if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
|
sl@0
|
2137 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2138 |
else
|
sl@0
|
2139 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2140 |
#line 2141 "configure"
|
sl@0
|
2141 |
#include "confdefs.h"
|
sl@0
|
2142 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
2143 |
which can conflict with char setsockopt(); below. */
|
sl@0
|
2144 |
#include <assert.h>
|
sl@0
|
2145 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2146 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2147 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2148 |
char setsockopt();
|
sl@0
|
2149 |
|
sl@0
|
2150 |
int main() {
|
sl@0
|
2151 |
|
sl@0
|
2152 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
2153 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
2154 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
2155 |
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
|
sl@0
|
2156 |
choke me
|
sl@0
|
2157 |
#else
|
sl@0
|
2158 |
setsockopt();
|
sl@0
|
2159 |
#endif
|
sl@0
|
2160 |
|
sl@0
|
2161 |
; return 0; }
|
sl@0
|
2162 |
EOF
|
sl@0
|
2163 |
if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2164 |
rm -rf conftest*
|
sl@0
|
2165 |
eval "ac_cv_func_setsockopt=yes"
|
sl@0
|
2166 |
else
|
sl@0
|
2167 |
echo "configure: failed program was:" >&5
|
sl@0
|
2168 |
cat conftest.$ac_ext >&5
|
sl@0
|
2169 |
rm -rf conftest*
|
sl@0
|
2170 |
eval "ac_cv_func_setsockopt=no"
|
sl@0
|
2171 |
fi
|
sl@0
|
2172 |
rm -f conftest*
|
sl@0
|
2173 |
fi
|
sl@0
|
2174 |
|
sl@0
|
2175 |
if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
|
sl@0
|
2176 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2177 |
:
|
sl@0
|
2178 |
else
|
sl@0
|
2179 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2180 |
echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
|
sl@0
|
2181 |
echo "configure:2182: checking for setsockopt in -lsocket" >&5
|
sl@0
|
2182 |
ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
|
sl@0
|
2183 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2184 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2185 |
else
|
sl@0
|
2186 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2187 |
LIBS="-lsocket $LIBS"
|
sl@0
|
2188 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2189 |
#line 2190 "configure"
|
sl@0
|
2190 |
#include "confdefs.h"
|
sl@0
|
2191 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2192 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2193 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2194 |
char setsockopt();
|
sl@0
|
2195 |
|
sl@0
|
2196 |
int main() {
|
sl@0
|
2197 |
setsockopt()
|
sl@0
|
2198 |
; return 0; }
|
sl@0
|
2199 |
EOF
|
sl@0
|
2200 |
if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2201 |
rm -rf conftest*
|
sl@0
|
2202 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2203 |
else
|
sl@0
|
2204 |
echo "configure: failed program was:" >&5
|
sl@0
|
2205 |
cat conftest.$ac_ext >&5
|
sl@0
|
2206 |
rm -rf conftest*
|
sl@0
|
2207 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2208 |
fi
|
sl@0
|
2209 |
rm -f conftest*
|
sl@0
|
2210 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2211 |
|
sl@0
|
2212 |
fi
|
sl@0
|
2213 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2214 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2215 |
LIBS="$LIBS -lsocket"
|
sl@0
|
2216 |
else
|
sl@0
|
2217 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2218 |
tcl_checkBoth=1
|
sl@0
|
2219 |
fi
|
sl@0
|
2220 |
|
sl@0
|
2221 |
fi
|
sl@0
|
2222 |
|
sl@0
|
2223 |
fi
|
sl@0
|
2224 |
if test "$tcl_checkBoth" = 1; then
|
sl@0
|
2225 |
tk_oldLibs=$LIBS
|
sl@0
|
2226 |
LIBS="$LIBS -lsocket -lnsl"
|
sl@0
|
2227 |
echo $ac_n "checking for accept""... $ac_c" 1>&6
|
sl@0
|
2228 |
echo "configure:2229: checking for accept" >&5
|
sl@0
|
2229 |
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
|
sl@0
|
2230 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2231 |
else
|
sl@0
|
2232 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2233 |
#line 2234 "configure"
|
sl@0
|
2234 |
#include "confdefs.h"
|
sl@0
|
2235 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
2236 |
which can conflict with char accept(); below. */
|
sl@0
|
2237 |
#include <assert.h>
|
sl@0
|
2238 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2239 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2240 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2241 |
char accept();
|
sl@0
|
2242 |
|
sl@0
|
2243 |
int main() {
|
sl@0
|
2244 |
|
sl@0
|
2245 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
2246 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
2247 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
2248 |
#if defined (__stub_accept) || defined (__stub___accept)
|
sl@0
|
2249 |
choke me
|
sl@0
|
2250 |
#else
|
sl@0
|
2251 |
accept();
|
sl@0
|
2252 |
#endif
|
sl@0
|
2253 |
|
sl@0
|
2254 |
; return 0; }
|
sl@0
|
2255 |
EOF
|
sl@0
|
2256 |
if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2257 |
rm -rf conftest*
|
sl@0
|
2258 |
eval "ac_cv_func_accept=yes"
|
sl@0
|
2259 |
else
|
sl@0
|
2260 |
echo "configure: failed program was:" >&5
|
sl@0
|
2261 |
cat conftest.$ac_ext >&5
|
sl@0
|
2262 |
rm -rf conftest*
|
sl@0
|
2263 |
eval "ac_cv_func_accept=no"
|
sl@0
|
2264 |
fi
|
sl@0
|
2265 |
rm -f conftest*
|
sl@0
|
2266 |
fi
|
sl@0
|
2267 |
|
sl@0
|
2268 |
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
|
sl@0
|
2269 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2270 |
tcl_checkNsl=0
|
sl@0
|
2271 |
else
|
sl@0
|
2272 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2273 |
LIBS=$tk_oldLibs
|
sl@0
|
2274 |
fi
|
sl@0
|
2275 |
|
sl@0
|
2276 |
fi
|
sl@0
|
2277 |
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
sl@0
|
2278 |
echo "configure:2279: checking for gethostbyname" >&5
|
sl@0
|
2279 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
sl@0
|
2280 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2281 |
else
|
sl@0
|
2282 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2283 |
#line 2284 "configure"
|
sl@0
|
2284 |
#include "confdefs.h"
|
sl@0
|
2285 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
2286 |
which can conflict with char gethostbyname(); below. */
|
sl@0
|
2287 |
#include <assert.h>
|
sl@0
|
2288 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2289 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2290 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2291 |
char gethostbyname();
|
sl@0
|
2292 |
|
sl@0
|
2293 |
int main() {
|
sl@0
|
2294 |
|
sl@0
|
2295 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
2296 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
2297 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
2298 |
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
sl@0
|
2299 |
choke me
|
sl@0
|
2300 |
#else
|
sl@0
|
2301 |
gethostbyname();
|
sl@0
|
2302 |
#endif
|
sl@0
|
2303 |
|
sl@0
|
2304 |
; return 0; }
|
sl@0
|
2305 |
EOF
|
sl@0
|
2306 |
if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2307 |
rm -rf conftest*
|
sl@0
|
2308 |
eval "ac_cv_func_gethostbyname=yes"
|
sl@0
|
2309 |
else
|
sl@0
|
2310 |
echo "configure: failed program was:" >&5
|
sl@0
|
2311 |
cat conftest.$ac_ext >&5
|
sl@0
|
2312 |
rm -rf conftest*
|
sl@0
|
2313 |
eval "ac_cv_func_gethostbyname=no"
|
sl@0
|
2314 |
fi
|
sl@0
|
2315 |
rm -f conftest*
|
sl@0
|
2316 |
fi
|
sl@0
|
2317 |
|
sl@0
|
2318 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
sl@0
|
2319 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2320 |
:
|
sl@0
|
2321 |
else
|
sl@0
|
2322 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2323 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
sl@0
|
2324 |
echo "configure:2325: checking for gethostbyname in -lnsl" >&5
|
sl@0
|
2325 |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
sl@0
|
2326 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2327 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2328 |
else
|
sl@0
|
2329 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2330 |
LIBS="-lnsl $LIBS"
|
sl@0
|
2331 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2332 |
#line 2333 "configure"
|
sl@0
|
2333 |
#include "confdefs.h"
|
sl@0
|
2334 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2335 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2336 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2337 |
char gethostbyname();
|
sl@0
|
2338 |
|
sl@0
|
2339 |
int main() {
|
sl@0
|
2340 |
gethostbyname()
|
sl@0
|
2341 |
; return 0; }
|
sl@0
|
2342 |
EOF
|
sl@0
|
2343 |
if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2344 |
rm -rf conftest*
|
sl@0
|
2345 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2346 |
else
|
sl@0
|
2347 |
echo "configure: failed program was:" >&5
|
sl@0
|
2348 |
cat conftest.$ac_ext >&5
|
sl@0
|
2349 |
rm -rf conftest*
|
sl@0
|
2350 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2351 |
fi
|
sl@0
|
2352 |
rm -f conftest*
|
sl@0
|
2353 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2354 |
|
sl@0
|
2355 |
fi
|
sl@0
|
2356 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2357 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2358 |
LIBS="$LIBS -lnsl"
|
sl@0
|
2359 |
else
|
sl@0
|
2360 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2361 |
fi
|
sl@0
|
2362 |
|
sl@0
|
2363 |
fi
|
sl@0
|
2364 |
|
sl@0
|
2365 |
|
sl@0
|
2366 |
# Don't perform the eval of the libraries here because DL_LIBS
|
sl@0
|
2367 |
# won't be set until we call SC_CONFIG_CFLAGS
|
sl@0
|
2368 |
|
sl@0
|
2369 |
TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
|
sl@0
|
2370 |
|
sl@0
|
2371 |
|
sl@0
|
2372 |
|
sl@0
|
2373 |
|
sl@0
|
2374 |
# Add the threads support libraries
|
sl@0
|
2375 |
LIBS="$LIBS$THREADS_LIBS"
|
sl@0
|
2376 |
|
sl@0
|
2377 |
|
sl@0
|
2378 |
echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
|
sl@0
|
2379 |
echo "configure:2380: checking how to build libraries" >&5
|
sl@0
|
2380 |
# Check whether --enable-shared or --disable-shared was given.
|
sl@0
|
2381 |
if test "${enable_shared+set}" = set; then
|
sl@0
|
2382 |
enableval="$enable_shared"
|
sl@0
|
2383 |
tcl_ok=$enableval
|
sl@0
|
2384 |
else
|
sl@0
|
2385 |
tcl_ok=yes
|
sl@0
|
2386 |
fi
|
sl@0
|
2387 |
|
sl@0
|
2388 |
|
sl@0
|
2389 |
if test "${enable_shared+set}" = set; then
|
sl@0
|
2390 |
enableval="$enable_shared"
|
sl@0
|
2391 |
tcl_ok=$enableval
|
sl@0
|
2392 |
else
|
sl@0
|
2393 |
tcl_ok=yes
|
sl@0
|
2394 |
fi
|
sl@0
|
2395 |
|
sl@0
|
2396 |
if test "$tcl_ok" = "yes" ; then
|
sl@0
|
2397 |
echo "$ac_t""shared" 1>&6
|
sl@0
|
2398 |
SHARED_BUILD=1
|
sl@0
|
2399 |
else
|
sl@0
|
2400 |
echo "$ac_t""static" 1>&6
|
sl@0
|
2401 |
SHARED_BUILD=0
|
sl@0
|
2402 |
cat >> confdefs.h <<\EOF
|
sl@0
|
2403 |
#define STATIC_BUILD 1
|
sl@0
|
2404 |
EOF
|
sl@0
|
2405 |
|
sl@0
|
2406 |
fi
|
sl@0
|
2407 |
|
sl@0
|
2408 |
|
sl@0
|
2409 |
#--------------------------------------------------------------------
|
sl@0
|
2410 |
# The statements below define a collection of compile flags. This
|
sl@0
|
2411 |
# macro depends on the value of SHARED_BUILD, and should be called
|
sl@0
|
2412 |
# after SC_ENABLE_SHARED checks the configure switches.
|
sl@0
|
2413 |
#--------------------------------------------------------------------
|
sl@0
|
2414 |
|
sl@0
|
2415 |
# Extract the first word of "ranlib", so it can be a program name with args.
|
sl@0
|
2416 |
set dummy ranlib; ac_word=$2
|
sl@0
|
2417 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
sl@0
|
2418 |
echo "configure:2419: checking for $ac_word" >&5
|
sl@0
|
2419 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
sl@0
|
2420 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2421 |
else
|
sl@0
|
2422 |
if test -n "$RANLIB"; then
|
sl@0
|
2423 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
sl@0
|
2424 |
else
|
sl@0
|
2425 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
sl@0
|
2426 |
ac_dummy="$PATH"
|
sl@0
|
2427 |
for ac_dir in $ac_dummy; do
|
sl@0
|
2428 |
test -z "$ac_dir" && ac_dir=.
|
sl@0
|
2429 |
if test -f $ac_dir/$ac_word; then
|
sl@0
|
2430 |
ac_cv_prog_RANLIB="ranlib"
|
sl@0
|
2431 |
break
|
sl@0
|
2432 |
fi
|
sl@0
|
2433 |
done
|
sl@0
|
2434 |
IFS="$ac_save_ifs"
|
sl@0
|
2435 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
sl@0
|
2436 |
fi
|
sl@0
|
2437 |
fi
|
sl@0
|
2438 |
RANLIB="$ac_cv_prog_RANLIB"
|
sl@0
|
2439 |
if test -n "$RANLIB"; then
|
sl@0
|
2440 |
echo "$ac_t""$RANLIB" 1>&6
|
sl@0
|
2441 |
else
|
sl@0
|
2442 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2443 |
fi
|
sl@0
|
2444 |
|
sl@0
|
2445 |
|
sl@0
|
2446 |
|
sl@0
|
2447 |
# Step 0.a: Enable 64 bit support?
|
sl@0
|
2448 |
|
sl@0
|
2449 |
echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
|
sl@0
|
2450 |
echo "configure:2451: checking if 64bit support is requested" >&5
|
sl@0
|
2451 |
# Check whether --enable-64bit or --disable-64bit was given.
|
sl@0
|
2452 |
if test "${enable_64bit+set}" = set; then
|
sl@0
|
2453 |
enableval="$enable_64bit"
|
sl@0
|
2454 |
do64bit=$enableval
|
sl@0
|
2455 |
else
|
sl@0
|
2456 |
do64bit=no
|
sl@0
|
2457 |
fi
|
sl@0
|
2458 |
|
sl@0
|
2459 |
echo "$ac_t""$do64bit" 1>&6
|
sl@0
|
2460 |
|
sl@0
|
2461 |
# Step 0.b: Enable Solaris 64 bit VIS support?
|
sl@0
|
2462 |
|
sl@0
|
2463 |
echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6
|
sl@0
|
2464 |
echo "configure:2465: checking if 64bit Sparc VIS support is requested" >&5
|
sl@0
|
2465 |
# Check whether --enable-64bit-vis or --disable-64bit-vis was given.
|
sl@0
|
2466 |
if test "${enable_64bit_vis+set}" = set; then
|
sl@0
|
2467 |
enableval="$enable_64bit_vis"
|
sl@0
|
2468 |
do64bitVIS=$enableval
|
sl@0
|
2469 |
else
|
sl@0
|
2470 |
do64bitVIS=no
|
sl@0
|
2471 |
fi
|
sl@0
|
2472 |
|
sl@0
|
2473 |
echo "$ac_t""$do64bitVIS" 1>&6
|
sl@0
|
2474 |
|
sl@0
|
2475 |
if test "$do64bitVIS" = "yes"; then
|
sl@0
|
2476 |
# Force 64bit on with VIS
|
sl@0
|
2477 |
do64bit=yes
|
sl@0
|
2478 |
fi
|
sl@0
|
2479 |
|
sl@0
|
2480 |
# Step 1: set the variable "system" to hold the name and version number
|
sl@0
|
2481 |
# for the system.
|
sl@0
|
2482 |
|
sl@0
|
2483 |
|
sl@0
|
2484 |
echo $ac_n "checking system version""... $ac_c" 1>&6
|
sl@0
|
2485 |
echo "configure:2486: checking system version" >&5
|
sl@0
|
2486 |
if eval "test \"`echo '$''{'tcl_cv_sys_version'+set}'`\" = set"; then
|
sl@0
|
2487 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2488 |
else
|
sl@0
|
2489 |
|
sl@0
|
2490 |
if test -f /usr/lib/NextStep/software_version; then
|
sl@0
|
2491 |
tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
|
sl@0
|
2492 |
else
|
sl@0
|
2493 |
tcl_cv_sys_version=`uname -s`-`uname -r`
|
sl@0
|
2494 |
if test "$?" -ne 0 ; then
|
sl@0
|
2495 |
echo "configure: warning: can't find uname command" 1>&2
|
sl@0
|
2496 |
tcl_cv_sys_version=unknown
|
sl@0
|
2497 |
else
|
sl@0
|
2498 |
# Special check for weird MP-RAS system (uname returns weird
|
sl@0
|
2499 |
# results, and the version is kept in special file).
|
sl@0
|
2500 |
|
sl@0
|
2501 |
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
sl@0
|
2502 |
tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
|
sl@0
|
2503 |
fi
|
sl@0
|
2504 |
if test "`uname -s`" = "AIX" ; then
|
sl@0
|
2505 |
tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
|
sl@0
|
2506 |
fi
|
sl@0
|
2507 |
fi
|
sl@0
|
2508 |
fi
|
sl@0
|
2509 |
|
sl@0
|
2510 |
fi
|
sl@0
|
2511 |
|
sl@0
|
2512 |
echo "$ac_t""$tcl_cv_sys_version" 1>&6
|
sl@0
|
2513 |
system=$tcl_cv_sys_version
|
sl@0
|
2514 |
|
sl@0
|
2515 |
|
sl@0
|
2516 |
# Step 2: check for existence of -ldl library. This is needed because
|
sl@0
|
2517 |
# Linux can use either -ldl or -ldld for dynamic loading.
|
sl@0
|
2518 |
|
sl@0
|
2519 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
sl@0
|
2520 |
echo "configure:2521: checking for dlopen in -ldl" >&5
|
sl@0
|
2521 |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
sl@0
|
2522 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2523 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2524 |
else
|
sl@0
|
2525 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2526 |
LIBS="-ldl $LIBS"
|
sl@0
|
2527 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2528 |
#line 2529 "configure"
|
sl@0
|
2529 |
#include "confdefs.h"
|
sl@0
|
2530 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2531 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2532 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2533 |
char dlopen();
|
sl@0
|
2534 |
|
sl@0
|
2535 |
int main() {
|
sl@0
|
2536 |
dlopen()
|
sl@0
|
2537 |
; return 0; }
|
sl@0
|
2538 |
EOF
|
sl@0
|
2539 |
if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2540 |
rm -rf conftest*
|
sl@0
|
2541 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2542 |
else
|
sl@0
|
2543 |
echo "configure: failed program was:" >&5
|
sl@0
|
2544 |
cat conftest.$ac_ext >&5
|
sl@0
|
2545 |
rm -rf conftest*
|
sl@0
|
2546 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2547 |
fi
|
sl@0
|
2548 |
rm -f conftest*
|
sl@0
|
2549 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2550 |
|
sl@0
|
2551 |
fi
|
sl@0
|
2552 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2553 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2554 |
have_dl=yes
|
sl@0
|
2555 |
else
|
sl@0
|
2556 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2557 |
have_dl=no
|
sl@0
|
2558 |
fi
|
sl@0
|
2559 |
|
sl@0
|
2560 |
|
sl@0
|
2561 |
# Require ranlib early so we can override it in special cases below.
|
sl@0
|
2562 |
|
sl@0
|
2563 |
|
sl@0
|
2564 |
|
sl@0
|
2565 |
# Step 3: set configuration options based on system name and version.
|
sl@0
|
2566 |
|
sl@0
|
2567 |
do64bit_ok=no
|
sl@0
|
2568 |
LDFLAGS_ORIG="$LDFLAGS"
|
sl@0
|
2569 |
TCL_EXPORT_FILE_SUFFIX=""
|
sl@0
|
2570 |
UNSHARED_LIB_SUFFIX=""
|
sl@0
|
2571 |
TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
|
sl@0
|
2572 |
ECHO_VERSION='`echo ${VERSION}`'
|
sl@0
|
2573 |
TCL_LIB_VERSIONS_OK=ok
|
sl@0
|
2574 |
CFLAGS_DEBUG=-g
|
sl@0
|
2575 |
CFLAGS_OPTIMIZE=-O
|
sl@0
|
2576 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2577 |
CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
|
sl@0
|
2578 |
else
|
sl@0
|
2579 |
CFLAGS_WARNING=""
|
sl@0
|
2580 |
fi
|
sl@0
|
2581 |
TCL_NEEDS_EXP_FILE=0
|
sl@0
|
2582 |
TCL_BUILD_EXP_FILE=""
|
sl@0
|
2583 |
TCL_EXP_FILE=""
|
sl@0
|
2584 |
# Extract the first word of "ar", so it can be a program name with args.
|
sl@0
|
2585 |
set dummy ar; ac_word=$2
|
sl@0
|
2586 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
sl@0
|
2587 |
echo "configure:2588: checking for $ac_word" >&5
|
sl@0
|
2588 |
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
sl@0
|
2589 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2590 |
else
|
sl@0
|
2591 |
if test -n "$AR"; then
|
sl@0
|
2592 |
ac_cv_prog_AR="$AR" # Let the user override the test.
|
sl@0
|
2593 |
else
|
sl@0
|
2594 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
sl@0
|
2595 |
ac_dummy="$PATH"
|
sl@0
|
2596 |
for ac_dir in $ac_dummy; do
|
sl@0
|
2597 |
test -z "$ac_dir" && ac_dir=.
|
sl@0
|
2598 |
if test -f $ac_dir/$ac_word; then
|
sl@0
|
2599 |
ac_cv_prog_AR="ar"
|
sl@0
|
2600 |
break
|
sl@0
|
2601 |
fi
|
sl@0
|
2602 |
done
|
sl@0
|
2603 |
IFS="$ac_save_ifs"
|
sl@0
|
2604 |
fi
|
sl@0
|
2605 |
fi
|
sl@0
|
2606 |
AR="$ac_cv_prog_AR"
|
sl@0
|
2607 |
if test -n "$AR"; then
|
sl@0
|
2608 |
echo "$ac_t""$AR" 1>&6
|
sl@0
|
2609 |
else
|
sl@0
|
2610 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2611 |
fi
|
sl@0
|
2612 |
|
sl@0
|
2613 |
if test "${AR}" = "" ; then
|
sl@0
|
2614 |
{ echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; }
|
sl@0
|
2615 |
fi
|
sl@0
|
2616 |
STLIB_LD='${AR} cr'
|
sl@0
|
2617 |
LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
|
sl@0
|
2618 |
PLAT_OBJS=""
|
sl@0
|
2619 |
PLAT_SRCS=""
|
sl@0
|
2620 |
case $system in
|
sl@0
|
2621 |
AIX-*)
|
sl@0
|
2622 |
if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
|
sl@0
|
2623 |
# AIX requires the _r compiler when gcc isn't being used
|
sl@0
|
2624 |
case "${CC}" in
|
sl@0
|
2625 |
*_r)
|
sl@0
|
2626 |
# ok ...
|
sl@0
|
2627 |
;;
|
sl@0
|
2628 |
*)
|
sl@0
|
2629 |
CC=${CC}_r
|
sl@0
|
2630 |
;;
|
sl@0
|
2631 |
esac
|
sl@0
|
2632 |
echo "$ac_t""Using $CC for compiling with threads" 1>&6
|
sl@0
|
2633 |
fi
|
sl@0
|
2634 |
LIBS="$LIBS -lc"
|
sl@0
|
2635 |
SHLIB_CFLAGS=""
|
sl@0
|
2636 |
# Note: need the LIBS below, otherwise Tk won't find Tcl's
|
sl@0
|
2637 |
# symbols when dynamically loaded into tclsh.
|
sl@0
|
2638 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2639 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2640 |
|
sl@0
|
2641 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
2642 |
LD_LIBRARY_PATH_VAR="LIBPATH"
|
sl@0
|
2643 |
|
sl@0
|
2644 |
# Check to enable 64-bit flags for compiler/linker on AIX 4+
|
sl@0
|
2645 |
if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
|
sl@0
|
2646 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2647 |
echo "configure: warning: 64bit mode not supported with GCC on $system" 1>&2
|
sl@0
|
2648 |
else
|
sl@0
|
2649 |
do64bit_ok=yes
|
sl@0
|
2650 |
CFLAGS="$CFLAGS -q64"
|
sl@0
|
2651 |
LDFLAGS="$LDFLAGS -q64"
|
sl@0
|
2652 |
RANLIB="${RANLIB} -X64"
|
sl@0
|
2653 |
AR="${AR} -X64"
|
sl@0
|
2654 |
SHLIB_LD_FLAGS="-b64"
|
sl@0
|
2655 |
fi
|
sl@0
|
2656 |
fi
|
sl@0
|
2657 |
|
sl@0
|
2658 |
if test "`uname -m`" = "ia64" ; then
|
sl@0
|
2659 |
# AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
|
sl@0
|
2660 |
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
|
sl@0
|
2661 |
# AIX-5 has dl* in libc.so
|
sl@0
|
2662 |
DL_LIBS=""
|
sl@0
|
2663 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2664 |
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
|
sl@0
|
2665 |
else
|
sl@0
|
2666 |
CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
|
sl@0
|
2667 |
fi
|
sl@0
|
2668 |
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
|
sl@0
|
2669 |
else
|
sl@0
|
2670 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2671 |
SHLIB_LD="gcc -shared"
|
sl@0
|
2672 |
else
|
sl@0
|
2673 |
SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
|
sl@0
|
2674 |
fi
|
sl@0
|
2675 |
SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
|
sl@0
|
2676 |
DL_LIBS="-ldl"
|
sl@0
|
2677 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
2678 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
2679 |
TCL_NEEDS_EXP_FILE=1
|
sl@0
|
2680 |
TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
|
sl@0
|
2681 |
fi
|
sl@0
|
2682 |
|
sl@0
|
2683 |
# AIX v<=4.1 has some different flags than 4.2+
|
sl@0
|
2684 |
if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
|
sl@0
|
2685 |
LIBOBJS="$LIBOBJS tclLoadAix.o"
|
sl@0
|
2686 |
DL_LIBS="-lld"
|
sl@0
|
2687 |
fi
|
sl@0
|
2688 |
|
sl@0
|
2689 |
# On AIX <=v4 systems, libbsd.a has to be linked in to support
|
sl@0
|
2690 |
# non-blocking file IO. This library has to be linked in after
|
sl@0
|
2691 |
# the MATH_LIBS or it breaks the pow() function. The way to
|
sl@0
|
2692 |
# insure proper sequencing, is to add it to the tail of MATH_LIBS.
|
sl@0
|
2693 |
# This library also supplies gettimeofday.
|
sl@0
|
2694 |
#
|
sl@0
|
2695 |
# AIX does not have a timezone field in struct tm. When the AIX
|
sl@0
|
2696 |
# bsd library is used, the timezone global and the gettimeofday
|
sl@0
|
2697 |
# methods are to be avoided for timezone deduction instead, we
|
sl@0
|
2698 |
# deduce the timezone by comparing the localtime result on a
|
sl@0
|
2699 |
# known GMT value.
|
sl@0
|
2700 |
|
sl@0
|
2701 |
echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
|
sl@0
|
2702 |
echo "configure:2703: checking for gettimeofday in -lbsd" >&5
|
sl@0
|
2703 |
ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
|
sl@0
|
2704 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2705 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2706 |
else
|
sl@0
|
2707 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2708 |
LIBS="-lbsd $LIBS"
|
sl@0
|
2709 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2710 |
#line 2711 "configure"
|
sl@0
|
2711 |
#include "confdefs.h"
|
sl@0
|
2712 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2713 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2714 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2715 |
char gettimeofday();
|
sl@0
|
2716 |
|
sl@0
|
2717 |
int main() {
|
sl@0
|
2718 |
gettimeofday()
|
sl@0
|
2719 |
; return 0; }
|
sl@0
|
2720 |
EOF
|
sl@0
|
2721 |
if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2722 |
rm -rf conftest*
|
sl@0
|
2723 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2724 |
else
|
sl@0
|
2725 |
echo "configure: failed program was:" >&5
|
sl@0
|
2726 |
cat conftest.$ac_ext >&5
|
sl@0
|
2727 |
rm -rf conftest*
|
sl@0
|
2728 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2729 |
fi
|
sl@0
|
2730 |
rm -f conftest*
|
sl@0
|
2731 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2732 |
|
sl@0
|
2733 |
fi
|
sl@0
|
2734 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2735 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2736 |
libbsd=yes
|
sl@0
|
2737 |
else
|
sl@0
|
2738 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2739 |
libbsd=no
|
sl@0
|
2740 |
fi
|
sl@0
|
2741 |
|
sl@0
|
2742 |
if test $libbsd = yes; then
|
sl@0
|
2743 |
MATH_LIBS="$MATH_LIBS -lbsd"
|
sl@0
|
2744 |
cat >> confdefs.h <<\EOF
|
sl@0
|
2745 |
#define USE_DELTA_FOR_TZ 1
|
sl@0
|
2746 |
EOF
|
sl@0
|
2747 |
|
sl@0
|
2748 |
fi
|
sl@0
|
2749 |
;;
|
sl@0
|
2750 |
BeOS*)
|
sl@0
|
2751 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
2752 |
SHLIB_LD="${CC} -nostart"
|
sl@0
|
2753 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2754 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2755 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
2756 |
DL_LIBS="-ldl"
|
sl@0
|
2757 |
|
sl@0
|
2758 |
#-----------------------------------------------------------
|
sl@0
|
2759 |
# Check for inet_ntoa in -lbind, for BeOS (which also needs
|
sl@0
|
2760 |
# -lsocket, even if the network functions are in -lnet which
|
sl@0
|
2761 |
# is always linked to, for compatibility.
|
sl@0
|
2762 |
#-----------------------------------------------------------
|
sl@0
|
2763 |
echo $ac_n "checking for inet_ntoa in -lbind""... $ac_c" 1>&6
|
sl@0
|
2764 |
echo "configure:2765: checking for inet_ntoa in -lbind" >&5
|
sl@0
|
2765 |
ac_lib_var=`echo bind'_'inet_ntoa | sed 'y%./+-%__p_%'`
|
sl@0
|
2766 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2767 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2768 |
else
|
sl@0
|
2769 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2770 |
LIBS="-lbind $LIBS"
|
sl@0
|
2771 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2772 |
#line 2773 "configure"
|
sl@0
|
2773 |
#include "confdefs.h"
|
sl@0
|
2774 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2775 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2776 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2777 |
char inet_ntoa();
|
sl@0
|
2778 |
|
sl@0
|
2779 |
int main() {
|
sl@0
|
2780 |
inet_ntoa()
|
sl@0
|
2781 |
; return 0; }
|
sl@0
|
2782 |
EOF
|
sl@0
|
2783 |
if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2784 |
rm -rf conftest*
|
sl@0
|
2785 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2786 |
else
|
sl@0
|
2787 |
echo "configure: failed program was:" >&5
|
sl@0
|
2788 |
cat conftest.$ac_ext >&5
|
sl@0
|
2789 |
rm -rf conftest*
|
sl@0
|
2790 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2791 |
fi
|
sl@0
|
2792 |
rm -f conftest*
|
sl@0
|
2793 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2794 |
|
sl@0
|
2795 |
fi
|
sl@0
|
2796 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2797 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2798 |
LIBS="$LIBS -lbind -lsocket"
|
sl@0
|
2799 |
else
|
sl@0
|
2800 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2801 |
fi
|
sl@0
|
2802 |
|
sl@0
|
2803 |
;;
|
sl@0
|
2804 |
BSD/OS-2.1*|BSD/OS-3*)
|
sl@0
|
2805 |
SHLIB_CFLAGS=""
|
sl@0
|
2806 |
SHLIB_LD="shlicc -r"
|
sl@0
|
2807 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2808 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2809 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
2810 |
DL_LIBS="-ldl"
|
sl@0
|
2811 |
CC_SEARCH_FLAGS=""
|
sl@0
|
2812 |
LD_SEARCH_FLAGS=""
|
sl@0
|
2813 |
;;
|
sl@0
|
2814 |
BSD/OS-4.*)
|
sl@0
|
2815 |
SHLIB_CFLAGS="-export-dynamic -fPIC"
|
sl@0
|
2816 |
SHLIB_LD="cc -shared"
|
sl@0
|
2817 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2818 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2819 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
2820 |
DL_LIBS="-ldl"
|
sl@0
|
2821 |
LDFLAGS="$LDFLAGS -export-dynamic"
|
sl@0
|
2822 |
CC_SEARCH_FLAGS=""
|
sl@0
|
2823 |
LD_SEARCH_FLAGS=""
|
sl@0
|
2824 |
;;
|
sl@0
|
2825 |
dgux*)
|
sl@0
|
2826 |
SHLIB_CFLAGS="-K PIC"
|
sl@0
|
2827 |
SHLIB_LD="cc -G"
|
sl@0
|
2828 |
SHLIB_LD_LIBS=""
|
sl@0
|
2829 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2830 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
2831 |
DL_LIBS="-ldl"
|
sl@0
|
2832 |
CC_SEARCH_FLAGS=""
|
sl@0
|
2833 |
LD_SEARCH_FLAGS=""
|
sl@0
|
2834 |
;;
|
sl@0
|
2835 |
HP-UX-*.11.*)
|
sl@0
|
2836 |
# Use updated header definitions where possible
|
sl@0
|
2837 |
cat >> confdefs.h <<\EOF
|
sl@0
|
2838 |
#define _XOPEN_SOURCE 1
|
sl@0
|
2839 |
EOF
|
sl@0
|
2840 |
# Use the XOPEN network library
|
sl@0
|
2841 |
cat >> confdefs.h <<\EOF
|
sl@0
|
2842 |
#define _XOPEN_SOURCE_EXTENDED 1
|
sl@0
|
2843 |
EOF
|
sl@0
|
2844 |
# Use the XOPEN network library
|
sl@0
|
2845 |
LIBS="$LIBS -lxnet" # Use the XOPEN network library
|
sl@0
|
2846 |
|
sl@0
|
2847 |
if test "`uname -m`" = "ia64" ; then
|
sl@0
|
2848 |
SHLIB_SUFFIX=".so"
|
sl@0
|
2849 |
else
|
sl@0
|
2850 |
SHLIB_SUFFIX=".sl"
|
sl@0
|
2851 |
fi
|
sl@0
|
2852 |
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
sl@0
|
2853 |
echo "configure:2854: checking for shl_load in -ldld" >&5
|
sl@0
|
2854 |
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
sl@0
|
2855 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2856 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2857 |
else
|
sl@0
|
2858 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2859 |
LIBS="-ldld $LIBS"
|
sl@0
|
2860 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2861 |
#line 2862 "configure"
|
sl@0
|
2862 |
#include "confdefs.h"
|
sl@0
|
2863 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2864 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2865 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2866 |
char shl_load();
|
sl@0
|
2867 |
|
sl@0
|
2868 |
int main() {
|
sl@0
|
2869 |
shl_load()
|
sl@0
|
2870 |
; return 0; }
|
sl@0
|
2871 |
EOF
|
sl@0
|
2872 |
if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2873 |
rm -rf conftest*
|
sl@0
|
2874 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2875 |
else
|
sl@0
|
2876 |
echo "configure: failed program was:" >&5
|
sl@0
|
2877 |
cat conftest.$ac_ext >&5
|
sl@0
|
2878 |
rm -rf conftest*
|
sl@0
|
2879 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2880 |
fi
|
sl@0
|
2881 |
rm -f conftest*
|
sl@0
|
2882 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2883 |
|
sl@0
|
2884 |
fi
|
sl@0
|
2885 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2886 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2887 |
tcl_ok=yes
|
sl@0
|
2888 |
else
|
sl@0
|
2889 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2890 |
tcl_ok=no
|
sl@0
|
2891 |
fi
|
sl@0
|
2892 |
|
sl@0
|
2893 |
if test "$tcl_ok" = yes; then
|
sl@0
|
2894 |
SHLIB_CFLAGS="+z"
|
sl@0
|
2895 |
SHLIB_LD="ld -b"
|
sl@0
|
2896 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2897 |
DL_OBJS="tclLoadShl.o"
|
sl@0
|
2898 |
DL_LIBS="-ldld"
|
sl@0
|
2899 |
LDFLAGS="$LDFLAGS -Wl,-E"
|
sl@0
|
2900 |
CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
|
sl@0
|
2901 |
LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
|
sl@0
|
2902 |
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
|
sl@0
|
2903 |
fi
|
sl@0
|
2904 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2905 |
SHLIB_LD="gcc -shared"
|
sl@0
|
2906 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2907 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
2908 |
fi
|
sl@0
|
2909 |
|
sl@0
|
2910 |
# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
|
sl@0
|
2911 |
#CFLAGS="$CFLAGS +DAportable"
|
sl@0
|
2912 |
|
sl@0
|
2913 |
# Check to enable 64-bit flags for compiler/linker
|
sl@0
|
2914 |
if test "$do64bit" = "yes" ; then
|
sl@0
|
2915 |
if test "$GCC" = "yes" ; then
|
sl@0
|
2916 |
hpux_arch=`${CC} -dumpmachine`
|
sl@0
|
2917 |
case $hpux_arch in
|
sl@0
|
2918 |
hppa64*)
|
sl@0
|
2919 |
# 64-bit gcc in use. Fix flags for GNU ld.
|
sl@0
|
2920 |
do64bit_ok=yes
|
sl@0
|
2921 |
SHLIB_LD="${CC} -shared"
|
sl@0
|
2922 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2923 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
2924 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
2925 |
;;
|
sl@0
|
2926 |
*)
|
sl@0
|
2927 |
echo "configure: warning: 64bit mode not supported with GCC on $system" 1>&2
|
sl@0
|
2928 |
;;
|
sl@0
|
2929 |
esac
|
sl@0
|
2930 |
else
|
sl@0
|
2931 |
do64bit_ok=yes
|
sl@0
|
2932 |
CFLAGS="$CFLAGS +DD64"
|
sl@0
|
2933 |
LDFLAGS="$LDFLAGS +DD64"
|
sl@0
|
2934 |
fi
|
sl@0
|
2935 |
fi
|
sl@0
|
2936 |
;;
|
sl@0
|
2937 |
HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
|
sl@0
|
2938 |
SHLIB_SUFFIX=".sl"
|
sl@0
|
2939 |
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
sl@0
|
2940 |
echo "configure:2941: checking for shl_load in -ldld" >&5
|
sl@0
|
2941 |
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
sl@0
|
2942 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
2943 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
2944 |
else
|
sl@0
|
2945 |
ac_save_LIBS="$LIBS"
|
sl@0
|
2946 |
LIBS="-ldld $LIBS"
|
sl@0
|
2947 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
2948 |
#line 2949 "configure"
|
sl@0
|
2949 |
#include "confdefs.h"
|
sl@0
|
2950 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
2951 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
2952 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
2953 |
char shl_load();
|
sl@0
|
2954 |
|
sl@0
|
2955 |
int main() {
|
sl@0
|
2956 |
shl_load()
|
sl@0
|
2957 |
; return 0; }
|
sl@0
|
2958 |
EOF
|
sl@0
|
2959 |
if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
2960 |
rm -rf conftest*
|
sl@0
|
2961 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
2962 |
else
|
sl@0
|
2963 |
echo "configure: failed program was:" >&5
|
sl@0
|
2964 |
cat conftest.$ac_ext >&5
|
sl@0
|
2965 |
rm -rf conftest*
|
sl@0
|
2966 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
2967 |
fi
|
sl@0
|
2968 |
rm -f conftest*
|
sl@0
|
2969 |
LIBS="$ac_save_LIBS"
|
sl@0
|
2970 |
|
sl@0
|
2971 |
fi
|
sl@0
|
2972 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
2973 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
2974 |
tcl_ok=yes
|
sl@0
|
2975 |
else
|
sl@0
|
2976 |
echo "$ac_t""no" 1>&6
|
sl@0
|
2977 |
tcl_ok=no
|
sl@0
|
2978 |
fi
|
sl@0
|
2979 |
|
sl@0
|
2980 |
if test "$tcl_ok" = yes; then
|
sl@0
|
2981 |
SHLIB_CFLAGS="+z"
|
sl@0
|
2982 |
SHLIB_LD="ld -b"
|
sl@0
|
2983 |
SHLIB_LD_LIBS=""
|
sl@0
|
2984 |
DL_OBJS="tclLoadShl.o"
|
sl@0
|
2985 |
DL_LIBS="-ldld"
|
sl@0
|
2986 |
LDFLAGS="$LDFLAGS -Wl,-E"
|
sl@0
|
2987 |
CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
|
sl@0
|
2988 |
LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
|
sl@0
|
2989 |
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
|
sl@0
|
2990 |
fi
|
sl@0
|
2991 |
;;
|
sl@0
|
2992 |
IRIX-4.*)
|
sl@0
|
2993 |
SHLIB_CFLAGS="-G 0"
|
sl@0
|
2994 |
SHLIB_SUFFIX=".a"
|
sl@0
|
2995 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
|
sl@0
|
2996 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
2997 |
DL_OBJS="tclLoadAout.o"
|
sl@0
|
2998 |
DL_LIBS=""
|
sl@0
|
2999 |
LDFLAGS="$LDFLAGS -Wl,-D,08000000"
|
sl@0
|
3000 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
3001 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3002 |
SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
|
sl@0
|
3003 |
;;
|
sl@0
|
3004 |
IRIX-5.*)
|
sl@0
|
3005 |
SHLIB_CFLAGS=""
|
sl@0
|
3006 |
SHLIB_LD="ld -shared -rdata_shared"
|
sl@0
|
3007 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3008 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3009 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3010 |
DL_LIBS=""
|
sl@0
|
3011 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3012 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3013 |
;;
|
sl@0
|
3014 |
IRIX-6.*)
|
sl@0
|
3015 |
SHLIB_CFLAGS=""
|
sl@0
|
3016 |
SHLIB_LD="ld -n32 -shared -rdata_shared"
|
sl@0
|
3017 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3018 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3019 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3020 |
DL_LIBS=""
|
sl@0
|
3021 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3022 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3023 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3024 |
CFLAGS="$CFLAGS -mabi=n32"
|
sl@0
|
3025 |
LDFLAGS="$LDFLAGS -mabi=n32"
|
sl@0
|
3026 |
else
|
sl@0
|
3027 |
case $system in
|
sl@0
|
3028 |
IRIX-6.3)
|
sl@0
|
3029 |
# Use to build 6.2 compatible binaries on 6.3.
|
sl@0
|
3030 |
CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
|
sl@0
|
3031 |
;;
|
sl@0
|
3032 |
*)
|
sl@0
|
3033 |
CFLAGS="$CFLAGS -n32"
|
sl@0
|
3034 |
;;
|
sl@0
|
3035 |
esac
|
sl@0
|
3036 |
LDFLAGS="$LDFLAGS -n32"
|
sl@0
|
3037 |
fi
|
sl@0
|
3038 |
;;
|
sl@0
|
3039 |
IRIX64-6.*)
|
sl@0
|
3040 |
SHLIB_CFLAGS=""
|
sl@0
|
3041 |
SHLIB_LD="ld -n32 -shared -rdata_shared"
|
sl@0
|
3042 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3043 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3044 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3045 |
DL_LIBS=""
|
sl@0
|
3046 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3047 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3048 |
|
sl@0
|
3049 |
# Check to enable 64-bit flags for compiler/linker
|
sl@0
|
3050 |
|
sl@0
|
3051 |
if test "$do64bit" = "yes" ; then
|
sl@0
|
3052 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3053 |
echo "configure: warning: 64bit mode not supported by gcc" 1>&2
|
sl@0
|
3054 |
else
|
sl@0
|
3055 |
do64bit_ok=yes
|
sl@0
|
3056 |
SHLIB_LD="ld -64 -shared -rdata_shared"
|
sl@0
|
3057 |
CFLAGS="$CFLAGS -64"
|
sl@0
|
3058 |
LDFLAGS="$LDFLAGS -64"
|
sl@0
|
3059 |
fi
|
sl@0
|
3060 |
fi
|
sl@0
|
3061 |
;;
|
sl@0
|
3062 |
Linux*)
|
sl@0
|
3063 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3064 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3065 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3066 |
|
sl@0
|
3067 |
CFLAGS_OPTIMIZE=-O2
|
sl@0
|
3068 |
# egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
|
sl@0
|
3069 |
# when you inline the string and math operations. Turn this off to
|
sl@0
|
3070 |
# get rid of the warnings.
|
sl@0
|
3071 |
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
|
sl@0
|
3072 |
|
sl@0
|
3073 |
if test "$have_dl" = yes; then
|
sl@0
|
3074 |
SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
|
sl@0
|
3075 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3076 |
DL_LIBS="-ldl"
|
sl@0
|
3077 |
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
|
sl@0
|
3078 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3079 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3080 |
else
|
sl@0
|
3081 |
ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
3082 |
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
|
sl@0
|
3083 |
echo "configure:3084: checking for dld.h" >&5
|
sl@0
|
3084 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
3085 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3086 |
else
|
sl@0
|
3087 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3088 |
#line 3089 "configure"
|
sl@0
|
3089 |
#include "confdefs.h"
|
sl@0
|
3090 |
#include <dld.h>
|
sl@0
|
3091 |
EOF
|
sl@0
|
3092 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
3093 |
{ (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
3094 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
3095 |
if test -z "$ac_err"; then
|
sl@0
|
3096 |
rm -rf conftest*
|
sl@0
|
3097 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
3098 |
else
|
sl@0
|
3099 |
echo "$ac_err" >&5
|
sl@0
|
3100 |
echo "configure: failed program was:" >&5
|
sl@0
|
3101 |
cat conftest.$ac_ext >&5
|
sl@0
|
3102 |
rm -rf conftest*
|
sl@0
|
3103 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
3104 |
fi
|
sl@0
|
3105 |
rm -f conftest*
|
sl@0
|
3106 |
fi
|
sl@0
|
3107 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
3108 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
3109 |
|
sl@0
|
3110 |
SHLIB_LD="ld -shared"
|
sl@0
|
3111 |
DL_OBJS="tclLoadDld.o"
|
sl@0
|
3112 |
DL_LIBS="-ldld"
|
sl@0
|
3113 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3114 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3115 |
else
|
sl@0
|
3116 |
echo "$ac_t""no" 1>&6
|
sl@0
|
3117 |
fi
|
sl@0
|
3118 |
|
sl@0
|
3119 |
fi
|
sl@0
|
3120 |
if test "`uname -m`" = "alpha" ; then
|
sl@0
|
3121 |
CFLAGS="$CFLAGS -mieee"
|
sl@0
|
3122 |
fi
|
sl@0
|
3123 |
if test $do64bit = yes; then
|
sl@0
|
3124 |
echo $ac_n "checking if compiler accepts -m64 flag""... $ac_c" 1>&6
|
sl@0
|
3125 |
echo "configure:3126: checking if compiler accepts -m64 flag" >&5
|
sl@0
|
3126 |
if eval "test \"`echo '$''{'tcl_cv_cc_m64'+set}'`\" = set"; then
|
sl@0
|
3127 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3128 |
else
|
sl@0
|
3129 |
|
sl@0
|
3130 |
hold_cflags=$CFLAGS
|
sl@0
|
3131 |
CFLAGS="$CFLAGS -m64"
|
sl@0
|
3132 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3133 |
#line 3134 "configure"
|
sl@0
|
3134 |
#include "confdefs.h"
|
sl@0
|
3135 |
|
sl@0
|
3136 |
int main() {
|
sl@0
|
3137 |
|
sl@0
|
3138 |
; return 0; }
|
sl@0
|
3139 |
EOF
|
sl@0
|
3140 |
if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3141 |
rm -rf conftest*
|
sl@0
|
3142 |
tcl_cv_cc_m64=yes
|
sl@0
|
3143 |
else
|
sl@0
|
3144 |
echo "configure: failed program was:" >&5
|
sl@0
|
3145 |
cat conftest.$ac_ext >&5
|
sl@0
|
3146 |
rm -rf conftest*
|
sl@0
|
3147 |
tcl_cv_cc_m64=no
|
sl@0
|
3148 |
fi
|
sl@0
|
3149 |
rm -f conftest*
|
sl@0
|
3150 |
CFLAGS=$hold_cflags
|
sl@0
|
3151 |
fi
|
sl@0
|
3152 |
|
sl@0
|
3153 |
echo "$ac_t""$tcl_cv_cc_m64" 1>&6
|
sl@0
|
3154 |
if test $tcl_cv_cc_m64 = yes; then
|
sl@0
|
3155 |
CFLAGS="$CFLAGS -m64"
|
sl@0
|
3156 |
do64bit_ok=yes
|
sl@0
|
3157 |
fi
|
sl@0
|
3158 |
fi
|
sl@0
|
3159 |
|
sl@0
|
3160 |
# The combo of gcc + glibc has a bug related
|
sl@0
|
3161 |
# to inlining of functions like strtod(). The
|
sl@0
|
3162 |
# -fno-builtin flag should address this problem
|
sl@0
|
3163 |
# but it does not work. The -fno-inline flag
|
sl@0
|
3164 |
# is kind of overkill but it works.
|
sl@0
|
3165 |
# Disable inlining only when one of the
|
sl@0
|
3166 |
# files in compat/*.c is being linked in.
|
sl@0
|
3167 |
if test x"${LIBOBJS}" != x ; then
|
sl@0
|
3168 |
CFLAGS="$CFLAGS -fno-inline"
|
sl@0
|
3169 |
fi
|
sl@0
|
3170 |
|
sl@0
|
3171 |
# XIM peeking works under XFree86.
|
sl@0
|
3172 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3173 |
#define PEEK_XCLOSEIM 1
|
sl@0
|
3174 |
EOF
|
sl@0
|
3175 |
|
sl@0
|
3176 |
|
sl@0
|
3177 |
;;
|
sl@0
|
3178 |
GNU*)
|
sl@0
|
3179 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3180 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3181 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3182 |
|
sl@0
|
3183 |
if test "$have_dl" = yes; then
|
sl@0
|
3184 |
SHLIB_LD="${CC} -shared"
|
sl@0
|
3185 |
DL_OBJS=""
|
sl@0
|
3186 |
DL_LIBS="-ldl"
|
sl@0
|
3187 |
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
|
sl@0
|
3188 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3189 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3190 |
else
|
sl@0
|
3191 |
ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
3192 |
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
|
sl@0
|
3193 |
echo "configure:3194: checking for dld.h" >&5
|
sl@0
|
3194 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
3195 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3196 |
else
|
sl@0
|
3197 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3198 |
#line 3199 "configure"
|
sl@0
|
3199 |
#include "confdefs.h"
|
sl@0
|
3200 |
#include <dld.h>
|
sl@0
|
3201 |
EOF
|
sl@0
|
3202 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
3203 |
{ (eval echo configure:3204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
3204 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
3205 |
if test -z "$ac_err"; then
|
sl@0
|
3206 |
rm -rf conftest*
|
sl@0
|
3207 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
3208 |
else
|
sl@0
|
3209 |
echo "$ac_err" >&5
|
sl@0
|
3210 |
echo "configure: failed program was:" >&5
|
sl@0
|
3211 |
cat conftest.$ac_ext >&5
|
sl@0
|
3212 |
rm -rf conftest*
|
sl@0
|
3213 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
3214 |
fi
|
sl@0
|
3215 |
rm -f conftest*
|
sl@0
|
3216 |
fi
|
sl@0
|
3217 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
3218 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
3219 |
|
sl@0
|
3220 |
SHLIB_LD="ld -shared"
|
sl@0
|
3221 |
DL_OBJS=""
|
sl@0
|
3222 |
DL_LIBS="-ldld"
|
sl@0
|
3223 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3224 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3225 |
else
|
sl@0
|
3226 |
echo "$ac_t""no" 1>&6
|
sl@0
|
3227 |
fi
|
sl@0
|
3228 |
|
sl@0
|
3229 |
fi
|
sl@0
|
3230 |
if test "`uname -m`" = "alpha" ; then
|
sl@0
|
3231 |
CFLAGS="$CFLAGS -mieee"
|
sl@0
|
3232 |
fi
|
sl@0
|
3233 |
;;
|
sl@0
|
3234 |
Lynx*)
|
sl@0
|
3235 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3236 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3237 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3238 |
CFLAGS_OPTIMIZE=-02
|
sl@0
|
3239 |
SHLIB_LD="${CC} -shared "
|
sl@0
|
3240 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3241 |
DL_LIBS="-mshared -ldl"
|
sl@0
|
3242 |
LD_FLAGS="-Wl,--export-dynamic"
|
sl@0
|
3243 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3244 |
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3245 |
;;
|
sl@0
|
3246 |
MP-RAS-02*)
|
sl@0
|
3247 |
SHLIB_CFLAGS="-K PIC"
|
sl@0
|
3248 |
SHLIB_LD="cc -G"
|
sl@0
|
3249 |
SHLIB_LD_LIBS=""
|
sl@0
|
3250 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3251 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3252 |
DL_LIBS="-ldl"
|
sl@0
|
3253 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3254 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3255 |
;;
|
sl@0
|
3256 |
MP-RAS-*)
|
sl@0
|
3257 |
SHLIB_CFLAGS="-K PIC"
|
sl@0
|
3258 |
SHLIB_LD="cc -G"
|
sl@0
|
3259 |
SHLIB_LD_LIBS=""
|
sl@0
|
3260 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3261 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3262 |
DL_LIBS="-ldl"
|
sl@0
|
3263 |
LDFLAGS="$LDFLAGS -Wl,-Bexport"
|
sl@0
|
3264 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3265 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3266 |
;;
|
sl@0
|
3267 |
NetBSD-*|FreeBSD-[1-2].*)
|
sl@0
|
3268 |
# Not available on all versions: check for include file.
|
sl@0
|
3269 |
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
3270 |
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
sl@0
|
3271 |
echo "configure:3272: checking for dlfcn.h" >&5
|
sl@0
|
3272 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
3273 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3274 |
else
|
sl@0
|
3275 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3276 |
#line 3277 "configure"
|
sl@0
|
3277 |
#include "confdefs.h"
|
sl@0
|
3278 |
#include <dlfcn.h>
|
sl@0
|
3279 |
EOF
|
sl@0
|
3280 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
3281 |
{ (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
3282 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
3283 |
if test -z "$ac_err"; then
|
sl@0
|
3284 |
rm -rf conftest*
|
sl@0
|
3285 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
3286 |
else
|
sl@0
|
3287 |
echo "$ac_err" >&5
|
sl@0
|
3288 |
echo "configure: failed program was:" >&5
|
sl@0
|
3289 |
cat conftest.$ac_ext >&5
|
sl@0
|
3290 |
rm -rf conftest*
|
sl@0
|
3291 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
3292 |
fi
|
sl@0
|
3293 |
rm -f conftest*
|
sl@0
|
3294 |
fi
|
sl@0
|
3295 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
3296 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
3297 |
|
sl@0
|
3298 |
# NetBSD/SPARC needs -fPIC, -fpic will not do.
|
sl@0
|
3299 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3300 |
SHLIB_LD="ld -Bshareable -x"
|
sl@0
|
3301 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3302 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3303 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3304 |
DL_LIBS=""
|
sl@0
|
3305 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3306 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3307 |
echo $ac_n "checking for ELF""... $ac_c" 1>&6
|
sl@0
|
3308 |
echo "configure:3309: checking for ELF" >&5
|
sl@0
|
3309 |
if eval "test \"`echo '$''{'tcl_cv_ld_elf'+set}'`\" = set"; then
|
sl@0
|
3310 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3311 |
else
|
sl@0
|
3312 |
|
sl@0
|
3313 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3314 |
#line 3315 "configure"
|
sl@0
|
3315 |
#include "confdefs.h"
|
sl@0
|
3316 |
|
sl@0
|
3317 |
#ifdef __ELF__
|
sl@0
|
3318 |
yes
|
sl@0
|
3319 |
#endif
|
sl@0
|
3320 |
|
sl@0
|
3321 |
EOF
|
sl@0
|
3322 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
3323 |
egrep "yes" >/dev/null 2>&1; then
|
sl@0
|
3324 |
rm -rf conftest*
|
sl@0
|
3325 |
tcl_cv_ld_elf=yes
|
sl@0
|
3326 |
else
|
sl@0
|
3327 |
rm -rf conftest*
|
sl@0
|
3328 |
tcl_cv_ld_elf=no
|
sl@0
|
3329 |
fi
|
sl@0
|
3330 |
rm -f conftest*
|
sl@0
|
3331 |
|
sl@0
|
3332 |
fi
|
sl@0
|
3333 |
|
sl@0
|
3334 |
echo "$ac_t""$tcl_cv_ld_elf" 1>&6
|
sl@0
|
3335 |
if test $tcl_cv_ld_elf = yes; then
|
sl@0
|
3336 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
sl@0
|
3337 |
else
|
sl@0
|
3338 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
sl@0
|
3339 |
fi
|
sl@0
|
3340 |
|
sl@0
|
3341 |
else
|
sl@0
|
3342 |
echo "$ac_t""no" 1>&6
|
sl@0
|
3343 |
|
sl@0
|
3344 |
SHLIB_CFLAGS=""
|
sl@0
|
3345 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
|
sl@0
|
3346 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3347 |
SHLIB_SUFFIX=".a"
|
sl@0
|
3348 |
DL_OBJS="tclLoadAout.o"
|
sl@0
|
3349 |
DL_LIBS=""
|
sl@0
|
3350 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
3351 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3352 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3353 |
|
sl@0
|
3354 |
fi
|
sl@0
|
3355 |
|
sl@0
|
3356 |
|
sl@0
|
3357 |
# FreeBSD doesn't handle version numbers with dots.
|
sl@0
|
3358 |
|
sl@0
|
3359 |
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3360 |
TCL_LIB_VERSIONS_OK=nodots
|
sl@0
|
3361 |
;;
|
sl@0
|
3362 |
OpenBSD-*)
|
sl@0
|
3363 |
case `arch -s` in
|
sl@0
|
3364 |
m88k|vax)
|
sl@0
|
3365 |
SHLIB_CFLAGS=""
|
sl@0
|
3366 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
|
sl@0
|
3367 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3368 |
SHLIB_SUFFIX=".a"
|
sl@0
|
3369 |
DL_OBJS="tclLoadAout.o"
|
sl@0
|
3370 |
DL_LIBS=""
|
sl@0
|
3371 |
LDFLAGS=""
|
sl@0
|
3372 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
3373 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3374 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3375 |
;;
|
sl@0
|
3376 |
*)
|
sl@0
|
3377 |
# OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
|
sl@0
|
3378 |
case `machine` in
|
sl@0
|
3379 |
sparc|sparc64)
|
sl@0
|
3380 |
SHLIB_CFLAGS="-fPIC";;
|
sl@0
|
3381 |
*)
|
sl@0
|
3382 |
SHLIB_CFLAGS="-fpic";;
|
sl@0
|
3383 |
esac
|
sl@0
|
3384 |
SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
|
sl@0
|
3385 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3386 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3387 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3388 |
DL_LIBS=""
|
sl@0
|
3389 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3390 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3391 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
sl@0
|
3392 |
echo $ac_n "checking for ELF""... $ac_c" 1>&6
|
sl@0
|
3393 |
echo "configure:3394: checking for ELF" >&5
|
sl@0
|
3394 |
if eval "test \"`echo '$''{'tcl_cv_ld_elf'+set}'`\" = set"; then
|
sl@0
|
3395 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3396 |
else
|
sl@0
|
3397 |
|
sl@0
|
3398 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3399 |
#line 3400 "configure"
|
sl@0
|
3400 |
#include "confdefs.h"
|
sl@0
|
3401 |
|
sl@0
|
3402 |
#ifdef __ELF__
|
sl@0
|
3403 |
yes
|
sl@0
|
3404 |
#endif
|
sl@0
|
3405 |
|
sl@0
|
3406 |
EOF
|
sl@0
|
3407 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
3408 |
egrep "yes" >/dev/null 2>&1; then
|
sl@0
|
3409 |
rm -rf conftest*
|
sl@0
|
3410 |
tcl_cv_ld_elf=yes
|
sl@0
|
3411 |
else
|
sl@0
|
3412 |
rm -rf conftest*
|
sl@0
|
3413 |
tcl_cv_ld_elf=no
|
sl@0
|
3414 |
fi
|
sl@0
|
3415 |
rm -f conftest*
|
sl@0
|
3416 |
|
sl@0
|
3417 |
fi
|
sl@0
|
3418 |
|
sl@0
|
3419 |
echo "$ac_t""$tcl_cv_ld_elf" 1>&6
|
sl@0
|
3420 |
if test $tcl_cv_ld_elf = yes; then
|
sl@0
|
3421 |
LDFLAGS=-Wl,-export-dynamic
|
sl@0
|
3422 |
else
|
sl@0
|
3423 |
LDFLAGS=""
|
sl@0
|
3424 |
fi
|
sl@0
|
3425 |
;;
|
sl@0
|
3426 |
esac
|
sl@0
|
3427 |
|
sl@0
|
3428 |
# OpenBSD doesn't do version numbers with dots.
|
sl@0
|
3429 |
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3430 |
TCL_LIB_VERSIONS_OK=nodots
|
sl@0
|
3431 |
;;
|
sl@0
|
3432 |
FreeBSD-*)
|
sl@0
|
3433 |
# FreeBSD 3.* and greater have ELF.
|
sl@0
|
3434 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3435 |
SHLIB_LD="ld -Bshareable -x"
|
sl@0
|
3436 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3437 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3438 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3439 |
DL_LIBS=""
|
sl@0
|
3440 |
LDFLAGS="$LDFLAGS -export-dynamic"
|
sl@0
|
3441 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3442 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3443 |
if test "${TCL_THREADS}" = "1" ; then
|
sl@0
|
3444 |
# The -pthread needs to go in the CFLAGS, not LIBS
|
sl@0
|
3445 |
LIBS=`echo $LIBS | sed s/-pthread//`
|
sl@0
|
3446 |
CFLAGS="$CFLAGS -pthread"
|
sl@0
|
3447 |
LDFLAGS="$LDFLAGS -pthread"
|
sl@0
|
3448 |
fi
|
sl@0
|
3449 |
case $system in
|
sl@0
|
3450 |
FreeBSD-3.*)
|
sl@0
|
3451 |
# FreeBSD-3 doesn't handle version numbers with dots.
|
sl@0
|
3452 |
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3453 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
sl@0
|
3454 |
TCL_LIB_VERSIONS_OK=nodots
|
sl@0
|
3455 |
;;
|
sl@0
|
3456 |
esac
|
sl@0
|
3457 |
;;
|
sl@0
|
3458 |
Darwin-*)
|
sl@0
|
3459 |
CFLAGS_OPTIMIZE="-Os"
|
sl@0
|
3460 |
SHLIB_CFLAGS="-fno-common"
|
sl@0
|
3461 |
# To avoid discrepancies between what headers configure sees during
|
sl@0
|
3462 |
# preprocessing tests and compiling tests, move any -isysroot and
|
sl@0
|
3463 |
# -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
|
sl@0
|
3464 |
CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
|
sl@0
|
3465 |
awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
|
sl@0
|
3466 |
if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
|
sl@0
|
3467 |
CFLAGS="`echo " ${CFLAGS}" | \
|
sl@0
|
3468 |
awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
|
sl@0
|
3469 |
if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
|
sl@0
|
3470 |
if test $do64bit = yes; then
|
sl@0
|
3471 |
case `arch` in
|
sl@0
|
3472 |
ppc)
|
sl@0
|
3473 |
echo $ac_n "checking if compiler accepts -arch ppc64 flag""... $ac_c" 1>&6
|
sl@0
|
3474 |
echo "configure:3475: checking if compiler accepts -arch ppc64 flag" >&5
|
sl@0
|
3475 |
if eval "test \"`echo '$''{'tcl_cv_cc_arch_ppc64'+set}'`\" = set"; then
|
sl@0
|
3476 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3477 |
else
|
sl@0
|
3478 |
|
sl@0
|
3479 |
hold_cflags=$CFLAGS
|
sl@0
|
3480 |
CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
|
sl@0
|
3481 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3482 |
#line 3483 "configure"
|
sl@0
|
3483 |
#include "confdefs.h"
|
sl@0
|
3484 |
|
sl@0
|
3485 |
int main() {
|
sl@0
|
3486 |
|
sl@0
|
3487 |
; return 0; }
|
sl@0
|
3488 |
EOF
|
sl@0
|
3489 |
if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3490 |
rm -rf conftest*
|
sl@0
|
3491 |
tcl_cv_cc_arch_ppc64=yes
|
sl@0
|
3492 |
else
|
sl@0
|
3493 |
echo "configure: failed program was:" >&5
|
sl@0
|
3494 |
cat conftest.$ac_ext >&5
|
sl@0
|
3495 |
rm -rf conftest*
|
sl@0
|
3496 |
tcl_cv_cc_arch_ppc64=no
|
sl@0
|
3497 |
fi
|
sl@0
|
3498 |
rm -f conftest*
|
sl@0
|
3499 |
CFLAGS=$hold_cflags
|
sl@0
|
3500 |
fi
|
sl@0
|
3501 |
|
sl@0
|
3502 |
echo "$ac_t""$tcl_cv_cc_arch_ppc64" 1>&6
|
sl@0
|
3503 |
if test $tcl_cv_cc_arch_ppc64 = yes; then
|
sl@0
|
3504 |
CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
|
sl@0
|
3505 |
do64bit_ok=yes
|
sl@0
|
3506 |
fi;;
|
sl@0
|
3507 |
i386)
|
sl@0
|
3508 |
echo $ac_n "checking if compiler accepts -arch x86_64 flag""... $ac_c" 1>&6
|
sl@0
|
3509 |
echo "configure:3510: checking if compiler accepts -arch x86_64 flag" >&5
|
sl@0
|
3510 |
if eval "test \"`echo '$''{'tcl_cv_cc_arch_x86_64'+set}'`\" = set"; then
|
sl@0
|
3511 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3512 |
else
|
sl@0
|
3513 |
|
sl@0
|
3514 |
hold_cflags=$CFLAGS
|
sl@0
|
3515 |
CFLAGS="$CFLAGS -arch x86_64"
|
sl@0
|
3516 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3517 |
#line 3518 "configure"
|
sl@0
|
3518 |
#include "confdefs.h"
|
sl@0
|
3519 |
|
sl@0
|
3520 |
int main() {
|
sl@0
|
3521 |
|
sl@0
|
3522 |
; return 0; }
|
sl@0
|
3523 |
EOF
|
sl@0
|
3524 |
if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3525 |
rm -rf conftest*
|
sl@0
|
3526 |
tcl_cv_cc_arch_x86_64=yes
|
sl@0
|
3527 |
else
|
sl@0
|
3528 |
echo "configure: failed program was:" >&5
|
sl@0
|
3529 |
cat conftest.$ac_ext >&5
|
sl@0
|
3530 |
rm -rf conftest*
|
sl@0
|
3531 |
tcl_cv_cc_arch_x86_64=no
|
sl@0
|
3532 |
fi
|
sl@0
|
3533 |
rm -f conftest*
|
sl@0
|
3534 |
CFLAGS=$hold_cflags
|
sl@0
|
3535 |
fi
|
sl@0
|
3536 |
|
sl@0
|
3537 |
echo "$ac_t""$tcl_cv_cc_arch_x86_64" 1>&6
|
sl@0
|
3538 |
if test $tcl_cv_cc_arch_x86_64 = yes; then
|
sl@0
|
3539 |
CFLAGS="$CFLAGS -arch x86_64"
|
sl@0
|
3540 |
do64bit_ok=yes
|
sl@0
|
3541 |
fi;;
|
sl@0
|
3542 |
*)
|
sl@0
|
3543 |
echo "configure: warning: Don't know how enable 64-bit on architecture `arch`" 1>&2;;
|
sl@0
|
3544 |
esac
|
sl@0
|
3545 |
else
|
sl@0
|
3546 |
# Check for combined 32-bit and 64-bit fat build
|
sl@0
|
3547 |
echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
|
sl@0
|
3548 |
echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
|
sl@0
|
3549 |
fat_32_64=yes
|
sl@0
|
3550 |
fi
|
sl@0
|
3551 |
SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
|
sl@0
|
3552 |
echo $ac_n "checking if ld accepts -single_module flag""... $ac_c" 1>&6
|
sl@0
|
3553 |
echo "configure:3554: checking if ld accepts -single_module flag" >&5
|
sl@0
|
3554 |
if eval "test \"`echo '$''{'tcl_cv_ld_single_module'+set}'`\" = set"; then
|
sl@0
|
3555 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3556 |
else
|
sl@0
|
3557 |
|
sl@0
|
3558 |
hold_ldflags=$LDFLAGS
|
sl@0
|
3559 |
LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
|
sl@0
|
3560 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3561 |
#line 3562 "configure"
|
sl@0
|
3562 |
#include "confdefs.h"
|
sl@0
|
3563 |
|
sl@0
|
3564 |
int main() {
|
sl@0
|
3565 |
int i;
|
sl@0
|
3566 |
; return 0; }
|
sl@0
|
3567 |
EOF
|
sl@0
|
3568 |
if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3569 |
rm -rf conftest*
|
sl@0
|
3570 |
tcl_cv_ld_single_module=yes
|
sl@0
|
3571 |
else
|
sl@0
|
3572 |
echo "configure: failed program was:" >&5
|
sl@0
|
3573 |
cat conftest.$ac_ext >&5
|
sl@0
|
3574 |
rm -rf conftest*
|
sl@0
|
3575 |
tcl_cv_ld_single_module=no
|
sl@0
|
3576 |
fi
|
sl@0
|
3577 |
rm -f conftest*
|
sl@0
|
3578 |
LDFLAGS=$hold_ldflags
|
sl@0
|
3579 |
fi
|
sl@0
|
3580 |
|
sl@0
|
3581 |
echo "$ac_t""$tcl_cv_ld_single_module" 1>&6
|
sl@0
|
3582 |
if test $tcl_cv_ld_single_module = yes; then
|
sl@0
|
3583 |
SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
|
sl@0
|
3584 |
fi
|
sl@0
|
3585 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3586 |
SHLIB_SUFFIX=".dylib"
|
sl@0
|
3587 |
DL_OBJS="tclLoadDyld.o"
|
sl@0
|
3588 |
DL_LIBS=""
|
sl@0
|
3589 |
# Don't use -prebind when building for Mac OS X 10.4 or later only:
|
sl@0
|
3590 |
test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
|
sl@0
|
3591 |
"`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
|
sl@0
|
3592 |
LDFLAGS="$LDFLAGS -prebind"
|
sl@0
|
3593 |
LDFLAGS="$LDFLAGS -headerpad_max_install_names"
|
sl@0
|
3594 |
echo $ac_n "checking if ld accepts -search_paths_first flag""... $ac_c" 1>&6
|
sl@0
|
3595 |
echo "configure:3596: checking if ld accepts -search_paths_first flag" >&5
|
sl@0
|
3596 |
if eval "test \"`echo '$''{'tcl_cv_ld_search_paths_first'+set}'`\" = set"; then
|
sl@0
|
3597 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3598 |
else
|
sl@0
|
3599 |
|
sl@0
|
3600 |
hold_ldflags=$LDFLAGS
|
sl@0
|
3601 |
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
|
sl@0
|
3602 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3603 |
#line 3604 "configure"
|
sl@0
|
3604 |
#include "confdefs.h"
|
sl@0
|
3605 |
|
sl@0
|
3606 |
int main() {
|
sl@0
|
3607 |
int i;
|
sl@0
|
3608 |
; return 0; }
|
sl@0
|
3609 |
EOF
|
sl@0
|
3610 |
if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3611 |
rm -rf conftest*
|
sl@0
|
3612 |
tcl_cv_ld_search_paths_first=yes
|
sl@0
|
3613 |
else
|
sl@0
|
3614 |
echo "configure: failed program was:" >&5
|
sl@0
|
3615 |
cat conftest.$ac_ext >&5
|
sl@0
|
3616 |
rm -rf conftest*
|
sl@0
|
3617 |
tcl_cv_ld_search_paths_first=no
|
sl@0
|
3618 |
fi
|
sl@0
|
3619 |
rm -f conftest*
|
sl@0
|
3620 |
LDFLAGS=$hold_ldflags
|
sl@0
|
3621 |
fi
|
sl@0
|
3622 |
|
sl@0
|
3623 |
echo "$ac_t""$tcl_cv_ld_search_paths_first" 1>&6
|
sl@0
|
3624 |
if test $tcl_cv_ld_search_paths_first = yes; then
|
sl@0
|
3625 |
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
|
sl@0
|
3626 |
fi
|
sl@0
|
3627 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3628 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3629 |
LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
|
sl@0
|
3630 |
PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
|
sl@0
|
3631 |
PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
|
sl@0
|
3632 |
echo $ac_n "checking whether to use CoreFoundation""... $ac_c" 1>&6
|
sl@0
|
3633 |
echo "configure:3634: checking whether to use CoreFoundation" >&5
|
sl@0
|
3634 |
# Check whether --enable-corefoundation or --disable-corefoundation was given.
|
sl@0
|
3635 |
if test "${enable_corefoundation+set}" = set; then
|
sl@0
|
3636 |
enableval="$enable_corefoundation"
|
sl@0
|
3637 |
tcl_corefoundation=$enableval
|
sl@0
|
3638 |
else
|
sl@0
|
3639 |
tcl_corefoundation=yes
|
sl@0
|
3640 |
fi
|
sl@0
|
3641 |
|
sl@0
|
3642 |
echo "$ac_t""$tcl_corefoundation" 1>&6
|
sl@0
|
3643 |
if test $tcl_corefoundation = yes; then
|
sl@0
|
3644 |
echo $ac_n "checking for CoreFoundation.framework""... $ac_c" 1>&6
|
sl@0
|
3645 |
echo "configure:3646: checking for CoreFoundation.framework" >&5
|
sl@0
|
3646 |
if eval "test \"`echo '$''{'tcl_cv_lib_corefoundation'+set}'`\" = set"; then
|
sl@0
|
3647 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3648 |
else
|
sl@0
|
3649 |
|
sl@0
|
3650 |
hold_libs=$LIBS; hold_cflags=$CFLAGS
|
sl@0
|
3651 |
if test "$fat_32_64" = yes; then
|
sl@0
|
3652 |
# On Tiger there is no 64-bit CF, so remove 64-bit archs
|
sl@0
|
3653 |
# from CFLAGS while testing for presence of CF.
|
sl@0
|
3654 |
# 64-bit CF is disabled in tclUnixPort.h if necessary.
|
sl@0
|
3655 |
CFLAGS="`echo "$CFLAGS " | sed -e 's/-arch ppc64 / /g' -e 's/-arch x86_64 / /g'`"
|
sl@0
|
3656 |
fi
|
sl@0
|
3657 |
LIBS="$LIBS -framework CoreFoundation"
|
sl@0
|
3658 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3659 |
#line 3660 "configure"
|
sl@0
|
3660 |
#include "confdefs.h"
|
sl@0
|
3661 |
#include <CoreFoundation/CoreFoundation.h>
|
sl@0
|
3662 |
int main() {
|
sl@0
|
3663 |
CFBundleRef b = CFBundleGetMainBundle();
|
sl@0
|
3664 |
; return 0; }
|
sl@0
|
3665 |
EOF
|
sl@0
|
3666 |
if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3667 |
rm -rf conftest*
|
sl@0
|
3668 |
tcl_cv_lib_corefoundation=yes
|
sl@0
|
3669 |
else
|
sl@0
|
3670 |
echo "configure: failed program was:" >&5
|
sl@0
|
3671 |
cat conftest.$ac_ext >&5
|
sl@0
|
3672 |
rm -rf conftest*
|
sl@0
|
3673 |
tcl_cv_lib_corefoundation=no
|
sl@0
|
3674 |
fi
|
sl@0
|
3675 |
rm -f conftest*
|
sl@0
|
3676 |
LIBS=$hold_libs; CFLAGS=$hold_cflags
|
sl@0
|
3677 |
fi
|
sl@0
|
3678 |
|
sl@0
|
3679 |
echo "$ac_t""$tcl_cv_lib_corefoundation" 1>&6
|
sl@0
|
3680 |
if test $tcl_cv_lib_corefoundation = yes; then
|
sl@0
|
3681 |
LIBS="$LIBS -framework CoreFoundation"
|
sl@0
|
3682 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3683 |
#define HAVE_COREFOUNDATION 1
|
sl@0
|
3684 |
EOF
|
sl@0
|
3685 |
|
sl@0
|
3686 |
else
|
sl@0
|
3687 |
tcl_corefoundation=no
|
sl@0
|
3688 |
fi
|
sl@0
|
3689 |
if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
|
sl@0
|
3690 |
echo $ac_n "checking for 64-bit CoreFoundation""... $ac_c" 1>&6
|
sl@0
|
3691 |
echo "configure:3692: checking for 64-bit CoreFoundation" >&5
|
sl@0
|
3692 |
if eval "test \"`echo '$''{'tcl_cv_lib_corefoundation_64'+set}'`\" = set"; then
|
sl@0
|
3693 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
3694 |
else
|
sl@0
|
3695 |
|
sl@0
|
3696 |
hold_cflags=$CFLAGS
|
sl@0
|
3697 |
CFLAGS="`echo "$CFLAGS " | sed -e 's/-arch ppc / /g' -e 's/-arch i386 / /g'`"
|
sl@0
|
3698 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
3699 |
#line 3700 "configure"
|
sl@0
|
3700 |
#include "confdefs.h"
|
sl@0
|
3701 |
#include <CoreFoundation/CoreFoundation.h>
|
sl@0
|
3702 |
int main() {
|
sl@0
|
3703 |
CFBundleRef b = CFBundleGetMainBundle();
|
sl@0
|
3704 |
; return 0; }
|
sl@0
|
3705 |
EOF
|
sl@0
|
3706 |
if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
3707 |
rm -rf conftest*
|
sl@0
|
3708 |
tcl_cv_lib_corefoundation_64=yes
|
sl@0
|
3709 |
else
|
sl@0
|
3710 |
echo "configure: failed program was:" >&5
|
sl@0
|
3711 |
cat conftest.$ac_ext >&5
|
sl@0
|
3712 |
rm -rf conftest*
|
sl@0
|
3713 |
tcl_cv_lib_corefoundation_64=no
|
sl@0
|
3714 |
fi
|
sl@0
|
3715 |
rm -f conftest*
|
sl@0
|
3716 |
CFLAGS=$hold_cflags
|
sl@0
|
3717 |
fi
|
sl@0
|
3718 |
|
sl@0
|
3719 |
echo "$ac_t""$tcl_cv_lib_corefoundation_64" 1>&6
|
sl@0
|
3720 |
if test $tcl_cv_lib_corefoundation_64 = no; then
|
sl@0
|
3721 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3722 |
#define NO_COREFOUNDATION_64 1
|
sl@0
|
3723 |
EOF
|
sl@0
|
3724 |
|
sl@0
|
3725 |
fi
|
sl@0
|
3726 |
fi
|
sl@0
|
3727 |
fi
|
sl@0
|
3728 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3729 |
#define MAC_OSX_TCL 1
|
sl@0
|
3730 |
EOF
|
sl@0
|
3731 |
|
sl@0
|
3732 |
;;
|
sl@0
|
3733 |
NEXTSTEP-*)
|
sl@0
|
3734 |
SHLIB_CFLAGS=""
|
sl@0
|
3735 |
SHLIB_LD="cc -nostdlib -r"
|
sl@0
|
3736 |
SHLIB_LD_LIBS=""
|
sl@0
|
3737 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3738 |
DL_OBJS="tclLoadNext.o"
|
sl@0
|
3739 |
DL_LIBS=""
|
sl@0
|
3740 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3741 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3742 |
;;
|
sl@0
|
3743 |
OS/390-*)
|
sl@0
|
3744 |
CFLAGS_OPTIMIZE="" # Optimizer is buggy
|
sl@0
|
3745 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3746 |
#define _OE_SOCKETS 1
|
sl@0
|
3747 |
EOF
|
sl@0
|
3748 |
# needed in sys/socket.h
|
sl@0
|
3749 |
;;
|
sl@0
|
3750 |
OSF1-1.0|OSF1-1.1|OSF1-1.2)
|
sl@0
|
3751 |
# OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
|
sl@0
|
3752 |
SHLIB_CFLAGS=""
|
sl@0
|
3753 |
# Hack: make package name same as library name
|
sl@0
|
3754 |
SHLIB_LD='ld -R -export :'
|
sl@0
|
3755 |
SHLIB_LD_LIBS=""
|
sl@0
|
3756 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3757 |
DL_OBJS="tclLoadOSF.o"
|
sl@0
|
3758 |
DL_LIBS=""
|
sl@0
|
3759 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3760 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3761 |
;;
|
sl@0
|
3762 |
OSF1-1.*)
|
sl@0
|
3763 |
# OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
|
sl@0
|
3764 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3765 |
if test "$SHARED_BUILD" = "1" ; then
|
sl@0
|
3766 |
SHLIB_LD="ld -shared"
|
sl@0
|
3767 |
else
|
sl@0
|
3768 |
SHLIB_LD="ld -non_shared"
|
sl@0
|
3769 |
fi
|
sl@0
|
3770 |
SHLIB_LD_LIBS=""
|
sl@0
|
3771 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3772 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3773 |
DL_LIBS=""
|
sl@0
|
3774 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3775 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3776 |
;;
|
sl@0
|
3777 |
OSF1-V*)
|
sl@0
|
3778 |
# Digital OSF/1
|
sl@0
|
3779 |
SHLIB_CFLAGS=""
|
sl@0
|
3780 |
if test "$SHARED_BUILD" = "1" ; then
|
sl@0
|
3781 |
SHLIB_LD='ld -shared -expect_unresolved "*"'
|
sl@0
|
3782 |
else
|
sl@0
|
3783 |
SHLIB_LD='ld -non_shared -expect_unresolved "*"'
|
sl@0
|
3784 |
fi
|
sl@0
|
3785 |
SHLIB_LD_LIBS=""
|
sl@0
|
3786 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3787 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3788 |
DL_LIBS=""
|
sl@0
|
3789 |
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
sl@0
|
3790 |
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
sl@0
|
3791 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3792 |
CFLAGS="$CFLAGS -mieee"
|
sl@0
|
3793 |
else
|
sl@0
|
3794 |
CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
|
sl@0
|
3795 |
fi
|
sl@0
|
3796 |
# see pthread_intro(3) for pthread support on osf1, k.furukawa
|
sl@0
|
3797 |
if test "${TCL_THREADS}" = "1" ; then
|
sl@0
|
3798 |
CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
|
sl@0
|
3799 |
CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
|
sl@0
|
3800 |
LIBS=`echo $LIBS | sed s/-lpthreads//`
|
sl@0
|
3801 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3802 |
LIBS="$LIBS -lpthread -lmach -lexc"
|
sl@0
|
3803 |
else
|
sl@0
|
3804 |
CFLAGS="$CFLAGS -pthread"
|
sl@0
|
3805 |
LDFLAGS="$LDFLAGS -pthread"
|
sl@0
|
3806 |
fi
|
sl@0
|
3807 |
fi
|
sl@0
|
3808 |
|
sl@0
|
3809 |
;;
|
sl@0
|
3810 |
QNX-6*)
|
sl@0
|
3811 |
# QNX RTP
|
sl@0
|
3812 |
# This may work for all QNX, but it was only reported for v6.
|
sl@0
|
3813 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3814 |
SHLIB_LD="ld -Bshareable -x"
|
sl@0
|
3815 |
SHLIB_LD_LIBS=""
|
sl@0
|
3816 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3817 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3818 |
# dlopen is in -lc on QNX
|
sl@0
|
3819 |
DL_LIBS=""
|
sl@0
|
3820 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3821 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3822 |
;;
|
sl@0
|
3823 |
RISCos-*)
|
sl@0
|
3824 |
SHLIB_CFLAGS="-G 0"
|
sl@0
|
3825 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
|
sl@0
|
3826 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3827 |
SHLIB_SUFFIX=".a"
|
sl@0
|
3828 |
DL_OBJS="tclLoadAout.o"
|
sl@0
|
3829 |
DL_LIBS=""
|
sl@0
|
3830 |
LDFLAGS="$LDFLAGS -Wl,-D,08000000"
|
sl@0
|
3831 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
3832 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3833 |
;;
|
sl@0
|
3834 |
SCO_SV-3.2*)
|
sl@0
|
3835 |
# Note, dlopen is available only on SCO 3.2.5 and greater. However,
|
sl@0
|
3836 |
# this test works, since "uname -s" was non-standard in 3.2.4 and
|
sl@0
|
3837 |
# below.
|
sl@0
|
3838 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3839 |
SHLIB_CFLAGS="-fPIC -melf"
|
sl@0
|
3840 |
LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
|
sl@0
|
3841 |
else
|
sl@0
|
3842 |
SHLIB_CFLAGS="-Kpic -belf"
|
sl@0
|
3843 |
LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
|
sl@0
|
3844 |
fi
|
sl@0
|
3845 |
SHLIB_LD="ld -G"
|
sl@0
|
3846 |
SHLIB_LD_LIBS=""
|
sl@0
|
3847 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3848 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3849 |
DL_LIBS=""
|
sl@0
|
3850 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3851 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3852 |
;;
|
sl@0
|
3853 |
SINIX*5.4*)
|
sl@0
|
3854 |
SHLIB_CFLAGS="-K PIC"
|
sl@0
|
3855 |
SHLIB_LD="cc -G"
|
sl@0
|
3856 |
SHLIB_LD_LIBS=""
|
sl@0
|
3857 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3858 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3859 |
DL_LIBS="-ldl"
|
sl@0
|
3860 |
CC_SEARCH_FLAGS=""
|
sl@0
|
3861 |
LD_SEARCH_FLAGS=""
|
sl@0
|
3862 |
;;
|
sl@0
|
3863 |
SunOS-4*)
|
sl@0
|
3864 |
SHLIB_CFLAGS="-PIC"
|
sl@0
|
3865 |
SHLIB_LD="ld"
|
sl@0
|
3866 |
SHLIB_LD_LIBS=""
|
sl@0
|
3867 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3868 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3869 |
DL_LIBS="-ldl"
|
sl@0
|
3870 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
3871 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3872 |
|
sl@0
|
3873 |
# SunOS can't handle version numbers with dots in them in library
|
sl@0
|
3874 |
# specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
|
sl@0
|
3875 |
# requires an extra version number at the end of .so file names.
|
sl@0
|
3876 |
# So, the library has to have a name like libtcl75.so.1.0
|
sl@0
|
3877 |
|
sl@0
|
3878 |
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
sl@0
|
3879 |
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
sl@0
|
3880 |
TCL_LIB_VERSIONS_OK=nodots
|
sl@0
|
3881 |
;;
|
sl@0
|
3882 |
SunOS-5.[0-6])
|
sl@0
|
3883 |
# Careful to not let 5.10+ fall into this case
|
sl@0
|
3884 |
|
sl@0
|
3885 |
# Note: If _REENTRANT isn't defined, then Solaris
|
sl@0
|
3886 |
# won't define thread-safe library routines.
|
sl@0
|
3887 |
|
sl@0
|
3888 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3889 |
#define _REENTRANT 1
|
sl@0
|
3890 |
EOF
|
sl@0
|
3891 |
|
sl@0
|
3892 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3893 |
#define _POSIX_PTHREAD_SEMANTICS 1
|
sl@0
|
3894 |
EOF
|
sl@0
|
3895 |
|
sl@0
|
3896 |
|
sl@0
|
3897 |
SHLIB_CFLAGS="-KPIC"
|
sl@0
|
3898 |
|
sl@0
|
3899 |
# Note: need the LIBS below, otherwise Tk won't find Tcl's
|
sl@0
|
3900 |
# symbols when dynamically loaded into tclsh.
|
sl@0
|
3901 |
|
sl@0
|
3902 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3903 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3904 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3905 |
DL_LIBS="-ldl"
|
sl@0
|
3906 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3907 |
SHLIB_LD="$CC -shared"
|
sl@0
|
3908 |
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
|
sl@0
|
3909 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3910 |
else
|
sl@0
|
3911 |
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
|
sl@0
|
3912 |
CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
|
sl@0
|
3913 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3914 |
fi
|
sl@0
|
3915 |
;;
|
sl@0
|
3916 |
SunOS-5*)
|
sl@0
|
3917 |
# Note: If _REENTRANT isn't defined, then Solaris
|
sl@0
|
3918 |
# won't define thread-safe library routines.
|
sl@0
|
3919 |
|
sl@0
|
3920 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3921 |
#define _REENTRANT 1
|
sl@0
|
3922 |
EOF
|
sl@0
|
3923 |
|
sl@0
|
3924 |
cat >> confdefs.h <<\EOF
|
sl@0
|
3925 |
#define _POSIX_PTHREAD_SEMANTICS 1
|
sl@0
|
3926 |
EOF
|
sl@0
|
3927 |
|
sl@0
|
3928 |
|
sl@0
|
3929 |
SHLIB_CFLAGS="-KPIC"
|
sl@0
|
3930 |
|
sl@0
|
3931 |
# Check to enable 64-bit flags for compiler/linker
|
sl@0
|
3932 |
if test "$do64bit" = "yes" ; then
|
sl@0
|
3933 |
arch=`isainfo`
|
sl@0
|
3934 |
if test "$arch" = "sparcv9 sparc" ; then
|
sl@0
|
3935 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3936 |
if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
|
sl@0
|
3937 |
echo "configure: warning: 64bit mode not supported with GCC < 3.2 on $system" 1>&2
|
sl@0
|
3938 |
else
|
sl@0
|
3939 |
do64bit_ok=yes
|
sl@0
|
3940 |
CFLAGS="$CFLAGS -m64 -mcpu=v9"
|
sl@0
|
3941 |
LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
|
sl@0
|
3942 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
3943 |
fi
|
sl@0
|
3944 |
else
|
sl@0
|
3945 |
do64bit_ok=yes
|
sl@0
|
3946 |
if test "$do64bitVIS" = "yes" ; then
|
sl@0
|
3947 |
CFLAGS="$CFLAGS -xarch=v9a"
|
sl@0
|
3948 |
LDFLAGS="$LDFLAGS -xarch=v9a"
|
sl@0
|
3949 |
else
|
sl@0
|
3950 |
CFLAGS="$CFLAGS -xarch=v9"
|
sl@0
|
3951 |
LDFLAGS="$LDFLAGS -xarch=v9"
|
sl@0
|
3952 |
fi
|
sl@0
|
3953 |
# Solaris 64 uses this as well
|
sl@0
|
3954 |
#LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
|
sl@0
|
3955 |
fi
|
sl@0
|
3956 |
elif test "$arch" = "amd64 i386" ; then
|
sl@0
|
3957 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3958 |
echo "configure: warning: 64bit mode not supported with GCC on $system" 1>&2
|
sl@0
|
3959 |
else
|
sl@0
|
3960 |
do64bit_ok=yes
|
sl@0
|
3961 |
CFLAGS="$CFLAGS -xarch=amd64"
|
sl@0
|
3962 |
LDFLAGS="$LDFLAGS -xarch=amd64"
|
sl@0
|
3963 |
fi
|
sl@0
|
3964 |
else
|
sl@0
|
3965 |
echo "configure: warning: 64bit mode not supported for $arch" 1>&2
|
sl@0
|
3966 |
fi
|
sl@0
|
3967 |
fi
|
sl@0
|
3968 |
|
sl@0
|
3969 |
# Note: need the LIBS below, otherwise Tk won't find Tcl's
|
sl@0
|
3970 |
# symbols when dynamically loaded into tclsh.
|
sl@0
|
3971 |
|
sl@0
|
3972 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
3973 |
SHLIB_SUFFIX=".so"
|
sl@0
|
3974 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
3975 |
DL_LIBS="-ldl"
|
sl@0
|
3976 |
if test "$GCC" = "yes" ; then
|
sl@0
|
3977 |
SHLIB_LD="$CC -shared"
|
sl@0
|
3978 |
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
|
sl@0
|
3979 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
3980 |
if test "$do64bit_ok" = "yes" ; then
|
sl@0
|
3981 |
# We need to specify -static-libgcc or we need to
|
sl@0
|
3982 |
# add the path to the sparv9 libgcc.
|
sl@0
|
3983 |
SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
|
sl@0
|
3984 |
# for finding sparcv9 libgcc, get the regular libgcc
|
sl@0
|
3985 |
# path, remove so name and append 'sparcv9'
|
sl@0
|
3986 |
#v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
|
sl@0
|
3987 |
#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
|
sl@0
|
3988 |
fi
|
sl@0
|
3989 |
else
|
sl@0
|
3990 |
SHLIB_LD="/usr/ccs/bin/ld -G -z text"
|
sl@0
|
3991 |
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
|
sl@0
|
3992 |
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
|
sl@0
|
3993 |
fi
|
sl@0
|
3994 |
;;
|
sl@0
|
3995 |
ULTRIX-4.*)
|
sl@0
|
3996 |
SHLIB_CFLAGS="-G 0"
|
sl@0
|
3997 |
SHLIB_SUFFIX=".a"
|
sl@0
|
3998 |
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
|
sl@0
|
3999 |
SHLIB_LD_LIBS='${LIBS}'
|
sl@0
|
4000 |
DL_OBJS="tclLoadAout.o"
|
sl@0
|
4001 |
DL_LIBS=""
|
sl@0
|
4002 |
LDFLAGS="$LDFLAGS -Wl,-D,08000000"
|
sl@0
|
4003 |
CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
|
sl@0
|
4004 |
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
sl@0
|
4005 |
if test "$GCC" != "yes" ; then
|
sl@0
|
4006 |
CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
|
sl@0
|
4007 |
fi
|
sl@0
|
4008 |
;;
|
sl@0
|
4009 |
UNIX_SV* | UnixWare-5*)
|
sl@0
|
4010 |
SHLIB_CFLAGS="-KPIC"
|
sl@0
|
4011 |
SHLIB_LD="cc -G"
|
sl@0
|
4012 |
SHLIB_LD_LIBS=""
|
sl@0
|
4013 |
SHLIB_SUFFIX=".so"
|
sl@0
|
4014 |
DL_OBJS="tclLoadDl.o"
|
sl@0
|
4015 |
DL_LIBS="-ldl"
|
sl@0
|
4016 |
# Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
|
sl@0
|
4017 |
# that don't grok the -Bexport option. Test that it does.
|
sl@0
|
4018 |
echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
|
sl@0
|
4019 |
echo "configure:4020: checking for ld accepts -Bexport flag" >&5
|
sl@0
|
4020 |
if eval "test \"`echo '$''{'tcl_cv_ld_Bexport'+set}'`\" = set"; then
|
sl@0
|
4021 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4022 |
else
|
sl@0
|
4023 |
|
sl@0
|
4024 |
hold_ldflags=$LDFLAGS
|
sl@0
|
4025 |
LDFLAGS="$LDFLAGS -Wl,-Bexport"
|
sl@0
|
4026 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4027 |
#line 4028 "configure"
|
sl@0
|
4028 |
#include "confdefs.h"
|
sl@0
|
4029 |
|
sl@0
|
4030 |
int main() {
|
sl@0
|
4031 |
int i;
|
sl@0
|
4032 |
; return 0; }
|
sl@0
|
4033 |
EOF
|
sl@0
|
4034 |
if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
4035 |
rm -rf conftest*
|
sl@0
|
4036 |
tcl_cv_ld_Bexport=yes
|
sl@0
|
4037 |
else
|
sl@0
|
4038 |
echo "configure: failed program was:" >&5
|
sl@0
|
4039 |
cat conftest.$ac_ext >&5
|
sl@0
|
4040 |
rm -rf conftest*
|
sl@0
|
4041 |
tcl_cv_ld_Bexport=no
|
sl@0
|
4042 |
fi
|
sl@0
|
4043 |
rm -f conftest*
|
sl@0
|
4044 |
LDFLAGS=$hold_ldflags
|
sl@0
|
4045 |
fi
|
sl@0
|
4046 |
|
sl@0
|
4047 |
echo "$ac_t""$tcl_cv_ld_Bexport" 1>&6
|
sl@0
|
4048 |
if test $tcl_cv_ld_Bexport = yes; then
|
sl@0
|
4049 |
LDFLAGS="$LDFLAGS -Wl,-Bexport"
|
sl@0
|
4050 |
fi
|
sl@0
|
4051 |
CC_SEARCH_FLAGS=""
|
sl@0
|
4052 |
LD_SEARCH_FLAGS=""
|
sl@0
|
4053 |
;;
|
sl@0
|
4054 |
esac
|
sl@0
|
4055 |
|
sl@0
|
4056 |
if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
|
sl@0
|
4057 |
echo "configure: warning: 64bit support being disabled -- don't know magic for this platform" 1>&2
|
sl@0
|
4058 |
fi
|
sl@0
|
4059 |
|
sl@0
|
4060 |
|
sl@0
|
4061 |
|
sl@0
|
4062 |
|
sl@0
|
4063 |
# Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
|
sl@0
|
4064 |
# Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop,
|
sl@0
|
4065 |
# New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
|
sl@0
|
4066 |
# to determine which of several header files defines the a.out file
|
sl@0
|
4067 |
# format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we
|
sl@0
|
4068 |
# support only a file format that is more or less version-7-compatible.
|
sl@0
|
4069 |
# In particular,
|
sl@0
|
4070 |
# - a.out files must begin with `struct exec'.
|
sl@0
|
4071 |
# - the N_TXTOFF on the `struct exec' must compute the seek address
|
sl@0
|
4072 |
# of the text segment
|
sl@0
|
4073 |
# - The `struct exec' must contain a_magic, a_text, a_data, a_bss
|
sl@0
|
4074 |
# and a_entry fields.
|
sl@0
|
4075 |
# The following compilation should succeed if and only if either sys/exec.h
|
sl@0
|
4076 |
# or a.out.h is usable for the purpose.
|
sl@0
|
4077 |
#
|
sl@0
|
4078 |
# Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
|
sl@0
|
4079 |
# `struct exec' includes a second header that contains information that
|
sl@0
|
4080 |
# duplicates the v7 fields that are needed.
|
sl@0
|
4081 |
|
sl@0
|
4082 |
if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
|
sl@0
|
4083 |
echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6
|
sl@0
|
4084 |
echo "configure:4085: checking sys/exec.h" >&5
|
sl@0
|
4085 |
if eval "test \"`echo '$''{'tcl_cv_sysexec_h'+set}'`\" = set"; then
|
sl@0
|
4086 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4087 |
else
|
sl@0
|
4088 |
|
sl@0
|
4089 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4090 |
#line 4091 "configure"
|
sl@0
|
4091 |
#include "confdefs.h"
|
sl@0
|
4092 |
#include <sys/exec.h>
|
sl@0
|
4093 |
int main() {
|
sl@0
|
4094 |
|
sl@0
|
4095 |
struct exec foo;
|
sl@0
|
4096 |
unsigned long seek;
|
sl@0
|
4097 |
int flag;
|
sl@0
|
4098 |
#if defined(__mips) || defined(mips)
|
sl@0
|
4099 |
seek = N_TXTOFF (foo.ex_f, foo.ex_o);
|
sl@0
|
4100 |
#else
|
sl@0
|
4101 |
seek = N_TXTOFF (foo);
|
sl@0
|
4102 |
#endif
|
sl@0
|
4103 |
flag = (foo.a_magic == OMAGIC);
|
sl@0
|
4104 |
return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
|
sl@0
|
4105 |
|
sl@0
|
4106 |
; return 0; }
|
sl@0
|
4107 |
EOF
|
sl@0
|
4108 |
if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4109 |
rm -rf conftest*
|
sl@0
|
4110 |
tcl_cv_sysexec_h=usable
|
sl@0
|
4111 |
else
|
sl@0
|
4112 |
echo "configure: failed program was:" >&5
|
sl@0
|
4113 |
cat conftest.$ac_ext >&5
|
sl@0
|
4114 |
rm -rf conftest*
|
sl@0
|
4115 |
tcl_cv_sysexec_h=unusable
|
sl@0
|
4116 |
fi
|
sl@0
|
4117 |
rm -f conftest*
|
sl@0
|
4118 |
fi
|
sl@0
|
4119 |
|
sl@0
|
4120 |
echo "$ac_t""$tcl_cv_sysexec_h" 1>&6
|
sl@0
|
4121 |
if test $tcl_cv_sysexec_h = usable; then
|
sl@0
|
4122 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4123 |
#define USE_SYS_EXEC_H 1
|
sl@0
|
4124 |
EOF
|
sl@0
|
4125 |
|
sl@0
|
4126 |
else
|
sl@0
|
4127 |
echo $ac_n "checking a.out.h""... $ac_c" 1>&6
|
sl@0
|
4128 |
echo "configure:4129: checking a.out.h" >&5
|
sl@0
|
4129 |
if eval "test \"`echo '$''{'tcl_cv_aout_h'+set}'`\" = set"; then
|
sl@0
|
4130 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4131 |
else
|
sl@0
|
4132 |
|
sl@0
|
4133 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4134 |
#line 4135 "configure"
|
sl@0
|
4135 |
#include "confdefs.h"
|
sl@0
|
4136 |
#include <a.out.h>
|
sl@0
|
4137 |
int main() {
|
sl@0
|
4138 |
|
sl@0
|
4139 |
struct exec foo;
|
sl@0
|
4140 |
unsigned long seek;
|
sl@0
|
4141 |
int flag;
|
sl@0
|
4142 |
#if defined(__mips) || defined(mips)
|
sl@0
|
4143 |
seek = N_TXTOFF (foo.ex_f, foo.ex_o);
|
sl@0
|
4144 |
#else
|
sl@0
|
4145 |
seek = N_TXTOFF (foo);
|
sl@0
|
4146 |
#endif
|
sl@0
|
4147 |
flag = (foo.a_magic == OMAGIC);
|
sl@0
|
4148 |
return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
|
sl@0
|
4149 |
|
sl@0
|
4150 |
; return 0; }
|
sl@0
|
4151 |
EOF
|
sl@0
|
4152 |
if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4153 |
rm -rf conftest*
|
sl@0
|
4154 |
tcl_cv_aout_h=usable
|
sl@0
|
4155 |
else
|
sl@0
|
4156 |
echo "configure: failed program was:" >&5
|
sl@0
|
4157 |
cat conftest.$ac_ext >&5
|
sl@0
|
4158 |
rm -rf conftest*
|
sl@0
|
4159 |
tcl_cv_aout_h=unusable
|
sl@0
|
4160 |
fi
|
sl@0
|
4161 |
rm -f conftest*
|
sl@0
|
4162 |
fi
|
sl@0
|
4163 |
|
sl@0
|
4164 |
echo "$ac_t""$tcl_cv_aout_h" 1>&6
|
sl@0
|
4165 |
if test $tcl_cv_aout_h = usable; then
|
sl@0
|
4166 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4167 |
#define USE_A_OUT_H 1
|
sl@0
|
4168 |
EOF
|
sl@0
|
4169 |
|
sl@0
|
4170 |
else
|
sl@0
|
4171 |
echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6
|
sl@0
|
4172 |
echo "configure:4173: checking sys/exec_aout.h" >&5
|
sl@0
|
4173 |
if eval "test \"`echo '$''{'tcl_cv_sysexecaout_h'+set}'`\" = set"; then
|
sl@0
|
4174 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4175 |
else
|
sl@0
|
4176 |
|
sl@0
|
4177 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4178 |
#line 4179 "configure"
|
sl@0
|
4179 |
#include "confdefs.h"
|
sl@0
|
4180 |
#include <sys/exec_aout.h>
|
sl@0
|
4181 |
int main() {
|
sl@0
|
4182 |
|
sl@0
|
4183 |
struct exec foo;
|
sl@0
|
4184 |
unsigned long seek;
|
sl@0
|
4185 |
int flag;
|
sl@0
|
4186 |
#if defined(__mips) || defined(mips)
|
sl@0
|
4187 |
seek = N_TXTOFF (foo.ex_f, foo.ex_o);
|
sl@0
|
4188 |
#else
|
sl@0
|
4189 |
seek = N_TXTOFF (foo);
|
sl@0
|
4190 |
#endif
|
sl@0
|
4191 |
flag = (foo.a_midmag == OMAGIC);
|
sl@0
|
4192 |
return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
|
sl@0
|
4193 |
|
sl@0
|
4194 |
; return 0; }
|
sl@0
|
4195 |
EOF
|
sl@0
|
4196 |
if { (eval echo configure:4197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4197 |
rm -rf conftest*
|
sl@0
|
4198 |
tcl_cv_sysexecaout_h=usable
|
sl@0
|
4199 |
else
|
sl@0
|
4200 |
echo "configure: failed program was:" >&5
|
sl@0
|
4201 |
cat conftest.$ac_ext >&5
|
sl@0
|
4202 |
rm -rf conftest*
|
sl@0
|
4203 |
tcl_cv_sysexecaout_h=unusable
|
sl@0
|
4204 |
fi
|
sl@0
|
4205 |
rm -f conftest*
|
sl@0
|
4206 |
fi
|
sl@0
|
4207 |
|
sl@0
|
4208 |
echo "$ac_t""$tcl_cv_sysexecaout_h" 1>&6
|
sl@0
|
4209 |
if test $tcl_cv_sysexecaout_h = usable; then
|
sl@0
|
4210 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4211 |
#define USE_SYS_EXEC_AOUT_H 1
|
sl@0
|
4212 |
EOF
|
sl@0
|
4213 |
|
sl@0
|
4214 |
else
|
sl@0
|
4215 |
DL_OBJS=""
|
sl@0
|
4216 |
fi
|
sl@0
|
4217 |
fi
|
sl@0
|
4218 |
fi
|
sl@0
|
4219 |
fi
|
sl@0
|
4220 |
|
sl@0
|
4221 |
# Step 5: disable dynamic loading if requested via a command-line switch.
|
sl@0
|
4222 |
|
sl@0
|
4223 |
# Check whether --enable-load or --disable-load was given.
|
sl@0
|
4224 |
if test "${enable_load+set}" = set; then
|
sl@0
|
4225 |
enableval="$enable_load"
|
sl@0
|
4226 |
tcl_ok=$enableval
|
sl@0
|
4227 |
else
|
sl@0
|
4228 |
tcl_ok=yes
|
sl@0
|
4229 |
fi
|
sl@0
|
4230 |
|
sl@0
|
4231 |
if test "$tcl_ok" = "no"; then
|
sl@0
|
4232 |
DL_OBJS=""
|
sl@0
|
4233 |
fi
|
sl@0
|
4234 |
|
sl@0
|
4235 |
if test "x$DL_OBJS" != "x" ; then
|
sl@0
|
4236 |
BUILD_DLTEST="\$(DLTEST_TARGETS)"
|
sl@0
|
4237 |
else
|
sl@0
|
4238 |
echo "Can't figure out how to do dynamic loading or shared libraries"
|
sl@0
|
4239 |
echo "on this system."
|
sl@0
|
4240 |
SHLIB_CFLAGS=""
|
sl@0
|
4241 |
SHLIB_LD=""
|
sl@0
|
4242 |
SHLIB_SUFFIX=""
|
sl@0
|
4243 |
DL_OBJS="tclLoadNone.o"
|
sl@0
|
4244 |
DL_LIBS=""
|
sl@0
|
4245 |
LDFLAGS="$LDFLAGS_ORIG"
|
sl@0
|
4246 |
CC_SEARCH_FLAGS=""
|
sl@0
|
4247 |
LD_SEARCH_FLAGS=""
|
sl@0
|
4248 |
BUILD_DLTEST=""
|
sl@0
|
4249 |
fi
|
sl@0
|
4250 |
|
sl@0
|
4251 |
# If we're running gcc, then change the C flags for compiling shared
|
sl@0
|
4252 |
# libraries to the right flags for gcc, instead of those for the
|
sl@0
|
4253 |
# standard manufacturer compiler.
|
sl@0
|
4254 |
|
sl@0
|
4255 |
if test "$DL_OBJS" != "tclLoadNone.o" ; then
|
sl@0
|
4256 |
if test "$GCC" = "yes" ; then
|
sl@0
|
4257 |
case $system in
|
sl@0
|
4258 |
AIX-*)
|
sl@0
|
4259 |
;;
|
sl@0
|
4260 |
BSD/OS*)
|
sl@0
|
4261 |
;;
|
sl@0
|
4262 |
IRIX*)
|
sl@0
|
4263 |
;;
|
sl@0
|
4264 |
NetBSD-*|FreeBSD-*|OpenBSD-*)
|
sl@0
|
4265 |
;;
|
sl@0
|
4266 |
Darwin-*)
|
sl@0
|
4267 |
;;
|
sl@0
|
4268 |
RISCos-*)
|
sl@0
|
4269 |
;;
|
sl@0
|
4270 |
SCO_SV-3.2*)
|
sl@0
|
4271 |
;;
|
sl@0
|
4272 |
ULTRIX-4.*)
|
sl@0
|
4273 |
;;
|
sl@0
|
4274 |
*)
|
sl@0
|
4275 |
SHLIB_CFLAGS="-fPIC"
|
sl@0
|
4276 |
;;
|
sl@0
|
4277 |
esac
|
sl@0
|
4278 |
fi
|
sl@0
|
4279 |
fi
|
sl@0
|
4280 |
|
sl@0
|
4281 |
if test "$SHARED_LIB_SUFFIX" = "" ; then
|
sl@0
|
4282 |
SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
|
sl@0
|
4283 |
fi
|
sl@0
|
4284 |
if test "$UNSHARED_LIB_SUFFIX" = "" ; then
|
sl@0
|
4285 |
UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
|
sl@0
|
4286 |
fi
|
sl@0
|
4287 |
|
sl@0
|
4288 |
if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
|
sl@0
|
4289 |
LIB_SUFFIX=${SHARED_LIB_SUFFIX}
|
sl@0
|
4290 |
MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
|
sl@0
|
4291 |
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
|
sl@0
|
4292 |
else
|
sl@0
|
4293 |
LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
|
sl@0
|
4294 |
|
sl@0
|
4295 |
if test "$RANLIB" = "" ; then
|
sl@0
|
4296 |
MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
|
sl@0
|
4297 |
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
|
sl@0
|
4298 |
else
|
sl@0
|
4299 |
MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
|
sl@0
|
4300 |
INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
|
sl@0
|
4301 |
fi
|
sl@0
|
4302 |
|
sl@0
|
4303 |
fi
|
sl@0
|
4304 |
|
sl@0
|
4305 |
|
sl@0
|
4306 |
# Stub lib does not depend on shared/static configuration
|
sl@0
|
4307 |
if test "$RANLIB" = "" ; then
|
sl@0
|
4308 |
MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
|
sl@0
|
4309 |
INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
|
sl@0
|
4310 |
else
|
sl@0
|
4311 |
MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
|
sl@0
|
4312 |
INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
|
sl@0
|
4313 |
fi
|
sl@0
|
4314 |
|
sl@0
|
4315 |
|
sl@0
|
4316 |
|
sl@0
|
4317 |
|
sl@0
|
4318 |
|
sl@0
|
4319 |
|
sl@0
|
4320 |
|
sl@0
|
4321 |
|
sl@0
|
4322 |
|
sl@0
|
4323 |
|
sl@0
|
4324 |
|
sl@0
|
4325 |
|
sl@0
|
4326 |
|
sl@0
|
4327 |
|
sl@0
|
4328 |
|
sl@0
|
4329 |
|
sl@0
|
4330 |
|
sl@0
|
4331 |
|
sl@0
|
4332 |
|
sl@0
|
4333 |
|
sl@0
|
4334 |
|
sl@0
|
4335 |
|
sl@0
|
4336 |
|
sl@0
|
4337 |
|
sl@0
|
4338 |
|
sl@0
|
4339 |
|
sl@0
|
4340 |
|
sl@0
|
4341 |
|
sl@0
|
4342 |
|
sl@0
|
4343 |
|
sl@0
|
4344 |
|
sl@0
|
4345 |
|
sl@0
|
4346 |
|
sl@0
|
4347 |
|
sl@0
|
4348 |
echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
|
sl@0
|
4349 |
echo "configure:4350: checking for build with symbols" >&5
|
sl@0
|
4350 |
# Check whether --enable-symbols or --disable-symbols was given.
|
sl@0
|
4351 |
if test "${enable_symbols+set}" = set; then
|
sl@0
|
4352 |
enableval="$enable_symbols"
|
sl@0
|
4353 |
tcl_ok=$enableval
|
sl@0
|
4354 |
else
|
sl@0
|
4355 |
tcl_ok=no
|
sl@0
|
4356 |
fi
|
sl@0
|
4357 |
|
sl@0
|
4358 |
# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
|
sl@0
|
4359 |
if test "$tcl_ok" = "no"; then
|
sl@0
|
4360 |
CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
|
sl@0
|
4361 |
LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
|
sl@0
|
4362 |
DBGX=""
|
sl@0
|
4363 |
echo "$ac_t""no" 1>&6
|
sl@0
|
4364 |
else
|
sl@0
|
4365 |
CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
|
sl@0
|
4366 |
LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
|
sl@0
|
4367 |
DBGX=g
|
sl@0
|
4368 |
if test "$tcl_ok" = "yes"; then
|
sl@0
|
4369 |
echo "$ac_t""yes (standard debugging)" 1>&6
|
sl@0
|
4370 |
fi
|
sl@0
|
4371 |
fi
|
sl@0
|
4372 |
|
sl@0
|
4373 |
|
sl@0
|
4374 |
|
sl@0
|
4375 |
if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
|
sl@0
|
4376 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4377 |
#define TCL_MEM_DEBUG 1
|
sl@0
|
4378 |
EOF
|
sl@0
|
4379 |
|
sl@0
|
4380 |
fi
|
sl@0
|
4381 |
|
sl@0
|
4382 |
if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
|
sl@0
|
4383 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4384 |
#define TCL_COMPILE_DEBUG 1
|
sl@0
|
4385 |
EOF
|
sl@0
|
4386 |
|
sl@0
|
4387 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4388 |
#define TCL_COMPILE_STATS 1
|
sl@0
|
4389 |
EOF
|
sl@0
|
4390 |
|
sl@0
|
4391 |
fi
|
sl@0
|
4392 |
|
sl@0
|
4393 |
if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
|
sl@0
|
4394 |
if test "$tcl_ok" = "all"; then
|
sl@0
|
4395 |
echo "$ac_t""enabled symbols mem compile debugging" 1>&6
|
sl@0
|
4396 |
else
|
sl@0
|
4397 |
echo "$ac_t""enabled $tcl_ok debugging" 1>&6
|
sl@0
|
4398 |
fi
|
sl@0
|
4399 |
fi
|
sl@0
|
4400 |
|
sl@0
|
4401 |
|
sl@0
|
4402 |
TCL_DBGX=${DBGX}
|
sl@0
|
4403 |
|
sl@0
|
4404 |
#--------------------------------------------------------------------
|
sl@0
|
4405 |
# Detect what compiler flags to set for 64-bit support.
|
sl@0
|
4406 |
#--------------------------------------------------------------------
|
sl@0
|
4407 |
|
sl@0
|
4408 |
|
sl@0
|
4409 |
echo $ac_n "checking for required early compiler flags""... $ac_c" 1>&6
|
sl@0
|
4410 |
echo "configure:4411: checking for required early compiler flags" >&5
|
sl@0
|
4411 |
tcl_flags=""
|
sl@0
|
4412 |
|
sl@0
|
4413 |
if eval "test \"`echo '$''{'tcl_cv_flag__isoc99_source'+set}'`\" = set"; then
|
sl@0
|
4414 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4415 |
else
|
sl@0
|
4416 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4417 |
#line 4418 "configure"
|
sl@0
|
4418 |
#include "confdefs.h"
|
sl@0
|
4419 |
#include <stdlib.h>
|
sl@0
|
4420 |
int main() {
|
sl@0
|
4421 |
char *p = (char *)strtoll; char *q = (char *)strtoull;
|
sl@0
|
4422 |
; return 0; }
|
sl@0
|
4423 |
EOF
|
sl@0
|
4424 |
if { (eval echo configure:4425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4425 |
rm -rf conftest*
|
sl@0
|
4426 |
tcl_cv_flag__isoc99_source=no
|
sl@0
|
4427 |
else
|
sl@0
|
4428 |
echo "configure: failed program was:" >&5
|
sl@0
|
4429 |
cat conftest.$ac_ext >&5
|
sl@0
|
4430 |
rm -rf conftest*
|
sl@0
|
4431 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4432 |
#line 4433 "configure"
|
sl@0
|
4433 |
#include "confdefs.h"
|
sl@0
|
4434 |
#define _ISOC99_SOURCE 1
|
sl@0
|
4435 |
#include <stdlib.h>
|
sl@0
|
4436 |
int main() {
|
sl@0
|
4437 |
char *p = (char *)strtoll; char *q = (char *)strtoull;
|
sl@0
|
4438 |
; return 0; }
|
sl@0
|
4439 |
EOF
|
sl@0
|
4440 |
if { (eval echo configure:4441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4441 |
rm -rf conftest*
|
sl@0
|
4442 |
tcl_cv_flag__isoc99_source=yes
|
sl@0
|
4443 |
else
|
sl@0
|
4444 |
echo "configure: failed program was:" >&5
|
sl@0
|
4445 |
cat conftest.$ac_ext >&5
|
sl@0
|
4446 |
rm -rf conftest*
|
sl@0
|
4447 |
tcl_cv_flag__isoc99_source=no
|
sl@0
|
4448 |
fi
|
sl@0
|
4449 |
rm -f conftest*
|
sl@0
|
4450 |
fi
|
sl@0
|
4451 |
rm -f conftest*
|
sl@0
|
4452 |
fi
|
sl@0
|
4453 |
|
sl@0
|
4454 |
if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
|
sl@0
|
4455 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4456 |
#define _ISOC99_SOURCE 1
|
sl@0
|
4457 |
EOF
|
sl@0
|
4458 |
|
sl@0
|
4459 |
tcl_flags="$tcl_flags _ISOC99_SOURCE"
|
sl@0
|
4460 |
fi
|
sl@0
|
4461 |
|
sl@0
|
4462 |
|
sl@0
|
4463 |
if eval "test \"`echo '$''{'tcl_cv_flag__largefile64_source'+set}'`\" = set"; then
|
sl@0
|
4464 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4465 |
else
|
sl@0
|
4466 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4467 |
#line 4468 "configure"
|
sl@0
|
4468 |
#include "confdefs.h"
|
sl@0
|
4469 |
#include <sys/stat.h>
|
sl@0
|
4470 |
int main() {
|
sl@0
|
4471 |
struct stat64 buf; int i = stat64("/", &buf);
|
sl@0
|
4472 |
; return 0; }
|
sl@0
|
4473 |
EOF
|
sl@0
|
4474 |
if { (eval echo configure:4475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4475 |
rm -rf conftest*
|
sl@0
|
4476 |
tcl_cv_flag__largefile64_source=no
|
sl@0
|
4477 |
else
|
sl@0
|
4478 |
echo "configure: failed program was:" >&5
|
sl@0
|
4479 |
cat conftest.$ac_ext >&5
|
sl@0
|
4480 |
rm -rf conftest*
|
sl@0
|
4481 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4482 |
#line 4483 "configure"
|
sl@0
|
4483 |
#include "confdefs.h"
|
sl@0
|
4484 |
#define _LARGEFILE64_SOURCE 1
|
sl@0
|
4485 |
#include <sys/stat.h>
|
sl@0
|
4486 |
int main() {
|
sl@0
|
4487 |
struct stat64 buf; int i = stat64("/", &buf);
|
sl@0
|
4488 |
; return 0; }
|
sl@0
|
4489 |
EOF
|
sl@0
|
4490 |
if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4491 |
rm -rf conftest*
|
sl@0
|
4492 |
tcl_cv_flag__largefile64_source=yes
|
sl@0
|
4493 |
else
|
sl@0
|
4494 |
echo "configure: failed program was:" >&5
|
sl@0
|
4495 |
cat conftest.$ac_ext >&5
|
sl@0
|
4496 |
rm -rf conftest*
|
sl@0
|
4497 |
tcl_cv_flag__largefile64_source=no
|
sl@0
|
4498 |
fi
|
sl@0
|
4499 |
rm -f conftest*
|
sl@0
|
4500 |
fi
|
sl@0
|
4501 |
rm -f conftest*
|
sl@0
|
4502 |
fi
|
sl@0
|
4503 |
|
sl@0
|
4504 |
if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
|
sl@0
|
4505 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4506 |
#define _LARGEFILE64_SOURCE 1
|
sl@0
|
4507 |
EOF
|
sl@0
|
4508 |
|
sl@0
|
4509 |
tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
|
sl@0
|
4510 |
fi
|
sl@0
|
4511 |
|
sl@0
|
4512 |
|
sl@0
|
4513 |
if eval "test \"`echo '$''{'tcl_cv_flag__largefile_source64'+set}'`\" = set"; then
|
sl@0
|
4514 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4515 |
else
|
sl@0
|
4516 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4517 |
#line 4518 "configure"
|
sl@0
|
4518 |
#include "confdefs.h"
|
sl@0
|
4519 |
#include <sys/stat.h>
|
sl@0
|
4520 |
int main() {
|
sl@0
|
4521 |
char *p = (char *)open64;
|
sl@0
|
4522 |
; return 0; }
|
sl@0
|
4523 |
EOF
|
sl@0
|
4524 |
if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4525 |
rm -rf conftest*
|
sl@0
|
4526 |
tcl_cv_flag__largefile_source64=no
|
sl@0
|
4527 |
else
|
sl@0
|
4528 |
echo "configure: failed program was:" >&5
|
sl@0
|
4529 |
cat conftest.$ac_ext >&5
|
sl@0
|
4530 |
rm -rf conftest*
|
sl@0
|
4531 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4532 |
#line 4533 "configure"
|
sl@0
|
4533 |
#include "confdefs.h"
|
sl@0
|
4534 |
#define _LARGEFILE_SOURCE64 1
|
sl@0
|
4535 |
#include <sys/stat.h>
|
sl@0
|
4536 |
int main() {
|
sl@0
|
4537 |
char *p = (char *)open64;
|
sl@0
|
4538 |
; return 0; }
|
sl@0
|
4539 |
EOF
|
sl@0
|
4540 |
if { (eval echo configure:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4541 |
rm -rf conftest*
|
sl@0
|
4542 |
tcl_cv_flag__largefile_source64=yes
|
sl@0
|
4543 |
else
|
sl@0
|
4544 |
echo "configure: failed program was:" >&5
|
sl@0
|
4545 |
cat conftest.$ac_ext >&5
|
sl@0
|
4546 |
rm -rf conftest*
|
sl@0
|
4547 |
tcl_cv_flag__largefile_source64=no
|
sl@0
|
4548 |
fi
|
sl@0
|
4549 |
rm -f conftest*
|
sl@0
|
4550 |
fi
|
sl@0
|
4551 |
rm -f conftest*
|
sl@0
|
4552 |
fi
|
sl@0
|
4553 |
|
sl@0
|
4554 |
if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
|
sl@0
|
4555 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4556 |
#define _LARGEFILE_SOURCE64 1
|
sl@0
|
4557 |
EOF
|
sl@0
|
4558 |
|
sl@0
|
4559 |
tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
|
sl@0
|
4560 |
fi
|
sl@0
|
4561 |
|
sl@0
|
4562 |
if test "x${tcl_flags}" = "x" ; then
|
sl@0
|
4563 |
echo "$ac_t""none" 1>&6
|
sl@0
|
4564 |
else
|
sl@0
|
4565 |
echo "$ac_t""${tcl_flags}" 1>&6
|
sl@0
|
4566 |
fi
|
sl@0
|
4567 |
|
sl@0
|
4568 |
|
sl@0
|
4569 |
|
sl@0
|
4570 |
echo $ac_n "checking for 64-bit integer type""... $ac_c" 1>&6
|
sl@0
|
4571 |
echo "configure:4572: checking for 64-bit integer type" >&5
|
sl@0
|
4572 |
if eval "test \"`echo '$''{'tcl_cv_type_64bit'+set}'`\" = set"; then
|
sl@0
|
4573 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4574 |
else
|
sl@0
|
4575 |
|
sl@0
|
4576 |
tcl_cv_type_64bit=none
|
sl@0
|
4577 |
# See if the compiler knows natively about __int64
|
sl@0
|
4578 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4579 |
#line 4580 "configure"
|
sl@0
|
4580 |
#include "confdefs.h"
|
sl@0
|
4581 |
|
sl@0
|
4582 |
int main() {
|
sl@0
|
4583 |
__int64 value = (__int64) 0;
|
sl@0
|
4584 |
; return 0; }
|
sl@0
|
4585 |
EOF
|
sl@0
|
4586 |
if { (eval echo configure:4587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4587 |
rm -rf conftest*
|
sl@0
|
4588 |
tcl_type_64bit=__int64
|
sl@0
|
4589 |
else
|
sl@0
|
4590 |
echo "configure: failed program was:" >&5
|
sl@0
|
4591 |
cat conftest.$ac_ext >&5
|
sl@0
|
4592 |
rm -rf conftest*
|
sl@0
|
4593 |
tcl_type_64bit="long long"
|
sl@0
|
4594 |
fi
|
sl@0
|
4595 |
rm -f conftest*
|
sl@0
|
4596 |
# See if we should use long anyway Note that we substitute in the
|
sl@0
|
4597 |
# type that is our current guess for a 64-bit type inside this check
|
sl@0
|
4598 |
# program, so it should be modified only carefully...
|
sl@0
|
4599 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4600 |
#line 4601 "configure"
|
sl@0
|
4601 |
#include "confdefs.h"
|
sl@0
|
4602 |
|
sl@0
|
4603 |
int main() {
|
sl@0
|
4604 |
switch (0) {
|
sl@0
|
4605 |
case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
|
sl@0
|
4606 |
}
|
sl@0
|
4607 |
; return 0; }
|
sl@0
|
4608 |
EOF
|
sl@0
|
4609 |
if { (eval echo configure:4610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4610 |
rm -rf conftest*
|
sl@0
|
4611 |
tcl_cv_type_64bit=${tcl_type_64bit}
|
sl@0
|
4612 |
else
|
sl@0
|
4613 |
echo "configure: failed program was:" >&5
|
sl@0
|
4614 |
cat conftest.$ac_ext >&5
|
sl@0
|
4615 |
fi
|
sl@0
|
4616 |
rm -f conftest*
|
sl@0
|
4617 |
fi
|
sl@0
|
4618 |
|
sl@0
|
4619 |
if test "${tcl_cv_type_64bit}" = none ; then
|
sl@0
|
4620 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4621 |
#define TCL_WIDE_INT_IS_LONG 1
|
sl@0
|
4622 |
EOF
|
sl@0
|
4623 |
|
sl@0
|
4624 |
echo "$ac_t""using long" 1>&6
|
sl@0
|
4625 |
else
|
sl@0
|
4626 |
cat >> confdefs.h <<EOF
|
sl@0
|
4627 |
#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
|
sl@0
|
4628 |
EOF
|
sl@0
|
4629 |
|
sl@0
|
4630 |
echo "$ac_t""${tcl_cv_type_64bit}" 1>&6
|
sl@0
|
4631 |
|
sl@0
|
4632 |
# Now check for auxiliary declarations
|
sl@0
|
4633 |
echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
|
sl@0
|
4634 |
echo "configure:4635: checking for struct dirent64" >&5
|
sl@0
|
4635 |
if eval "test \"`echo '$''{'tcl_cv_struct_dirent64'+set}'`\" = set"; then
|
sl@0
|
4636 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4637 |
else
|
sl@0
|
4638 |
|
sl@0
|
4639 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4640 |
#line 4641 "configure"
|
sl@0
|
4641 |
#include "confdefs.h"
|
sl@0
|
4642 |
#include <sys/types.h>
|
sl@0
|
4643 |
#include <sys/dirent.h>
|
sl@0
|
4644 |
int main() {
|
sl@0
|
4645 |
struct dirent64 p;
|
sl@0
|
4646 |
; return 0; }
|
sl@0
|
4647 |
EOF
|
sl@0
|
4648 |
if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4649 |
rm -rf conftest*
|
sl@0
|
4650 |
tcl_cv_struct_dirent64=yes
|
sl@0
|
4651 |
else
|
sl@0
|
4652 |
echo "configure: failed program was:" >&5
|
sl@0
|
4653 |
cat conftest.$ac_ext >&5
|
sl@0
|
4654 |
rm -rf conftest*
|
sl@0
|
4655 |
tcl_cv_struct_dirent64=no
|
sl@0
|
4656 |
fi
|
sl@0
|
4657 |
rm -f conftest*
|
sl@0
|
4658 |
fi
|
sl@0
|
4659 |
|
sl@0
|
4660 |
echo "$ac_t""$tcl_cv_struct_dirent64" 1>&6
|
sl@0
|
4661 |
if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
|
sl@0
|
4662 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4663 |
#define HAVE_STRUCT_DIRENT64 1
|
sl@0
|
4664 |
EOF
|
sl@0
|
4665 |
|
sl@0
|
4666 |
fi
|
sl@0
|
4667 |
|
sl@0
|
4668 |
echo $ac_n "checking for struct stat64""... $ac_c" 1>&6
|
sl@0
|
4669 |
echo "configure:4670: checking for struct stat64" >&5
|
sl@0
|
4670 |
if eval "test \"`echo '$''{'tcl_cv_struct_stat64'+set}'`\" = set"; then
|
sl@0
|
4671 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4672 |
else
|
sl@0
|
4673 |
|
sl@0
|
4674 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4675 |
#line 4676 "configure"
|
sl@0
|
4676 |
#include "confdefs.h"
|
sl@0
|
4677 |
#include <sys/stat.h>
|
sl@0
|
4678 |
int main() {
|
sl@0
|
4679 |
struct stat64 p;
|
sl@0
|
4680 |
|
sl@0
|
4681 |
; return 0; }
|
sl@0
|
4682 |
EOF
|
sl@0
|
4683 |
if { (eval echo configure:4684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4684 |
rm -rf conftest*
|
sl@0
|
4685 |
tcl_cv_struct_stat64=yes
|
sl@0
|
4686 |
else
|
sl@0
|
4687 |
echo "configure: failed program was:" >&5
|
sl@0
|
4688 |
cat conftest.$ac_ext >&5
|
sl@0
|
4689 |
rm -rf conftest*
|
sl@0
|
4690 |
tcl_cv_struct_stat64=no
|
sl@0
|
4691 |
fi
|
sl@0
|
4692 |
rm -f conftest*
|
sl@0
|
4693 |
fi
|
sl@0
|
4694 |
|
sl@0
|
4695 |
echo "$ac_t""$tcl_cv_struct_stat64" 1>&6
|
sl@0
|
4696 |
if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
|
sl@0
|
4697 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4698 |
#define HAVE_STRUCT_STAT64 1
|
sl@0
|
4699 |
EOF
|
sl@0
|
4700 |
|
sl@0
|
4701 |
fi
|
sl@0
|
4702 |
|
sl@0
|
4703 |
for ac_func in open64 lseek64
|
sl@0
|
4704 |
do
|
sl@0
|
4705 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
4706 |
echo "configure:4707: checking for $ac_func" >&5
|
sl@0
|
4707 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
4708 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4709 |
else
|
sl@0
|
4710 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4711 |
#line 4712 "configure"
|
sl@0
|
4712 |
#include "confdefs.h"
|
sl@0
|
4713 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
4714 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
4715 |
#include <assert.h>
|
sl@0
|
4716 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
4717 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
4718 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
4719 |
char $ac_func();
|
sl@0
|
4720 |
|
sl@0
|
4721 |
int main() {
|
sl@0
|
4722 |
|
sl@0
|
4723 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
4724 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
4725 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
4726 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
4727 |
choke me
|
sl@0
|
4728 |
#else
|
sl@0
|
4729 |
$ac_func();
|
sl@0
|
4730 |
#endif
|
sl@0
|
4731 |
|
sl@0
|
4732 |
; return 0; }
|
sl@0
|
4733 |
EOF
|
sl@0
|
4734 |
if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
4735 |
rm -rf conftest*
|
sl@0
|
4736 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
4737 |
else
|
sl@0
|
4738 |
echo "configure: failed program was:" >&5
|
sl@0
|
4739 |
cat conftest.$ac_ext >&5
|
sl@0
|
4740 |
rm -rf conftest*
|
sl@0
|
4741 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
4742 |
fi
|
sl@0
|
4743 |
rm -f conftest*
|
sl@0
|
4744 |
fi
|
sl@0
|
4745 |
|
sl@0
|
4746 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
4747 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
4748 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
4749 |
cat >> confdefs.h <<EOF
|
sl@0
|
4750 |
#define $ac_tr_func 1
|
sl@0
|
4751 |
EOF
|
sl@0
|
4752 |
|
sl@0
|
4753 |
else
|
sl@0
|
4754 |
echo "$ac_t""no" 1>&6
|
sl@0
|
4755 |
fi
|
sl@0
|
4756 |
done
|
sl@0
|
4757 |
|
sl@0
|
4758 |
echo $ac_n "checking for off64_t""... $ac_c" 1>&6
|
sl@0
|
4759 |
echo "configure:4760: checking for off64_t" >&5
|
sl@0
|
4760 |
if eval "test \"`echo '$''{'tcl_cv_type_off64_t'+set}'`\" = set"; then
|
sl@0
|
4761 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4762 |
else
|
sl@0
|
4763 |
|
sl@0
|
4764 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4765 |
#line 4766 "configure"
|
sl@0
|
4766 |
#include "confdefs.h"
|
sl@0
|
4767 |
#include <sys/types.h>
|
sl@0
|
4768 |
int main() {
|
sl@0
|
4769 |
off64_t offset;
|
sl@0
|
4770 |
|
sl@0
|
4771 |
; return 0; }
|
sl@0
|
4772 |
EOF
|
sl@0
|
4773 |
if { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4774 |
rm -rf conftest*
|
sl@0
|
4775 |
tcl_cv_type_off64_t=yes
|
sl@0
|
4776 |
else
|
sl@0
|
4777 |
echo "configure: failed program was:" >&5
|
sl@0
|
4778 |
cat conftest.$ac_ext >&5
|
sl@0
|
4779 |
rm -rf conftest*
|
sl@0
|
4780 |
tcl_cv_type_off64_t=no
|
sl@0
|
4781 |
fi
|
sl@0
|
4782 |
rm -f conftest*
|
sl@0
|
4783 |
fi
|
sl@0
|
4784 |
|
sl@0
|
4785 |
if test "x${tcl_cv_type_off64_t}" = "xyes" && \
|
sl@0
|
4786 |
test "x${ac_cv_func_lseek64}" = "xyes" && \
|
sl@0
|
4787 |
test "x${ac_cv_func_open64}" = "xyes" ; then
|
sl@0
|
4788 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4789 |
#define HAVE_TYPE_OFF64_T 1
|
sl@0
|
4790 |
EOF
|
sl@0
|
4791 |
|
sl@0
|
4792 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
4793 |
else
|
sl@0
|
4794 |
echo "$ac_t""no" 1>&6
|
sl@0
|
4795 |
fi
|
sl@0
|
4796 |
fi
|
sl@0
|
4797 |
|
sl@0
|
4798 |
|
sl@0
|
4799 |
#--------------------------------------------------------------------
|
sl@0
|
4800 |
# Check endianness because we can optimize comparisons of
|
sl@0
|
4801 |
# Tcl_UniChar strings to memcmp on big-endian systems.
|
sl@0
|
4802 |
#--------------------------------------------------------------------
|
sl@0
|
4803 |
|
sl@0
|
4804 |
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
sl@0
|
4805 |
echo "configure:4806: checking whether byte ordering is bigendian" >&5
|
sl@0
|
4806 |
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
sl@0
|
4807 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4808 |
else
|
sl@0
|
4809 |
ac_cv_c_bigendian=unknown
|
sl@0
|
4810 |
# See if sys/param.h defines the BYTE_ORDER macro.
|
sl@0
|
4811 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4812 |
#line 4813 "configure"
|
sl@0
|
4813 |
#include "confdefs.h"
|
sl@0
|
4814 |
#include <sys/types.h>
|
sl@0
|
4815 |
#include <sys/param.h>
|
sl@0
|
4816 |
int main() {
|
sl@0
|
4817 |
|
sl@0
|
4818 |
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
sl@0
|
4819 |
bogus endian macros
|
sl@0
|
4820 |
#endif
|
sl@0
|
4821 |
; return 0; }
|
sl@0
|
4822 |
EOF
|
sl@0
|
4823 |
if { (eval echo configure:4824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4824 |
rm -rf conftest*
|
sl@0
|
4825 |
# It does; now see whether it defined to BIG_ENDIAN or not.
|
sl@0
|
4826 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4827 |
#line 4828 "configure"
|
sl@0
|
4828 |
#include "confdefs.h"
|
sl@0
|
4829 |
#include <sys/types.h>
|
sl@0
|
4830 |
#include <sys/param.h>
|
sl@0
|
4831 |
int main() {
|
sl@0
|
4832 |
|
sl@0
|
4833 |
#if BYTE_ORDER != BIG_ENDIAN
|
sl@0
|
4834 |
not big endian
|
sl@0
|
4835 |
#endif
|
sl@0
|
4836 |
; return 0; }
|
sl@0
|
4837 |
EOF
|
sl@0
|
4838 |
if { (eval echo configure:4839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
4839 |
rm -rf conftest*
|
sl@0
|
4840 |
ac_cv_c_bigendian=yes
|
sl@0
|
4841 |
else
|
sl@0
|
4842 |
echo "configure: failed program was:" >&5
|
sl@0
|
4843 |
cat conftest.$ac_ext >&5
|
sl@0
|
4844 |
rm -rf conftest*
|
sl@0
|
4845 |
ac_cv_c_bigendian=no
|
sl@0
|
4846 |
fi
|
sl@0
|
4847 |
rm -f conftest*
|
sl@0
|
4848 |
else
|
sl@0
|
4849 |
echo "configure: failed program was:" >&5
|
sl@0
|
4850 |
cat conftest.$ac_ext >&5
|
sl@0
|
4851 |
fi
|
sl@0
|
4852 |
rm -f conftest*
|
sl@0
|
4853 |
if test $ac_cv_c_bigendian = unknown; then
|
sl@0
|
4854 |
if test "$cross_compiling" = yes; then
|
sl@0
|
4855 |
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
sl@0
|
4856 |
else
|
sl@0
|
4857 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4858 |
#line 4859 "configure"
|
sl@0
|
4859 |
#include "confdefs.h"
|
sl@0
|
4860 |
main () {
|
sl@0
|
4861 |
/* Are we little or big endian? From Harbison&Steele. */
|
sl@0
|
4862 |
union
|
sl@0
|
4863 |
{
|
sl@0
|
4864 |
long l;
|
sl@0
|
4865 |
char c[sizeof (long)];
|
sl@0
|
4866 |
} u;
|
sl@0
|
4867 |
u.l = 1;
|
sl@0
|
4868 |
exit (u.c[sizeof (long) - 1] == 1);
|
sl@0
|
4869 |
}
|
sl@0
|
4870 |
EOF
|
sl@0
|
4871 |
if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
4872 |
then
|
sl@0
|
4873 |
ac_cv_c_bigendian=no
|
sl@0
|
4874 |
else
|
sl@0
|
4875 |
echo "configure: failed program was:" >&5
|
sl@0
|
4876 |
cat conftest.$ac_ext >&5
|
sl@0
|
4877 |
rm -fr conftest*
|
sl@0
|
4878 |
ac_cv_c_bigendian=yes
|
sl@0
|
4879 |
fi
|
sl@0
|
4880 |
rm -fr conftest*
|
sl@0
|
4881 |
fi
|
sl@0
|
4882 |
|
sl@0
|
4883 |
fi
|
sl@0
|
4884 |
fi
|
sl@0
|
4885 |
|
sl@0
|
4886 |
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
sl@0
|
4887 |
if test $ac_cv_c_bigendian = yes; then
|
sl@0
|
4888 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4889 |
#define WORDS_BIGENDIAN 1
|
sl@0
|
4890 |
EOF
|
sl@0
|
4891 |
|
sl@0
|
4892 |
fi
|
sl@0
|
4893 |
|
sl@0
|
4894 |
|
sl@0
|
4895 |
#--------------------------------------------------------------------
|
sl@0
|
4896 |
# Supply substitutes for missing POSIX library procedures, or
|
sl@0
|
4897 |
# set flags so Tcl uses alternate procedures.
|
sl@0
|
4898 |
#--------------------------------------------------------------------
|
sl@0
|
4899 |
|
sl@0
|
4900 |
# Check if Posix compliant getcwd exists, if not we'll use getwd.
|
sl@0
|
4901 |
for ac_func in getcwd
|
sl@0
|
4902 |
do
|
sl@0
|
4903 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
4904 |
echo "configure:4905: checking for $ac_func" >&5
|
sl@0
|
4905 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
4906 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4907 |
else
|
sl@0
|
4908 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4909 |
#line 4910 "configure"
|
sl@0
|
4910 |
#include "confdefs.h"
|
sl@0
|
4911 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
4912 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
4913 |
#include <assert.h>
|
sl@0
|
4914 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
4915 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
4916 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
4917 |
char $ac_func();
|
sl@0
|
4918 |
|
sl@0
|
4919 |
int main() {
|
sl@0
|
4920 |
|
sl@0
|
4921 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
4922 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
4923 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
4924 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
4925 |
choke me
|
sl@0
|
4926 |
#else
|
sl@0
|
4927 |
$ac_func();
|
sl@0
|
4928 |
#endif
|
sl@0
|
4929 |
|
sl@0
|
4930 |
; return 0; }
|
sl@0
|
4931 |
EOF
|
sl@0
|
4932 |
if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
4933 |
rm -rf conftest*
|
sl@0
|
4934 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
4935 |
else
|
sl@0
|
4936 |
echo "configure: failed program was:" >&5
|
sl@0
|
4937 |
cat conftest.$ac_ext >&5
|
sl@0
|
4938 |
rm -rf conftest*
|
sl@0
|
4939 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
4940 |
fi
|
sl@0
|
4941 |
rm -f conftest*
|
sl@0
|
4942 |
fi
|
sl@0
|
4943 |
|
sl@0
|
4944 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
4945 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
4946 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
4947 |
cat >> confdefs.h <<EOF
|
sl@0
|
4948 |
#define $ac_tr_func 1
|
sl@0
|
4949 |
EOF
|
sl@0
|
4950 |
|
sl@0
|
4951 |
else
|
sl@0
|
4952 |
echo "$ac_t""no" 1>&6
|
sl@0
|
4953 |
cat >> confdefs.h <<\EOF
|
sl@0
|
4954 |
#define USEGETWD 1
|
sl@0
|
4955 |
EOF
|
sl@0
|
4956 |
|
sl@0
|
4957 |
fi
|
sl@0
|
4958 |
done
|
sl@0
|
4959 |
|
sl@0
|
4960 |
# Nb: if getcwd uses popen and pwd(1) (like SunOS 4) we should really
|
sl@0
|
4961 |
# define USEGETWD even if the posix getcwd exists. Add a test ?
|
sl@0
|
4962 |
|
sl@0
|
4963 |
for ac_func in opendir strstr strtol strtoll strtoull tmpnam waitpid
|
sl@0
|
4964 |
do
|
sl@0
|
4965 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
4966 |
echo "configure:4967: checking for $ac_func" >&5
|
sl@0
|
4967 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
4968 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
4969 |
else
|
sl@0
|
4970 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
4971 |
#line 4972 "configure"
|
sl@0
|
4972 |
#include "confdefs.h"
|
sl@0
|
4973 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
4974 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
4975 |
#include <assert.h>
|
sl@0
|
4976 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
4977 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
4978 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
4979 |
char $ac_func();
|
sl@0
|
4980 |
|
sl@0
|
4981 |
int main() {
|
sl@0
|
4982 |
|
sl@0
|
4983 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
4984 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
4985 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
4986 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
4987 |
choke me
|
sl@0
|
4988 |
#else
|
sl@0
|
4989 |
$ac_func();
|
sl@0
|
4990 |
#endif
|
sl@0
|
4991 |
|
sl@0
|
4992 |
; return 0; }
|
sl@0
|
4993 |
EOF
|
sl@0
|
4994 |
if { (eval echo configure:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
4995 |
rm -rf conftest*
|
sl@0
|
4996 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
4997 |
else
|
sl@0
|
4998 |
echo "configure: failed program was:" >&5
|
sl@0
|
4999 |
cat conftest.$ac_ext >&5
|
sl@0
|
5000 |
rm -rf conftest*
|
sl@0
|
5001 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
5002 |
fi
|
sl@0
|
5003 |
rm -f conftest*
|
sl@0
|
5004 |
fi
|
sl@0
|
5005 |
|
sl@0
|
5006 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
5007 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5008 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
5009 |
cat >> confdefs.h <<EOF
|
sl@0
|
5010 |
#define $ac_tr_func 1
|
sl@0
|
5011 |
EOF
|
sl@0
|
5012 |
|
sl@0
|
5013 |
else
|
sl@0
|
5014 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5015 |
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
sl@0
|
5016 |
fi
|
sl@0
|
5017 |
done
|
sl@0
|
5018 |
|
sl@0
|
5019 |
|
sl@0
|
5020 |
echo $ac_n "checking for strerror""... $ac_c" 1>&6
|
sl@0
|
5021 |
echo "configure:5022: checking for strerror" >&5
|
sl@0
|
5022 |
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
|
sl@0
|
5023 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5024 |
else
|
sl@0
|
5025 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5026 |
#line 5027 "configure"
|
sl@0
|
5027 |
#include "confdefs.h"
|
sl@0
|
5028 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5029 |
which can conflict with char strerror(); below. */
|
sl@0
|
5030 |
#include <assert.h>
|
sl@0
|
5031 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5032 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5033 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5034 |
char strerror();
|
sl@0
|
5035 |
|
sl@0
|
5036 |
int main() {
|
sl@0
|
5037 |
|
sl@0
|
5038 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5039 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5040 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5041 |
#if defined (__stub_strerror) || defined (__stub___strerror)
|
sl@0
|
5042 |
choke me
|
sl@0
|
5043 |
#else
|
sl@0
|
5044 |
strerror();
|
sl@0
|
5045 |
#endif
|
sl@0
|
5046 |
|
sl@0
|
5047 |
; return 0; }
|
sl@0
|
5048 |
EOF
|
sl@0
|
5049 |
if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5050 |
rm -rf conftest*
|
sl@0
|
5051 |
eval "ac_cv_func_strerror=yes"
|
sl@0
|
5052 |
else
|
sl@0
|
5053 |
echo "configure: failed program was:" >&5
|
sl@0
|
5054 |
cat conftest.$ac_ext >&5
|
sl@0
|
5055 |
rm -rf conftest*
|
sl@0
|
5056 |
eval "ac_cv_func_strerror=no"
|
sl@0
|
5057 |
fi
|
sl@0
|
5058 |
rm -f conftest*
|
sl@0
|
5059 |
fi
|
sl@0
|
5060 |
|
sl@0
|
5061 |
if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
|
sl@0
|
5062 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5063 |
:
|
sl@0
|
5064 |
else
|
sl@0
|
5065 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5066 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5067 |
#define NO_STRERROR 1
|
sl@0
|
5068 |
EOF
|
sl@0
|
5069 |
|
sl@0
|
5070 |
fi
|
sl@0
|
5071 |
|
sl@0
|
5072 |
echo $ac_n "checking for getwd""... $ac_c" 1>&6
|
sl@0
|
5073 |
echo "configure:5074: checking for getwd" >&5
|
sl@0
|
5074 |
if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then
|
sl@0
|
5075 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5076 |
else
|
sl@0
|
5077 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5078 |
#line 5079 "configure"
|
sl@0
|
5079 |
#include "confdefs.h"
|
sl@0
|
5080 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5081 |
which can conflict with char getwd(); below. */
|
sl@0
|
5082 |
#include <assert.h>
|
sl@0
|
5083 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5084 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5085 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5086 |
char getwd();
|
sl@0
|
5087 |
|
sl@0
|
5088 |
int main() {
|
sl@0
|
5089 |
|
sl@0
|
5090 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5091 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5092 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5093 |
#if defined (__stub_getwd) || defined (__stub___getwd)
|
sl@0
|
5094 |
choke me
|
sl@0
|
5095 |
#else
|
sl@0
|
5096 |
getwd();
|
sl@0
|
5097 |
#endif
|
sl@0
|
5098 |
|
sl@0
|
5099 |
; return 0; }
|
sl@0
|
5100 |
EOF
|
sl@0
|
5101 |
if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5102 |
rm -rf conftest*
|
sl@0
|
5103 |
eval "ac_cv_func_getwd=yes"
|
sl@0
|
5104 |
else
|
sl@0
|
5105 |
echo "configure: failed program was:" >&5
|
sl@0
|
5106 |
cat conftest.$ac_ext >&5
|
sl@0
|
5107 |
rm -rf conftest*
|
sl@0
|
5108 |
eval "ac_cv_func_getwd=no"
|
sl@0
|
5109 |
fi
|
sl@0
|
5110 |
rm -f conftest*
|
sl@0
|
5111 |
fi
|
sl@0
|
5112 |
|
sl@0
|
5113 |
if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
|
sl@0
|
5114 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5115 |
:
|
sl@0
|
5116 |
else
|
sl@0
|
5117 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5118 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5119 |
#define NO_GETWD 1
|
sl@0
|
5120 |
EOF
|
sl@0
|
5121 |
|
sl@0
|
5122 |
fi
|
sl@0
|
5123 |
|
sl@0
|
5124 |
echo $ac_n "checking for wait3""... $ac_c" 1>&6
|
sl@0
|
5125 |
echo "configure:5126: checking for wait3" >&5
|
sl@0
|
5126 |
if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
|
sl@0
|
5127 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5128 |
else
|
sl@0
|
5129 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5130 |
#line 5131 "configure"
|
sl@0
|
5131 |
#include "confdefs.h"
|
sl@0
|
5132 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5133 |
which can conflict with char wait3(); below. */
|
sl@0
|
5134 |
#include <assert.h>
|
sl@0
|
5135 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5136 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5137 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5138 |
char wait3();
|
sl@0
|
5139 |
|
sl@0
|
5140 |
int main() {
|
sl@0
|
5141 |
|
sl@0
|
5142 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5143 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5144 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5145 |
#if defined (__stub_wait3) || defined (__stub___wait3)
|
sl@0
|
5146 |
choke me
|
sl@0
|
5147 |
#else
|
sl@0
|
5148 |
wait3();
|
sl@0
|
5149 |
#endif
|
sl@0
|
5150 |
|
sl@0
|
5151 |
; return 0; }
|
sl@0
|
5152 |
EOF
|
sl@0
|
5153 |
if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5154 |
rm -rf conftest*
|
sl@0
|
5155 |
eval "ac_cv_func_wait3=yes"
|
sl@0
|
5156 |
else
|
sl@0
|
5157 |
echo "configure: failed program was:" >&5
|
sl@0
|
5158 |
cat conftest.$ac_ext >&5
|
sl@0
|
5159 |
rm -rf conftest*
|
sl@0
|
5160 |
eval "ac_cv_func_wait3=no"
|
sl@0
|
5161 |
fi
|
sl@0
|
5162 |
rm -f conftest*
|
sl@0
|
5163 |
fi
|
sl@0
|
5164 |
|
sl@0
|
5165 |
if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
|
sl@0
|
5166 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5167 |
:
|
sl@0
|
5168 |
else
|
sl@0
|
5169 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5170 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5171 |
#define NO_WAIT3 1
|
sl@0
|
5172 |
EOF
|
sl@0
|
5173 |
|
sl@0
|
5174 |
fi
|
sl@0
|
5175 |
|
sl@0
|
5176 |
echo $ac_n "checking for uname""... $ac_c" 1>&6
|
sl@0
|
5177 |
echo "configure:5178: checking for uname" >&5
|
sl@0
|
5178 |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
|
sl@0
|
5179 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5180 |
else
|
sl@0
|
5181 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5182 |
#line 5183 "configure"
|
sl@0
|
5183 |
#include "confdefs.h"
|
sl@0
|
5184 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5185 |
which can conflict with char uname(); below. */
|
sl@0
|
5186 |
#include <assert.h>
|
sl@0
|
5187 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5188 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5189 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5190 |
char uname();
|
sl@0
|
5191 |
|
sl@0
|
5192 |
int main() {
|
sl@0
|
5193 |
|
sl@0
|
5194 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5195 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5196 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5197 |
#if defined (__stub_uname) || defined (__stub___uname)
|
sl@0
|
5198 |
choke me
|
sl@0
|
5199 |
#else
|
sl@0
|
5200 |
uname();
|
sl@0
|
5201 |
#endif
|
sl@0
|
5202 |
|
sl@0
|
5203 |
; return 0; }
|
sl@0
|
5204 |
EOF
|
sl@0
|
5205 |
if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5206 |
rm -rf conftest*
|
sl@0
|
5207 |
eval "ac_cv_func_uname=yes"
|
sl@0
|
5208 |
else
|
sl@0
|
5209 |
echo "configure: failed program was:" >&5
|
sl@0
|
5210 |
cat conftest.$ac_ext >&5
|
sl@0
|
5211 |
rm -rf conftest*
|
sl@0
|
5212 |
eval "ac_cv_func_uname=no"
|
sl@0
|
5213 |
fi
|
sl@0
|
5214 |
rm -f conftest*
|
sl@0
|
5215 |
fi
|
sl@0
|
5216 |
|
sl@0
|
5217 |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
|
sl@0
|
5218 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5219 |
:
|
sl@0
|
5220 |
else
|
sl@0
|
5221 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5222 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5223 |
#define NO_UNAME 1
|
sl@0
|
5224 |
EOF
|
sl@0
|
5225 |
|
sl@0
|
5226 |
fi
|
sl@0
|
5227 |
|
sl@0
|
5228 |
|
sl@0
|
5229 |
if test "`uname -s`" = "Darwin" && test "${TCL_THREADS}" = 1 && \
|
sl@0
|
5230 |
test "`uname -r | awk -F. '{print $1}'`" -lt 7; then
|
sl@0
|
5231 |
# prior to Darwin 7, realpath is not threadsafe, so don't
|
sl@0
|
5232 |
# use it when threads are enabled, c.f. bug # 711232
|
sl@0
|
5233 |
ac_cv_func_realpath=no
|
sl@0
|
5234 |
fi
|
sl@0
|
5235 |
echo $ac_n "checking for realpath""... $ac_c" 1>&6
|
sl@0
|
5236 |
echo "configure:5237: checking for realpath" >&5
|
sl@0
|
5237 |
if eval "test \"`echo '$''{'ac_cv_func_realpath'+set}'`\" = set"; then
|
sl@0
|
5238 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5239 |
else
|
sl@0
|
5240 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5241 |
#line 5242 "configure"
|
sl@0
|
5242 |
#include "confdefs.h"
|
sl@0
|
5243 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5244 |
which can conflict with char realpath(); below. */
|
sl@0
|
5245 |
#include <assert.h>
|
sl@0
|
5246 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5247 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5248 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5249 |
char realpath();
|
sl@0
|
5250 |
|
sl@0
|
5251 |
int main() {
|
sl@0
|
5252 |
|
sl@0
|
5253 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5254 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5255 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5256 |
#if defined (__stub_realpath) || defined (__stub___realpath)
|
sl@0
|
5257 |
choke me
|
sl@0
|
5258 |
#else
|
sl@0
|
5259 |
realpath();
|
sl@0
|
5260 |
#endif
|
sl@0
|
5261 |
|
sl@0
|
5262 |
; return 0; }
|
sl@0
|
5263 |
EOF
|
sl@0
|
5264 |
if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5265 |
rm -rf conftest*
|
sl@0
|
5266 |
eval "ac_cv_func_realpath=yes"
|
sl@0
|
5267 |
else
|
sl@0
|
5268 |
echo "configure: failed program was:" >&5
|
sl@0
|
5269 |
cat conftest.$ac_ext >&5
|
sl@0
|
5270 |
rm -rf conftest*
|
sl@0
|
5271 |
eval "ac_cv_func_realpath=no"
|
sl@0
|
5272 |
fi
|
sl@0
|
5273 |
rm -f conftest*
|
sl@0
|
5274 |
fi
|
sl@0
|
5275 |
|
sl@0
|
5276 |
if eval "test \"`echo '$ac_cv_func_'realpath`\" = yes"; then
|
sl@0
|
5277 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5278 |
:
|
sl@0
|
5279 |
else
|
sl@0
|
5280 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5281 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5282 |
#define NO_REALPATH 1
|
sl@0
|
5283 |
EOF
|
sl@0
|
5284 |
|
sl@0
|
5285 |
fi
|
sl@0
|
5286 |
|
sl@0
|
5287 |
|
sl@0
|
5288 |
#--------------------------------------------------------------------
|
sl@0
|
5289 |
# Look for thread-safe variants of some library functions.
|
sl@0
|
5290 |
#--------------------------------------------------------------------
|
sl@0
|
5291 |
|
sl@0
|
5292 |
if test "${TCL_THREADS}" = 1; then
|
sl@0
|
5293 |
echo $ac_n "checking for getpwuid_r""... $ac_c" 1>&6
|
sl@0
|
5294 |
echo "configure:5295: checking for getpwuid_r" >&5
|
sl@0
|
5295 |
if eval "test \"`echo '$''{'ac_cv_func_getpwuid_r'+set}'`\" = set"; then
|
sl@0
|
5296 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5297 |
else
|
sl@0
|
5298 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5299 |
#line 5300 "configure"
|
sl@0
|
5300 |
#include "confdefs.h"
|
sl@0
|
5301 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5302 |
which can conflict with char getpwuid_r(); below. */
|
sl@0
|
5303 |
#include <assert.h>
|
sl@0
|
5304 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5305 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5306 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5307 |
char getpwuid_r();
|
sl@0
|
5308 |
|
sl@0
|
5309 |
int main() {
|
sl@0
|
5310 |
|
sl@0
|
5311 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5312 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5313 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5314 |
#if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
|
sl@0
|
5315 |
choke me
|
sl@0
|
5316 |
#else
|
sl@0
|
5317 |
getpwuid_r();
|
sl@0
|
5318 |
#endif
|
sl@0
|
5319 |
|
sl@0
|
5320 |
; return 0; }
|
sl@0
|
5321 |
EOF
|
sl@0
|
5322 |
if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5323 |
rm -rf conftest*
|
sl@0
|
5324 |
eval "ac_cv_func_getpwuid_r=yes"
|
sl@0
|
5325 |
else
|
sl@0
|
5326 |
echo "configure: failed program was:" >&5
|
sl@0
|
5327 |
cat conftest.$ac_ext >&5
|
sl@0
|
5328 |
rm -rf conftest*
|
sl@0
|
5329 |
eval "ac_cv_func_getpwuid_r=no"
|
sl@0
|
5330 |
fi
|
sl@0
|
5331 |
rm -f conftest*
|
sl@0
|
5332 |
fi
|
sl@0
|
5333 |
|
sl@0
|
5334 |
if eval "test \"`echo '$ac_cv_func_'getpwuid_r`\" = yes"; then
|
sl@0
|
5335 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5336 |
|
sl@0
|
5337 |
echo $ac_n "checking for getpwuid_r with 5 args""... $ac_c" 1>&6
|
sl@0
|
5338 |
echo "configure:5339: checking for getpwuid_r with 5 args" >&5
|
sl@0
|
5339 |
if eval "test \"`echo '$''{'tcl_cv_api_getpwuid_r_5'+set}'`\" = set"; then
|
sl@0
|
5340 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5341 |
else
|
sl@0
|
5342 |
|
sl@0
|
5343 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5344 |
#line 5345 "configure"
|
sl@0
|
5345 |
#include "confdefs.h"
|
sl@0
|
5346 |
|
sl@0
|
5347 |
#include <sys/types.h>
|
sl@0
|
5348 |
#include <pwd.h>
|
sl@0
|
5349 |
|
sl@0
|
5350 |
int main() {
|
sl@0
|
5351 |
|
sl@0
|
5352 |
uid_t uid;
|
sl@0
|
5353 |
struct passwd pw, *pwp;
|
sl@0
|
5354 |
char buf[512];
|
sl@0
|
5355 |
int buflen = 512;
|
sl@0
|
5356 |
|
sl@0
|
5357 |
(void) getpwuid_r(uid, &pw, buf, buflen, &pwp);
|
sl@0
|
5358 |
|
sl@0
|
5359 |
; return 0; }
|
sl@0
|
5360 |
EOF
|
sl@0
|
5361 |
if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5362 |
rm -rf conftest*
|
sl@0
|
5363 |
tcl_cv_api_getpwuid_r_5=yes
|
sl@0
|
5364 |
else
|
sl@0
|
5365 |
echo "configure: failed program was:" >&5
|
sl@0
|
5366 |
cat conftest.$ac_ext >&5
|
sl@0
|
5367 |
rm -rf conftest*
|
sl@0
|
5368 |
tcl_cv_api_getpwuid_r_5=no
|
sl@0
|
5369 |
fi
|
sl@0
|
5370 |
rm -f conftest*
|
sl@0
|
5371 |
fi
|
sl@0
|
5372 |
|
sl@0
|
5373 |
echo "$ac_t""$tcl_cv_api_getpwuid_r_5" 1>&6
|
sl@0
|
5374 |
tcl_ok=$tcl_cv_api_getpwuid_r_5
|
sl@0
|
5375 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5376 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5377 |
#define HAVE_GETPWUID_R_5 1
|
sl@0
|
5378 |
EOF
|
sl@0
|
5379 |
|
sl@0
|
5380 |
else
|
sl@0
|
5381 |
echo $ac_n "checking for getpwuid_r with 4 args""... $ac_c" 1>&6
|
sl@0
|
5382 |
echo "configure:5383: checking for getpwuid_r with 4 args" >&5
|
sl@0
|
5383 |
if eval "test \"`echo '$''{'tcl_cv_api_getpwuid_r_4'+set}'`\" = set"; then
|
sl@0
|
5384 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5385 |
else
|
sl@0
|
5386 |
|
sl@0
|
5387 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5388 |
#line 5389 "configure"
|
sl@0
|
5389 |
#include "confdefs.h"
|
sl@0
|
5390 |
|
sl@0
|
5391 |
#include <sys/types.h>
|
sl@0
|
5392 |
#include <pwd.h>
|
sl@0
|
5393 |
|
sl@0
|
5394 |
int main() {
|
sl@0
|
5395 |
|
sl@0
|
5396 |
uid_t uid;
|
sl@0
|
5397 |
struct passwd pw;
|
sl@0
|
5398 |
char buf[512];
|
sl@0
|
5399 |
int buflen = 512;
|
sl@0
|
5400 |
|
sl@0
|
5401 |
(void)getpwnam_r(uid, &pw, buf, buflen);
|
sl@0
|
5402 |
|
sl@0
|
5403 |
; return 0; }
|
sl@0
|
5404 |
EOF
|
sl@0
|
5405 |
if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5406 |
rm -rf conftest*
|
sl@0
|
5407 |
tcl_cv_api_getpwuid_r_4=yes
|
sl@0
|
5408 |
else
|
sl@0
|
5409 |
echo "configure: failed program was:" >&5
|
sl@0
|
5410 |
cat conftest.$ac_ext >&5
|
sl@0
|
5411 |
rm -rf conftest*
|
sl@0
|
5412 |
tcl_cv_api_getpwuid_r_4=no
|
sl@0
|
5413 |
fi
|
sl@0
|
5414 |
rm -f conftest*
|
sl@0
|
5415 |
fi
|
sl@0
|
5416 |
|
sl@0
|
5417 |
echo "$ac_t""$tcl_cv_api_getpwuid_r_4" 1>&6
|
sl@0
|
5418 |
tcl_ok=$tcl_cv_api_getpwuid_r_4
|
sl@0
|
5419 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5420 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5421 |
#define HAVE_GETPWUID_R_4 1
|
sl@0
|
5422 |
EOF
|
sl@0
|
5423 |
|
sl@0
|
5424 |
fi
|
sl@0
|
5425 |
fi
|
sl@0
|
5426 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5427 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5428 |
#define HAVE_GETPWUID_R 1
|
sl@0
|
5429 |
EOF
|
sl@0
|
5430 |
|
sl@0
|
5431 |
fi
|
sl@0
|
5432 |
|
sl@0
|
5433 |
else
|
sl@0
|
5434 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5435 |
fi
|
sl@0
|
5436 |
|
sl@0
|
5437 |
echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
|
sl@0
|
5438 |
echo "configure:5439: checking for getpwnam_r" >&5
|
sl@0
|
5439 |
if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r'+set}'`\" = set"; then
|
sl@0
|
5440 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5441 |
else
|
sl@0
|
5442 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5443 |
#line 5444 "configure"
|
sl@0
|
5444 |
#include "confdefs.h"
|
sl@0
|
5445 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5446 |
which can conflict with char getpwnam_r(); below. */
|
sl@0
|
5447 |
#include <assert.h>
|
sl@0
|
5448 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5449 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5450 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5451 |
char getpwnam_r();
|
sl@0
|
5452 |
|
sl@0
|
5453 |
int main() {
|
sl@0
|
5454 |
|
sl@0
|
5455 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5456 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5457 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5458 |
#if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r)
|
sl@0
|
5459 |
choke me
|
sl@0
|
5460 |
#else
|
sl@0
|
5461 |
getpwnam_r();
|
sl@0
|
5462 |
#endif
|
sl@0
|
5463 |
|
sl@0
|
5464 |
; return 0; }
|
sl@0
|
5465 |
EOF
|
sl@0
|
5466 |
if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5467 |
rm -rf conftest*
|
sl@0
|
5468 |
eval "ac_cv_func_getpwnam_r=yes"
|
sl@0
|
5469 |
else
|
sl@0
|
5470 |
echo "configure: failed program was:" >&5
|
sl@0
|
5471 |
cat conftest.$ac_ext >&5
|
sl@0
|
5472 |
rm -rf conftest*
|
sl@0
|
5473 |
eval "ac_cv_func_getpwnam_r=no"
|
sl@0
|
5474 |
fi
|
sl@0
|
5475 |
rm -f conftest*
|
sl@0
|
5476 |
fi
|
sl@0
|
5477 |
|
sl@0
|
5478 |
if eval "test \"`echo '$ac_cv_func_'getpwnam_r`\" = yes"; then
|
sl@0
|
5479 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5480 |
|
sl@0
|
5481 |
echo $ac_n "checking for getpwnam_r with 5 args""... $ac_c" 1>&6
|
sl@0
|
5482 |
echo "configure:5483: checking for getpwnam_r with 5 args" >&5
|
sl@0
|
5483 |
if eval "test \"`echo '$''{'tcl_cv_api_getpwnam_r_5'+set}'`\" = set"; then
|
sl@0
|
5484 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5485 |
else
|
sl@0
|
5486 |
|
sl@0
|
5487 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5488 |
#line 5489 "configure"
|
sl@0
|
5489 |
#include "confdefs.h"
|
sl@0
|
5490 |
|
sl@0
|
5491 |
#include <sys/types.h>
|
sl@0
|
5492 |
#include <pwd.h>
|
sl@0
|
5493 |
|
sl@0
|
5494 |
int main() {
|
sl@0
|
5495 |
|
sl@0
|
5496 |
char *name;
|
sl@0
|
5497 |
struct passwd pw, *pwp;
|
sl@0
|
5498 |
char buf[512];
|
sl@0
|
5499 |
int buflen = 512;
|
sl@0
|
5500 |
|
sl@0
|
5501 |
(void) getpwnam_r(name, &pw, buf, buflen, &pwp);
|
sl@0
|
5502 |
|
sl@0
|
5503 |
; return 0; }
|
sl@0
|
5504 |
EOF
|
sl@0
|
5505 |
if { (eval echo configure:5506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5506 |
rm -rf conftest*
|
sl@0
|
5507 |
tcl_cv_api_getpwnam_r_5=yes
|
sl@0
|
5508 |
else
|
sl@0
|
5509 |
echo "configure: failed program was:" >&5
|
sl@0
|
5510 |
cat conftest.$ac_ext >&5
|
sl@0
|
5511 |
rm -rf conftest*
|
sl@0
|
5512 |
tcl_cv_api_getpwnam_r_5=no
|
sl@0
|
5513 |
fi
|
sl@0
|
5514 |
rm -f conftest*
|
sl@0
|
5515 |
fi
|
sl@0
|
5516 |
|
sl@0
|
5517 |
echo "$ac_t""$tcl_cv_api_getpwnam_r_5" 1>&6
|
sl@0
|
5518 |
tcl_ok=$tcl_cv_api_getpwnam_r_5
|
sl@0
|
5519 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5520 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5521 |
#define HAVE_GETPWNAM_R_5 1
|
sl@0
|
5522 |
EOF
|
sl@0
|
5523 |
|
sl@0
|
5524 |
else
|
sl@0
|
5525 |
echo $ac_n "checking for getpwnam_r with 4 args""... $ac_c" 1>&6
|
sl@0
|
5526 |
echo "configure:5527: checking for getpwnam_r with 4 args" >&5
|
sl@0
|
5527 |
if eval "test \"`echo '$''{'tcl_cv_api_getpwnam_r_4'+set}'`\" = set"; then
|
sl@0
|
5528 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5529 |
else
|
sl@0
|
5530 |
|
sl@0
|
5531 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5532 |
#line 5533 "configure"
|
sl@0
|
5533 |
#include "confdefs.h"
|
sl@0
|
5534 |
|
sl@0
|
5535 |
#include <sys/types.h>
|
sl@0
|
5536 |
#include <pwd.h>
|
sl@0
|
5537 |
|
sl@0
|
5538 |
int main() {
|
sl@0
|
5539 |
|
sl@0
|
5540 |
char *name;
|
sl@0
|
5541 |
struct passwd pw;
|
sl@0
|
5542 |
char buf[512];
|
sl@0
|
5543 |
int buflen = 512;
|
sl@0
|
5544 |
|
sl@0
|
5545 |
(void)getpwnam_r(name, &pw, buf, buflen);
|
sl@0
|
5546 |
|
sl@0
|
5547 |
; return 0; }
|
sl@0
|
5548 |
EOF
|
sl@0
|
5549 |
if { (eval echo configure:5550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5550 |
rm -rf conftest*
|
sl@0
|
5551 |
tcl_cv_api_getpwnam_r_4=yes
|
sl@0
|
5552 |
else
|
sl@0
|
5553 |
echo "configure: failed program was:" >&5
|
sl@0
|
5554 |
cat conftest.$ac_ext >&5
|
sl@0
|
5555 |
rm -rf conftest*
|
sl@0
|
5556 |
tcl_cv_api_getpwnam_r_4=no
|
sl@0
|
5557 |
fi
|
sl@0
|
5558 |
rm -f conftest*
|
sl@0
|
5559 |
fi
|
sl@0
|
5560 |
|
sl@0
|
5561 |
echo "$ac_t""$tcl_cv_api_getpwnam_r_4" 1>&6
|
sl@0
|
5562 |
tcl_ok=$tcl_cv_api_getpwnam_r_4
|
sl@0
|
5563 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5564 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5565 |
#define HAVE_GETPWNAM_R_4 1
|
sl@0
|
5566 |
EOF
|
sl@0
|
5567 |
|
sl@0
|
5568 |
fi
|
sl@0
|
5569 |
fi
|
sl@0
|
5570 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5571 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5572 |
#define HAVE_GETPWNAM_R 1
|
sl@0
|
5573 |
EOF
|
sl@0
|
5574 |
|
sl@0
|
5575 |
fi
|
sl@0
|
5576 |
|
sl@0
|
5577 |
else
|
sl@0
|
5578 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5579 |
fi
|
sl@0
|
5580 |
|
sl@0
|
5581 |
echo $ac_n "checking for getgrgid_r""... $ac_c" 1>&6
|
sl@0
|
5582 |
echo "configure:5583: checking for getgrgid_r" >&5
|
sl@0
|
5583 |
if eval "test \"`echo '$''{'ac_cv_func_getgrgid_r'+set}'`\" = set"; then
|
sl@0
|
5584 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5585 |
else
|
sl@0
|
5586 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5587 |
#line 5588 "configure"
|
sl@0
|
5588 |
#include "confdefs.h"
|
sl@0
|
5589 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5590 |
which can conflict with char getgrgid_r(); below. */
|
sl@0
|
5591 |
#include <assert.h>
|
sl@0
|
5592 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5593 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5594 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5595 |
char getgrgid_r();
|
sl@0
|
5596 |
|
sl@0
|
5597 |
int main() {
|
sl@0
|
5598 |
|
sl@0
|
5599 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5600 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5601 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5602 |
#if defined (__stub_getgrgid_r) || defined (__stub___getgrgid_r)
|
sl@0
|
5603 |
choke me
|
sl@0
|
5604 |
#else
|
sl@0
|
5605 |
getgrgid_r();
|
sl@0
|
5606 |
#endif
|
sl@0
|
5607 |
|
sl@0
|
5608 |
; return 0; }
|
sl@0
|
5609 |
EOF
|
sl@0
|
5610 |
if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5611 |
rm -rf conftest*
|
sl@0
|
5612 |
eval "ac_cv_func_getgrgid_r=yes"
|
sl@0
|
5613 |
else
|
sl@0
|
5614 |
echo "configure: failed program was:" >&5
|
sl@0
|
5615 |
cat conftest.$ac_ext >&5
|
sl@0
|
5616 |
rm -rf conftest*
|
sl@0
|
5617 |
eval "ac_cv_func_getgrgid_r=no"
|
sl@0
|
5618 |
fi
|
sl@0
|
5619 |
rm -f conftest*
|
sl@0
|
5620 |
fi
|
sl@0
|
5621 |
|
sl@0
|
5622 |
if eval "test \"`echo '$ac_cv_func_'getgrgid_r`\" = yes"; then
|
sl@0
|
5623 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5624 |
|
sl@0
|
5625 |
echo $ac_n "checking for getgrgid_r with 5 args""... $ac_c" 1>&6
|
sl@0
|
5626 |
echo "configure:5627: checking for getgrgid_r with 5 args" >&5
|
sl@0
|
5627 |
if eval "test \"`echo '$''{'tcl_cv_api_getgrgid_r_5'+set}'`\" = set"; then
|
sl@0
|
5628 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5629 |
else
|
sl@0
|
5630 |
|
sl@0
|
5631 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5632 |
#line 5633 "configure"
|
sl@0
|
5633 |
#include "confdefs.h"
|
sl@0
|
5634 |
|
sl@0
|
5635 |
#include <sys/types.h>
|
sl@0
|
5636 |
#include <grp.h>
|
sl@0
|
5637 |
|
sl@0
|
5638 |
int main() {
|
sl@0
|
5639 |
|
sl@0
|
5640 |
gid_t gid;
|
sl@0
|
5641 |
struct group gr, *grp;
|
sl@0
|
5642 |
char buf[512];
|
sl@0
|
5643 |
int buflen = 512;
|
sl@0
|
5644 |
|
sl@0
|
5645 |
(void) getgrgid_r(gid, &gr, buf, buflen, &grp);
|
sl@0
|
5646 |
|
sl@0
|
5647 |
; return 0; }
|
sl@0
|
5648 |
EOF
|
sl@0
|
5649 |
if { (eval echo configure:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5650 |
rm -rf conftest*
|
sl@0
|
5651 |
tcl_cv_api_getgrgid_r_5=yes
|
sl@0
|
5652 |
else
|
sl@0
|
5653 |
echo "configure: failed program was:" >&5
|
sl@0
|
5654 |
cat conftest.$ac_ext >&5
|
sl@0
|
5655 |
rm -rf conftest*
|
sl@0
|
5656 |
tcl_cv_api_getgrgid_r_5=no
|
sl@0
|
5657 |
fi
|
sl@0
|
5658 |
rm -f conftest*
|
sl@0
|
5659 |
fi
|
sl@0
|
5660 |
|
sl@0
|
5661 |
echo "$ac_t""$tcl_cv_api_getgrgid_r_5" 1>&6
|
sl@0
|
5662 |
tcl_ok=$tcl_cv_api_getgrgid_r_5
|
sl@0
|
5663 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5664 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5665 |
#define HAVE_GETGRGID_R_5 1
|
sl@0
|
5666 |
EOF
|
sl@0
|
5667 |
|
sl@0
|
5668 |
else
|
sl@0
|
5669 |
echo $ac_n "checking for getgrgid_r with 4 args""... $ac_c" 1>&6
|
sl@0
|
5670 |
echo "configure:5671: checking for getgrgid_r with 4 args" >&5
|
sl@0
|
5671 |
if eval "test \"`echo '$''{'tcl_cv_api_getgrgid_r_4'+set}'`\" = set"; then
|
sl@0
|
5672 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5673 |
else
|
sl@0
|
5674 |
|
sl@0
|
5675 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5676 |
#line 5677 "configure"
|
sl@0
|
5677 |
#include "confdefs.h"
|
sl@0
|
5678 |
|
sl@0
|
5679 |
#include <sys/types.h>
|
sl@0
|
5680 |
#include <grp.h>
|
sl@0
|
5681 |
|
sl@0
|
5682 |
int main() {
|
sl@0
|
5683 |
|
sl@0
|
5684 |
gid_t gid;
|
sl@0
|
5685 |
struct group gr;
|
sl@0
|
5686 |
char buf[512];
|
sl@0
|
5687 |
int buflen = 512;
|
sl@0
|
5688 |
|
sl@0
|
5689 |
(void)getgrgid_r(gid, &gr, buf, buflen);
|
sl@0
|
5690 |
|
sl@0
|
5691 |
; return 0; }
|
sl@0
|
5692 |
EOF
|
sl@0
|
5693 |
if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5694 |
rm -rf conftest*
|
sl@0
|
5695 |
tcl_cv_api_getgrgid_r_4=yes
|
sl@0
|
5696 |
else
|
sl@0
|
5697 |
echo "configure: failed program was:" >&5
|
sl@0
|
5698 |
cat conftest.$ac_ext >&5
|
sl@0
|
5699 |
rm -rf conftest*
|
sl@0
|
5700 |
tcl_cv_api_getgrgid_r_4=no
|
sl@0
|
5701 |
fi
|
sl@0
|
5702 |
rm -f conftest*
|
sl@0
|
5703 |
fi
|
sl@0
|
5704 |
|
sl@0
|
5705 |
echo "$ac_t""$tcl_cv_api_getgrgid_r_4" 1>&6
|
sl@0
|
5706 |
tcl_ok=$tcl_cv_api_getgrgid_r_4
|
sl@0
|
5707 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5708 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5709 |
#define HAVE_GETGRGID_R_4 1
|
sl@0
|
5710 |
EOF
|
sl@0
|
5711 |
|
sl@0
|
5712 |
fi
|
sl@0
|
5713 |
fi
|
sl@0
|
5714 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5715 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5716 |
#define HAVE_GETGRGID_R 1
|
sl@0
|
5717 |
EOF
|
sl@0
|
5718 |
|
sl@0
|
5719 |
fi
|
sl@0
|
5720 |
|
sl@0
|
5721 |
else
|
sl@0
|
5722 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5723 |
fi
|
sl@0
|
5724 |
|
sl@0
|
5725 |
echo $ac_n "checking for getgrnam_r""... $ac_c" 1>&6
|
sl@0
|
5726 |
echo "configure:5727: checking for getgrnam_r" >&5
|
sl@0
|
5727 |
if eval "test \"`echo '$''{'ac_cv_func_getgrnam_r'+set}'`\" = set"; then
|
sl@0
|
5728 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5729 |
else
|
sl@0
|
5730 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5731 |
#line 5732 "configure"
|
sl@0
|
5732 |
#include "confdefs.h"
|
sl@0
|
5733 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5734 |
which can conflict with char getgrnam_r(); below. */
|
sl@0
|
5735 |
#include <assert.h>
|
sl@0
|
5736 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5737 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5738 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5739 |
char getgrnam_r();
|
sl@0
|
5740 |
|
sl@0
|
5741 |
int main() {
|
sl@0
|
5742 |
|
sl@0
|
5743 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5744 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5745 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5746 |
#if defined (__stub_getgrnam_r) || defined (__stub___getgrnam_r)
|
sl@0
|
5747 |
choke me
|
sl@0
|
5748 |
#else
|
sl@0
|
5749 |
getgrnam_r();
|
sl@0
|
5750 |
#endif
|
sl@0
|
5751 |
|
sl@0
|
5752 |
; return 0; }
|
sl@0
|
5753 |
EOF
|
sl@0
|
5754 |
if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5755 |
rm -rf conftest*
|
sl@0
|
5756 |
eval "ac_cv_func_getgrnam_r=yes"
|
sl@0
|
5757 |
else
|
sl@0
|
5758 |
echo "configure: failed program was:" >&5
|
sl@0
|
5759 |
cat conftest.$ac_ext >&5
|
sl@0
|
5760 |
rm -rf conftest*
|
sl@0
|
5761 |
eval "ac_cv_func_getgrnam_r=no"
|
sl@0
|
5762 |
fi
|
sl@0
|
5763 |
rm -f conftest*
|
sl@0
|
5764 |
fi
|
sl@0
|
5765 |
|
sl@0
|
5766 |
if eval "test \"`echo '$ac_cv_func_'getgrnam_r`\" = yes"; then
|
sl@0
|
5767 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5768 |
|
sl@0
|
5769 |
echo $ac_n "checking for getgrnam_r with 5 args""... $ac_c" 1>&6
|
sl@0
|
5770 |
echo "configure:5771: checking for getgrnam_r with 5 args" >&5
|
sl@0
|
5771 |
if eval "test \"`echo '$''{'tcl_cv_api_getgrnam_r_5'+set}'`\" = set"; then
|
sl@0
|
5772 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5773 |
else
|
sl@0
|
5774 |
|
sl@0
|
5775 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5776 |
#line 5777 "configure"
|
sl@0
|
5777 |
#include "confdefs.h"
|
sl@0
|
5778 |
|
sl@0
|
5779 |
#include <sys/types.h>
|
sl@0
|
5780 |
#include <grp.h>
|
sl@0
|
5781 |
|
sl@0
|
5782 |
int main() {
|
sl@0
|
5783 |
|
sl@0
|
5784 |
char *name;
|
sl@0
|
5785 |
struct group gr, *grp;
|
sl@0
|
5786 |
char buf[512];
|
sl@0
|
5787 |
int buflen = 512;
|
sl@0
|
5788 |
|
sl@0
|
5789 |
(void) getgrnam_r(name, &gr, buf, buflen, &grp);
|
sl@0
|
5790 |
|
sl@0
|
5791 |
; return 0; }
|
sl@0
|
5792 |
EOF
|
sl@0
|
5793 |
if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5794 |
rm -rf conftest*
|
sl@0
|
5795 |
tcl_cv_api_getgrnam_r_5=yes
|
sl@0
|
5796 |
else
|
sl@0
|
5797 |
echo "configure: failed program was:" >&5
|
sl@0
|
5798 |
cat conftest.$ac_ext >&5
|
sl@0
|
5799 |
rm -rf conftest*
|
sl@0
|
5800 |
tcl_cv_api_getgrnam_r_5=no
|
sl@0
|
5801 |
fi
|
sl@0
|
5802 |
rm -f conftest*
|
sl@0
|
5803 |
fi
|
sl@0
|
5804 |
|
sl@0
|
5805 |
echo "$ac_t""$tcl_cv_api_getgrnam_r_5" 1>&6
|
sl@0
|
5806 |
tcl_ok=$tcl_cv_api_getgrnam_r_5
|
sl@0
|
5807 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5808 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5809 |
#define HAVE_GETGRNAM_R_5 1
|
sl@0
|
5810 |
EOF
|
sl@0
|
5811 |
|
sl@0
|
5812 |
else
|
sl@0
|
5813 |
echo $ac_n "checking for getgrnam_r with 4 args""... $ac_c" 1>&6
|
sl@0
|
5814 |
echo "configure:5815: checking for getgrnam_r with 4 args" >&5
|
sl@0
|
5815 |
if eval "test \"`echo '$''{'tcl_cv_api_getgrnam_r_4'+set}'`\" = set"; then
|
sl@0
|
5816 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5817 |
else
|
sl@0
|
5818 |
|
sl@0
|
5819 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5820 |
#line 5821 "configure"
|
sl@0
|
5821 |
#include "confdefs.h"
|
sl@0
|
5822 |
|
sl@0
|
5823 |
#include <sys/types.h>
|
sl@0
|
5824 |
#include <grp.h>
|
sl@0
|
5825 |
|
sl@0
|
5826 |
int main() {
|
sl@0
|
5827 |
|
sl@0
|
5828 |
char *name;
|
sl@0
|
5829 |
struct group gr;
|
sl@0
|
5830 |
char buf[512];
|
sl@0
|
5831 |
int buflen = 512;
|
sl@0
|
5832 |
|
sl@0
|
5833 |
(void)getgrnam_r(name, &gr, buf, buflen);
|
sl@0
|
5834 |
|
sl@0
|
5835 |
; return 0; }
|
sl@0
|
5836 |
EOF
|
sl@0
|
5837 |
if { (eval echo configure:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5838 |
rm -rf conftest*
|
sl@0
|
5839 |
tcl_cv_api_getgrnam_r_4=yes
|
sl@0
|
5840 |
else
|
sl@0
|
5841 |
echo "configure: failed program was:" >&5
|
sl@0
|
5842 |
cat conftest.$ac_ext >&5
|
sl@0
|
5843 |
rm -rf conftest*
|
sl@0
|
5844 |
tcl_cv_api_getgrnam_r_4=no
|
sl@0
|
5845 |
fi
|
sl@0
|
5846 |
rm -f conftest*
|
sl@0
|
5847 |
fi
|
sl@0
|
5848 |
|
sl@0
|
5849 |
echo "$ac_t""$tcl_cv_api_getgrnam_r_4" 1>&6
|
sl@0
|
5850 |
tcl_ok=$tcl_cv_api_getgrnam_r_4
|
sl@0
|
5851 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5852 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5853 |
#define HAVE_GETGRNAM_R_4 1
|
sl@0
|
5854 |
EOF
|
sl@0
|
5855 |
|
sl@0
|
5856 |
fi
|
sl@0
|
5857 |
fi
|
sl@0
|
5858 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5859 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5860 |
#define HAVE_GETGRNAM_R 1
|
sl@0
|
5861 |
EOF
|
sl@0
|
5862 |
|
sl@0
|
5863 |
fi
|
sl@0
|
5864 |
|
sl@0
|
5865 |
else
|
sl@0
|
5866 |
echo "$ac_t""no" 1>&6
|
sl@0
|
5867 |
fi
|
sl@0
|
5868 |
|
sl@0
|
5869 |
if test "`uname -s`" = "Darwin" && \
|
sl@0
|
5870 |
test "`uname -r | awk -F. '{print $1}'`" -gt 5; then
|
sl@0
|
5871 |
# Starting with Darwin 6 (Mac OSX 10.2), gethostbyX
|
sl@0
|
5872 |
# are actually MT-safe as they always return pointers
|
sl@0
|
5873 |
# from the TSD instead of the static storage.
|
sl@0
|
5874 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5875 |
#define HAVE_MTSAFE_GETHOSTBYNAME 1
|
sl@0
|
5876 |
EOF
|
sl@0
|
5877 |
|
sl@0
|
5878 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5879 |
#define HAVE_MTSAFE_GETHOSTBYADDR 1
|
sl@0
|
5880 |
EOF
|
sl@0
|
5881 |
|
sl@0
|
5882 |
elif test "`uname -s`" = "HP-UX" && \
|
sl@0
|
5883 |
test "`uname -r|sed -e 's|B\.||' -e 's|\..*$||'`" -gt 10; then
|
sl@0
|
5884 |
# Starting with HPUX 11.00 (we believe), gethostbyX
|
sl@0
|
5885 |
# are actually MT-safe as they always return pointers
|
sl@0
|
5886 |
# from TSD instead of static storage.
|
sl@0
|
5887 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5888 |
#define HAVE_MTSAFE_GETHOSTBYNAME 1
|
sl@0
|
5889 |
EOF
|
sl@0
|
5890 |
|
sl@0
|
5891 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5892 |
#define HAVE_MTSAFE_GETHOSTBYADDR 1
|
sl@0
|
5893 |
EOF
|
sl@0
|
5894 |
|
sl@0
|
5895 |
else
|
sl@0
|
5896 |
echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
|
sl@0
|
5897 |
echo "configure:5898: checking for gethostbyname_r" >&5
|
sl@0
|
5898 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
|
sl@0
|
5899 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5900 |
else
|
sl@0
|
5901 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5902 |
#line 5903 "configure"
|
sl@0
|
5903 |
#include "confdefs.h"
|
sl@0
|
5904 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
5905 |
which can conflict with char gethostbyname_r(); below. */
|
sl@0
|
5906 |
#include <assert.h>
|
sl@0
|
5907 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
5908 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
5909 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
5910 |
char gethostbyname_r();
|
sl@0
|
5911 |
|
sl@0
|
5912 |
int main() {
|
sl@0
|
5913 |
|
sl@0
|
5914 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
5915 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
5916 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
5917 |
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
|
sl@0
|
5918 |
choke me
|
sl@0
|
5919 |
#else
|
sl@0
|
5920 |
gethostbyname_r();
|
sl@0
|
5921 |
#endif
|
sl@0
|
5922 |
|
sl@0
|
5923 |
; return 0; }
|
sl@0
|
5924 |
EOF
|
sl@0
|
5925 |
if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
5926 |
rm -rf conftest*
|
sl@0
|
5927 |
eval "ac_cv_func_gethostbyname_r=yes"
|
sl@0
|
5928 |
else
|
sl@0
|
5929 |
echo "configure: failed program was:" >&5
|
sl@0
|
5930 |
cat conftest.$ac_ext >&5
|
sl@0
|
5931 |
rm -rf conftest*
|
sl@0
|
5932 |
eval "ac_cv_func_gethostbyname_r=no"
|
sl@0
|
5933 |
fi
|
sl@0
|
5934 |
rm -f conftest*
|
sl@0
|
5935 |
fi
|
sl@0
|
5936 |
|
sl@0
|
5937 |
if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
|
sl@0
|
5938 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
5939 |
|
sl@0
|
5940 |
echo $ac_n "checking for gethostbyname_r with 6 args""... $ac_c" 1>&6
|
sl@0
|
5941 |
echo "configure:5942: checking for gethostbyname_r with 6 args" >&5
|
sl@0
|
5942 |
if eval "test \"`echo '$''{'tcl_cv_api_gethostbyname_r_6'+set}'`\" = set"; then
|
sl@0
|
5943 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5944 |
else
|
sl@0
|
5945 |
|
sl@0
|
5946 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5947 |
#line 5948 "configure"
|
sl@0
|
5948 |
#include "confdefs.h"
|
sl@0
|
5949 |
|
sl@0
|
5950 |
#include <netdb.h>
|
sl@0
|
5951 |
|
sl@0
|
5952 |
int main() {
|
sl@0
|
5953 |
|
sl@0
|
5954 |
char *name;
|
sl@0
|
5955 |
struct hostent *he, *res;
|
sl@0
|
5956 |
char buffer[2048];
|
sl@0
|
5957 |
int buflen = 2048;
|
sl@0
|
5958 |
int h_errnop;
|
sl@0
|
5959 |
|
sl@0
|
5960 |
(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop);
|
sl@0
|
5961 |
|
sl@0
|
5962 |
; return 0; }
|
sl@0
|
5963 |
EOF
|
sl@0
|
5964 |
if { (eval echo configure:5965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
5965 |
rm -rf conftest*
|
sl@0
|
5966 |
tcl_cv_api_gethostbyname_r_6=yes
|
sl@0
|
5967 |
else
|
sl@0
|
5968 |
echo "configure: failed program was:" >&5
|
sl@0
|
5969 |
cat conftest.$ac_ext >&5
|
sl@0
|
5970 |
rm -rf conftest*
|
sl@0
|
5971 |
tcl_cv_api_gethostbyname_r_6=no
|
sl@0
|
5972 |
fi
|
sl@0
|
5973 |
rm -f conftest*
|
sl@0
|
5974 |
fi
|
sl@0
|
5975 |
|
sl@0
|
5976 |
echo "$ac_t""$tcl_cv_api_gethostbyname_r_6" 1>&6
|
sl@0
|
5977 |
tcl_ok=$tcl_cv_api_gethostbyname_r_6
|
sl@0
|
5978 |
if test "$tcl_ok" = yes; then
|
sl@0
|
5979 |
cat >> confdefs.h <<\EOF
|
sl@0
|
5980 |
#define HAVE_GETHOSTBYNAME_R_6 1
|
sl@0
|
5981 |
EOF
|
sl@0
|
5982 |
|
sl@0
|
5983 |
else
|
sl@0
|
5984 |
echo $ac_n "checking for gethostbyname_r with 5 args""... $ac_c" 1>&6
|
sl@0
|
5985 |
echo "configure:5986: checking for gethostbyname_r with 5 args" >&5
|
sl@0
|
5986 |
if eval "test \"`echo '$''{'tcl_cv_api_gethostbyname_r_5'+set}'`\" = set"; then
|
sl@0
|
5987 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
5988 |
else
|
sl@0
|
5989 |
|
sl@0
|
5990 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
5991 |
#line 5992 "configure"
|
sl@0
|
5992 |
#include "confdefs.h"
|
sl@0
|
5993 |
|
sl@0
|
5994 |
#include <netdb.h>
|
sl@0
|
5995 |
|
sl@0
|
5996 |
int main() {
|
sl@0
|
5997 |
|
sl@0
|
5998 |
char *name;
|
sl@0
|
5999 |
struct hostent *he;
|
sl@0
|
6000 |
char buffer[2048];
|
sl@0
|
6001 |
int buflen = 2048;
|
sl@0
|
6002 |
int h_errnop;
|
sl@0
|
6003 |
|
sl@0
|
6004 |
(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop);
|
sl@0
|
6005 |
|
sl@0
|
6006 |
; return 0; }
|
sl@0
|
6007 |
EOF
|
sl@0
|
6008 |
if { (eval echo configure:6009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6009 |
rm -rf conftest*
|
sl@0
|
6010 |
tcl_cv_api_gethostbyname_r_5=yes
|
sl@0
|
6011 |
else
|
sl@0
|
6012 |
echo "configure: failed program was:" >&5
|
sl@0
|
6013 |
cat conftest.$ac_ext >&5
|
sl@0
|
6014 |
rm -rf conftest*
|
sl@0
|
6015 |
tcl_cv_api_gethostbyname_r_5=no
|
sl@0
|
6016 |
fi
|
sl@0
|
6017 |
rm -f conftest*
|
sl@0
|
6018 |
fi
|
sl@0
|
6019 |
|
sl@0
|
6020 |
echo "$ac_t""$tcl_cv_api_gethostbyname_r_5" 1>&6
|
sl@0
|
6021 |
tcl_ok=$tcl_cv_api_gethostbyname_r_5
|
sl@0
|
6022 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6023 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6024 |
#define HAVE_GETHOSTBYNAME_R_5 1
|
sl@0
|
6025 |
EOF
|
sl@0
|
6026 |
|
sl@0
|
6027 |
else
|
sl@0
|
6028 |
echo $ac_n "checking for gethostbyname_r with 3 args""... $ac_c" 1>&6
|
sl@0
|
6029 |
echo "configure:6030: checking for gethostbyname_r with 3 args" >&5
|
sl@0
|
6030 |
if eval "test \"`echo '$''{'tcl_cv_api_gethostbyname_r_3'+set}'`\" = set"; then
|
sl@0
|
6031 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6032 |
else
|
sl@0
|
6033 |
|
sl@0
|
6034 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6035 |
#line 6036 "configure"
|
sl@0
|
6036 |
#include "confdefs.h"
|
sl@0
|
6037 |
|
sl@0
|
6038 |
#include <netdb.h>
|
sl@0
|
6039 |
|
sl@0
|
6040 |
int main() {
|
sl@0
|
6041 |
|
sl@0
|
6042 |
char *name;
|
sl@0
|
6043 |
struct hostent *he;
|
sl@0
|
6044 |
struct hostent_data data;
|
sl@0
|
6045 |
|
sl@0
|
6046 |
(void) gethostbyname_r(name, he, &data);
|
sl@0
|
6047 |
|
sl@0
|
6048 |
; return 0; }
|
sl@0
|
6049 |
EOF
|
sl@0
|
6050 |
if { (eval echo configure:6051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6051 |
rm -rf conftest*
|
sl@0
|
6052 |
tcl_cv_api_gethostbyname_r_3=yes
|
sl@0
|
6053 |
else
|
sl@0
|
6054 |
echo "configure: failed program was:" >&5
|
sl@0
|
6055 |
cat conftest.$ac_ext >&5
|
sl@0
|
6056 |
rm -rf conftest*
|
sl@0
|
6057 |
tcl_cv_api_gethostbyname_r_3=no
|
sl@0
|
6058 |
fi
|
sl@0
|
6059 |
rm -f conftest*
|
sl@0
|
6060 |
fi
|
sl@0
|
6061 |
|
sl@0
|
6062 |
echo "$ac_t""$tcl_cv_api_gethostbyname_r_3" 1>&6
|
sl@0
|
6063 |
tcl_ok=$tcl_cv_api_gethostbyname_r_3
|
sl@0
|
6064 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6065 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6066 |
#define HAVE_GETHOSTBYNAME_R_3 1
|
sl@0
|
6067 |
EOF
|
sl@0
|
6068 |
|
sl@0
|
6069 |
fi
|
sl@0
|
6070 |
fi
|
sl@0
|
6071 |
fi
|
sl@0
|
6072 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6073 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6074 |
#define HAVE_GETHOSTBYNAME_R 1
|
sl@0
|
6075 |
EOF
|
sl@0
|
6076 |
|
sl@0
|
6077 |
fi
|
sl@0
|
6078 |
|
sl@0
|
6079 |
else
|
sl@0
|
6080 |
echo "$ac_t""no" 1>&6
|
sl@0
|
6081 |
fi
|
sl@0
|
6082 |
|
sl@0
|
6083 |
echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
|
sl@0
|
6084 |
echo "configure:6085: checking for gethostbyaddr_r" >&5
|
sl@0
|
6085 |
if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
|
sl@0
|
6086 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6087 |
else
|
sl@0
|
6088 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6089 |
#line 6090 "configure"
|
sl@0
|
6090 |
#include "confdefs.h"
|
sl@0
|
6091 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
6092 |
which can conflict with char gethostbyaddr_r(); below. */
|
sl@0
|
6093 |
#include <assert.h>
|
sl@0
|
6094 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
6095 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
6096 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
6097 |
char gethostbyaddr_r();
|
sl@0
|
6098 |
|
sl@0
|
6099 |
int main() {
|
sl@0
|
6100 |
|
sl@0
|
6101 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
6102 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
6103 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
6104 |
#if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
|
sl@0
|
6105 |
choke me
|
sl@0
|
6106 |
#else
|
sl@0
|
6107 |
gethostbyaddr_r();
|
sl@0
|
6108 |
#endif
|
sl@0
|
6109 |
|
sl@0
|
6110 |
; return 0; }
|
sl@0
|
6111 |
EOF
|
sl@0
|
6112 |
if { (eval echo configure:6113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
6113 |
rm -rf conftest*
|
sl@0
|
6114 |
eval "ac_cv_func_gethostbyaddr_r=yes"
|
sl@0
|
6115 |
else
|
sl@0
|
6116 |
echo "configure: failed program was:" >&5
|
sl@0
|
6117 |
cat conftest.$ac_ext >&5
|
sl@0
|
6118 |
rm -rf conftest*
|
sl@0
|
6119 |
eval "ac_cv_func_gethostbyaddr_r=no"
|
sl@0
|
6120 |
fi
|
sl@0
|
6121 |
rm -f conftest*
|
sl@0
|
6122 |
fi
|
sl@0
|
6123 |
|
sl@0
|
6124 |
if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
|
sl@0
|
6125 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
6126 |
|
sl@0
|
6127 |
echo $ac_n "checking for gethostbyaddr_r with 7 args""... $ac_c" 1>&6
|
sl@0
|
6128 |
echo "configure:6129: checking for gethostbyaddr_r with 7 args" >&5
|
sl@0
|
6129 |
if eval "test \"`echo '$''{'tcl_cv_api_gethostbyaddr_r_7'+set}'`\" = set"; then
|
sl@0
|
6130 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6131 |
else
|
sl@0
|
6132 |
|
sl@0
|
6133 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6134 |
#line 6135 "configure"
|
sl@0
|
6135 |
#include "confdefs.h"
|
sl@0
|
6136 |
|
sl@0
|
6137 |
#include <netdb.h>
|
sl@0
|
6138 |
|
sl@0
|
6139 |
int main() {
|
sl@0
|
6140 |
|
sl@0
|
6141 |
char *addr;
|
sl@0
|
6142 |
int length;
|
sl@0
|
6143 |
int type;
|
sl@0
|
6144 |
struct hostent *result;
|
sl@0
|
6145 |
char buffer[2048];
|
sl@0
|
6146 |
int buflen = 2048;
|
sl@0
|
6147 |
int h_errnop;
|
sl@0
|
6148 |
|
sl@0
|
6149 |
(void) gethostbyaddr_r(addr, length, type, result, buffer, buflen,
|
sl@0
|
6150 |
&h_errnop);
|
sl@0
|
6151 |
|
sl@0
|
6152 |
; return 0; }
|
sl@0
|
6153 |
EOF
|
sl@0
|
6154 |
if { (eval echo configure:6155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6155 |
rm -rf conftest*
|
sl@0
|
6156 |
tcl_cv_api_gethostbyaddr_r_7=yes
|
sl@0
|
6157 |
else
|
sl@0
|
6158 |
echo "configure: failed program was:" >&5
|
sl@0
|
6159 |
cat conftest.$ac_ext >&5
|
sl@0
|
6160 |
rm -rf conftest*
|
sl@0
|
6161 |
tcl_cv_api_gethostbyaddr_r_7=no
|
sl@0
|
6162 |
fi
|
sl@0
|
6163 |
rm -f conftest*
|
sl@0
|
6164 |
fi
|
sl@0
|
6165 |
|
sl@0
|
6166 |
echo "$ac_t""$tcl_cv_api_gethostbyaddr_r_7" 1>&6
|
sl@0
|
6167 |
tcl_ok=$tcl_cv_api_gethostbyaddr_r_7
|
sl@0
|
6168 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6169 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6170 |
#define HAVE_GETHOSTBYADDR_R_7 1
|
sl@0
|
6171 |
EOF
|
sl@0
|
6172 |
|
sl@0
|
6173 |
else
|
sl@0
|
6174 |
echo $ac_n "checking for gethostbyaddr_r with 8 args""... $ac_c" 1>&6
|
sl@0
|
6175 |
echo "configure:6176: checking for gethostbyaddr_r with 8 args" >&5
|
sl@0
|
6176 |
if eval "test \"`echo '$''{'tcl_cv_api_gethostbyaddr_r_8'+set}'`\" = set"; then
|
sl@0
|
6177 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6178 |
else
|
sl@0
|
6179 |
|
sl@0
|
6180 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6181 |
#line 6182 "configure"
|
sl@0
|
6182 |
#include "confdefs.h"
|
sl@0
|
6183 |
|
sl@0
|
6184 |
#include <netdb.h>
|
sl@0
|
6185 |
|
sl@0
|
6186 |
int main() {
|
sl@0
|
6187 |
|
sl@0
|
6188 |
char *addr;
|
sl@0
|
6189 |
int length;
|
sl@0
|
6190 |
int type;
|
sl@0
|
6191 |
struct hostent *result, *resultp;
|
sl@0
|
6192 |
char buffer[2048];
|
sl@0
|
6193 |
int buflen = 2048;
|
sl@0
|
6194 |
int h_errnop;
|
sl@0
|
6195 |
|
sl@0
|
6196 |
(void) gethostbyaddr_r(addr, length, type, result, buffer, buflen,
|
sl@0
|
6197 |
&resultp, &h_errnop);
|
sl@0
|
6198 |
|
sl@0
|
6199 |
; return 0; }
|
sl@0
|
6200 |
EOF
|
sl@0
|
6201 |
if { (eval echo configure:6202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6202 |
rm -rf conftest*
|
sl@0
|
6203 |
tcl_cv_api_gethostbyaddr_r_8=yes
|
sl@0
|
6204 |
else
|
sl@0
|
6205 |
echo "configure: failed program was:" >&5
|
sl@0
|
6206 |
cat conftest.$ac_ext >&5
|
sl@0
|
6207 |
rm -rf conftest*
|
sl@0
|
6208 |
tcl_cv_api_gethostbyaddr_r_8=no
|
sl@0
|
6209 |
fi
|
sl@0
|
6210 |
rm -f conftest*
|
sl@0
|
6211 |
fi
|
sl@0
|
6212 |
|
sl@0
|
6213 |
echo "$ac_t""$tcl_cv_api_gethostbyaddr_r_8" 1>&6
|
sl@0
|
6214 |
tcl_ok=$tcl_cv_api_gethostbyaddr_r_8
|
sl@0
|
6215 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6216 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6217 |
#define HAVE_GETHOSTBYADDR_R_8 1
|
sl@0
|
6218 |
EOF
|
sl@0
|
6219 |
|
sl@0
|
6220 |
fi
|
sl@0
|
6221 |
fi
|
sl@0
|
6222 |
if test "$tcl_ok" = yes; then
|
sl@0
|
6223 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6224 |
#define HAVE_GETHOSTBYADDR_R 1
|
sl@0
|
6225 |
EOF
|
sl@0
|
6226 |
|
sl@0
|
6227 |
fi
|
sl@0
|
6228 |
|
sl@0
|
6229 |
else
|
sl@0
|
6230 |
echo "$ac_t""no" 1>&6
|
sl@0
|
6231 |
fi
|
sl@0
|
6232 |
|
sl@0
|
6233 |
fi
|
sl@0
|
6234 |
fi
|
sl@0
|
6235 |
|
sl@0
|
6236 |
#---------------------------------------------------------------------------
|
sl@0
|
6237 |
# Determine which interface to use to talk to the serial port.
|
sl@0
|
6238 |
# Note that #include lines must begin in leftmost column for
|
sl@0
|
6239 |
# some compilers to recognize them as preprocessor directives.
|
sl@0
|
6240 |
#---------------------------------------------------------------------------
|
sl@0
|
6241 |
|
sl@0
|
6242 |
|
sl@0
|
6243 |
for ac_hdr in sys/modem.h
|
sl@0
|
6244 |
do
|
sl@0
|
6245 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
6246 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
6247 |
echo "configure:6248: checking for $ac_hdr" >&5
|
sl@0
|
6248 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
6249 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6250 |
else
|
sl@0
|
6251 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6252 |
#line 6253 "configure"
|
sl@0
|
6253 |
#include "confdefs.h"
|
sl@0
|
6254 |
#include <$ac_hdr>
|
sl@0
|
6255 |
EOF
|
sl@0
|
6256 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
6257 |
{ (eval echo configure:6258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
6258 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
6259 |
if test -z "$ac_err"; then
|
sl@0
|
6260 |
rm -rf conftest*
|
sl@0
|
6261 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
6262 |
else
|
sl@0
|
6263 |
echo "$ac_err" >&5
|
sl@0
|
6264 |
echo "configure: failed program was:" >&5
|
sl@0
|
6265 |
cat conftest.$ac_ext >&5
|
sl@0
|
6266 |
rm -rf conftest*
|
sl@0
|
6267 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
6268 |
fi
|
sl@0
|
6269 |
rm -f conftest*
|
sl@0
|
6270 |
fi
|
sl@0
|
6271 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
6272 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
6273 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
6274 |
cat >> confdefs.h <<EOF
|
sl@0
|
6275 |
#define $ac_tr_hdr 1
|
sl@0
|
6276 |
EOF
|
sl@0
|
6277 |
|
sl@0
|
6278 |
else
|
sl@0
|
6279 |
echo "$ac_t""no" 1>&6
|
sl@0
|
6280 |
fi
|
sl@0
|
6281 |
done
|
sl@0
|
6282 |
|
sl@0
|
6283 |
echo $ac_n "checking termios vs. termio vs. sgtty""... $ac_c" 1>&6
|
sl@0
|
6284 |
echo "configure:6285: checking termios vs. termio vs. sgtty" >&5
|
sl@0
|
6285 |
if eval "test \"`echo '$''{'tcl_cv_api_serial'+set}'`\" = set"; then
|
sl@0
|
6286 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6287 |
else
|
sl@0
|
6288 |
|
sl@0
|
6289 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6290 |
tcl_cv_api_serial=no
|
sl@0
|
6291 |
else
|
sl@0
|
6292 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6293 |
#line 6294 "configure"
|
sl@0
|
6294 |
#include "confdefs.h"
|
sl@0
|
6295 |
|
sl@0
|
6296 |
#include <termios.h>
|
sl@0
|
6297 |
|
sl@0
|
6298 |
int main() {
|
sl@0
|
6299 |
struct termios t;
|
sl@0
|
6300 |
if (tcgetattr(0, &t) == 0) {
|
sl@0
|
6301 |
cfsetospeed(&t, 0);
|
sl@0
|
6302 |
t.c_cflag |= PARENB | PARODD | CSIZE | CSTOPB;
|
sl@0
|
6303 |
return 0;
|
sl@0
|
6304 |
}
|
sl@0
|
6305 |
return 1;
|
sl@0
|
6306 |
}
|
sl@0
|
6307 |
EOF
|
sl@0
|
6308 |
if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6309 |
then
|
sl@0
|
6310 |
tcl_cv_api_serial=termios
|
sl@0
|
6311 |
else
|
sl@0
|
6312 |
echo "configure: failed program was:" >&5
|
sl@0
|
6313 |
cat conftest.$ac_ext >&5
|
sl@0
|
6314 |
rm -fr conftest*
|
sl@0
|
6315 |
tcl_cv_api_serial=no
|
sl@0
|
6316 |
fi
|
sl@0
|
6317 |
rm -fr conftest*
|
sl@0
|
6318 |
fi
|
sl@0
|
6319 |
|
sl@0
|
6320 |
if test $tcl_cv_api_serial = no ; then
|
sl@0
|
6321 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6322 |
tcl_cv_api_serial=no
|
sl@0
|
6323 |
else
|
sl@0
|
6324 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6325 |
#line 6326 "configure"
|
sl@0
|
6326 |
#include "confdefs.h"
|
sl@0
|
6327 |
|
sl@0
|
6328 |
#include <termio.h>
|
sl@0
|
6329 |
|
sl@0
|
6330 |
int main() {
|
sl@0
|
6331 |
struct termio t;
|
sl@0
|
6332 |
if (ioctl(0, TCGETA, &t) == 0) {
|
sl@0
|
6333 |
t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB;
|
sl@0
|
6334 |
return 0;
|
sl@0
|
6335 |
}
|
sl@0
|
6336 |
return 1;
|
sl@0
|
6337 |
}
|
sl@0
|
6338 |
EOF
|
sl@0
|
6339 |
if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6340 |
then
|
sl@0
|
6341 |
tcl_cv_api_serial=termio
|
sl@0
|
6342 |
else
|
sl@0
|
6343 |
echo "configure: failed program was:" >&5
|
sl@0
|
6344 |
cat conftest.$ac_ext >&5
|
sl@0
|
6345 |
rm -fr conftest*
|
sl@0
|
6346 |
tcl_cv_api_serial=no
|
sl@0
|
6347 |
fi
|
sl@0
|
6348 |
rm -fr conftest*
|
sl@0
|
6349 |
fi
|
sl@0
|
6350 |
|
sl@0
|
6351 |
fi
|
sl@0
|
6352 |
if test $tcl_cv_api_serial = no ; then
|
sl@0
|
6353 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6354 |
tcl_cv_api_serial=no
|
sl@0
|
6355 |
else
|
sl@0
|
6356 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6357 |
#line 6358 "configure"
|
sl@0
|
6358 |
#include "confdefs.h"
|
sl@0
|
6359 |
|
sl@0
|
6360 |
#include <sgtty.h>
|
sl@0
|
6361 |
|
sl@0
|
6362 |
int main() {
|
sl@0
|
6363 |
struct sgttyb t;
|
sl@0
|
6364 |
if (ioctl(0, TIOCGETP, &t) == 0) {
|
sl@0
|
6365 |
t.sg_ospeed = 0;
|
sl@0
|
6366 |
t.sg_flags |= ODDP | EVENP | RAW;
|
sl@0
|
6367 |
return 0;
|
sl@0
|
6368 |
}
|
sl@0
|
6369 |
return 1;
|
sl@0
|
6370 |
}
|
sl@0
|
6371 |
EOF
|
sl@0
|
6372 |
if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6373 |
then
|
sl@0
|
6374 |
tcl_cv_api_serial=sgtty
|
sl@0
|
6375 |
else
|
sl@0
|
6376 |
echo "configure: failed program was:" >&5
|
sl@0
|
6377 |
cat conftest.$ac_ext >&5
|
sl@0
|
6378 |
rm -fr conftest*
|
sl@0
|
6379 |
tcl_cv_api_serial=no
|
sl@0
|
6380 |
fi
|
sl@0
|
6381 |
rm -fr conftest*
|
sl@0
|
6382 |
fi
|
sl@0
|
6383 |
|
sl@0
|
6384 |
fi
|
sl@0
|
6385 |
if test $tcl_cv_api_serial = no ; then
|
sl@0
|
6386 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6387 |
tcl_cv_api_serial=no
|
sl@0
|
6388 |
else
|
sl@0
|
6389 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6390 |
#line 6391 "configure"
|
sl@0
|
6391 |
#include "confdefs.h"
|
sl@0
|
6392 |
|
sl@0
|
6393 |
#include <termios.h>
|
sl@0
|
6394 |
#include <errno.h>
|
sl@0
|
6395 |
|
sl@0
|
6396 |
int main() {
|
sl@0
|
6397 |
struct termios t;
|
sl@0
|
6398 |
if (tcgetattr(0, &t) == 0
|
sl@0
|
6399 |
|| errno == ENOTTY || errno == ENXIO || errno == EINVAL) {
|
sl@0
|
6400 |
cfsetospeed(&t, 0);
|
sl@0
|
6401 |
t.c_cflag |= PARENB | PARODD | CSIZE | CSTOPB;
|
sl@0
|
6402 |
return 0;
|
sl@0
|
6403 |
}
|
sl@0
|
6404 |
return 1;
|
sl@0
|
6405 |
}
|
sl@0
|
6406 |
EOF
|
sl@0
|
6407 |
if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6408 |
then
|
sl@0
|
6409 |
tcl_cv_api_serial=termios
|
sl@0
|
6410 |
else
|
sl@0
|
6411 |
echo "configure: failed program was:" >&5
|
sl@0
|
6412 |
cat conftest.$ac_ext >&5
|
sl@0
|
6413 |
rm -fr conftest*
|
sl@0
|
6414 |
tcl_cv_api_serial=no
|
sl@0
|
6415 |
fi
|
sl@0
|
6416 |
rm -fr conftest*
|
sl@0
|
6417 |
fi
|
sl@0
|
6418 |
|
sl@0
|
6419 |
fi
|
sl@0
|
6420 |
if test $tcl_cv_api_serial = no; then
|
sl@0
|
6421 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6422 |
tcl_cv_api_serial=no
|
sl@0
|
6423 |
else
|
sl@0
|
6424 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6425 |
#line 6426 "configure"
|
sl@0
|
6426 |
#include "confdefs.h"
|
sl@0
|
6427 |
|
sl@0
|
6428 |
#include <termio.h>
|
sl@0
|
6429 |
#include <errno.h>
|
sl@0
|
6430 |
|
sl@0
|
6431 |
int main() {
|
sl@0
|
6432 |
struct termio t;
|
sl@0
|
6433 |
if (ioctl(0, TCGETA, &t) == 0
|
sl@0
|
6434 |
|| errno == ENOTTY || errno == ENXIO || errno == EINVAL) {
|
sl@0
|
6435 |
t.c_cflag |= CBAUD | PARENB | PARODD | CSIZE | CSTOPB;
|
sl@0
|
6436 |
return 0;
|
sl@0
|
6437 |
}
|
sl@0
|
6438 |
return 1;
|
sl@0
|
6439 |
}
|
sl@0
|
6440 |
EOF
|
sl@0
|
6441 |
if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6442 |
then
|
sl@0
|
6443 |
tcl_cv_api_serial=termio
|
sl@0
|
6444 |
else
|
sl@0
|
6445 |
echo "configure: failed program was:" >&5
|
sl@0
|
6446 |
cat conftest.$ac_ext >&5
|
sl@0
|
6447 |
rm -fr conftest*
|
sl@0
|
6448 |
tcl_cv_api_serial=no
|
sl@0
|
6449 |
fi
|
sl@0
|
6450 |
rm -fr conftest*
|
sl@0
|
6451 |
fi
|
sl@0
|
6452 |
|
sl@0
|
6453 |
fi
|
sl@0
|
6454 |
if test $tcl_cv_api_serial = no; then
|
sl@0
|
6455 |
if test "$cross_compiling" = yes; then
|
sl@0
|
6456 |
tcl_cv_api_serial=none
|
sl@0
|
6457 |
else
|
sl@0
|
6458 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6459 |
#line 6460 "configure"
|
sl@0
|
6460 |
#include "confdefs.h"
|
sl@0
|
6461 |
|
sl@0
|
6462 |
#include <sgtty.h>
|
sl@0
|
6463 |
#include <errno.h>
|
sl@0
|
6464 |
|
sl@0
|
6465 |
int main() {
|
sl@0
|
6466 |
struct sgttyb t;
|
sl@0
|
6467 |
if (ioctl(0, TIOCGETP, &t) == 0
|
sl@0
|
6468 |
|| errno == ENOTTY || errno == ENXIO || errno == EINVAL) {
|
sl@0
|
6469 |
t.sg_ospeed = 0;
|
sl@0
|
6470 |
t.sg_flags |= ODDP | EVENP | RAW;
|
sl@0
|
6471 |
return 0;
|
sl@0
|
6472 |
}
|
sl@0
|
6473 |
return 1;
|
sl@0
|
6474 |
}
|
sl@0
|
6475 |
EOF
|
sl@0
|
6476 |
if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
6477 |
then
|
sl@0
|
6478 |
tcl_cv_api_serial=sgtty
|
sl@0
|
6479 |
else
|
sl@0
|
6480 |
echo "configure: failed program was:" >&5
|
sl@0
|
6481 |
cat conftest.$ac_ext >&5
|
sl@0
|
6482 |
rm -fr conftest*
|
sl@0
|
6483 |
tcl_cv_api_serial=none
|
sl@0
|
6484 |
fi
|
sl@0
|
6485 |
rm -fr conftest*
|
sl@0
|
6486 |
fi
|
sl@0
|
6487 |
|
sl@0
|
6488 |
fi
|
sl@0
|
6489 |
fi
|
sl@0
|
6490 |
|
sl@0
|
6491 |
echo "$ac_t""$tcl_cv_api_serial" 1>&6
|
sl@0
|
6492 |
case $tcl_cv_api_serial in
|
sl@0
|
6493 |
termios) cat >> confdefs.h <<\EOF
|
sl@0
|
6494 |
#define USE_TERMIOS 1
|
sl@0
|
6495 |
EOF
|
sl@0
|
6496 |
;;
|
sl@0
|
6497 |
termio) cat >> confdefs.h <<\EOF
|
sl@0
|
6498 |
#define USE_TERMIO 1
|
sl@0
|
6499 |
EOF
|
sl@0
|
6500 |
;;
|
sl@0
|
6501 |
sgtty) cat >> confdefs.h <<\EOF
|
sl@0
|
6502 |
#define USE_SGTTY 1
|
sl@0
|
6503 |
EOF
|
sl@0
|
6504 |
;;
|
sl@0
|
6505 |
esac
|
sl@0
|
6506 |
|
sl@0
|
6507 |
|
sl@0
|
6508 |
#--------------------------------------------------------------------
|
sl@0
|
6509 |
# Include sys/select.h if it exists and if it supplies things
|
sl@0
|
6510 |
# that appear to be useful and aren't already in sys/types.h.
|
sl@0
|
6511 |
# This appears to be true only on the RS/6000 under AIX. Some
|
sl@0
|
6512 |
# systems like OSF/1 have a sys/select.h that's of no use, and
|
sl@0
|
6513 |
# other systems like SCO UNIX have a sys/select.h that's
|
sl@0
|
6514 |
# pernicious. If "fd_set" isn't defined anywhere then set a
|
sl@0
|
6515 |
# special flag.
|
sl@0
|
6516 |
#--------------------------------------------------------------------
|
sl@0
|
6517 |
|
sl@0
|
6518 |
echo $ac_n "checking for fd_set in sys/types""... $ac_c" 1>&6
|
sl@0
|
6519 |
echo "configure:6520: checking for fd_set in sys/types" >&5
|
sl@0
|
6520 |
if eval "test \"`echo '$''{'tcl_cv_type_fd_set'+set}'`\" = set"; then
|
sl@0
|
6521 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6522 |
else
|
sl@0
|
6523 |
|
sl@0
|
6524 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6525 |
#line 6526 "configure"
|
sl@0
|
6526 |
#include "confdefs.h"
|
sl@0
|
6527 |
#include <sys/types.h>
|
sl@0
|
6528 |
int main() {
|
sl@0
|
6529 |
fd_set readMask, writeMask;
|
sl@0
|
6530 |
; return 0; }
|
sl@0
|
6531 |
EOF
|
sl@0
|
6532 |
if { (eval echo configure:6533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6533 |
rm -rf conftest*
|
sl@0
|
6534 |
tcl_cv_type_fd_set=yes
|
sl@0
|
6535 |
else
|
sl@0
|
6536 |
echo "configure: failed program was:" >&5
|
sl@0
|
6537 |
cat conftest.$ac_ext >&5
|
sl@0
|
6538 |
rm -rf conftest*
|
sl@0
|
6539 |
tcl_cv_type_fd_set=no
|
sl@0
|
6540 |
fi
|
sl@0
|
6541 |
rm -f conftest*
|
sl@0
|
6542 |
fi
|
sl@0
|
6543 |
|
sl@0
|
6544 |
echo "$ac_t""$tcl_cv_type_fd_set" 1>&6
|
sl@0
|
6545 |
tcl_ok=$tcl_cv_type_fd_set
|
sl@0
|
6546 |
if test $tcl_ok = no; then
|
sl@0
|
6547 |
echo $ac_n "checking for fd_mask in sys/select""... $ac_c" 1>&6
|
sl@0
|
6548 |
echo "configure:6549: checking for fd_mask in sys/select" >&5
|
sl@0
|
6549 |
if eval "test \"`echo '$''{'tcl_cv_grep_fd_mask'+set}'`\" = set"; then
|
sl@0
|
6550 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6551 |
else
|
sl@0
|
6552 |
|
sl@0
|
6553 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6554 |
#line 6555 "configure"
|
sl@0
|
6555 |
#include "confdefs.h"
|
sl@0
|
6556 |
#include <sys/select.h>
|
sl@0
|
6557 |
EOF
|
sl@0
|
6558 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
6559 |
egrep "fd_mask" >/dev/null 2>&1; then
|
sl@0
|
6560 |
rm -rf conftest*
|
sl@0
|
6561 |
tcl_cv_grep_fd_mask=present
|
sl@0
|
6562 |
else
|
sl@0
|
6563 |
rm -rf conftest*
|
sl@0
|
6564 |
tcl_cv_grep_fd_mask=missing
|
sl@0
|
6565 |
fi
|
sl@0
|
6566 |
rm -f conftest*
|
sl@0
|
6567 |
|
sl@0
|
6568 |
fi
|
sl@0
|
6569 |
|
sl@0
|
6570 |
echo "$ac_t""$tcl_cv_grep_fd_mask" 1>&6
|
sl@0
|
6571 |
if test $tcl_cv_grep_fd_mask = present; then
|
sl@0
|
6572 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6573 |
#define HAVE_SYS_SELECT_H 1
|
sl@0
|
6574 |
EOF
|
sl@0
|
6575 |
|
sl@0
|
6576 |
tcl_ok=yes
|
sl@0
|
6577 |
fi
|
sl@0
|
6578 |
fi
|
sl@0
|
6579 |
if test $tcl_ok = no; then
|
sl@0
|
6580 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6581 |
#define NO_FD_SET 1
|
sl@0
|
6582 |
EOF
|
sl@0
|
6583 |
|
sl@0
|
6584 |
fi
|
sl@0
|
6585 |
|
sl@0
|
6586 |
#------------------------------------------------------------------------------
|
sl@0
|
6587 |
# Find out all about time handling differences.
|
sl@0
|
6588 |
#------------------------------------------------------------------------------
|
sl@0
|
6589 |
|
sl@0
|
6590 |
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
sl@0
|
6591 |
echo "configure:6592: checking whether struct tm is in sys/time.h or time.h" >&5
|
sl@0
|
6592 |
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
sl@0
|
6593 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6594 |
else
|
sl@0
|
6595 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6596 |
#line 6597 "configure"
|
sl@0
|
6597 |
#include "confdefs.h"
|
sl@0
|
6598 |
#include <sys/types.h>
|
sl@0
|
6599 |
#include <time.h>
|
sl@0
|
6600 |
int main() {
|
sl@0
|
6601 |
struct tm *tp; tp->tm_sec;
|
sl@0
|
6602 |
; return 0; }
|
sl@0
|
6603 |
EOF
|
sl@0
|
6604 |
if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6605 |
rm -rf conftest*
|
sl@0
|
6606 |
ac_cv_struct_tm=time.h
|
sl@0
|
6607 |
else
|
sl@0
|
6608 |
echo "configure: failed program was:" >&5
|
sl@0
|
6609 |
cat conftest.$ac_ext >&5
|
sl@0
|
6610 |
rm -rf conftest*
|
sl@0
|
6611 |
ac_cv_struct_tm=sys/time.h
|
sl@0
|
6612 |
fi
|
sl@0
|
6613 |
rm -f conftest*
|
sl@0
|
6614 |
fi
|
sl@0
|
6615 |
|
sl@0
|
6616 |
echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
sl@0
|
6617 |
if test $ac_cv_struct_tm = sys/time.h; then
|
sl@0
|
6618 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6619 |
#define TM_IN_SYS_TIME 1
|
sl@0
|
6620 |
EOF
|
sl@0
|
6621 |
|
sl@0
|
6622 |
fi
|
sl@0
|
6623 |
|
sl@0
|
6624 |
|
sl@0
|
6625 |
for ac_hdr in sys/time.h
|
sl@0
|
6626 |
do
|
sl@0
|
6627 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
6628 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
6629 |
echo "configure:6630: checking for $ac_hdr" >&5
|
sl@0
|
6630 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
6631 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6632 |
else
|
sl@0
|
6633 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6634 |
#line 6635 "configure"
|
sl@0
|
6635 |
#include "confdefs.h"
|
sl@0
|
6636 |
#include <$ac_hdr>
|
sl@0
|
6637 |
EOF
|
sl@0
|
6638 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
6639 |
{ (eval echo configure:6640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
6640 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
6641 |
if test -z "$ac_err"; then
|
sl@0
|
6642 |
rm -rf conftest*
|
sl@0
|
6643 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
6644 |
else
|
sl@0
|
6645 |
echo "$ac_err" >&5
|
sl@0
|
6646 |
echo "configure: failed program was:" >&5
|
sl@0
|
6647 |
cat conftest.$ac_ext >&5
|
sl@0
|
6648 |
rm -rf conftest*
|
sl@0
|
6649 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
6650 |
fi
|
sl@0
|
6651 |
rm -f conftest*
|
sl@0
|
6652 |
fi
|
sl@0
|
6653 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
6654 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
6655 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
6656 |
cat >> confdefs.h <<EOF
|
sl@0
|
6657 |
#define $ac_tr_hdr 1
|
sl@0
|
6658 |
EOF
|
sl@0
|
6659 |
|
sl@0
|
6660 |
else
|
sl@0
|
6661 |
echo "$ac_t""no" 1>&6
|
sl@0
|
6662 |
fi
|
sl@0
|
6663 |
done
|
sl@0
|
6664 |
|
sl@0
|
6665 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
sl@0
|
6666 |
echo "configure:6667: checking whether time.h and sys/time.h may both be included" >&5
|
sl@0
|
6667 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
sl@0
|
6668 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6669 |
else
|
sl@0
|
6670 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6671 |
#line 6672 "configure"
|
sl@0
|
6672 |
#include "confdefs.h"
|
sl@0
|
6673 |
#include <sys/types.h>
|
sl@0
|
6674 |
#include <sys/time.h>
|
sl@0
|
6675 |
#include <time.h>
|
sl@0
|
6676 |
int main() {
|
sl@0
|
6677 |
struct tm *tp;
|
sl@0
|
6678 |
; return 0; }
|
sl@0
|
6679 |
EOF
|
sl@0
|
6680 |
if { (eval echo configure:6681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6681 |
rm -rf conftest*
|
sl@0
|
6682 |
ac_cv_header_time=yes
|
sl@0
|
6683 |
else
|
sl@0
|
6684 |
echo "configure: failed program was:" >&5
|
sl@0
|
6685 |
cat conftest.$ac_ext >&5
|
sl@0
|
6686 |
rm -rf conftest*
|
sl@0
|
6687 |
ac_cv_header_time=no
|
sl@0
|
6688 |
fi
|
sl@0
|
6689 |
rm -f conftest*
|
sl@0
|
6690 |
fi
|
sl@0
|
6691 |
|
sl@0
|
6692 |
echo "$ac_t""$ac_cv_header_time" 1>&6
|
sl@0
|
6693 |
if test $ac_cv_header_time = yes; then
|
sl@0
|
6694 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6695 |
#define TIME_WITH_SYS_TIME 1
|
sl@0
|
6696 |
EOF
|
sl@0
|
6697 |
|
sl@0
|
6698 |
fi
|
sl@0
|
6699 |
|
sl@0
|
6700 |
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
sl@0
|
6701 |
echo "configure:6702: checking for tm_zone in struct tm" >&5
|
sl@0
|
6702 |
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
sl@0
|
6703 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6704 |
else
|
sl@0
|
6705 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6706 |
#line 6707 "configure"
|
sl@0
|
6707 |
#include "confdefs.h"
|
sl@0
|
6708 |
#include <sys/types.h>
|
sl@0
|
6709 |
#include <$ac_cv_struct_tm>
|
sl@0
|
6710 |
int main() {
|
sl@0
|
6711 |
struct tm tm; tm.tm_zone;
|
sl@0
|
6712 |
; return 0; }
|
sl@0
|
6713 |
EOF
|
sl@0
|
6714 |
if { (eval echo configure:6715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6715 |
rm -rf conftest*
|
sl@0
|
6716 |
ac_cv_struct_tm_zone=yes
|
sl@0
|
6717 |
else
|
sl@0
|
6718 |
echo "configure: failed program was:" >&5
|
sl@0
|
6719 |
cat conftest.$ac_ext >&5
|
sl@0
|
6720 |
rm -rf conftest*
|
sl@0
|
6721 |
ac_cv_struct_tm_zone=no
|
sl@0
|
6722 |
fi
|
sl@0
|
6723 |
rm -f conftest*
|
sl@0
|
6724 |
fi
|
sl@0
|
6725 |
|
sl@0
|
6726 |
echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
sl@0
|
6727 |
if test "$ac_cv_struct_tm_zone" = yes; then
|
sl@0
|
6728 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6729 |
#define HAVE_TM_ZONE 1
|
sl@0
|
6730 |
EOF
|
sl@0
|
6731 |
|
sl@0
|
6732 |
else
|
sl@0
|
6733 |
echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
sl@0
|
6734 |
echo "configure:6735: checking for tzname" >&5
|
sl@0
|
6735 |
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
sl@0
|
6736 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6737 |
else
|
sl@0
|
6738 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6739 |
#line 6740 "configure"
|
sl@0
|
6740 |
#include "confdefs.h"
|
sl@0
|
6741 |
#include <time.h>
|
sl@0
|
6742 |
#ifndef tzname /* For SGI. */
|
sl@0
|
6743 |
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
sl@0
|
6744 |
#endif
|
sl@0
|
6745 |
int main() {
|
sl@0
|
6746 |
atoi(*tzname);
|
sl@0
|
6747 |
; return 0; }
|
sl@0
|
6748 |
EOF
|
sl@0
|
6749 |
if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
6750 |
rm -rf conftest*
|
sl@0
|
6751 |
ac_cv_var_tzname=yes
|
sl@0
|
6752 |
else
|
sl@0
|
6753 |
echo "configure: failed program was:" >&5
|
sl@0
|
6754 |
cat conftest.$ac_ext >&5
|
sl@0
|
6755 |
rm -rf conftest*
|
sl@0
|
6756 |
ac_cv_var_tzname=no
|
sl@0
|
6757 |
fi
|
sl@0
|
6758 |
rm -f conftest*
|
sl@0
|
6759 |
fi
|
sl@0
|
6760 |
|
sl@0
|
6761 |
echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
sl@0
|
6762 |
if test $ac_cv_var_tzname = yes; then
|
sl@0
|
6763 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6764 |
#define HAVE_TZNAME 1
|
sl@0
|
6765 |
EOF
|
sl@0
|
6766 |
|
sl@0
|
6767 |
fi
|
sl@0
|
6768 |
fi
|
sl@0
|
6769 |
|
sl@0
|
6770 |
|
sl@0
|
6771 |
for ac_func in gmtime_r localtime_r
|
sl@0
|
6772 |
do
|
sl@0
|
6773 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
6774 |
echo "configure:6775: checking for $ac_func" >&5
|
sl@0
|
6775 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
6776 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6777 |
else
|
sl@0
|
6778 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6779 |
#line 6780 "configure"
|
sl@0
|
6780 |
#include "confdefs.h"
|
sl@0
|
6781 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
6782 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
6783 |
#include <assert.h>
|
sl@0
|
6784 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
6785 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
6786 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
6787 |
char $ac_func();
|
sl@0
|
6788 |
|
sl@0
|
6789 |
int main() {
|
sl@0
|
6790 |
|
sl@0
|
6791 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
6792 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
6793 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
6794 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
6795 |
choke me
|
sl@0
|
6796 |
#else
|
sl@0
|
6797 |
$ac_func();
|
sl@0
|
6798 |
#endif
|
sl@0
|
6799 |
|
sl@0
|
6800 |
; return 0; }
|
sl@0
|
6801 |
EOF
|
sl@0
|
6802 |
if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
6803 |
rm -rf conftest*
|
sl@0
|
6804 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
6805 |
else
|
sl@0
|
6806 |
echo "configure: failed program was:" >&5
|
sl@0
|
6807 |
cat conftest.$ac_ext >&5
|
sl@0
|
6808 |
rm -rf conftest*
|
sl@0
|
6809 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
6810 |
fi
|
sl@0
|
6811 |
rm -f conftest*
|
sl@0
|
6812 |
fi
|
sl@0
|
6813 |
|
sl@0
|
6814 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
6815 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
6816 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
6817 |
cat >> confdefs.h <<EOF
|
sl@0
|
6818 |
#define $ac_tr_func 1
|
sl@0
|
6819 |
EOF
|
sl@0
|
6820 |
|
sl@0
|
6821 |
else
|
sl@0
|
6822 |
echo "$ac_t""no" 1>&6
|
sl@0
|
6823 |
fi
|
sl@0
|
6824 |
done
|
sl@0
|
6825 |
|
sl@0
|
6826 |
|
sl@0
|
6827 |
echo $ac_n "checking tm_tzadj in struct tm""... $ac_c" 1>&6
|
sl@0
|
6828 |
echo "configure:6829: checking tm_tzadj in struct tm" >&5
|
sl@0
|
6829 |
if eval "test \"`echo '$''{'tcl_cv_member_tm_tzadj'+set}'`\" = set"; then
|
sl@0
|
6830 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6831 |
else
|
sl@0
|
6832 |
|
sl@0
|
6833 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6834 |
#line 6835 "configure"
|
sl@0
|
6835 |
#include "confdefs.h"
|
sl@0
|
6836 |
#include <time.h>
|
sl@0
|
6837 |
int main() {
|
sl@0
|
6838 |
struct tm tm; tm.tm_tzadj;
|
sl@0
|
6839 |
; return 0; }
|
sl@0
|
6840 |
EOF
|
sl@0
|
6841 |
if { (eval echo configure:6842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6842 |
rm -rf conftest*
|
sl@0
|
6843 |
tcl_cv_member_tm_tzadj=yes
|
sl@0
|
6844 |
else
|
sl@0
|
6845 |
echo "configure: failed program was:" >&5
|
sl@0
|
6846 |
cat conftest.$ac_ext >&5
|
sl@0
|
6847 |
rm -rf conftest*
|
sl@0
|
6848 |
tcl_cv_member_tm_tzadj=no
|
sl@0
|
6849 |
fi
|
sl@0
|
6850 |
rm -f conftest*
|
sl@0
|
6851 |
fi
|
sl@0
|
6852 |
|
sl@0
|
6853 |
echo "$ac_t""$tcl_cv_member_tm_tzadj" 1>&6
|
sl@0
|
6854 |
if test $tcl_cv_member_tm_tzadj = yes ; then
|
sl@0
|
6855 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6856 |
#define HAVE_TM_TZADJ 1
|
sl@0
|
6857 |
EOF
|
sl@0
|
6858 |
|
sl@0
|
6859 |
fi
|
sl@0
|
6860 |
|
sl@0
|
6861 |
echo $ac_n "checking tm_gmtoff in struct tm""... $ac_c" 1>&6
|
sl@0
|
6862 |
echo "configure:6863: checking tm_gmtoff in struct tm" >&5
|
sl@0
|
6863 |
if eval "test \"`echo '$''{'tcl_cv_member_tm_gmtoff'+set}'`\" = set"; then
|
sl@0
|
6864 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6865 |
else
|
sl@0
|
6866 |
|
sl@0
|
6867 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6868 |
#line 6869 "configure"
|
sl@0
|
6869 |
#include "confdefs.h"
|
sl@0
|
6870 |
#include <time.h>
|
sl@0
|
6871 |
int main() {
|
sl@0
|
6872 |
struct tm tm; tm.tm_gmtoff;
|
sl@0
|
6873 |
; return 0; }
|
sl@0
|
6874 |
EOF
|
sl@0
|
6875 |
if { (eval echo configure:6876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6876 |
rm -rf conftest*
|
sl@0
|
6877 |
tcl_cv_member_tm_gmtoff=yes
|
sl@0
|
6878 |
else
|
sl@0
|
6879 |
echo "configure: failed program was:" >&5
|
sl@0
|
6880 |
cat conftest.$ac_ext >&5
|
sl@0
|
6881 |
rm -rf conftest*
|
sl@0
|
6882 |
tcl_cv_member_tm_gmtoff=no
|
sl@0
|
6883 |
fi
|
sl@0
|
6884 |
rm -f conftest*
|
sl@0
|
6885 |
fi
|
sl@0
|
6886 |
|
sl@0
|
6887 |
echo "$ac_t""$tcl_cv_member_tm_gmtoff" 1>&6
|
sl@0
|
6888 |
if test $tcl_cv_member_tm_gmtoff = yes ; then
|
sl@0
|
6889 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6890 |
#define HAVE_TM_GMTOFF 1
|
sl@0
|
6891 |
EOF
|
sl@0
|
6892 |
|
sl@0
|
6893 |
fi
|
sl@0
|
6894 |
|
sl@0
|
6895 |
#
|
sl@0
|
6896 |
# Its important to include time.h in this check, as some systems
|
sl@0
|
6897 |
# (like convex) have timezone functions, etc.
|
sl@0
|
6898 |
#
|
sl@0
|
6899 |
echo $ac_n "checking long timezone variable""... $ac_c" 1>&6
|
sl@0
|
6900 |
echo "configure:6901: checking long timezone variable" >&5
|
sl@0
|
6901 |
if eval "test \"`echo '$''{'tcl_cv_timezone_long'+set}'`\" = set"; then
|
sl@0
|
6902 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6903 |
else
|
sl@0
|
6904 |
|
sl@0
|
6905 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6906 |
#line 6907 "configure"
|
sl@0
|
6907 |
#include "confdefs.h"
|
sl@0
|
6908 |
#include <time.h>
|
sl@0
|
6909 |
int main() {
|
sl@0
|
6910 |
extern long timezone;
|
sl@0
|
6911 |
timezone += 1;
|
sl@0
|
6912 |
exit (0);
|
sl@0
|
6913 |
; return 0; }
|
sl@0
|
6914 |
EOF
|
sl@0
|
6915 |
if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6916 |
rm -rf conftest*
|
sl@0
|
6917 |
tcl_cv_timezone_long=yes
|
sl@0
|
6918 |
else
|
sl@0
|
6919 |
echo "configure: failed program was:" >&5
|
sl@0
|
6920 |
cat conftest.$ac_ext >&5
|
sl@0
|
6921 |
rm -rf conftest*
|
sl@0
|
6922 |
tcl_cv_timezone_long=no
|
sl@0
|
6923 |
fi
|
sl@0
|
6924 |
rm -f conftest*
|
sl@0
|
6925 |
fi
|
sl@0
|
6926 |
|
sl@0
|
6927 |
echo "$ac_t""$tcl_cv_timezone_long" 1>&6
|
sl@0
|
6928 |
if test $tcl_cv_timezone_long = yes ; then
|
sl@0
|
6929 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6930 |
#define HAVE_TIMEZONE_VAR 1
|
sl@0
|
6931 |
EOF
|
sl@0
|
6932 |
|
sl@0
|
6933 |
else
|
sl@0
|
6934 |
#
|
sl@0
|
6935 |
# On some systems (eg IRIX 6.2), timezone is a time_t and not a long.
|
sl@0
|
6936 |
#
|
sl@0
|
6937 |
echo $ac_n "checking time_t timezone variable""... $ac_c" 1>&6
|
sl@0
|
6938 |
echo "configure:6939: checking time_t timezone variable" >&5
|
sl@0
|
6939 |
if eval "test \"`echo '$''{'tcl_cv_timezone_time'+set}'`\" = set"; then
|
sl@0
|
6940 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6941 |
else
|
sl@0
|
6942 |
|
sl@0
|
6943 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6944 |
#line 6945 "configure"
|
sl@0
|
6945 |
#include "confdefs.h"
|
sl@0
|
6946 |
#include <time.h>
|
sl@0
|
6947 |
int main() {
|
sl@0
|
6948 |
extern time_t timezone;
|
sl@0
|
6949 |
timezone += 1;
|
sl@0
|
6950 |
exit (0);
|
sl@0
|
6951 |
; return 0; }
|
sl@0
|
6952 |
EOF
|
sl@0
|
6953 |
if { (eval echo configure:6954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6954 |
rm -rf conftest*
|
sl@0
|
6955 |
tcl_cv_timezone_time=yes
|
sl@0
|
6956 |
else
|
sl@0
|
6957 |
echo "configure: failed program was:" >&5
|
sl@0
|
6958 |
cat conftest.$ac_ext >&5
|
sl@0
|
6959 |
rm -rf conftest*
|
sl@0
|
6960 |
tcl_cv_timezone_time=no
|
sl@0
|
6961 |
fi
|
sl@0
|
6962 |
rm -f conftest*
|
sl@0
|
6963 |
fi
|
sl@0
|
6964 |
|
sl@0
|
6965 |
echo "$ac_t""$tcl_cv_timezone_time" 1>&6
|
sl@0
|
6966 |
if test $tcl_cv_timezone_time = yes ; then
|
sl@0
|
6967 |
cat >> confdefs.h <<\EOF
|
sl@0
|
6968 |
#define HAVE_TIMEZONE_VAR 1
|
sl@0
|
6969 |
EOF
|
sl@0
|
6970 |
|
sl@0
|
6971 |
fi
|
sl@0
|
6972 |
fi
|
sl@0
|
6973 |
|
sl@0
|
6974 |
|
sl@0
|
6975 |
#--------------------------------------------------------------------
|
sl@0
|
6976 |
# Some systems (e.g., IRIX 4.0.5) lack the st_blksize field
|
sl@0
|
6977 |
# in struct stat. But we might be able to use fstatfs instead.
|
sl@0
|
6978 |
#--------------------------------------------------------------------
|
sl@0
|
6979 |
echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
|
sl@0
|
6980 |
echo "configure:6981: checking for st_blksize in struct stat" >&5
|
sl@0
|
6981 |
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
|
sl@0
|
6982 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
6983 |
else
|
sl@0
|
6984 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
6985 |
#line 6986 "configure"
|
sl@0
|
6986 |
#include "confdefs.h"
|
sl@0
|
6987 |
#include <sys/types.h>
|
sl@0
|
6988 |
#include <sys/stat.h>
|
sl@0
|
6989 |
int main() {
|
sl@0
|
6990 |
struct stat s; s.st_blksize;
|
sl@0
|
6991 |
; return 0; }
|
sl@0
|
6992 |
EOF
|
sl@0
|
6993 |
if { (eval echo configure:6994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
6994 |
rm -rf conftest*
|
sl@0
|
6995 |
ac_cv_struct_st_blksize=yes
|
sl@0
|
6996 |
else
|
sl@0
|
6997 |
echo "configure: failed program was:" >&5
|
sl@0
|
6998 |
cat conftest.$ac_ext >&5
|
sl@0
|
6999 |
rm -rf conftest*
|
sl@0
|
7000 |
ac_cv_struct_st_blksize=no
|
sl@0
|
7001 |
fi
|
sl@0
|
7002 |
rm -f conftest*
|
sl@0
|
7003 |
fi
|
sl@0
|
7004 |
|
sl@0
|
7005 |
echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
|
sl@0
|
7006 |
if test $ac_cv_struct_st_blksize = yes; then
|
sl@0
|
7007 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7008 |
#define HAVE_ST_BLKSIZE 1
|
sl@0
|
7009 |
EOF
|
sl@0
|
7010 |
|
sl@0
|
7011 |
fi
|
sl@0
|
7012 |
|
sl@0
|
7013 |
echo $ac_n "checking for fstatfs""... $ac_c" 1>&6
|
sl@0
|
7014 |
echo "configure:7015: checking for fstatfs" >&5
|
sl@0
|
7015 |
if eval "test \"`echo '$''{'ac_cv_func_fstatfs'+set}'`\" = set"; then
|
sl@0
|
7016 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7017 |
else
|
sl@0
|
7018 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7019 |
#line 7020 "configure"
|
sl@0
|
7020 |
#include "confdefs.h"
|
sl@0
|
7021 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7022 |
which can conflict with char fstatfs(); below. */
|
sl@0
|
7023 |
#include <assert.h>
|
sl@0
|
7024 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7025 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7026 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7027 |
char fstatfs();
|
sl@0
|
7028 |
|
sl@0
|
7029 |
int main() {
|
sl@0
|
7030 |
|
sl@0
|
7031 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7032 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7033 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7034 |
#if defined (__stub_fstatfs) || defined (__stub___fstatfs)
|
sl@0
|
7035 |
choke me
|
sl@0
|
7036 |
#else
|
sl@0
|
7037 |
fstatfs();
|
sl@0
|
7038 |
#endif
|
sl@0
|
7039 |
|
sl@0
|
7040 |
; return 0; }
|
sl@0
|
7041 |
EOF
|
sl@0
|
7042 |
if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7043 |
rm -rf conftest*
|
sl@0
|
7044 |
eval "ac_cv_func_fstatfs=yes"
|
sl@0
|
7045 |
else
|
sl@0
|
7046 |
echo "configure: failed program was:" >&5
|
sl@0
|
7047 |
cat conftest.$ac_ext >&5
|
sl@0
|
7048 |
rm -rf conftest*
|
sl@0
|
7049 |
eval "ac_cv_func_fstatfs=no"
|
sl@0
|
7050 |
fi
|
sl@0
|
7051 |
rm -f conftest*
|
sl@0
|
7052 |
fi
|
sl@0
|
7053 |
|
sl@0
|
7054 |
if eval "test \"`echo '$ac_cv_func_'fstatfs`\" = yes"; then
|
sl@0
|
7055 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7056 |
:
|
sl@0
|
7057 |
else
|
sl@0
|
7058 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7059 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7060 |
#define NO_FSTATFS 1
|
sl@0
|
7061 |
EOF
|
sl@0
|
7062 |
|
sl@0
|
7063 |
fi
|
sl@0
|
7064 |
|
sl@0
|
7065 |
|
sl@0
|
7066 |
#--------------------------------------------------------------------
|
sl@0
|
7067 |
# Some system have no memcmp or it does not work with 8 bit
|
sl@0
|
7068 |
# data, this checks it and add memcmp.o to LIBOBJS if needed
|
sl@0
|
7069 |
#--------------------------------------------------------------------
|
sl@0
|
7070 |
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
|
sl@0
|
7071 |
echo "configure:7072: checking for 8-bit clean memcmp" >&5
|
sl@0
|
7072 |
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
|
sl@0
|
7073 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7074 |
else
|
sl@0
|
7075 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7076 |
ac_cv_func_memcmp_clean=no
|
sl@0
|
7077 |
else
|
sl@0
|
7078 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7079 |
#line 7080 "configure"
|
sl@0
|
7080 |
#include "confdefs.h"
|
sl@0
|
7081 |
|
sl@0
|
7082 |
main()
|
sl@0
|
7083 |
{
|
sl@0
|
7084 |
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
|
sl@0
|
7085 |
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
|
sl@0
|
7086 |
}
|
sl@0
|
7087 |
|
sl@0
|
7088 |
EOF
|
sl@0
|
7089 |
if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7090 |
then
|
sl@0
|
7091 |
ac_cv_func_memcmp_clean=yes
|
sl@0
|
7092 |
else
|
sl@0
|
7093 |
echo "configure: failed program was:" >&5
|
sl@0
|
7094 |
cat conftest.$ac_ext >&5
|
sl@0
|
7095 |
rm -fr conftest*
|
sl@0
|
7096 |
ac_cv_func_memcmp_clean=no
|
sl@0
|
7097 |
fi
|
sl@0
|
7098 |
rm -fr conftest*
|
sl@0
|
7099 |
fi
|
sl@0
|
7100 |
|
sl@0
|
7101 |
fi
|
sl@0
|
7102 |
|
sl@0
|
7103 |
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
|
sl@0
|
7104 |
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
|
sl@0
|
7105 |
|
sl@0
|
7106 |
|
sl@0
|
7107 |
#--------------------------------------------------------------------
|
sl@0
|
7108 |
# Some system like SunOS 4 and other BSD like systems
|
sl@0
|
7109 |
# have no memmove (we assume they have bcopy instead).
|
sl@0
|
7110 |
# {The replacement define is in compat/string.h}
|
sl@0
|
7111 |
#--------------------------------------------------------------------
|
sl@0
|
7112 |
echo $ac_n "checking for memmove""... $ac_c" 1>&6
|
sl@0
|
7113 |
echo "configure:7114: checking for memmove" >&5
|
sl@0
|
7114 |
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
|
sl@0
|
7115 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7116 |
else
|
sl@0
|
7117 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7118 |
#line 7119 "configure"
|
sl@0
|
7119 |
#include "confdefs.h"
|
sl@0
|
7120 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7121 |
which can conflict with char memmove(); below. */
|
sl@0
|
7122 |
#include <assert.h>
|
sl@0
|
7123 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7124 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7125 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7126 |
char memmove();
|
sl@0
|
7127 |
|
sl@0
|
7128 |
int main() {
|
sl@0
|
7129 |
|
sl@0
|
7130 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7131 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7132 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7133 |
#if defined (__stub_memmove) || defined (__stub___memmove)
|
sl@0
|
7134 |
choke me
|
sl@0
|
7135 |
#else
|
sl@0
|
7136 |
memmove();
|
sl@0
|
7137 |
#endif
|
sl@0
|
7138 |
|
sl@0
|
7139 |
; return 0; }
|
sl@0
|
7140 |
EOF
|
sl@0
|
7141 |
if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7142 |
rm -rf conftest*
|
sl@0
|
7143 |
eval "ac_cv_func_memmove=yes"
|
sl@0
|
7144 |
else
|
sl@0
|
7145 |
echo "configure: failed program was:" >&5
|
sl@0
|
7146 |
cat conftest.$ac_ext >&5
|
sl@0
|
7147 |
rm -rf conftest*
|
sl@0
|
7148 |
eval "ac_cv_func_memmove=no"
|
sl@0
|
7149 |
fi
|
sl@0
|
7150 |
rm -f conftest*
|
sl@0
|
7151 |
fi
|
sl@0
|
7152 |
|
sl@0
|
7153 |
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
|
sl@0
|
7154 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7155 |
:
|
sl@0
|
7156 |
else
|
sl@0
|
7157 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7158 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7159 |
#define NO_MEMMOVE 1
|
sl@0
|
7160 |
EOF
|
sl@0
|
7161 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7162 |
#define NO_STRING_H 1
|
sl@0
|
7163 |
EOF
|
sl@0
|
7164 |
|
sl@0
|
7165 |
fi
|
sl@0
|
7166 |
|
sl@0
|
7167 |
|
sl@0
|
7168 |
#--------------------------------------------------------------------
|
sl@0
|
7169 |
# On some systems strstr is broken: it returns a pointer even
|
sl@0
|
7170 |
# even if the original string is empty.
|
sl@0
|
7171 |
#--------------------------------------------------------------------
|
sl@0
|
7172 |
if test "x${ac_cv_func_strstr}" = "xyes"; then
|
sl@0
|
7173 |
echo $ac_n "checking proper strstr implementation""... $ac_c" 1>&6
|
sl@0
|
7174 |
echo "configure:7175: checking proper strstr implementation" >&5
|
sl@0
|
7175 |
if eval "test \"`echo '$''{'tcl_cv_strstr_unbroken'+set}'`\" = set"; then
|
sl@0
|
7176 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7177 |
else
|
sl@0
|
7178 |
|
sl@0
|
7179 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7180 |
tcl_cv_strstr_unbroken=broken
|
sl@0
|
7181 |
else
|
sl@0
|
7182 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7183 |
#line 7184 "configure"
|
sl@0
|
7184 |
#include "confdefs.h"
|
sl@0
|
7185 |
|
sl@0
|
7186 |
extern int strstr();
|
sl@0
|
7187 |
int main()
|
sl@0
|
7188 |
{
|
sl@0
|
7189 |
exit(strstr("\0test", "test") ? 1 : 0);
|
sl@0
|
7190 |
}
|
sl@0
|
7191 |
EOF
|
sl@0
|
7192 |
if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7193 |
then
|
sl@0
|
7194 |
tcl_cv_strstr_unbroken=ok
|
sl@0
|
7195 |
else
|
sl@0
|
7196 |
echo "configure: failed program was:" >&5
|
sl@0
|
7197 |
cat conftest.$ac_ext >&5
|
sl@0
|
7198 |
rm -fr conftest*
|
sl@0
|
7199 |
tcl_cv_strstr_unbroken=broken
|
sl@0
|
7200 |
fi
|
sl@0
|
7201 |
rm -fr conftest*
|
sl@0
|
7202 |
fi
|
sl@0
|
7203 |
|
sl@0
|
7204 |
fi
|
sl@0
|
7205 |
|
sl@0
|
7206 |
echo "$ac_t""$tcl_cv_strstr_unbroken" 1>&6
|
sl@0
|
7207 |
if test $tcl_cv_strstr_unbroken = broken; then
|
sl@0
|
7208 |
LIBOBJS="$LIBOBJS strstr.o"
|
sl@0
|
7209 |
fi
|
sl@0
|
7210 |
fi
|
sl@0
|
7211 |
|
sl@0
|
7212 |
#--------------------------------------------------------------------
|
sl@0
|
7213 |
# Check for strtoul function. This is tricky because under some
|
sl@0
|
7214 |
# versions of AIX strtoul returns an incorrect terminator
|
sl@0
|
7215 |
# pointer for the string "0".
|
sl@0
|
7216 |
#--------------------------------------------------------------------
|
sl@0
|
7217 |
|
sl@0
|
7218 |
echo $ac_n "checking for strtoul""... $ac_c" 1>&6
|
sl@0
|
7219 |
echo "configure:7220: checking for strtoul" >&5
|
sl@0
|
7220 |
if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
|
sl@0
|
7221 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7222 |
else
|
sl@0
|
7223 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7224 |
#line 7225 "configure"
|
sl@0
|
7225 |
#include "confdefs.h"
|
sl@0
|
7226 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7227 |
which can conflict with char strtoul(); below. */
|
sl@0
|
7228 |
#include <assert.h>
|
sl@0
|
7229 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7230 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7231 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7232 |
char strtoul();
|
sl@0
|
7233 |
|
sl@0
|
7234 |
int main() {
|
sl@0
|
7235 |
|
sl@0
|
7236 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7237 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7238 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7239 |
#if defined (__stub_strtoul) || defined (__stub___strtoul)
|
sl@0
|
7240 |
choke me
|
sl@0
|
7241 |
#else
|
sl@0
|
7242 |
strtoul();
|
sl@0
|
7243 |
#endif
|
sl@0
|
7244 |
|
sl@0
|
7245 |
; return 0; }
|
sl@0
|
7246 |
EOF
|
sl@0
|
7247 |
if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7248 |
rm -rf conftest*
|
sl@0
|
7249 |
eval "ac_cv_func_strtoul=yes"
|
sl@0
|
7250 |
else
|
sl@0
|
7251 |
echo "configure: failed program was:" >&5
|
sl@0
|
7252 |
cat conftest.$ac_ext >&5
|
sl@0
|
7253 |
rm -rf conftest*
|
sl@0
|
7254 |
eval "ac_cv_func_strtoul=no"
|
sl@0
|
7255 |
fi
|
sl@0
|
7256 |
rm -f conftest*
|
sl@0
|
7257 |
fi
|
sl@0
|
7258 |
|
sl@0
|
7259 |
if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
|
sl@0
|
7260 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7261 |
tcl_ok=1
|
sl@0
|
7262 |
else
|
sl@0
|
7263 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7264 |
tcl_ok=0
|
sl@0
|
7265 |
fi
|
sl@0
|
7266 |
|
sl@0
|
7267 |
if test $tcl_ok = 1; then
|
sl@0
|
7268 |
echo $ac_n "checking proper strtoul implementation""... $ac_c" 1>&6
|
sl@0
|
7269 |
echo "configure:7270: checking proper strtoul implementation" >&5
|
sl@0
|
7270 |
if eval "test \"`echo '$''{'tcl_cv_strtoul_unbroken'+set}'`\" = set"; then
|
sl@0
|
7271 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7272 |
else
|
sl@0
|
7273 |
|
sl@0
|
7274 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7275 |
tcl_cv_strtoul_unbroken=broken
|
sl@0
|
7276 |
else
|
sl@0
|
7277 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7278 |
#line 7279 "configure"
|
sl@0
|
7279 |
#include "confdefs.h"
|
sl@0
|
7280 |
|
sl@0
|
7281 |
extern int strtoul();
|
sl@0
|
7282 |
int main()
|
sl@0
|
7283 |
{
|
sl@0
|
7284 |
char *string = "0";
|
sl@0
|
7285 |
char *term;
|
sl@0
|
7286 |
int value;
|
sl@0
|
7287 |
value = strtoul(string, &term, 0);
|
sl@0
|
7288 |
if ((value != 0) || (term != (string+1))) {
|
sl@0
|
7289 |
exit(1);
|
sl@0
|
7290 |
}
|
sl@0
|
7291 |
exit(0);
|
sl@0
|
7292 |
}
|
sl@0
|
7293 |
EOF
|
sl@0
|
7294 |
if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7295 |
then
|
sl@0
|
7296 |
tcl_cv_strtoul_unbroken=ok
|
sl@0
|
7297 |
else
|
sl@0
|
7298 |
echo "configure: failed program was:" >&5
|
sl@0
|
7299 |
cat conftest.$ac_ext >&5
|
sl@0
|
7300 |
rm -fr conftest*
|
sl@0
|
7301 |
tcl_cv_strtoul_unbroken=broken
|
sl@0
|
7302 |
fi
|
sl@0
|
7303 |
rm -fr conftest*
|
sl@0
|
7304 |
fi
|
sl@0
|
7305 |
|
sl@0
|
7306 |
fi
|
sl@0
|
7307 |
|
sl@0
|
7308 |
echo "$ac_t""$tcl_cv_strtoul_unbroken" 1>&6
|
sl@0
|
7309 |
if test $tcl_cv_strtoul_unbroken = broken; then
|
sl@0
|
7310 |
tcl_ok=0
|
sl@0
|
7311 |
fi
|
sl@0
|
7312 |
fi
|
sl@0
|
7313 |
if test $tcl_ok = 0; then
|
sl@0
|
7314 |
LIBOBJS="$LIBOBJS strtoul.o"
|
sl@0
|
7315 |
fi
|
sl@0
|
7316 |
|
sl@0
|
7317 |
#--------------------------------------------------------------------
|
sl@0
|
7318 |
# Check for the strtod function. This is tricky because in some
|
sl@0
|
7319 |
# versions of Linux strtod mis-parses strings starting with "+".
|
sl@0
|
7320 |
#--------------------------------------------------------------------
|
sl@0
|
7321 |
|
sl@0
|
7322 |
echo $ac_n "checking for strtod""... $ac_c" 1>&6
|
sl@0
|
7323 |
echo "configure:7324: checking for strtod" >&5
|
sl@0
|
7324 |
if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
|
sl@0
|
7325 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7326 |
else
|
sl@0
|
7327 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7328 |
#line 7329 "configure"
|
sl@0
|
7329 |
#include "confdefs.h"
|
sl@0
|
7330 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7331 |
which can conflict with char strtod(); below. */
|
sl@0
|
7332 |
#include <assert.h>
|
sl@0
|
7333 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7334 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7335 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7336 |
char strtod();
|
sl@0
|
7337 |
|
sl@0
|
7338 |
int main() {
|
sl@0
|
7339 |
|
sl@0
|
7340 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7341 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7342 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7343 |
#if defined (__stub_strtod) || defined (__stub___strtod)
|
sl@0
|
7344 |
choke me
|
sl@0
|
7345 |
#else
|
sl@0
|
7346 |
strtod();
|
sl@0
|
7347 |
#endif
|
sl@0
|
7348 |
|
sl@0
|
7349 |
; return 0; }
|
sl@0
|
7350 |
EOF
|
sl@0
|
7351 |
if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7352 |
rm -rf conftest*
|
sl@0
|
7353 |
eval "ac_cv_func_strtod=yes"
|
sl@0
|
7354 |
else
|
sl@0
|
7355 |
echo "configure: failed program was:" >&5
|
sl@0
|
7356 |
cat conftest.$ac_ext >&5
|
sl@0
|
7357 |
rm -rf conftest*
|
sl@0
|
7358 |
eval "ac_cv_func_strtod=no"
|
sl@0
|
7359 |
fi
|
sl@0
|
7360 |
rm -f conftest*
|
sl@0
|
7361 |
fi
|
sl@0
|
7362 |
|
sl@0
|
7363 |
if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
|
sl@0
|
7364 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7365 |
tcl_ok=1
|
sl@0
|
7366 |
else
|
sl@0
|
7367 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7368 |
tcl_ok=0
|
sl@0
|
7369 |
fi
|
sl@0
|
7370 |
|
sl@0
|
7371 |
if test $tcl_ok = 1; then
|
sl@0
|
7372 |
echo $ac_n "checking proper strtod implementation""... $ac_c" 1>&6
|
sl@0
|
7373 |
echo "configure:7374: checking proper strtod implementation" >&5
|
sl@0
|
7374 |
if eval "test \"`echo '$''{'tcl_cv_strtod_unbroken'+set}'`\" = set"; then
|
sl@0
|
7375 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7376 |
else
|
sl@0
|
7377 |
|
sl@0
|
7378 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7379 |
tcl_cv_strtod_unbroken=broken
|
sl@0
|
7380 |
else
|
sl@0
|
7381 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7382 |
#line 7383 "configure"
|
sl@0
|
7383 |
#include "confdefs.h"
|
sl@0
|
7384 |
|
sl@0
|
7385 |
extern double strtod();
|
sl@0
|
7386 |
int main()
|
sl@0
|
7387 |
{
|
sl@0
|
7388 |
char *string = " +69";
|
sl@0
|
7389 |
char *term;
|
sl@0
|
7390 |
double value;
|
sl@0
|
7391 |
value = strtod(string, &term);
|
sl@0
|
7392 |
if ((value != 69) || (term != (string+4))) {
|
sl@0
|
7393 |
exit(1);
|
sl@0
|
7394 |
}
|
sl@0
|
7395 |
exit(0);
|
sl@0
|
7396 |
}
|
sl@0
|
7397 |
EOF
|
sl@0
|
7398 |
if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7399 |
then
|
sl@0
|
7400 |
tcl_cv_strtod_unbroken=ok
|
sl@0
|
7401 |
else
|
sl@0
|
7402 |
echo "configure: failed program was:" >&5
|
sl@0
|
7403 |
cat conftest.$ac_ext >&5
|
sl@0
|
7404 |
rm -fr conftest*
|
sl@0
|
7405 |
tcl_cv_strtod_unbroken=broken
|
sl@0
|
7406 |
fi
|
sl@0
|
7407 |
rm -fr conftest*
|
sl@0
|
7408 |
fi
|
sl@0
|
7409 |
|
sl@0
|
7410 |
fi
|
sl@0
|
7411 |
|
sl@0
|
7412 |
echo "$ac_t""$tcl_cv_strtod_unbroken" 1>&6
|
sl@0
|
7413 |
if test $tcl_cv_strtod_unbroken = broken; then
|
sl@0
|
7414 |
tcl_ok=0
|
sl@0
|
7415 |
fi
|
sl@0
|
7416 |
fi
|
sl@0
|
7417 |
if test $tcl_ok = 0; then
|
sl@0
|
7418 |
LIBOBJS="$LIBOBJS strtod.o"
|
sl@0
|
7419 |
fi
|
sl@0
|
7420 |
|
sl@0
|
7421 |
#--------------------------------------------------------------------
|
sl@0
|
7422 |
# Under Solaris 2.4, strtod returns the wrong value for the
|
sl@0
|
7423 |
# terminating character under some conditions. Check for this
|
sl@0
|
7424 |
# and if the problem exists use a substitute procedure
|
sl@0
|
7425 |
# "fixstrtod" that corrects the error.
|
sl@0
|
7426 |
#--------------------------------------------------------------------
|
sl@0
|
7427 |
|
sl@0
|
7428 |
|
sl@0
|
7429 |
echo $ac_n "checking for strtod""... $ac_c" 1>&6
|
sl@0
|
7430 |
echo "configure:7431: checking for strtod" >&5
|
sl@0
|
7431 |
if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
|
sl@0
|
7432 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7433 |
else
|
sl@0
|
7434 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7435 |
#line 7436 "configure"
|
sl@0
|
7436 |
#include "confdefs.h"
|
sl@0
|
7437 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7438 |
which can conflict with char strtod(); below. */
|
sl@0
|
7439 |
#include <assert.h>
|
sl@0
|
7440 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7441 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7442 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7443 |
char strtod();
|
sl@0
|
7444 |
|
sl@0
|
7445 |
int main() {
|
sl@0
|
7446 |
|
sl@0
|
7447 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7448 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7449 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7450 |
#if defined (__stub_strtod) || defined (__stub___strtod)
|
sl@0
|
7451 |
choke me
|
sl@0
|
7452 |
#else
|
sl@0
|
7453 |
strtod();
|
sl@0
|
7454 |
#endif
|
sl@0
|
7455 |
|
sl@0
|
7456 |
; return 0; }
|
sl@0
|
7457 |
EOF
|
sl@0
|
7458 |
if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7459 |
rm -rf conftest*
|
sl@0
|
7460 |
eval "ac_cv_func_strtod=yes"
|
sl@0
|
7461 |
else
|
sl@0
|
7462 |
echo "configure: failed program was:" >&5
|
sl@0
|
7463 |
cat conftest.$ac_ext >&5
|
sl@0
|
7464 |
rm -rf conftest*
|
sl@0
|
7465 |
eval "ac_cv_func_strtod=no"
|
sl@0
|
7466 |
fi
|
sl@0
|
7467 |
rm -f conftest*
|
sl@0
|
7468 |
fi
|
sl@0
|
7469 |
|
sl@0
|
7470 |
if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
|
sl@0
|
7471 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7472 |
tcl_strtod=1
|
sl@0
|
7473 |
else
|
sl@0
|
7474 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7475 |
tcl_strtod=0
|
sl@0
|
7476 |
fi
|
sl@0
|
7477 |
|
sl@0
|
7478 |
if test "$tcl_strtod" = 1; then
|
sl@0
|
7479 |
echo $ac_n "checking for Solaris2.4/Tru64 strtod bugs""... $ac_c" 1>&6
|
sl@0
|
7480 |
echo "configure:7481: checking for Solaris2.4/Tru64 strtod bugs" >&5
|
sl@0
|
7481 |
if eval "test \"`echo '$''{'tcl_cv_strtod_buggy'+set}'`\" = set"; then
|
sl@0
|
7482 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7483 |
else
|
sl@0
|
7484 |
|
sl@0
|
7485 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7486 |
tcl_cv_strtod_buggy=buggy
|
sl@0
|
7487 |
else
|
sl@0
|
7488 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7489 |
#line 7490 "configure"
|
sl@0
|
7490 |
#include "confdefs.h"
|
sl@0
|
7491 |
|
sl@0
|
7492 |
extern double strtod();
|
sl@0
|
7493 |
int main() {
|
sl@0
|
7494 |
char *infString="Inf", *nanString="NaN", *spaceString=" ";
|
sl@0
|
7495 |
char *term;
|
sl@0
|
7496 |
double value;
|
sl@0
|
7497 |
value = strtod(infString, &term);
|
sl@0
|
7498 |
if ((term != infString) && (term[-1] == 0)) {
|
sl@0
|
7499 |
exit(1);
|
sl@0
|
7500 |
}
|
sl@0
|
7501 |
value = strtod(nanString, &term);
|
sl@0
|
7502 |
if ((term != nanString) && (term[-1] == 0)) {
|
sl@0
|
7503 |
exit(1);
|
sl@0
|
7504 |
}
|
sl@0
|
7505 |
value = strtod(spaceString, &term);
|
sl@0
|
7506 |
if (term == (spaceString+1)) {
|
sl@0
|
7507 |
exit(1);
|
sl@0
|
7508 |
}
|
sl@0
|
7509 |
exit(0);
|
sl@0
|
7510 |
}
|
sl@0
|
7511 |
EOF
|
sl@0
|
7512 |
if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7513 |
then
|
sl@0
|
7514 |
tcl_cv_strtod_buggy=ok
|
sl@0
|
7515 |
else
|
sl@0
|
7516 |
echo "configure: failed program was:" >&5
|
sl@0
|
7517 |
cat conftest.$ac_ext >&5
|
sl@0
|
7518 |
rm -fr conftest*
|
sl@0
|
7519 |
tcl_cv_strtod_buggy=buggy
|
sl@0
|
7520 |
fi
|
sl@0
|
7521 |
rm -fr conftest*
|
sl@0
|
7522 |
fi
|
sl@0
|
7523 |
|
sl@0
|
7524 |
fi
|
sl@0
|
7525 |
|
sl@0
|
7526 |
echo "$ac_t""$tcl_cv_strtod_buggy" 1>&6
|
sl@0
|
7527 |
if test "$tcl_cv_strtod_buggy" = buggy; then
|
sl@0
|
7528 |
LIBOBJS="$LIBOBJS fixstrtod.o"
|
sl@0
|
7529 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7530 |
#define strtod fixstrtod
|
sl@0
|
7531 |
EOF
|
sl@0
|
7532 |
|
sl@0
|
7533 |
fi
|
sl@0
|
7534 |
fi
|
sl@0
|
7535 |
|
sl@0
|
7536 |
|
sl@0
|
7537 |
#--------------------------------------------------------------------
|
sl@0
|
7538 |
# Check for various typedefs and provide substitutes if
|
sl@0
|
7539 |
# they don't exist.
|
sl@0
|
7540 |
#--------------------------------------------------------------------
|
sl@0
|
7541 |
|
sl@0
|
7542 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
sl@0
|
7543 |
echo "configure:7544: checking for ANSI C header files" >&5
|
sl@0
|
7544 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
sl@0
|
7545 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7546 |
else
|
sl@0
|
7547 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7548 |
#line 7549 "configure"
|
sl@0
|
7549 |
#include "confdefs.h"
|
sl@0
|
7550 |
#include <stdlib.h>
|
sl@0
|
7551 |
#include <stdarg.h>
|
sl@0
|
7552 |
#include <string.h>
|
sl@0
|
7553 |
#include <float.h>
|
sl@0
|
7554 |
EOF
|
sl@0
|
7555 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
7556 |
{ (eval echo configure:7557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
7557 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
7558 |
if test -z "$ac_err"; then
|
sl@0
|
7559 |
rm -rf conftest*
|
sl@0
|
7560 |
ac_cv_header_stdc=yes
|
sl@0
|
7561 |
else
|
sl@0
|
7562 |
echo "$ac_err" >&5
|
sl@0
|
7563 |
echo "configure: failed program was:" >&5
|
sl@0
|
7564 |
cat conftest.$ac_ext >&5
|
sl@0
|
7565 |
rm -rf conftest*
|
sl@0
|
7566 |
ac_cv_header_stdc=no
|
sl@0
|
7567 |
fi
|
sl@0
|
7568 |
rm -f conftest*
|
sl@0
|
7569 |
|
sl@0
|
7570 |
if test $ac_cv_header_stdc = yes; then
|
sl@0
|
7571 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
sl@0
|
7572 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7573 |
#line 7574 "configure"
|
sl@0
|
7574 |
#include "confdefs.h"
|
sl@0
|
7575 |
#include <string.h>
|
sl@0
|
7576 |
EOF
|
sl@0
|
7577 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7578 |
egrep "memchr" >/dev/null 2>&1; then
|
sl@0
|
7579 |
:
|
sl@0
|
7580 |
else
|
sl@0
|
7581 |
rm -rf conftest*
|
sl@0
|
7582 |
ac_cv_header_stdc=no
|
sl@0
|
7583 |
fi
|
sl@0
|
7584 |
rm -f conftest*
|
sl@0
|
7585 |
|
sl@0
|
7586 |
fi
|
sl@0
|
7587 |
|
sl@0
|
7588 |
if test $ac_cv_header_stdc = yes; then
|
sl@0
|
7589 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
sl@0
|
7590 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7591 |
#line 7592 "configure"
|
sl@0
|
7592 |
#include "confdefs.h"
|
sl@0
|
7593 |
#include <stdlib.h>
|
sl@0
|
7594 |
EOF
|
sl@0
|
7595 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7596 |
egrep "free" >/dev/null 2>&1; then
|
sl@0
|
7597 |
:
|
sl@0
|
7598 |
else
|
sl@0
|
7599 |
rm -rf conftest*
|
sl@0
|
7600 |
ac_cv_header_stdc=no
|
sl@0
|
7601 |
fi
|
sl@0
|
7602 |
rm -f conftest*
|
sl@0
|
7603 |
|
sl@0
|
7604 |
fi
|
sl@0
|
7605 |
|
sl@0
|
7606 |
if test $ac_cv_header_stdc = yes; then
|
sl@0
|
7607 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
sl@0
|
7608 |
if test "$cross_compiling" = yes; then
|
sl@0
|
7609 |
:
|
sl@0
|
7610 |
else
|
sl@0
|
7611 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7612 |
#line 7613 "configure"
|
sl@0
|
7613 |
#include "confdefs.h"
|
sl@0
|
7614 |
#include <ctype.h>
|
sl@0
|
7615 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
sl@0
|
7616 |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
sl@0
|
7617 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
sl@0
|
7618 |
int main () { int i; for (i = 0; i < 256; i++)
|
sl@0
|
7619 |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
sl@0
|
7620 |
exit (0); }
|
sl@0
|
7621 |
|
sl@0
|
7622 |
EOF
|
sl@0
|
7623 |
if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
7624 |
then
|
sl@0
|
7625 |
:
|
sl@0
|
7626 |
else
|
sl@0
|
7627 |
echo "configure: failed program was:" >&5
|
sl@0
|
7628 |
cat conftest.$ac_ext >&5
|
sl@0
|
7629 |
rm -fr conftest*
|
sl@0
|
7630 |
ac_cv_header_stdc=no
|
sl@0
|
7631 |
fi
|
sl@0
|
7632 |
rm -fr conftest*
|
sl@0
|
7633 |
fi
|
sl@0
|
7634 |
|
sl@0
|
7635 |
fi
|
sl@0
|
7636 |
fi
|
sl@0
|
7637 |
|
sl@0
|
7638 |
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
sl@0
|
7639 |
if test $ac_cv_header_stdc = yes; then
|
sl@0
|
7640 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7641 |
#define STDC_HEADERS 1
|
sl@0
|
7642 |
EOF
|
sl@0
|
7643 |
|
sl@0
|
7644 |
fi
|
sl@0
|
7645 |
|
sl@0
|
7646 |
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
sl@0
|
7647 |
echo "configure:7648: checking for mode_t" >&5
|
sl@0
|
7648 |
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
sl@0
|
7649 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7650 |
else
|
sl@0
|
7651 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7652 |
#line 7653 "configure"
|
sl@0
|
7653 |
#include "confdefs.h"
|
sl@0
|
7654 |
#include <sys/types.h>
|
sl@0
|
7655 |
#if STDC_HEADERS
|
sl@0
|
7656 |
#include <stdlib.h>
|
sl@0
|
7657 |
#include <stddef.h>
|
sl@0
|
7658 |
#endif
|
sl@0
|
7659 |
EOF
|
sl@0
|
7660 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7661 |
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
sl@0
|
7662 |
rm -rf conftest*
|
sl@0
|
7663 |
ac_cv_type_mode_t=yes
|
sl@0
|
7664 |
else
|
sl@0
|
7665 |
rm -rf conftest*
|
sl@0
|
7666 |
ac_cv_type_mode_t=no
|
sl@0
|
7667 |
fi
|
sl@0
|
7668 |
rm -f conftest*
|
sl@0
|
7669 |
|
sl@0
|
7670 |
fi
|
sl@0
|
7671 |
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
sl@0
|
7672 |
if test $ac_cv_type_mode_t = no; then
|
sl@0
|
7673 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7674 |
#define mode_t int
|
sl@0
|
7675 |
EOF
|
sl@0
|
7676 |
|
sl@0
|
7677 |
fi
|
sl@0
|
7678 |
|
sl@0
|
7679 |
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
sl@0
|
7680 |
echo "configure:7681: checking for pid_t" >&5
|
sl@0
|
7681 |
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
sl@0
|
7682 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7683 |
else
|
sl@0
|
7684 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7685 |
#line 7686 "configure"
|
sl@0
|
7686 |
#include "confdefs.h"
|
sl@0
|
7687 |
#include <sys/types.h>
|
sl@0
|
7688 |
#if STDC_HEADERS
|
sl@0
|
7689 |
#include <stdlib.h>
|
sl@0
|
7690 |
#include <stddef.h>
|
sl@0
|
7691 |
#endif
|
sl@0
|
7692 |
EOF
|
sl@0
|
7693 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7694 |
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
sl@0
|
7695 |
rm -rf conftest*
|
sl@0
|
7696 |
ac_cv_type_pid_t=yes
|
sl@0
|
7697 |
else
|
sl@0
|
7698 |
rm -rf conftest*
|
sl@0
|
7699 |
ac_cv_type_pid_t=no
|
sl@0
|
7700 |
fi
|
sl@0
|
7701 |
rm -f conftest*
|
sl@0
|
7702 |
|
sl@0
|
7703 |
fi
|
sl@0
|
7704 |
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
sl@0
|
7705 |
if test $ac_cv_type_pid_t = no; then
|
sl@0
|
7706 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7707 |
#define pid_t int
|
sl@0
|
7708 |
EOF
|
sl@0
|
7709 |
|
sl@0
|
7710 |
fi
|
sl@0
|
7711 |
|
sl@0
|
7712 |
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
sl@0
|
7713 |
echo "configure:7714: checking for size_t" >&5
|
sl@0
|
7714 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
sl@0
|
7715 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7716 |
else
|
sl@0
|
7717 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7718 |
#line 7719 "configure"
|
sl@0
|
7719 |
#include "confdefs.h"
|
sl@0
|
7720 |
#include <sys/types.h>
|
sl@0
|
7721 |
#if STDC_HEADERS
|
sl@0
|
7722 |
#include <stdlib.h>
|
sl@0
|
7723 |
#include <stddef.h>
|
sl@0
|
7724 |
#endif
|
sl@0
|
7725 |
EOF
|
sl@0
|
7726 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7727 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
sl@0
|
7728 |
rm -rf conftest*
|
sl@0
|
7729 |
ac_cv_type_size_t=yes
|
sl@0
|
7730 |
else
|
sl@0
|
7731 |
rm -rf conftest*
|
sl@0
|
7732 |
ac_cv_type_size_t=no
|
sl@0
|
7733 |
fi
|
sl@0
|
7734 |
rm -f conftest*
|
sl@0
|
7735 |
|
sl@0
|
7736 |
fi
|
sl@0
|
7737 |
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
sl@0
|
7738 |
if test $ac_cv_type_size_t = no; then
|
sl@0
|
7739 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7740 |
#define size_t unsigned
|
sl@0
|
7741 |
EOF
|
sl@0
|
7742 |
|
sl@0
|
7743 |
fi
|
sl@0
|
7744 |
|
sl@0
|
7745 |
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
sl@0
|
7746 |
echo "configure:7747: checking for uid_t in sys/types.h" >&5
|
sl@0
|
7747 |
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
|
sl@0
|
7748 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7749 |
else
|
sl@0
|
7750 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7751 |
#line 7752 "configure"
|
sl@0
|
7752 |
#include "confdefs.h"
|
sl@0
|
7753 |
#include <sys/types.h>
|
sl@0
|
7754 |
EOF
|
sl@0
|
7755 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7756 |
egrep "uid_t" >/dev/null 2>&1; then
|
sl@0
|
7757 |
rm -rf conftest*
|
sl@0
|
7758 |
ac_cv_type_uid_t=yes
|
sl@0
|
7759 |
else
|
sl@0
|
7760 |
rm -rf conftest*
|
sl@0
|
7761 |
ac_cv_type_uid_t=no
|
sl@0
|
7762 |
fi
|
sl@0
|
7763 |
rm -f conftest*
|
sl@0
|
7764 |
|
sl@0
|
7765 |
fi
|
sl@0
|
7766 |
|
sl@0
|
7767 |
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
sl@0
|
7768 |
if test $ac_cv_type_uid_t = no; then
|
sl@0
|
7769 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7770 |
#define uid_t int
|
sl@0
|
7771 |
EOF
|
sl@0
|
7772 |
|
sl@0
|
7773 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7774 |
#define gid_t int
|
sl@0
|
7775 |
EOF
|
sl@0
|
7776 |
|
sl@0
|
7777 |
fi
|
sl@0
|
7778 |
|
sl@0
|
7779 |
|
sl@0
|
7780 |
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
sl@0
|
7781 |
echo "configure:7782: checking for socklen_t" >&5
|
sl@0
|
7782 |
if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
|
sl@0
|
7783 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7784 |
else
|
sl@0
|
7785 |
|
sl@0
|
7786 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7787 |
#line 7788 "configure"
|
sl@0
|
7788 |
#include "confdefs.h"
|
sl@0
|
7789 |
|
sl@0
|
7790 |
#include <sys/types.h>
|
sl@0
|
7791 |
#include <sys/socket.h>
|
sl@0
|
7792 |
#if STDC_HEADERS
|
sl@0
|
7793 |
#include <stdlib.h>
|
sl@0
|
7794 |
#include <stddef.h>
|
sl@0
|
7795 |
#endif
|
sl@0
|
7796 |
|
sl@0
|
7797 |
EOF
|
sl@0
|
7798 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
7799 |
egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
sl@0
|
7800 |
rm -rf conftest*
|
sl@0
|
7801 |
ac_cv_type_socklen_t=yes
|
sl@0
|
7802 |
else
|
sl@0
|
7803 |
rm -rf conftest*
|
sl@0
|
7804 |
ac_cv_type_socklen_t=no
|
sl@0
|
7805 |
fi
|
sl@0
|
7806 |
rm -f conftest*
|
sl@0
|
7807 |
|
sl@0
|
7808 |
fi
|
sl@0
|
7809 |
|
sl@0
|
7810 |
echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
|
sl@0
|
7811 |
if test $ac_cv_type_socklen_t = no; then
|
sl@0
|
7812 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7813 |
#define socklen_t unsigned
|
sl@0
|
7814 |
EOF
|
sl@0
|
7815 |
|
sl@0
|
7816 |
fi
|
sl@0
|
7817 |
|
sl@0
|
7818 |
#--------------------------------------------------------------------
|
sl@0
|
7819 |
# If a system doesn't have an opendir function (man, that's old!)
|
sl@0
|
7820 |
# then we have to supply a different version of dirent.h which
|
sl@0
|
7821 |
# is compatible with the substitute version of opendir that's
|
sl@0
|
7822 |
# provided. This version only works with V7-style directories.
|
sl@0
|
7823 |
#--------------------------------------------------------------------
|
sl@0
|
7824 |
|
sl@0
|
7825 |
echo $ac_n "checking for opendir""... $ac_c" 1>&6
|
sl@0
|
7826 |
echo "configure:7827: checking for opendir" >&5
|
sl@0
|
7827 |
if eval "test \"`echo '$''{'ac_cv_func_opendir'+set}'`\" = set"; then
|
sl@0
|
7828 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7829 |
else
|
sl@0
|
7830 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7831 |
#line 7832 "configure"
|
sl@0
|
7832 |
#include "confdefs.h"
|
sl@0
|
7833 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7834 |
which can conflict with char opendir(); below. */
|
sl@0
|
7835 |
#include <assert.h>
|
sl@0
|
7836 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7837 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7838 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7839 |
char opendir();
|
sl@0
|
7840 |
|
sl@0
|
7841 |
int main() {
|
sl@0
|
7842 |
|
sl@0
|
7843 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7844 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7845 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7846 |
#if defined (__stub_opendir) || defined (__stub___opendir)
|
sl@0
|
7847 |
choke me
|
sl@0
|
7848 |
#else
|
sl@0
|
7849 |
opendir();
|
sl@0
|
7850 |
#endif
|
sl@0
|
7851 |
|
sl@0
|
7852 |
; return 0; }
|
sl@0
|
7853 |
EOF
|
sl@0
|
7854 |
if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7855 |
rm -rf conftest*
|
sl@0
|
7856 |
eval "ac_cv_func_opendir=yes"
|
sl@0
|
7857 |
else
|
sl@0
|
7858 |
echo "configure: failed program was:" >&5
|
sl@0
|
7859 |
cat conftest.$ac_ext >&5
|
sl@0
|
7860 |
rm -rf conftest*
|
sl@0
|
7861 |
eval "ac_cv_func_opendir=no"
|
sl@0
|
7862 |
fi
|
sl@0
|
7863 |
rm -f conftest*
|
sl@0
|
7864 |
fi
|
sl@0
|
7865 |
|
sl@0
|
7866 |
if eval "test \"`echo '$ac_cv_func_'opendir`\" = yes"; then
|
sl@0
|
7867 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7868 |
:
|
sl@0
|
7869 |
else
|
sl@0
|
7870 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7871 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7872 |
#define USE_DIRENT2_H 1
|
sl@0
|
7873 |
EOF
|
sl@0
|
7874 |
|
sl@0
|
7875 |
fi
|
sl@0
|
7876 |
|
sl@0
|
7877 |
|
sl@0
|
7878 |
#--------------------------------------------------------------------
|
sl@0
|
7879 |
# The check below checks whether <sys/wait.h> defines the type
|
sl@0
|
7880 |
# "union wait" correctly. It's needed because of weirdness in
|
sl@0
|
7881 |
# HP-UX where "union wait" is defined in both the BSD and SYS-V
|
sl@0
|
7882 |
# environments. Checking the usability of WIFEXITED seems to do
|
sl@0
|
7883 |
# the trick.
|
sl@0
|
7884 |
#--------------------------------------------------------------------
|
sl@0
|
7885 |
|
sl@0
|
7886 |
echo $ac_n "checking union wait""... $ac_c" 1>&6
|
sl@0
|
7887 |
echo "configure:7888: checking union wait" >&5
|
sl@0
|
7888 |
if eval "test \"`echo '$''{'tcl_cv_union_wait'+set}'`\" = set"; then
|
sl@0
|
7889 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7890 |
else
|
sl@0
|
7891 |
|
sl@0
|
7892 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7893 |
#line 7894 "configure"
|
sl@0
|
7894 |
#include "confdefs.h"
|
sl@0
|
7895 |
#include <sys/types.h>
|
sl@0
|
7896 |
#include <sys/wait.h>
|
sl@0
|
7897 |
int main() {
|
sl@0
|
7898 |
|
sl@0
|
7899 |
union wait x;
|
sl@0
|
7900 |
WIFEXITED(x); /* Generates compiler error if WIFEXITED
|
sl@0
|
7901 |
* uses an int. */
|
sl@0
|
7902 |
|
sl@0
|
7903 |
; return 0; }
|
sl@0
|
7904 |
EOF
|
sl@0
|
7905 |
if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7906 |
rm -rf conftest*
|
sl@0
|
7907 |
tcl_cv_union_wait=yes
|
sl@0
|
7908 |
else
|
sl@0
|
7909 |
echo "configure: failed program was:" >&5
|
sl@0
|
7910 |
cat conftest.$ac_ext >&5
|
sl@0
|
7911 |
rm -rf conftest*
|
sl@0
|
7912 |
tcl_cv_union_wait=no
|
sl@0
|
7913 |
fi
|
sl@0
|
7914 |
rm -f conftest*
|
sl@0
|
7915 |
fi
|
sl@0
|
7916 |
|
sl@0
|
7917 |
echo "$ac_t""$tcl_cv_union_wait" 1>&6
|
sl@0
|
7918 |
if test $tcl_cv_union_wait = no; then
|
sl@0
|
7919 |
cat >> confdefs.h <<\EOF
|
sl@0
|
7920 |
#define NO_UNION_WAIT 1
|
sl@0
|
7921 |
EOF
|
sl@0
|
7922 |
|
sl@0
|
7923 |
fi
|
sl@0
|
7924 |
|
sl@0
|
7925 |
#--------------------------------------------------------------------
|
sl@0
|
7926 |
# Check whether there is an strncasecmp function on this system.
|
sl@0
|
7927 |
# This is a bit tricky because under SCO it's in -lsocket and
|
sl@0
|
7928 |
# under Sequent Dynix it's in -linet.
|
sl@0
|
7929 |
#--------------------------------------------------------------------
|
sl@0
|
7930 |
|
sl@0
|
7931 |
echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6
|
sl@0
|
7932 |
echo "configure:7933: checking for strncasecmp" >&5
|
sl@0
|
7933 |
if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then
|
sl@0
|
7934 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7935 |
else
|
sl@0
|
7936 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7937 |
#line 7938 "configure"
|
sl@0
|
7938 |
#include "confdefs.h"
|
sl@0
|
7939 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
7940 |
which can conflict with char strncasecmp(); below. */
|
sl@0
|
7941 |
#include <assert.h>
|
sl@0
|
7942 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7943 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7944 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7945 |
char strncasecmp();
|
sl@0
|
7946 |
|
sl@0
|
7947 |
int main() {
|
sl@0
|
7948 |
|
sl@0
|
7949 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
7950 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
7951 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
7952 |
#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
|
sl@0
|
7953 |
choke me
|
sl@0
|
7954 |
#else
|
sl@0
|
7955 |
strncasecmp();
|
sl@0
|
7956 |
#endif
|
sl@0
|
7957 |
|
sl@0
|
7958 |
; return 0; }
|
sl@0
|
7959 |
EOF
|
sl@0
|
7960 |
if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
7961 |
rm -rf conftest*
|
sl@0
|
7962 |
eval "ac_cv_func_strncasecmp=yes"
|
sl@0
|
7963 |
else
|
sl@0
|
7964 |
echo "configure: failed program was:" >&5
|
sl@0
|
7965 |
cat conftest.$ac_ext >&5
|
sl@0
|
7966 |
rm -rf conftest*
|
sl@0
|
7967 |
eval "ac_cv_func_strncasecmp=no"
|
sl@0
|
7968 |
fi
|
sl@0
|
7969 |
rm -f conftest*
|
sl@0
|
7970 |
fi
|
sl@0
|
7971 |
|
sl@0
|
7972 |
if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then
|
sl@0
|
7973 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
7974 |
tcl_ok=1
|
sl@0
|
7975 |
else
|
sl@0
|
7976 |
echo "$ac_t""no" 1>&6
|
sl@0
|
7977 |
tcl_ok=0
|
sl@0
|
7978 |
fi
|
sl@0
|
7979 |
|
sl@0
|
7980 |
if test "$tcl_ok" = 0; then
|
sl@0
|
7981 |
echo $ac_n "checking for strncasecmp in -lsocket""... $ac_c" 1>&6
|
sl@0
|
7982 |
echo "configure:7983: checking for strncasecmp in -lsocket" >&5
|
sl@0
|
7983 |
ac_lib_var=`echo socket'_'strncasecmp | sed 'y%./+-%__p_%'`
|
sl@0
|
7984 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
7985 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
7986 |
else
|
sl@0
|
7987 |
ac_save_LIBS="$LIBS"
|
sl@0
|
7988 |
LIBS="-lsocket $LIBS"
|
sl@0
|
7989 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
7990 |
#line 7991 "configure"
|
sl@0
|
7991 |
#include "confdefs.h"
|
sl@0
|
7992 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
7993 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
7994 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
7995 |
char strncasecmp();
|
sl@0
|
7996 |
|
sl@0
|
7997 |
int main() {
|
sl@0
|
7998 |
strncasecmp()
|
sl@0
|
7999 |
; return 0; }
|
sl@0
|
8000 |
EOF
|
sl@0
|
8001 |
if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8002 |
rm -rf conftest*
|
sl@0
|
8003 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
8004 |
else
|
sl@0
|
8005 |
echo "configure: failed program was:" >&5
|
sl@0
|
8006 |
cat conftest.$ac_ext >&5
|
sl@0
|
8007 |
rm -rf conftest*
|
sl@0
|
8008 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
8009 |
fi
|
sl@0
|
8010 |
rm -f conftest*
|
sl@0
|
8011 |
LIBS="$ac_save_LIBS"
|
sl@0
|
8012 |
|
sl@0
|
8013 |
fi
|
sl@0
|
8014 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
8015 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8016 |
tcl_ok=1
|
sl@0
|
8017 |
else
|
sl@0
|
8018 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8019 |
tcl_ok=0
|
sl@0
|
8020 |
fi
|
sl@0
|
8021 |
|
sl@0
|
8022 |
fi
|
sl@0
|
8023 |
if test "$tcl_ok" = 0; then
|
sl@0
|
8024 |
echo $ac_n "checking for strncasecmp in -linet""... $ac_c" 1>&6
|
sl@0
|
8025 |
echo "configure:8026: checking for strncasecmp in -linet" >&5
|
sl@0
|
8026 |
ac_lib_var=`echo inet'_'strncasecmp | sed 'y%./+-%__p_%'`
|
sl@0
|
8027 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
sl@0
|
8028 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8029 |
else
|
sl@0
|
8030 |
ac_save_LIBS="$LIBS"
|
sl@0
|
8031 |
LIBS="-linet $LIBS"
|
sl@0
|
8032 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8033 |
#line 8034 "configure"
|
sl@0
|
8034 |
#include "confdefs.h"
|
sl@0
|
8035 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8036 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8037 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8038 |
char strncasecmp();
|
sl@0
|
8039 |
|
sl@0
|
8040 |
int main() {
|
sl@0
|
8041 |
strncasecmp()
|
sl@0
|
8042 |
; return 0; }
|
sl@0
|
8043 |
EOF
|
sl@0
|
8044 |
if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8045 |
rm -rf conftest*
|
sl@0
|
8046 |
eval "ac_cv_lib_$ac_lib_var=yes"
|
sl@0
|
8047 |
else
|
sl@0
|
8048 |
echo "configure: failed program was:" >&5
|
sl@0
|
8049 |
cat conftest.$ac_ext >&5
|
sl@0
|
8050 |
rm -rf conftest*
|
sl@0
|
8051 |
eval "ac_cv_lib_$ac_lib_var=no"
|
sl@0
|
8052 |
fi
|
sl@0
|
8053 |
rm -f conftest*
|
sl@0
|
8054 |
LIBS="$ac_save_LIBS"
|
sl@0
|
8055 |
|
sl@0
|
8056 |
fi
|
sl@0
|
8057 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
sl@0
|
8058 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8059 |
tcl_ok=1
|
sl@0
|
8060 |
else
|
sl@0
|
8061 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8062 |
tcl_ok=0
|
sl@0
|
8063 |
fi
|
sl@0
|
8064 |
|
sl@0
|
8065 |
fi
|
sl@0
|
8066 |
if test "$tcl_ok" = 0; then
|
sl@0
|
8067 |
LIBOBJS="$LIBOBJS strncasecmp.o"
|
sl@0
|
8068 |
fi
|
sl@0
|
8069 |
|
sl@0
|
8070 |
#--------------------------------------------------------------------
|
sl@0
|
8071 |
# The code below deals with several issues related to gettimeofday:
|
sl@0
|
8072 |
# 1. Some systems don't provide a gettimeofday function at all
|
sl@0
|
8073 |
# (set NO_GETTOD if this is the case).
|
sl@0
|
8074 |
# 2. SGI systems don't use the BSD form of the gettimeofday function,
|
sl@0
|
8075 |
# but they have a BSDgettimeofday function that can be used instead.
|
sl@0
|
8076 |
# 3. See if gettimeofday is declared in the <sys/time.h> header file.
|
sl@0
|
8077 |
# if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
|
sl@0
|
8078 |
# declare it.
|
sl@0
|
8079 |
#--------------------------------------------------------------------
|
sl@0
|
8080 |
|
sl@0
|
8081 |
echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
|
sl@0
|
8082 |
echo "configure:8083: checking for BSDgettimeofday" >&5
|
sl@0
|
8083 |
if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
|
sl@0
|
8084 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8085 |
else
|
sl@0
|
8086 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8087 |
#line 8088 "configure"
|
sl@0
|
8088 |
#include "confdefs.h"
|
sl@0
|
8089 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
8090 |
which can conflict with char BSDgettimeofday(); below. */
|
sl@0
|
8091 |
#include <assert.h>
|
sl@0
|
8092 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8093 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8094 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8095 |
char BSDgettimeofday();
|
sl@0
|
8096 |
|
sl@0
|
8097 |
int main() {
|
sl@0
|
8098 |
|
sl@0
|
8099 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
8100 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
8101 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
8102 |
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
|
sl@0
|
8103 |
choke me
|
sl@0
|
8104 |
#else
|
sl@0
|
8105 |
BSDgettimeofday();
|
sl@0
|
8106 |
#endif
|
sl@0
|
8107 |
|
sl@0
|
8108 |
; return 0; }
|
sl@0
|
8109 |
EOF
|
sl@0
|
8110 |
if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8111 |
rm -rf conftest*
|
sl@0
|
8112 |
eval "ac_cv_func_BSDgettimeofday=yes"
|
sl@0
|
8113 |
else
|
sl@0
|
8114 |
echo "configure: failed program was:" >&5
|
sl@0
|
8115 |
cat conftest.$ac_ext >&5
|
sl@0
|
8116 |
rm -rf conftest*
|
sl@0
|
8117 |
eval "ac_cv_func_BSDgettimeofday=no"
|
sl@0
|
8118 |
fi
|
sl@0
|
8119 |
rm -f conftest*
|
sl@0
|
8120 |
fi
|
sl@0
|
8121 |
|
sl@0
|
8122 |
if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
|
sl@0
|
8123 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8124 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8125 |
#define HAVE_BSDGETTIMEOFDAY 1
|
sl@0
|
8126 |
EOF
|
sl@0
|
8127 |
|
sl@0
|
8128 |
else
|
sl@0
|
8129 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8130 |
|
sl@0
|
8131 |
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
|
sl@0
|
8132 |
echo "configure:8133: checking for gettimeofday" >&5
|
sl@0
|
8133 |
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
|
sl@0
|
8134 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8135 |
else
|
sl@0
|
8136 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8137 |
#line 8138 "configure"
|
sl@0
|
8138 |
#include "confdefs.h"
|
sl@0
|
8139 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
8140 |
which can conflict with char gettimeofday(); below. */
|
sl@0
|
8141 |
#include <assert.h>
|
sl@0
|
8142 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8143 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8144 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8145 |
char gettimeofday();
|
sl@0
|
8146 |
|
sl@0
|
8147 |
int main() {
|
sl@0
|
8148 |
|
sl@0
|
8149 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
8150 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
8151 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
8152 |
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
|
sl@0
|
8153 |
choke me
|
sl@0
|
8154 |
#else
|
sl@0
|
8155 |
gettimeofday();
|
sl@0
|
8156 |
#endif
|
sl@0
|
8157 |
|
sl@0
|
8158 |
; return 0; }
|
sl@0
|
8159 |
EOF
|
sl@0
|
8160 |
if { (eval echo configure:8161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8161 |
rm -rf conftest*
|
sl@0
|
8162 |
eval "ac_cv_func_gettimeofday=yes"
|
sl@0
|
8163 |
else
|
sl@0
|
8164 |
echo "configure: failed program was:" >&5
|
sl@0
|
8165 |
cat conftest.$ac_ext >&5
|
sl@0
|
8166 |
rm -rf conftest*
|
sl@0
|
8167 |
eval "ac_cv_func_gettimeofday=no"
|
sl@0
|
8168 |
fi
|
sl@0
|
8169 |
rm -f conftest*
|
sl@0
|
8170 |
fi
|
sl@0
|
8171 |
|
sl@0
|
8172 |
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
|
sl@0
|
8173 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8174 |
:
|
sl@0
|
8175 |
else
|
sl@0
|
8176 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8177 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8178 |
#define NO_GETTOD 1
|
sl@0
|
8179 |
EOF
|
sl@0
|
8180 |
|
sl@0
|
8181 |
fi
|
sl@0
|
8182 |
|
sl@0
|
8183 |
|
sl@0
|
8184 |
fi
|
sl@0
|
8185 |
|
sl@0
|
8186 |
echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
|
sl@0
|
8187 |
echo "configure:8188: checking for gettimeofday declaration" >&5
|
sl@0
|
8188 |
if eval "test \"`echo '$''{'tcl_cv_grep_gettimeofday'+set}'`\" = set"; then
|
sl@0
|
8189 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8190 |
else
|
sl@0
|
8191 |
|
sl@0
|
8192 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8193 |
#line 8194 "configure"
|
sl@0
|
8194 |
#include "confdefs.h"
|
sl@0
|
8195 |
#include <sys/time.h>
|
sl@0
|
8196 |
EOF
|
sl@0
|
8197 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
8198 |
egrep "gettimeofday" >/dev/null 2>&1; then
|
sl@0
|
8199 |
rm -rf conftest*
|
sl@0
|
8200 |
tcl_cv_grep_gettimeofday=present
|
sl@0
|
8201 |
else
|
sl@0
|
8202 |
rm -rf conftest*
|
sl@0
|
8203 |
tcl_cv_grep_gettimeofday=missing
|
sl@0
|
8204 |
fi
|
sl@0
|
8205 |
rm -f conftest*
|
sl@0
|
8206 |
|
sl@0
|
8207 |
fi
|
sl@0
|
8208 |
|
sl@0
|
8209 |
echo "$ac_t""$tcl_cv_grep_gettimeofday" 1>&6
|
sl@0
|
8210 |
if test $tcl_cv_grep_gettimeofday = missing ; then
|
sl@0
|
8211 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8212 |
#define GETTOD_NOT_DECLARED 1
|
sl@0
|
8213 |
EOF
|
sl@0
|
8214 |
|
sl@0
|
8215 |
fi
|
sl@0
|
8216 |
|
sl@0
|
8217 |
#--------------------------------------------------------------------
|
sl@0
|
8218 |
# The following code checks to see whether it is possible to get
|
sl@0
|
8219 |
# signed chars on this platform. This is needed in order to
|
sl@0
|
8220 |
# properly generate sign-extended ints from character values.
|
sl@0
|
8221 |
#--------------------------------------------------------------------
|
sl@0
|
8222 |
|
sl@0
|
8223 |
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
|
sl@0
|
8224 |
echo "configure:8225: checking whether char is unsigned" >&5
|
sl@0
|
8225 |
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
|
sl@0
|
8226 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8227 |
else
|
sl@0
|
8228 |
if test "$GCC" = yes; then
|
sl@0
|
8229 |
# GCC predefines this symbol on systems where it applies.
|
sl@0
|
8230 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8231 |
#line 8232 "configure"
|
sl@0
|
8232 |
#include "confdefs.h"
|
sl@0
|
8233 |
#ifdef __CHAR_UNSIGNED__
|
sl@0
|
8234 |
yes
|
sl@0
|
8235 |
#endif
|
sl@0
|
8236 |
|
sl@0
|
8237 |
EOF
|
sl@0
|
8238 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
sl@0
|
8239 |
egrep "yes" >/dev/null 2>&1; then
|
sl@0
|
8240 |
rm -rf conftest*
|
sl@0
|
8241 |
ac_cv_c_char_unsigned=yes
|
sl@0
|
8242 |
else
|
sl@0
|
8243 |
rm -rf conftest*
|
sl@0
|
8244 |
ac_cv_c_char_unsigned=no
|
sl@0
|
8245 |
fi
|
sl@0
|
8246 |
rm -f conftest*
|
sl@0
|
8247 |
|
sl@0
|
8248 |
else
|
sl@0
|
8249 |
if test "$cross_compiling" = yes; then
|
sl@0
|
8250 |
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
sl@0
|
8251 |
else
|
sl@0
|
8252 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8253 |
#line 8254 "configure"
|
sl@0
|
8254 |
#include "confdefs.h"
|
sl@0
|
8255 |
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
|
sl@0
|
8256 |
#if !defined(__STDC__) || __STDC__ != 1
|
sl@0
|
8257 |
#define volatile
|
sl@0
|
8258 |
#endif
|
sl@0
|
8259 |
main() {
|
sl@0
|
8260 |
volatile char c = 255; exit(c < 0);
|
sl@0
|
8261 |
}
|
sl@0
|
8262 |
EOF
|
sl@0
|
8263 |
if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
8264 |
then
|
sl@0
|
8265 |
ac_cv_c_char_unsigned=yes
|
sl@0
|
8266 |
else
|
sl@0
|
8267 |
echo "configure: failed program was:" >&5
|
sl@0
|
8268 |
cat conftest.$ac_ext >&5
|
sl@0
|
8269 |
rm -fr conftest*
|
sl@0
|
8270 |
ac_cv_c_char_unsigned=no
|
sl@0
|
8271 |
fi
|
sl@0
|
8272 |
rm -fr conftest*
|
sl@0
|
8273 |
fi
|
sl@0
|
8274 |
|
sl@0
|
8275 |
fi
|
sl@0
|
8276 |
fi
|
sl@0
|
8277 |
|
sl@0
|
8278 |
echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
|
sl@0
|
8279 |
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
|
sl@0
|
8280 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8281 |
#define __CHAR_UNSIGNED__ 1
|
sl@0
|
8282 |
EOF
|
sl@0
|
8283 |
|
sl@0
|
8284 |
fi
|
sl@0
|
8285 |
|
sl@0
|
8286 |
echo $ac_n "checking signed char declarations""... $ac_c" 1>&6
|
sl@0
|
8287 |
echo "configure:8288: checking signed char declarations" >&5
|
sl@0
|
8288 |
if eval "test \"`echo '$''{'tcl_cv_char_signed'+set}'`\" = set"; then
|
sl@0
|
8289 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8290 |
else
|
sl@0
|
8291 |
|
sl@0
|
8292 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8293 |
#line 8294 "configure"
|
sl@0
|
8294 |
#include "confdefs.h"
|
sl@0
|
8295 |
|
sl@0
|
8296 |
int main() {
|
sl@0
|
8297 |
|
sl@0
|
8298 |
signed char *p;
|
sl@0
|
8299 |
p = 0;
|
sl@0
|
8300 |
|
sl@0
|
8301 |
; return 0; }
|
sl@0
|
8302 |
EOF
|
sl@0
|
8303 |
if { (eval echo configure:8304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
8304 |
rm -rf conftest*
|
sl@0
|
8305 |
tcl_cv_char_signed=yes
|
sl@0
|
8306 |
else
|
sl@0
|
8307 |
echo "configure: failed program was:" >&5
|
sl@0
|
8308 |
cat conftest.$ac_ext >&5
|
sl@0
|
8309 |
rm -rf conftest*
|
sl@0
|
8310 |
tcl_cv_char_signed=no
|
sl@0
|
8311 |
fi
|
sl@0
|
8312 |
rm -f conftest*
|
sl@0
|
8313 |
fi
|
sl@0
|
8314 |
|
sl@0
|
8315 |
echo "$ac_t""$tcl_cv_char_signed" 1>&6
|
sl@0
|
8316 |
if test $tcl_cv_char_signed = yes; then
|
sl@0
|
8317 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8318 |
#define HAVE_SIGNED_CHAR 1
|
sl@0
|
8319 |
EOF
|
sl@0
|
8320 |
|
sl@0
|
8321 |
fi
|
sl@0
|
8322 |
|
sl@0
|
8323 |
#--------------------------------------------------------------------
|
sl@0
|
8324 |
# Does putenv() copy or not? We need to know to avoid memory leaks.
|
sl@0
|
8325 |
#--------------------------------------------------------------------
|
sl@0
|
8326 |
|
sl@0
|
8327 |
echo $ac_n "checking for a putenv() that copies the buffer""... $ac_c" 1>&6
|
sl@0
|
8328 |
echo "configure:8329: checking for a putenv() that copies the buffer" >&5
|
sl@0
|
8329 |
if eval "test \"`echo '$''{'tcl_cv_putenv_copy'+set}'`\" = set"; then
|
sl@0
|
8330 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8331 |
else
|
sl@0
|
8332 |
|
sl@0
|
8333 |
if test "$cross_compiling" = yes; then
|
sl@0
|
8334 |
tcl_cv_putenv_copy=no
|
sl@0
|
8335 |
else
|
sl@0
|
8336 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8337 |
#line 8338 "configure"
|
sl@0
|
8338 |
#include "confdefs.h"
|
sl@0
|
8339 |
|
sl@0
|
8340 |
#include <stdlib.h>
|
sl@0
|
8341 |
#define OURVAR "havecopy=yes"
|
sl@0
|
8342 |
int main (int argc, char *argv[])
|
sl@0
|
8343 |
{
|
sl@0
|
8344 |
char *foo, *bar;
|
sl@0
|
8345 |
foo = (char *)strdup(OURVAR);
|
sl@0
|
8346 |
putenv(foo);
|
sl@0
|
8347 |
strcpy((char *)(strchr(foo, '=') + 1), "no");
|
sl@0
|
8348 |
bar = getenv("havecopy");
|
sl@0
|
8349 |
if (!strcmp(bar, "no")) {
|
sl@0
|
8350 |
/* doesnt copy */
|
sl@0
|
8351 |
return 0;
|
sl@0
|
8352 |
} else {
|
sl@0
|
8353 |
/* does copy */
|
sl@0
|
8354 |
return 1;
|
sl@0
|
8355 |
}
|
sl@0
|
8356 |
}
|
sl@0
|
8357 |
|
sl@0
|
8358 |
EOF
|
sl@0
|
8359 |
if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
sl@0
|
8360 |
then
|
sl@0
|
8361 |
tcl_cv_putenv_copy=no
|
sl@0
|
8362 |
else
|
sl@0
|
8363 |
echo "configure: failed program was:" >&5
|
sl@0
|
8364 |
cat conftest.$ac_ext >&5
|
sl@0
|
8365 |
rm -fr conftest*
|
sl@0
|
8366 |
tcl_cv_putenv_copy=yes
|
sl@0
|
8367 |
fi
|
sl@0
|
8368 |
rm -fr conftest*
|
sl@0
|
8369 |
fi
|
sl@0
|
8370 |
|
sl@0
|
8371 |
fi
|
sl@0
|
8372 |
|
sl@0
|
8373 |
echo "$ac_t""$tcl_cv_putenv_copy" 1>&6
|
sl@0
|
8374 |
if test $tcl_cv_putenv_copy = yes; then
|
sl@0
|
8375 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8376 |
#define HAVE_PUTENV_THAT_COPIES 1
|
sl@0
|
8377 |
EOF
|
sl@0
|
8378 |
|
sl@0
|
8379 |
fi
|
sl@0
|
8380 |
|
sl@0
|
8381 |
#--------------------------------------------------------------------
|
sl@0
|
8382 |
# Check for support of nl_langinfo function
|
sl@0
|
8383 |
#--------------------------------------------------------------------
|
sl@0
|
8384 |
|
sl@0
|
8385 |
|
sl@0
|
8386 |
# Check whether --enable-langinfo or --disable-langinfo was given.
|
sl@0
|
8387 |
if test "${enable_langinfo+set}" = set; then
|
sl@0
|
8388 |
enableval="$enable_langinfo"
|
sl@0
|
8389 |
langinfo_ok=$enableval
|
sl@0
|
8390 |
else
|
sl@0
|
8391 |
langinfo_ok=yes
|
sl@0
|
8392 |
fi
|
sl@0
|
8393 |
|
sl@0
|
8394 |
|
sl@0
|
8395 |
HAVE_LANGINFO=0
|
sl@0
|
8396 |
if test "$langinfo_ok" = "yes"; then
|
sl@0
|
8397 |
ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
|
sl@0
|
8398 |
echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
|
sl@0
|
8399 |
echo "configure:8400: checking for langinfo.h" >&5
|
sl@0
|
8400 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8401 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8402 |
else
|
sl@0
|
8403 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8404 |
#line 8405 "configure"
|
sl@0
|
8405 |
#include "confdefs.h"
|
sl@0
|
8406 |
#include <langinfo.h>
|
sl@0
|
8407 |
EOF
|
sl@0
|
8408 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8409 |
{ (eval echo configure:8410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8410 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8411 |
if test -z "$ac_err"; then
|
sl@0
|
8412 |
rm -rf conftest*
|
sl@0
|
8413 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8414 |
else
|
sl@0
|
8415 |
echo "$ac_err" >&5
|
sl@0
|
8416 |
echo "configure: failed program was:" >&5
|
sl@0
|
8417 |
cat conftest.$ac_ext >&5
|
sl@0
|
8418 |
rm -rf conftest*
|
sl@0
|
8419 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8420 |
fi
|
sl@0
|
8421 |
rm -f conftest*
|
sl@0
|
8422 |
fi
|
sl@0
|
8423 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8424 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8425 |
langinfo_ok=yes
|
sl@0
|
8426 |
else
|
sl@0
|
8427 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8428 |
langinfo_ok=no
|
sl@0
|
8429 |
fi
|
sl@0
|
8430 |
|
sl@0
|
8431 |
fi
|
sl@0
|
8432 |
echo $ac_n "checking whether to use nl_langinfo""... $ac_c" 1>&6
|
sl@0
|
8433 |
echo "configure:8434: checking whether to use nl_langinfo" >&5
|
sl@0
|
8434 |
if test "$langinfo_ok" = "yes"; then
|
sl@0
|
8435 |
if eval "test \"`echo '$''{'tcl_cv_langinfo_h'+set}'`\" = set"; then
|
sl@0
|
8436 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8437 |
else
|
sl@0
|
8438 |
|
sl@0
|
8439 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8440 |
#line 8441 "configure"
|
sl@0
|
8441 |
#include "confdefs.h"
|
sl@0
|
8442 |
#include <langinfo.h>
|
sl@0
|
8443 |
int main() {
|
sl@0
|
8444 |
nl_langinfo(CODESET);
|
sl@0
|
8445 |
; return 0; }
|
sl@0
|
8446 |
EOF
|
sl@0
|
8447 |
if { (eval echo configure:8448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
sl@0
|
8448 |
rm -rf conftest*
|
sl@0
|
8449 |
tcl_cv_langinfo_h=yes
|
sl@0
|
8450 |
else
|
sl@0
|
8451 |
echo "configure: failed program was:" >&5
|
sl@0
|
8452 |
cat conftest.$ac_ext >&5
|
sl@0
|
8453 |
rm -rf conftest*
|
sl@0
|
8454 |
tcl_cv_langinfo_h=no
|
sl@0
|
8455 |
fi
|
sl@0
|
8456 |
rm -f conftest*
|
sl@0
|
8457 |
fi
|
sl@0
|
8458 |
|
sl@0
|
8459 |
echo "$ac_t""$tcl_cv_langinfo_h" 1>&6
|
sl@0
|
8460 |
if test $tcl_cv_langinfo_h = yes; then
|
sl@0
|
8461 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8462 |
#define HAVE_LANGINFO 1
|
sl@0
|
8463 |
EOF
|
sl@0
|
8464 |
|
sl@0
|
8465 |
fi
|
sl@0
|
8466 |
else
|
sl@0
|
8467 |
echo "$ac_t""$langinfo_ok" 1>&6
|
sl@0
|
8468 |
fi
|
sl@0
|
8469 |
|
sl@0
|
8470 |
|
sl@0
|
8471 |
#--------------------------------------------------------------------
|
sl@0
|
8472 |
# Darwin specific API checks and defines
|
sl@0
|
8473 |
#--------------------------------------------------------------------
|
sl@0
|
8474 |
|
sl@0
|
8475 |
if test "`uname -s`" = "Darwin" ; then
|
sl@0
|
8476 |
for ac_hdr in copyfile.h
|
sl@0
|
8477 |
do
|
sl@0
|
8478 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
8479 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
8480 |
echo "configure:8481: checking for $ac_hdr" >&5
|
sl@0
|
8481 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8482 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8483 |
else
|
sl@0
|
8484 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8485 |
#line 8486 "configure"
|
sl@0
|
8486 |
#include "confdefs.h"
|
sl@0
|
8487 |
#include <$ac_hdr>
|
sl@0
|
8488 |
EOF
|
sl@0
|
8489 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8490 |
{ (eval echo configure:8491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8491 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8492 |
if test -z "$ac_err"; then
|
sl@0
|
8493 |
rm -rf conftest*
|
sl@0
|
8494 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8495 |
else
|
sl@0
|
8496 |
echo "$ac_err" >&5
|
sl@0
|
8497 |
echo "configure: failed program was:" >&5
|
sl@0
|
8498 |
cat conftest.$ac_ext >&5
|
sl@0
|
8499 |
rm -rf conftest*
|
sl@0
|
8500 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8501 |
fi
|
sl@0
|
8502 |
rm -f conftest*
|
sl@0
|
8503 |
fi
|
sl@0
|
8504 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8505 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8506 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
8507 |
cat >> confdefs.h <<EOF
|
sl@0
|
8508 |
#define $ac_tr_hdr 1
|
sl@0
|
8509 |
EOF
|
sl@0
|
8510 |
|
sl@0
|
8511 |
else
|
sl@0
|
8512 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8513 |
fi
|
sl@0
|
8514 |
done
|
sl@0
|
8515 |
|
sl@0
|
8516 |
for ac_func in copyfile
|
sl@0
|
8517 |
do
|
sl@0
|
8518 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
8519 |
echo "configure:8520: checking for $ac_func" >&5
|
sl@0
|
8520 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
8521 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8522 |
else
|
sl@0
|
8523 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8524 |
#line 8525 "configure"
|
sl@0
|
8525 |
#include "confdefs.h"
|
sl@0
|
8526 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
8527 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
8528 |
#include <assert.h>
|
sl@0
|
8529 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8530 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8531 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8532 |
char $ac_func();
|
sl@0
|
8533 |
|
sl@0
|
8534 |
int main() {
|
sl@0
|
8535 |
|
sl@0
|
8536 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
8537 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
8538 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
8539 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
8540 |
choke me
|
sl@0
|
8541 |
#else
|
sl@0
|
8542 |
$ac_func();
|
sl@0
|
8543 |
#endif
|
sl@0
|
8544 |
|
sl@0
|
8545 |
; return 0; }
|
sl@0
|
8546 |
EOF
|
sl@0
|
8547 |
if { (eval echo configure:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8548 |
rm -rf conftest*
|
sl@0
|
8549 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
8550 |
else
|
sl@0
|
8551 |
echo "configure: failed program was:" >&5
|
sl@0
|
8552 |
cat conftest.$ac_ext >&5
|
sl@0
|
8553 |
rm -rf conftest*
|
sl@0
|
8554 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
8555 |
fi
|
sl@0
|
8556 |
rm -f conftest*
|
sl@0
|
8557 |
fi
|
sl@0
|
8558 |
|
sl@0
|
8559 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
8560 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8561 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
8562 |
cat >> confdefs.h <<EOF
|
sl@0
|
8563 |
#define $ac_tr_func 1
|
sl@0
|
8564 |
EOF
|
sl@0
|
8565 |
|
sl@0
|
8566 |
else
|
sl@0
|
8567 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8568 |
fi
|
sl@0
|
8569 |
done
|
sl@0
|
8570 |
|
sl@0
|
8571 |
if test $tcl_corefoundation = yes; then
|
sl@0
|
8572 |
for ac_hdr in libkern/OSAtomic.h
|
sl@0
|
8573 |
do
|
sl@0
|
8574 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
8575 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
8576 |
echo "configure:8577: checking for $ac_hdr" >&5
|
sl@0
|
8577 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8578 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8579 |
else
|
sl@0
|
8580 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8581 |
#line 8582 "configure"
|
sl@0
|
8582 |
#include "confdefs.h"
|
sl@0
|
8583 |
#include <$ac_hdr>
|
sl@0
|
8584 |
EOF
|
sl@0
|
8585 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8586 |
{ (eval echo configure:8587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8587 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8588 |
if test -z "$ac_err"; then
|
sl@0
|
8589 |
rm -rf conftest*
|
sl@0
|
8590 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8591 |
else
|
sl@0
|
8592 |
echo "$ac_err" >&5
|
sl@0
|
8593 |
echo "configure: failed program was:" >&5
|
sl@0
|
8594 |
cat conftest.$ac_ext >&5
|
sl@0
|
8595 |
rm -rf conftest*
|
sl@0
|
8596 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8597 |
fi
|
sl@0
|
8598 |
rm -f conftest*
|
sl@0
|
8599 |
fi
|
sl@0
|
8600 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8601 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8602 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
8603 |
cat >> confdefs.h <<EOF
|
sl@0
|
8604 |
#define $ac_tr_hdr 1
|
sl@0
|
8605 |
EOF
|
sl@0
|
8606 |
|
sl@0
|
8607 |
else
|
sl@0
|
8608 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8609 |
fi
|
sl@0
|
8610 |
done
|
sl@0
|
8611 |
|
sl@0
|
8612 |
for ac_func in OSSpinLockLock
|
sl@0
|
8613 |
do
|
sl@0
|
8614 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
8615 |
echo "configure:8616: checking for $ac_func" >&5
|
sl@0
|
8616 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
8617 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8618 |
else
|
sl@0
|
8619 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8620 |
#line 8621 "configure"
|
sl@0
|
8621 |
#include "confdefs.h"
|
sl@0
|
8622 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
8623 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
8624 |
#include <assert.h>
|
sl@0
|
8625 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8626 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8627 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8628 |
char $ac_func();
|
sl@0
|
8629 |
|
sl@0
|
8630 |
int main() {
|
sl@0
|
8631 |
|
sl@0
|
8632 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
8633 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
8634 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
8635 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
8636 |
choke me
|
sl@0
|
8637 |
#else
|
sl@0
|
8638 |
$ac_func();
|
sl@0
|
8639 |
#endif
|
sl@0
|
8640 |
|
sl@0
|
8641 |
; return 0; }
|
sl@0
|
8642 |
EOF
|
sl@0
|
8643 |
if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8644 |
rm -rf conftest*
|
sl@0
|
8645 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
8646 |
else
|
sl@0
|
8647 |
echo "configure: failed program was:" >&5
|
sl@0
|
8648 |
cat conftest.$ac_ext >&5
|
sl@0
|
8649 |
rm -rf conftest*
|
sl@0
|
8650 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
8651 |
fi
|
sl@0
|
8652 |
rm -f conftest*
|
sl@0
|
8653 |
fi
|
sl@0
|
8654 |
|
sl@0
|
8655 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
8656 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8657 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
8658 |
cat >> confdefs.h <<EOF
|
sl@0
|
8659 |
#define $ac_tr_func 1
|
sl@0
|
8660 |
EOF
|
sl@0
|
8661 |
|
sl@0
|
8662 |
else
|
sl@0
|
8663 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8664 |
fi
|
sl@0
|
8665 |
done
|
sl@0
|
8666 |
|
sl@0
|
8667 |
for ac_func in pthread_atfork
|
sl@0
|
8668 |
do
|
sl@0
|
8669 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
sl@0
|
8670 |
echo "configure:8671: checking for $ac_func" >&5
|
sl@0
|
8671 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
sl@0
|
8672 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8673 |
else
|
sl@0
|
8674 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8675 |
#line 8676 "configure"
|
sl@0
|
8676 |
#include "confdefs.h"
|
sl@0
|
8677 |
/* System header to define __stub macros and hopefully few prototypes,
|
sl@0
|
8678 |
which can conflict with char $ac_func(); below. */
|
sl@0
|
8679 |
#include <assert.h>
|
sl@0
|
8680 |
/* Override any gcc2 internal prototype to avoid an error. */
|
sl@0
|
8681 |
/* We use char because int might match the return type of a gcc2
|
sl@0
|
8682 |
builtin and then its argument prototype would still apply. */
|
sl@0
|
8683 |
char $ac_func();
|
sl@0
|
8684 |
|
sl@0
|
8685 |
int main() {
|
sl@0
|
8686 |
|
sl@0
|
8687 |
/* The GNU C library defines this for functions which it implements
|
sl@0
|
8688 |
to always fail with ENOSYS. Some functions are actually named
|
sl@0
|
8689 |
something starting with __ and the normal name is an alias. */
|
sl@0
|
8690 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
sl@0
|
8691 |
choke me
|
sl@0
|
8692 |
#else
|
sl@0
|
8693 |
$ac_func();
|
sl@0
|
8694 |
#endif
|
sl@0
|
8695 |
|
sl@0
|
8696 |
; return 0; }
|
sl@0
|
8697 |
EOF
|
sl@0
|
8698 |
if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8699 |
rm -rf conftest*
|
sl@0
|
8700 |
eval "ac_cv_func_$ac_func=yes"
|
sl@0
|
8701 |
else
|
sl@0
|
8702 |
echo "configure: failed program was:" >&5
|
sl@0
|
8703 |
cat conftest.$ac_ext >&5
|
sl@0
|
8704 |
rm -rf conftest*
|
sl@0
|
8705 |
eval "ac_cv_func_$ac_func=no"
|
sl@0
|
8706 |
fi
|
sl@0
|
8707 |
rm -f conftest*
|
sl@0
|
8708 |
fi
|
sl@0
|
8709 |
|
sl@0
|
8710 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
sl@0
|
8711 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8712 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
sl@0
|
8713 |
cat >> confdefs.h <<EOF
|
sl@0
|
8714 |
#define $ac_tr_func 1
|
sl@0
|
8715 |
EOF
|
sl@0
|
8716 |
|
sl@0
|
8717 |
else
|
sl@0
|
8718 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8719 |
fi
|
sl@0
|
8720 |
done
|
sl@0
|
8721 |
|
sl@0
|
8722 |
fi
|
sl@0
|
8723 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8724 |
#define USE_VFORK 1
|
sl@0
|
8725 |
EOF
|
sl@0
|
8726 |
|
sl@0
|
8727 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8728 |
#define TCL_DEFAULT_ENCODING "utf-8"
|
sl@0
|
8729 |
EOF
|
sl@0
|
8730 |
|
sl@0
|
8731 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8732 |
#define TCL_LOAD_FROM_MEMORY 1
|
sl@0
|
8733 |
EOF
|
sl@0
|
8734 |
|
sl@0
|
8735 |
for ac_hdr in AvailabilityMacros.h
|
sl@0
|
8736 |
do
|
sl@0
|
8737 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
8738 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
8739 |
echo "configure:8740: checking for $ac_hdr" >&5
|
sl@0
|
8740 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8741 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8742 |
else
|
sl@0
|
8743 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8744 |
#line 8745 "configure"
|
sl@0
|
8745 |
#include "confdefs.h"
|
sl@0
|
8746 |
#include <$ac_hdr>
|
sl@0
|
8747 |
EOF
|
sl@0
|
8748 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8749 |
{ (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8750 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8751 |
if test -z "$ac_err"; then
|
sl@0
|
8752 |
rm -rf conftest*
|
sl@0
|
8753 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8754 |
else
|
sl@0
|
8755 |
echo "$ac_err" >&5
|
sl@0
|
8756 |
echo "configure: failed program was:" >&5
|
sl@0
|
8757 |
cat conftest.$ac_ext >&5
|
sl@0
|
8758 |
rm -rf conftest*
|
sl@0
|
8759 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8760 |
fi
|
sl@0
|
8761 |
rm -f conftest*
|
sl@0
|
8762 |
fi
|
sl@0
|
8763 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8764 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8765 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
8766 |
cat >> confdefs.h <<EOF
|
sl@0
|
8767 |
#define $ac_tr_hdr 1
|
sl@0
|
8768 |
EOF
|
sl@0
|
8769 |
|
sl@0
|
8770 |
else
|
sl@0
|
8771 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8772 |
fi
|
sl@0
|
8773 |
done
|
sl@0
|
8774 |
|
sl@0
|
8775 |
if test "$ac_cv_header_AvailabilityMacros_h" = yes; then
|
sl@0
|
8776 |
echo $ac_n "checking if weak import is available""... $ac_c" 1>&6
|
sl@0
|
8777 |
echo "configure:8778: checking if weak import is available" >&5
|
sl@0
|
8778 |
if eval "test \"`echo '$''{'tcl_cv_cc_weak_import'+set}'`\" = set"; then
|
sl@0
|
8779 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8780 |
else
|
sl@0
|
8781 |
|
sl@0
|
8782 |
hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
|
sl@0
|
8783 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8784 |
#line 8785 "configure"
|
sl@0
|
8785 |
#include "confdefs.h"
|
sl@0
|
8786 |
|
sl@0
|
8787 |
#ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
|
sl@0
|
8788 |
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
|
sl@0
|
8789 |
#error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020
|
sl@0
|
8790 |
#endif
|
sl@0
|
8791 |
#elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020
|
sl@0
|
8792 |
#error MAC_OS_X_VERSION_MIN_REQUIRED < 1020
|
sl@0
|
8793 |
#endif
|
sl@0
|
8794 |
int rand(void) __attribute__((weak_import));
|
sl@0
|
8795 |
|
sl@0
|
8796 |
int main() {
|
sl@0
|
8797 |
rand();
|
sl@0
|
8798 |
; return 0; }
|
sl@0
|
8799 |
EOF
|
sl@0
|
8800 |
if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8801 |
rm -rf conftest*
|
sl@0
|
8802 |
tcl_cv_cc_weak_import=yes
|
sl@0
|
8803 |
else
|
sl@0
|
8804 |
echo "configure: failed program was:" >&5
|
sl@0
|
8805 |
cat conftest.$ac_ext >&5
|
sl@0
|
8806 |
rm -rf conftest*
|
sl@0
|
8807 |
tcl_cv_cc_weak_import=no
|
sl@0
|
8808 |
fi
|
sl@0
|
8809 |
rm -f conftest*
|
sl@0
|
8810 |
CFLAGS=$hold_cflags
|
sl@0
|
8811 |
fi
|
sl@0
|
8812 |
|
sl@0
|
8813 |
echo "$ac_t""$tcl_cv_cc_weak_import" 1>&6
|
sl@0
|
8814 |
if test $tcl_cv_cc_weak_import = yes; then
|
sl@0
|
8815 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8816 |
#define HAVE_WEAK_IMPORT 1
|
sl@0
|
8817 |
EOF
|
sl@0
|
8818 |
|
sl@0
|
8819 |
fi
|
sl@0
|
8820 |
fi
|
sl@0
|
8821 |
fi
|
sl@0
|
8822 |
|
sl@0
|
8823 |
#--------------------------------------------------------------------
|
sl@0
|
8824 |
# Check for support of fts functions (readdir replacement)
|
sl@0
|
8825 |
#--------------------------------------------------------------------
|
sl@0
|
8826 |
|
sl@0
|
8827 |
echo $ac_n "checking for fts""... $ac_c" 1>&6
|
sl@0
|
8828 |
echo "configure:8829: checking for fts" >&5
|
sl@0
|
8829 |
if eval "test \"`echo '$''{'tcl_cv_api_fts'+set}'`\" = set"; then
|
sl@0
|
8830 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8831 |
else
|
sl@0
|
8832 |
|
sl@0
|
8833 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8834 |
#line 8835 "configure"
|
sl@0
|
8835 |
#include "confdefs.h"
|
sl@0
|
8836 |
|
sl@0
|
8837 |
#include <sys/param.h>
|
sl@0
|
8838 |
#include <sys/stat.h>
|
sl@0
|
8839 |
#include <fts.h>
|
sl@0
|
8840 |
|
sl@0
|
8841 |
int main() {
|
sl@0
|
8842 |
|
sl@0
|
8843 |
char*const p[2] = {"/", NULL};
|
sl@0
|
8844 |
FTS *f = fts_open(p, FTS_PHYSICAL|FTS_NOCHDIR|FTS_NOSTAT, NULL);
|
sl@0
|
8845 |
FTSENT *e = fts_read(f); fts_close(f);
|
sl@0
|
8846 |
|
sl@0
|
8847 |
; return 0; }
|
sl@0
|
8848 |
EOF
|
sl@0
|
8849 |
if { (eval echo configure:8850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
sl@0
|
8850 |
rm -rf conftest*
|
sl@0
|
8851 |
tcl_cv_api_fts=yes
|
sl@0
|
8852 |
else
|
sl@0
|
8853 |
echo "configure: failed program was:" >&5
|
sl@0
|
8854 |
cat conftest.$ac_ext >&5
|
sl@0
|
8855 |
rm -rf conftest*
|
sl@0
|
8856 |
tcl_cv_api_fts=no
|
sl@0
|
8857 |
fi
|
sl@0
|
8858 |
rm -f conftest*
|
sl@0
|
8859 |
fi
|
sl@0
|
8860 |
|
sl@0
|
8861 |
echo "$ac_t""$tcl_cv_api_fts" 1>&6
|
sl@0
|
8862 |
if test $tcl_cv_api_fts = yes; then
|
sl@0
|
8863 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8864 |
#define HAVE_FTS 1
|
sl@0
|
8865 |
EOF
|
sl@0
|
8866 |
|
sl@0
|
8867 |
fi
|
sl@0
|
8868 |
|
sl@0
|
8869 |
#--------------------------------------------------------------------
|
sl@0
|
8870 |
# The statements below check for systems where POSIX-style
|
sl@0
|
8871 |
# non-blocking I/O (O_NONBLOCK) doesn't work or is unimplemented.
|
sl@0
|
8872 |
# On these systems (mostly older ones), use the old BSD-style
|
sl@0
|
8873 |
# FIONBIO approach instead.
|
sl@0
|
8874 |
#--------------------------------------------------------------------
|
sl@0
|
8875 |
|
sl@0
|
8876 |
|
sl@0
|
8877 |
for ac_hdr in sys/ioctl.h
|
sl@0
|
8878 |
do
|
sl@0
|
8879 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
8880 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
8881 |
echo "configure:8882: checking for $ac_hdr" >&5
|
sl@0
|
8882 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8883 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8884 |
else
|
sl@0
|
8885 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8886 |
#line 8887 "configure"
|
sl@0
|
8887 |
#include "confdefs.h"
|
sl@0
|
8888 |
#include <$ac_hdr>
|
sl@0
|
8889 |
EOF
|
sl@0
|
8890 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8891 |
{ (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8892 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8893 |
if test -z "$ac_err"; then
|
sl@0
|
8894 |
rm -rf conftest*
|
sl@0
|
8895 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8896 |
else
|
sl@0
|
8897 |
echo "$ac_err" >&5
|
sl@0
|
8898 |
echo "configure: failed program was:" >&5
|
sl@0
|
8899 |
cat conftest.$ac_ext >&5
|
sl@0
|
8900 |
rm -rf conftest*
|
sl@0
|
8901 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8902 |
fi
|
sl@0
|
8903 |
rm -f conftest*
|
sl@0
|
8904 |
fi
|
sl@0
|
8905 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8906 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8907 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
8908 |
cat >> confdefs.h <<EOF
|
sl@0
|
8909 |
#define $ac_tr_hdr 1
|
sl@0
|
8910 |
EOF
|
sl@0
|
8911 |
|
sl@0
|
8912 |
else
|
sl@0
|
8913 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8914 |
fi
|
sl@0
|
8915 |
done
|
sl@0
|
8916 |
|
sl@0
|
8917 |
for ac_hdr in sys/filio.h
|
sl@0
|
8918 |
do
|
sl@0
|
8919 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
sl@0
|
8920 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
sl@0
|
8921 |
echo "configure:8922: checking for $ac_hdr" >&5
|
sl@0
|
8922 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
sl@0
|
8923 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8924 |
else
|
sl@0
|
8925 |
cat > conftest.$ac_ext <<EOF
|
sl@0
|
8926 |
#line 8927 "configure"
|
sl@0
|
8927 |
#include "confdefs.h"
|
sl@0
|
8928 |
#include <$ac_hdr>
|
sl@0
|
8929 |
EOF
|
sl@0
|
8930 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
sl@0
|
8931 |
{ (eval echo configure:8932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
sl@0
|
8932 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
sl@0
|
8933 |
if test -z "$ac_err"; then
|
sl@0
|
8934 |
rm -rf conftest*
|
sl@0
|
8935 |
eval "ac_cv_header_$ac_safe=yes"
|
sl@0
|
8936 |
else
|
sl@0
|
8937 |
echo "$ac_err" >&5
|
sl@0
|
8938 |
echo "configure: failed program was:" >&5
|
sl@0
|
8939 |
cat conftest.$ac_ext >&5
|
sl@0
|
8940 |
rm -rf conftest*
|
sl@0
|
8941 |
eval "ac_cv_header_$ac_safe=no"
|
sl@0
|
8942 |
fi
|
sl@0
|
8943 |
rm -f conftest*
|
sl@0
|
8944 |
fi
|
sl@0
|
8945 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
sl@0
|
8946 |
echo "$ac_t""yes" 1>&6
|
sl@0
|
8947 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
sl@0
|
8948 |
cat >> confdefs.h <<EOF
|
sl@0
|
8949 |
#define $ac_tr_hdr 1
|
sl@0
|
8950 |
EOF
|
sl@0
|
8951 |
|
sl@0
|
8952 |
else
|
sl@0
|
8953 |
echo "$ac_t""no" 1>&6
|
sl@0
|
8954 |
fi
|
sl@0
|
8955 |
done
|
sl@0
|
8956 |
|
sl@0
|
8957 |
|
sl@0
|
8958 |
echo $ac_n "checking system version""... $ac_c" 1>&6
|
sl@0
|
8959 |
echo "configure:8960: checking system version" >&5
|
sl@0
|
8960 |
if eval "test \"`echo '$''{'tcl_cv_sys_version'+set}'`\" = set"; then
|
sl@0
|
8961 |
echo $ac_n "(cached) $ac_c" 1>&6
|
sl@0
|
8962 |
else
|
sl@0
|
8963 |
|
sl@0
|
8964 |
if test -f /usr/lib/NextStep/software_version; then
|
sl@0
|
8965 |
tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
|
sl@0
|
8966 |
else
|
sl@0
|
8967 |
tcl_cv_sys_version=`uname -s`-`uname -r`
|
sl@0
|
8968 |
if test "$?" -ne 0 ; then
|
sl@0
|
8969 |
echo "configure: warning: can't find uname command" 1>&2
|
sl@0
|
8970 |
tcl_cv_sys_version=unknown
|
sl@0
|
8971 |
else
|
sl@0
|
8972 |
# Special check for weird MP-RAS system (uname returns weird
|
sl@0
|
8973 |
# results, and the version is kept in special file).
|
sl@0
|
8974 |
|
sl@0
|
8975 |
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
sl@0
|
8976 |
tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
|
sl@0
|
8977 |
fi
|
sl@0
|
8978 |
if test "`uname -s`" = "AIX" ; then
|
sl@0
|
8979 |
tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
|
sl@0
|
8980 |
fi
|
sl@0
|
8981 |
fi
|
sl@0
|
8982 |
fi
|
sl@0
|
8983 |
|
sl@0
|
8984 |
fi
|
sl@0
|
8985 |
|
sl@0
|
8986 |
echo "$ac_t""$tcl_cv_sys_version" 1>&6
|
sl@0
|
8987 |
system=$tcl_cv_sys_version
|
sl@0
|
8988 |
|
sl@0
|
8989 |
echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
|
sl@0
|
8990 |
echo "configure:8991: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
|
sl@0
|
8991 |
case $system in
|
sl@0
|
8992 |
# There used to be code here to use FIONBIO under AIX. However, it
|
sl@0
|
8993 |
# was reported that FIONBIO doesn't work under AIX 3.2.5. Since
|
sl@0
|
8994 |
# using O_NONBLOCK seems fine under AIX 4.*, I removed the FIONBIO
|
sl@0
|
8995 |
# code (JO, 5/31/97).
|
sl@0
|
8996 |
|
sl@0
|
8997 |
OSF*)
|
sl@0
|
8998 |
cat >> confdefs.h <<\EOF
|
sl@0
|
8999 |
#define USE_FIONBIO 1
|
sl@0
|
9000 |
EOF
|
sl@0
|
9001 |
|
sl@0
|
9002 |
echo "$ac_t""FIONBIO" 1>&6
|
sl@0
|
9003 |
;;
|
sl@0
|
9004 |
SunOS-4*)
|
sl@0
|
9005 |
cat >> confdefs.h <<\EOF
|
sl@0
|
9006 |
#define USE_FIONBIO 1
|
sl@0
|
9007 |
EOF
|
sl@0
|
9008 |
|
sl@0
|
9009 |
echo "$ac_t""FIONBIO" 1>&6
|
sl@0
|
9010 |
;;
|
sl@0
|
9011 |
ULTRIX-4.*)
|
sl@0
|
9012 |
cat >> confdefs.h <<\EOF
|
sl@0
|
9013 |
#define USE_FIONBIO 1
|
sl@0
|
9014 |
EOF
|
sl@0
|
9015 |
|
sl@0
|
9016 |
echo "$ac_t""FIONBIO" 1>&6
|
sl@0
|
9017 |
;;
|
sl@0
|
9018 |
*)
|
sl@0
|
9019 |
echo "$ac_t""O_NONBLOCK" 1>&6
|
sl@0
|
9020 |
;;
|
sl@0
|
9021 |
esac
|
sl@0
|
9022 |
|
sl@0
|
9023 |
|
sl@0
|
9024 |
#--------------------------------------------------------------------
|
sl@0
|
9025 |
# The statements below define a collection of symbols related to
|
sl@0
|
9026 |
# building libtcl as a shared library instead of a static library.
|
sl@0
|
9027 |
#--------------------------------------------------------------------
|
sl@0
|
9028 |
|
sl@0
|
9029 |
TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
|
sl@0
|
9030 |
TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}
|
sl@0
|
9031 |
eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
|
sl@0
|
9032 |
|
sl@0
|
9033 |
# tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
|
sl@0
|
9034 |
# so that the backslashes quoting the DBX braces are dropped.
|
sl@0
|
9035 |
|
sl@0
|
9036 |
# Trick to replace DBGX with TCL_DBGX
|
sl@0
|
9037 |
DBGX='${TCL_DBGX}'
|
sl@0
|
9038 |
eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
|
sl@0
|
9039 |
|
sl@0
|
9040 |
TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)'
|
sl@0
|
9041 |
PRIVATE_INCLUDE_DIR='$(includedir)'
|
sl@0
|
9042 |
HTML_DIR='$(DISTDIR)/html'
|
sl@0
|
9043 |
|
sl@0
|
9044 |
# Note: in the following variable, it's important to use the absolute
|
sl@0
|
9045 |
# path name of the Tcl directory rather than "..": this is because
|
sl@0
|
9046 |
# AIX remembers this path and will attempt to use it at run-time to look
|
sl@0
|
9047 |
# up the Tcl library.
|
sl@0
|
9048 |
|
sl@0
|
9049 |
if test "`uname -s`" = "Darwin" ; then
|
sl@0
|
9050 |
|
sl@0
|
9051 |
if test "`uname -s`" = "Darwin" ; then
|
sl@0
|
9052 |
echo $ac_n "checking how to package libraries""... $ac_c" 1>&6
|
sl@0
|
9053 |
echo "configure:9054: checking how to package libraries" >&5
|
sl@0
|
9054 |
# Check whether --enable-framework or --disable-framework was given.
|
sl@0
|
9055 |
if test "${enable_framework+set}" = set; then
|
sl@0
|
9056 |
enableval="$enable_framework"
|
sl@0
|
9057 |
enable_framework=$enableval
|
sl@0
|
9058 |
else
|
sl@0
|
9059 |
enable_framework=no
|
sl@0
|
9060 |
fi
|
sl@0
|
9061 |
|
sl@0
|
9062 |
if test $enable_framework = yes; then
|
sl@0
|
9063 |
if test $SHARED_BUILD = 0; then
|
sl@0
|
9064 |
echo "configure: warning: Frameworks can only be built if --enable-shared is yes" 1>&2
|
sl@0
|
9065 |
enable_framework=no
|
sl@0
|
9066 |
fi
|
sl@0
|
9067 |
if test $tcl_corefoundation = no; then
|
sl@0
|
9068 |
echo "configure: warning: Frameworks can only be used when CoreFoundation is available" 1>&2
|
sl@0
|
9069 |
enable_framework=no
|
sl@0
|
9070 |
fi
|
sl@0
|
9071 |
fi
|
sl@0
|
9072 |
if test $enable_framework = yes; then
|
sl@0
|
9073 |
echo "$ac_t""framework" 1>&6
|
sl@0
|
9074 |
FRAMEWORK_BUILD=1
|
sl@0
|
9075 |
else
|
sl@0
|
9076 |
if test $SHARED_BUILD = 1; then
|
sl@0
|
9077 |
echo "$ac_t""shared library" 1>&6
|
sl@0
|
9078 |
else
|
sl@0
|
9079 |
echo "$ac_t""static library" 1>&6
|
sl@0
|
9080 |
fi
|
sl@0
|
9081 |
FRAMEWORK_BUILD=0
|
sl@0
|
9082 |
fi
|
sl@0
|
9083 |
fi
|
sl@0
|
9084 |
|
sl@0
|
9085 |
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)}'`"
|
sl@0
|
9086 |
TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -install_name ${DYLIB_INSTALL_DIR}/${TCL_LIB_FILE} -seg1addr 0xa000000'
|
sl@0
|
9087 |
fi
|
sl@0
|
9088 |
|
sl@0
|
9089 |
if test "$FRAMEWORK_BUILD" = "1" ; then
|
sl@0
|
9090 |
cat >> confdefs.h <<\EOF
|
sl@0
|
9091 |
#define TCL_FRAMEWORK 1
|
sl@0
|
9092 |
EOF
|
sl@0
|
9093 |
|
sl@0
|
9094 |
tcl_config_files="${tcl_config_files} Tcl-Info.plist:../macosx/Tcl-Info.plist.in"
|
sl@0
|
9095 |
# Construct a fake local framework structure to make linking with
|
sl@0
|
9096 |
# '-framework Tcl' and running of tcltest work
|
sl@0
|
9097 |
|
sl@0
|
9098 |
LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH"
|
sl@0
|
9099 |
if test "${libdir}" = '${exec_prefix}/lib'; then
|
sl@0
|
9100 |
# override libdir default
|
sl@0
|
9101 |
libdir="/Library/Frameworks"
|
sl@0
|
9102 |
fi
|
sl@0
|
9103 |
TCL_LIB_FILE="Tcl"
|
sl@0
|
9104 |
TCL_LIB_FLAG="-framework Tcl"
|
sl@0
|
9105 |
TCL_BUILD_LIB_SPEC="-F`pwd` -framework Tcl"
|
sl@0
|
9106 |
TCL_LIB_SPEC="-F${libdir} -framework Tcl"
|
sl@0
|
9107 |
libdir="${libdir}/Tcl.framework/Versions/\${VERSION}"
|
sl@0
|
9108 |
TCL_LIBRARY="${libdir}/Resources/Scripts"
|
sl@0
|
9109 |
includedir="${libdir}/Headers"
|
sl@0
|
9110 |
PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders"
|
sl@0
|
9111 |
HTML_DIR="${libdir}/Resources/Documentation/Reference/Tcl"
|
sl@0
|
9112 |
EXTRA_INSTALL="install-private-headers html-tcl"
|
sl@0
|
9113 |
EXTRA_BUILD_HTML='@ln -fs contents.htm $(HTML_INSTALL_DIR)/TclTOC.html'
|
sl@0
|
9114 |
EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources" && mkdir -p "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tcl-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"'
|
sl@0
|
9115 |
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"'
|
sl@0
|
9116 |
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)/../.."'
|
sl@0
|
9117 |
TCL_YEAR="`date +%Y`"
|
sl@0
|
9118 |
# Don't use AC_DEFINE for the following as the framework version define
|
sl@0
|
9119 |
# needs to go into the Makefile even when using autoheader, so that we
|
sl@0
|
9120 |
# can pick up a potential make override of VERSION. Also, don't put this
|
sl@0
|
9121 |
# into CFLAGS as it should not go into tclConfig.sh
|
sl@0
|
9122 |
EXTRA_CC_SWITCHES='-DTCL_FRAMEWORK_VERSION=\"$(VERSION)\"'
|
sl@0
|
9123 |
else
|
sl@0
|
9124 |
# libdir must be a fully qualified path and not ${exec_prefix}/lib
|
sl@0
|
9125 |
eval libdir="$libdir"
|
sl@0
|
9126 |
if test "$SHARED_BUILD" = "0" || test "$TCL_NEEDS_EXP_FILE" = "0"; then
|
sl@0
|
9127 |
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
sl@0
|
9128 |
TCL_LIB_FLAG="-ltcl${TCL_VERSION}\${TCL_DBGX}"
|
sl@0
|
9129 |
else
|
sl@0
|
9130 |
TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
|
sl@0
|
9131 |
fi
|
sl@0
|
9132 |
TCL_BUILD_LIB_SPEC="-L`pwd` ${TCL_LIB_FLAG}"
|
sl@0
|
9133 |
TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
|
sl@0
|
9134 |
else
|
sl@0
|
9135 |
TCL_BUILD_EXP_FILE="lib.exp"
|
sl@0
|
9136 |
eval "TCL_EXP_FILE=libtcl${TCL_EXPORT_FILE_SUFFIX}"
|
sl@0
|
9137 |
|
sl@0
|
9138 |
# Replace DBGX with TCL_DBGX
|
sl@0
|
9139 |
eval "TCL_EXP_FILE=\"${TCL_EXP_FILE}\""
|
sl@0
|
9140 |
|
sl@0
|
9141 |
if test "$GCC" = "yes" ; then
|
sl@0
|
9142 |
TCL_BUILD_LIB_SPEC="-Wl,-bI:`pwd`/${TCL_BUILD_EXP_FILE} -L`pwd`"
|
sl@0
|
9143 |
TCL_LIB_SPEC="-Wl,-bI:${libdir}/${TCL_EXP_FILE} -L`pwd`"
|
sl@0
|
9144 |
else
|
sl@0
|
9145 |
TCL_BUILD_LIB_SPEC="-bI:`pwd`/${TCL_BUILD_EXP_FILE}"
|
sl@0
|
9146 |
TCL_LIB_SPEC="-bI:${libdir}/${TCL_EXP_FILE}"
|
sl@0
|
9147 |
fi
|
sl@0
|
9148 |
fi
|
sl@0
|
9149 |
fi
|
sl@0
|
9150 |
VERSION='${VERSION}'
|
sl@0
|
9151 |
eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
|
sl@0
|
9152 |
eval "CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}"
|
sl@0
|
9153 |
eval "CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX}"
|
sl@0
|
9154 |
VERSION=${TCL_VERSION}
|
sl@0
|
9155 |
|
sl@0
|
9156 |
#--------------------------------------------------------------------
|
sl@0
|
9157 |
# The statements below define the symbol TCL_PACKAGE_PATH, which
|
sl@0
|
9158 |
# gives a list of directories that may contain packages. The list
|
sl@0
|
9159 |
# consists of one directory for machine-dependent binaries and
|
sl@0
|
9160 |
# another for platform-independent scripts.
|
sl@0
|
9161 |
#--------------------------------------------------------------------
|
sl@0
|
9162 |
|
sl@0
|
9163 |
if test "$FRAMEWORK_BUILD" = "1" ; then
|
sl@0
|
9164 |
TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks"
|
sl@0
|
9165 |
elif test "$prefix" != "$exec_prefix"; then
|
sl@0
|
9166 |
TCL_PACKAGE_PATH="${libdir} ${prefix}/lib"
|
sl@0
|
9167 |
else
|
sl@0
|
9168 |
TCL_PACKAGE_PATH="${prefix}/lib"
|
sl@0
|
9169 |
fi
|
sl@0
|
9170 |
|
sl@0
|
9171 |
#--------------------------------------------------------------------
|
sl@0
|
9172 |
# The statements below define various symbols relating to Tcl
|
sl@0
|
9173 |
# stub support.
|
sl@0
|
9174 |
#--------------------------------------------------------------------
|
sl@0
|
9175 |
|
sl@0
|
9176 |
# Replace ${VERSION} with contents of ${TCL_VERSION}
|
sl@0
|
9177 |
eval "TCL_STUB_LIB_FILE=libtclstub${TCL_UNSHARED_LIB_SUFFIX}"
|
sl@0
|
9178 |
# Replace DBGX with TCL_DBGX
|
sl@0
|
9179 |
eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
|
sl@0
|
9180 |
eval "TCL_STUB_LIB_DIR=${libdir}"
|
sl@0
|
9181 |
|
sl@0
|
9182 |
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
|
sl@0
|
9183 |
TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}\${TCL_DBGX}"
|
sl@0
|
9184 |
else
|
sl@0
|
9185 |
TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`\${TCL_DBGX}"
|
sl@0
|
9186 |
fi
|
sl@0
|
9187 |
|
sl@0
|
9188 |
TCL_BUILD_STUB_LIB_SPEC="-L`pwd` ${TCL_STUB_LIB_FLAG}"
|
sl@0
|
9189 |
TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
|
sl@0
|
9190 |
TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
|
sl@0
|
9191 |
TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
|
sl@0
|
9192 |
|
sl@0
|
9193 |
# Install time header dir can be set via --includedir
|
sl@0
|
9194 |
eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
|
sl@0
|
9195 |
|
sl@0
|
9196 |
#------------------------------------------------------------------------
|
sl@0
|
9197 |
# tclConfig.sh refers to this by a different name
|
sl@0
|
9198 |
#------------------------------------------------------------------------
|
sl@0
|
9199 |
|
sl@0
|
9200 |
TCL_SHARED_BUILD=${SHARED_BUILD}
|
sl@0
|
9201 |
|
sl@0
|
9202 |
|
sl@0
|
9203 |
|
sl@0
|
9204 |
|
sl@0
|
9205 |
|
sl@0
|
9206 |
|
sl@0
|
9207 |
|
sl@0
|
9208 |
|
sl@0
|
9209 |
|
sl@0
|
9210 |
|
sl@0
|
9211 |
|
sl@0
|
9212 |
|
sl@0
|
9213 |
|
sl@0
|
9214 |
|
sl@0
|
9215 |
|
sl@0
|
9216 |
|
sl@0
|
9217 |
|
sl@0
|
9218 |
|
sl@0
|
9219 |
|
sl@0
|
9220 |
|
sl@0
|
9221 |
|
sl@0
|
9222 |
|
sl@0
|
9223 |
|
sl@0
|
9224 |
|
sl@0
|
9225 |
|
sl@0
|
9226 |
|
sl@0
|
9227 |
|
sl@0
|
9228 |
|
sl@0
|
9229 |
|
sl@0
|
9230 |
|
sl@0
|
9231 |
|
sl@0
|
9232 |
|
sl@0
|
9233 |
|
sl@0
|
9234 |
|
sl@0
|
9235 |
|
sl@0
|
9236 |
|
sl@0
|
9237 |
|
sl@0
|
9238 |
|
sl@0
|
9239 |
|
sl@0
|
9240 |
|
sl@0
|
9241 |
|
sl@0
|
9242 |
|
sl@0
|
9243 |
|
sl@0
|
9244 |
|
sl@0
|
9245 |
|
sl@0
|
9246 |
|
sl@0
|
9247 |
|
sl@0
|
9248 |
|
sl@0
|
9249 |
|
sl@0
|
9250 |
|
sl@0
|
9251 |
CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
|
sl@0
|
9252 |
|
sl@0
|
9253 |
|
sl@0
|
9254 |
tcl_config_files="${tcl_config_files} Makefile dltest/Makefile tclConfig.sh"
|
sl@0
|
9255 |
trap '' 1 2 15
|
sl@0
|
9256 |
cat > confcache <<\EOF
|
sl@0
|
9257 |
# This file is a shell script that caches the results of configure
|
sl@0
|
9258 |
# tests run on this system so they can be shared between configure
|
sl@0
|
9259 |
# scripts and configure runs. It is not useful on other systems.
|
sl@0
|
9260 |
# If it contains results you don't want to keep, you may remove or edit it.
|
sl@0
|
9261 |
#
|
sl@0
|
9262 |
# By default, configure uses ./config.cache as the cache file,
|
sl@0
|
9263 |
# creating it if it does not exist already. You can give configure
|
sl@0
|
9264 |
# the --cache-file=FILE option to use a different cache file; that is
|
sl@0
|
9265 |
# what configure does when it calls configure scripts in
|
sl@0
|
9266 |
# subdirectories, so they share the cache.
|
sl@0
|
9267 |
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
sl@0
|
9268 |
# config.status only pays attention to the cache file if you give it the
|
sl@0
|
9269 |
# --recheck option to rerun configure.
|
sl@0
|
9270 |
#
|
sl@0
|
9271 |
EOF
|
sl@0
|
9272 |
# The following way of writing the cache mishandles newlines in values,
|
sl@0
|
9273 |
# but we know of no workaround that is simple, portable, and efficient.
|
sl@0
|
9274 |
# So, don't put newlines in cache variables' values.
|
sl@0
|
9275 |
# Ultrix sh set writes to stderr and can't be redirected directly,
|
sl@0
|
9276 |
# and sets the high bit in the cache file unless we assign to the vars.
|
sl@0
|
9277 |
(set) 2>&1 |
|
sl@0
|
9278 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
sl@0
|
9279 |
*ac_space=\ *)
|
sl@0
|
9280 |
# `set' does not quote correctly, so add quotes (double-quote substitution
|
sl@0
|
9281 |
# turns \\\\ into \\, and sed turns \\ into \).
|
sl@0
|
9282 |
sed -n \
|
sl@0
|
9283 |
-e "s/'/'\\\\''/g" \
|
sl@0
|
9284 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
sl@0
|
9285 |
;;
|
sl@0
|
9286 |
*)
|
sl@0
|
9287 |
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
sl@0
|
9288 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
sl@0
|
9289 |
;;
|
sl@0
|
9290 |
esac >> confcache
|
sl@0
|
9291 |
if cmp -s $cache_file confcache; then
|
sl@0
|
9292 |
:
|
sl@0
|
9293 |
else
|
sl@0
|
9294 |
if test -w $cache_file; then
|
sl@0
|
9295 |
echo "updating cache $cache_file"
|
sl@0
|
9296 |
cat confcache > $cache_file
|
sl@0
|
9297 |
else
|
sl@0
|
9298 |
echo "not updating unwritable cache $cache_file"
|
sl@0
|
9299 |
fi
|
sl@0
|
9300 |
fi
|
sl@0
|
9301 |
rm -f confcache
|
sl@0
|
9302 |
|
sl@0
|
9303 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
sl@0
|
9304 |
|
sl@0
|
9305 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
sl@0
|
9306 |
# Let make expand exec_prefix.
|
sl@0
|
9307 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
sl@0
|
9308 |
|
sl@0
|
9309 |
# Any assignment to VPATH causes Sun make to only execute
|
sl@0
|
9310 |
# the first set of double-colon rules, so remove it if not needed.
|
sl@0
|
9311 |
# If there is a colon in the path, we need to keep it.
|
sl@0
|
9312 |
if test "x$srcdir" = x.; then
|
sl@0
|
9313 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
sl@0
|
9314 |
fi
|
sl@0
|
9315 |
|
sl@0
|
9316 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
sl@0
|
9317 |
|
sl@0
|
9318 |
# Transform confdefs.h into DEFS.
|
sl@0
|
9319 |
# Protect against shell expansion while executing Makefile rules.
|
sl@0
|
9320 |
# Protect against Makefile macro expansion.
|
sl@0
|
9321 |
cat > conftest.defs <<\EOF
|
sl@0
|
9322 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
sl@0
|
9323 |
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
sl@0
|
9324 |
s%\[%\\&%g
|
sl@0
|
9325 |
s%\]%\\&%g
|
sl@0
|
9326 |
s%\$%$$%g
|
sl@0
|
9327 |
EOF
|
sl@0
|
9328 |
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
sl@0
|
9329 |
rm -f conftest.defs
|
sl@0
|
9330 |
|
sl@0
|
9331 |
|
sl@0
|
9332 |
# Without the "./", some shells look in PATH for config.status.
|
sl@0
|
9333 |
: ${CONFIG_STATUS=./config.status}
|
sl@0
|
9334 |
|
sl@0
|
9335 |
echo creating $CONFIG_STATUS
|
sl@0
|
9336 |
rm -f $CONFIG_STATUS
|
sl@0
|
9337 |
cat > $CONFIG_STATUS <<EOF
|
sl@0
|
9338 |
#! /bin/sh
|
sl@0
|
9339 |
# Generated automatically by configure.
|
sl@0
|
9340 |
# Run this file to recreate the current configuration.
|
sl@0
|
9341 |
# This directory was configured as follows,
|
sl@0
|
9342 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
sl@0
|
9343 |
#
|
sl@0
|
9344 |
# $0 $ac_configure_args
|
sl@0
|
9345 |
#
|
sl@0
|
9346 |
# Compiler output produced by configure, useful for debugging
|
sl@0
|
9347 |
# configure, is in ./config.log if it exists.
|
sl@0
|
9348 |
|
sl@0
|
9349 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
sl@0
|
9350 |
for ac_option
|
sl@0
|
9351 |
do
|
sl@0
|
9352 |
case "\$ac_option" in
|
sl@0
|
9353 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
sl@0
|
9354 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
sl@0
|
9355 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
sl@0
|
9356 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
sl@0
|
9357 |
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
sl@0
|
9358 |
exit 0 ;;
|
sl@0
|
9359 |
-help | --help | --hel | --he | --h)
|
sl@0
|
9360 |
echo "\$ac_cs_usage"; exit 0 ;;
|
sl@0
|
9361 |
*) echo "\$ac_cs_usage"; exit 1 ;;
|
sl@0
|
9362 |
esac
|
sl@0
|
9363 |
done
|
sl@0
|
9364 |
|
sl@0
|
9365 |
ac_given_srcdir=$srcdir
|
sl@0
|
9366 |
|
sl@0
|
9367 |
trap 'rm -fr `echo "${tcl_config_files}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
sl@0
|
9368 |
EOF
|
sl@0
|
9369 |
cat >> $CONFIG_STATUS <<EOF
|
sl@0
|
9370 |
|
sl@0
|
9371 |
# Protect against being on the right side of a sed subst in config.status.
|
sl@0
|
9372 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
sl@0
|
9373 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
sl@0
|
9374 |
$ac_vpsub
|
sl@0
|
9375 |
$extrasub
|
sl@0
|
9376 |
s%@SHELL@%$SHELL%g
|
sl@0
|
9377 |
s%@CFLAGS@%$CFLAGS%g
|
sl@0
|
9378 |
s%@CPPFLAGS@%$CPPFLAGS%g
|
sl@0
|
9379 |
s%@CXXFLAGS@%$CXXFLAGS%g
|
sl@0
|
9380 |
s%@FFLAGS@%$FFLAGS%g
|
sl@0
|
9381 |
s%@DEFS@%$DEFS%g
|
sl@0
|
9382 |
s%@LDFLAGS@%$LDFLAGS%g
|
sl@0
|
9383 |
s%@LIBS@%$LIBS%g
|
sl@0
|
9384 |
s%@exec_prefix@%$exec_prefix%g
|
sl@0
|
9385 |
s%@prefix@%$prefix%g
|
sl@0
|
9386 |
s%@program_transform_name@%$program_transform_name%g
|
sl@0
|
9387 |
s%@bindir@%$bindir%g
|
sl@0
|
9388 |
s%@sbindir@%$sbindir%g
|
sl@0
|
9389 |
s%@libexecdir@%$libexecdir%g
|
sl@0
|
9390 |
s%@datadir@%$datadir%g
|
sl@0
|
9391 |
s%@sysconfdir@%$sysconfdir%g
|
sl@0
|
9392 |
s%@sharedstatedir@%$sharedstatedir%g
|
sl@0
|
9393 |
s%@localstatedir@%$localstatedir%g
|
sl@0
|
9394 |
s%@libdir@%$libdir%g
|
sl@0
|
9395 |
s%@includedir@%$includedir%g
|
sl@0
|
9396 |
s%@oldincludedir@%$oldincludedir%g
|
sl@0
|
9397 |
s%@infodir@%$infodir%g
|
sl@0
|
9398 |
s%@mandir@%$mandir%g
|
sl@0
|
9399 |
s%@MAN_FLAGS@%$MAN_FLAGS%g
|
sl@0
|
9400 |
s%@CC@%$CC%g
|
sl@0
|
9401 |
s%@CPP@%$CPP%g
|
sl@0
|
9402 |
s%@TCL_THREADS@%$TCL_THREADS%g
|
sl@0
|
9403 |
s%@TCL_LIBS@%$TCL_LIBS%g
|
sl@0
|
9404 |
s%@MATH_LIBS@%$MATH_LIBS%g
|
sl@0
|
9405 |
s%@RANLIB@%$RANLIB%g
|
sl@0
|
9406 |
s%@AR@%$AR%g
|
sl@0
|
9407 |
s%@DL_LIBS@%$DL_LIBS%g
|
sl@0
|
9408 |
s%@DL_OBJS@%$DL_OBJS%g
|
sl@0
|
9409 |
s%@PLAT_OBJS@%$PLAT_OBJS%g
|
sl@0
|
9410 |
s%@PLAT_SRCS@%$PLAT_SRCS%g
|
sl@0
|
9411 |
s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
|
sl@0
|
9412 |
s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
|
sl@0
|
9413 |
s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
|
sl@0
|
9414 |
s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
|
sl@0
|
9415 |
s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
|
sl@0
|
9416 |
s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
|
sl@0
|
9417 |
s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
|
sl@0
|
9418 |
s%@STLIB_LD@%$STLIB_LD%g
|
sl@0
|
9419 |
s%@SHLIB_LD@%$SHLIB_LD%g
|
sl@0
|
9420 |
s%@TCL_SHLIB_LD_EXTRAS@%$TCL_SHLIB_LD_EXTRAS%g
|
sl@0
|
9421 |
s%@TK_SHLIB_LD_EXTRAS@%$TK_SHLIB_LD_EXTRAS%g
|
sl@0
|
9422 |
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
|
sl@0
|
9423 |
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
|
sl@0
|
9424 |
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
|
sl@0
|
9425 |
s%@MAKE_LIB@%$MAKE_LIB%g
|
sl@0
|
9426 |
s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g
|
sl@0
|
9427 |
s%@INSTALL_LIB@%$INSTALL_LIB%g
|
sl@0
|
9428 |
s%@INSTALL_STUB_LIB@%$INSTALL_STUB_LIB%g
|
sl@0
|
9429 |
s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g
|
sl@0
|
9430 |
s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g
|
sl@0
|
9431 |
s%@LIBOBJS@%$LIBOBJS%g
|
sl@0
|
9432 |
s%@TCL_VERSION@%$TCL_VERSION%g
|
sl@0
|
9433 |
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
|
sl@0
|
9434 |
s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
|
sl@0
|
9435 |
s%@TCL_PATCH_LEVEL@%$TCL_PATCH_LEVEL%g
|
sl@0
|
9436 |
s%@TCL_YEAR@%$TCL_YEAR%g
|
sl@0
|
9437 |
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
|
sl@0
|
9438 |
s%@TCL_LIB_FLAG@%$TCL_LIB_FLAG%g
|
sl@0
|
9439 |
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
|
sl@0
|
9440 |
s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
|
sl@0
|
9441 |
s%@TCL_STUB_LIB_FLAG@%$TCL_STUB_LIB_FLAG%g
|
sl@0
|
9442 |
s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g
|
sl@0
|
9443 |
s%@TCL_STUB_LIB_PATH@%$TCL_STUB_LIB_PATH%g
|
sl@0
|
9444 |
s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g
|
sl@0
|
9445 |
s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
|
sl@0
|
9446 |
s%@TCL_BUILD_STUB_LIB_PATH@%$TCL_BUILD_STUB_LIB_PATH%g
|
sl@0
|
9447 |
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
|
sl@0
|
9448 |
s%@TCL_DBGX@%$TCL_DBGX%g
|
sl@0
|
9449 |
s%@CFG_TCL_SHARED_LIB_SUFFIX@%$CFG_TCL_SHARED_LIB_SUFFIX%g
|
sl@0
|
9450 |
s%@CFG_TCL_UNSHARED_LIB_SUFFIX@%$CFG_TCL_UNSHARED_LIB_SUFFIX%g
|
sl@0
|
9451 |
s%@CFG_TCL_EXPORT_FILE_SUFFIX@%$CFG_TCL_EXPORT_FILE_SUFFIX%g
|
sl@0
|
9452 |
s%@TCL_SHARED_BUILD@%$TCL_SHARED_BUILD%g
|
sl@0
|
9453 |
s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
|
sl@0
|
9454 |
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
|
sl@0
|
9455 |
s%@TCL_NEEDS_EXP_FILE@%$TCL_NEEDS_EXP_FILE%g
|
sl@0
|
9456 |
s%@TCL_BUILD_EXP_FILE@%$TCL_BUILD_EXP_FILE%g
|
sl@0
|
9457 |
s%@TCL_EXP_FILE@%$TCL_EXP_FILE%g
|
sl@0
|
9458 |
s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
|
sl@0
|
9459 |
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
|
sl@0
|
9460 |
s%@TCL_UNSHARED_LIB_SUFFIX@%$TCL_UNSHARED_LIB_SUFFIX%g
|
sl@0
|
9461 |
s%@TCL_HAS_LONGLONG@%$TCL_HAS_LONGLONG%g
|
sl@0
|
9462 |
s%@BUILD_DLTEST@%$BUILD_DLTEST%g
|
sl@0
|
9463 |
s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g
|
sl@0
|
9464 |
s%@TCL_LIBRARY@%$TCL_LIBRARY%g
|
sl@0
|
9465 |
s%@PRIVATE_INCLUDE_DIR@%$PRIVATE_INCLUDE_DIR%g
|
sl@0
|
9466 |
s%@HTML_DIR@%$HTML_DIR%g
|
sl@0
|
9467 |
s%@EXTRA_CC_SWITCHES@%$EXTRA_CC_SWITCHES%g
|
sl@0
|
9468 |
s%@EXTRA_INSTALL@%$EXTRA_INSTALL%g
|
sl@0
|
9469 |
s%@EXTRA_INSTALL_BINARIES@%$EXTRA_INSTALL_BINARIES%g
|
sl@0
|
9470 |
s%@EXTRA_BUILD_HTML@%$EXTRA_BUILD_HTML%g
|
sl@0
|
9471 |
|
sl@0
|
9472 |
CEOF
|
sl@0
|
9473 |
EOF
|
sl@0
|
9474 |
|
sl@0
|
9475 |
cat >> $CONFIG_STATUS <<\EOF
|
sl@0
|
9476 |
|
sl@0
|
9477 |
# Split the substitutions into bite-sized pieces for seds with
|
sl@0
|
9478 |
# small command number limits, like on Digital OSF/1 and HP-UX.
|
sl@0
|
9479 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
sl@0
|
9480 |
ac_file=1 # Number of current file.
|
sl@0
|
9481 |
ac_beg=1 # First line for current file.
|
sl@0
|
9482 |
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
sl@0
|
9483 |
ac_more_lines=:
|
sl@0
|
9484 |
ac_sed_cmds=""
|
sl@0
|
9485 |
while $ac_more_lines; do
|
sl@0
|
9486 |
if test $ac_beg -gt 1; then
|
sl@0
|
9487 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
sl@0
|
9488 |
else
|
sl@0
|
9489 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
sl@0
|
9490 |
fi
|
sl@0
|
9491 |
if test ! -s conftest.s$ac_file; then
|
sl@0
|
9492 |
ac_more_lines=false
|
sl@0
|
9493 |
rm -f conftest.s$ac_file
|
sl@0
|
9494 |
else
|
sl@0
|
9495 |
if test -z "$ac_sed_cmds"; then
|
sl@0
|
9496 |
ac_sed_cmds="sed -f conftest.s$ac_file"
|
sl@0
|
9497 |
else
|
sl@0
|
9498 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
sl@0
|
9499 |
fi
|
sl@0
|
9500 |
ac_file=`expr $ac_file + 1`
|
sl@0
|
9501 |
ac_beg=$ac_end
|
sl@0
|
9502 |
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
sl@0
|
9503 |
fi
|
sl@0
|
9504 |
done
|
sl@0
|
9505 |
if test -z "$ac_sed_cmds"; then
|
sl@0
|
9506 |
ac_sed_cmds=cat
|
sl@0
|
9507 |
fi
|
sl@0
|
9508 |
EOF
|
sl@0
|
9509 |
|
sl@0
|
9510 |
cat >> $CONFIG_STATUS <<EOF
|
sl@0
|
9511 |
|
sl@0
|
9512 |
CONFIG_FILES=\${CONFIG_FILES-"${tcl_config_files}"}
|
sl@0
|
9513 |
EOF
|
sl@0
|
9514 |
cat >> $CONFIG_STATUS <<\EOF
|
sl@0
|
9515 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
sl@0
|
9516 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
sl@0
|
9517 |
case "$ac_file" in
|
sl@0
|
9518 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
sl@0
|
9519 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
sl@0
|
9520 |
*) ac_file_in="${ac_file}.in" ;;
|
sl@0
|
9521 |
esac
|
sl@0
|
9522 |
|
sl@0
|
9523 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
sl@0
|
9524 |
|
sl@0
|
9525 |
# Remove last slash and all that follows it. Not all systems have dirname.
|
sl@0
|
9526 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
sl@0
|
9527 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
sl@0
|
9528 |
# The file is in a subdirectory.
|
sl@0
|
9529 |
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
sl@0
|
9530 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
sl@0
|
9531 |
# A "../" for each directory in $ac_dir_suffix.
|
sl@0
|
9532 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
sl@0
|
9533 |
else
|
sl@0
|
9534 |
ac_dir_suffix= ac_dots=
|
sl@0
|
9535 |
fi
|
sl@0
|
9536 |
|
sl@0
|
9537 |
case "$ac_given_srcdir" in
|
sl@0
|
9538 |
.) srcdir=.
|
sl@0
|
9539 |
if test -z "$ac_dots"; then top_srcdir=.
|
sl@0
|
9540 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
sl@0
|
9541 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
sl@0
|
9542 |
*) # Relative path.
|
sl@0
|
9543 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
sl@0
|
9544 |
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
sl@0
|
9545 |
esac
|
sl@0
|
9546 |
|
sl@0
|
9547 |
|
sl@0
|
9548 |
echo creating "$ac_file"
|
sl@0
|
9549 |
rm -f "$ac_file"
|
sl@0
|
9550 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
sl@0
|
9551 |
case "$ac_file" in
|
sl@0
|
9552 |
*Makefile*) ac_comsub="1i\\
|
sl@0
|
9553 |
# $configure_input" ;;
|
sl@0
|
9554 |
*) ac_comsub= ;;
|
sl@0
|
9555 |
esac
|
sl@0
|
9556 |
|
sl@0
|
9557 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
sl@0
|
9558 |
sed -e "$ac_comsub
|
sl@0
|
9559 |
s%@configure_input@%$configure_input%g
|
sl@0
|
9560 |
s%@srcdir@%$srcdir%g
|
sl@0
|
9561 |
s%@top_srcdir@%$top_srcdir%g
|
sl@0
|
9562 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
sl@0
|
9563 |
fi; done
|
sl@0
|
9564 |
rm -f conftest.s*
|
sl@0
|
9565 |
|
sl@0
|
9566 |
EOF
|
sl@0
|
9567 |
cat >> $CONFIG_STATUS <<EOF
|
sl@0
|
9568 |
VERSION=${TCL_VERSION} FRAMEWORK_BUILD=${FRAMEWORK_BUILD}
|
sl@0
|
9569 |
|
sl@0
|
9570 |
EOF
|
sl@0
|
9571 |
cat >> $CONFIG_STATUS <<\EOF
|
sl@0
|
9572 |
test "$FRAMEWORK_BUILD" = "1" && n=Tcl &&
|
sl@0
|
9573 |
f=$n.framework && v=Versions/$VERSION &&
|
sl@0
|
9574 |
echo "creating $f" && rm -rf $f && mkdir -p $f/$v/Resources &&
|
sl@0
|
9575 |
ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v &&
|
sl@0
|
9576 |
ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist &&
|
sl@0
|
9577 |
unset n f v
|
sl@0
|
9578 |
|
sl@0
|
9579 |
|
sl@0
|
9580 |
exit 0
|
sl@0
|
9581 |
EOF
|
sl@0
|
9582 |
chmod +x $CONFIG_STATUS
|
sl@0
|
9583 |
rm -fr confdefs* $ac_clean_files
|
sl@0
|
9584 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
sl@0
|
9585 |
|