~ubuntu-branches/ubuntu/hardy/tcltls/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Søren Boll Overgaard
  • Date: 2004-06-16 19:22:30 UTC
  • Revision ID: james.westby@ubuntu.com-20040616192230-tv159811lsnerauf
Tags: upstream-1.5.0
Import upstream version 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --enable-bsafe          Use RSA BSAFE SSL-C libs.  Default is to use OpenSSL libs"
 
16
ac_help="$ac_help
 
17
  --with-ssl-dir=DIR      SSL root directory"
 
18
ac_help="$ac_help
 
19
  --enable-patents        Use patented code.  Default is enabled"
 
20
ac_help="$ac_help
 
21
  --enable-gcc            allow use of gcc if available [--disable-gcc]"
 
22
ac_help="$ac_help
 
23
  --with-gcclib           link with libgcc to resolve symbols in a gcc-built openssl library"
 
24
ac_help="$ac_help
 
25
  --with-tcl              directory containing tcl configuration (tclConfig.sh)"
 
26
ac_help="$ac_help
 
27
 --with-tclinclude      directory containing the public Tcl header files."
 
28
ac_help="$ac_help
 
29
  --enable-threads        build with threads"
 
30
ac_help="$ac_help
 
31
  --enable-shared         build and link with shared libraries [--enable-shared]"
 
32
ac_help="$ac_help
 
33
  --enable-symbols        build with debugging symbols [--disable-symbols]"
 
34
 
 
35
# Initialize some variables set by options.
 
36
# The variables have the same names as the options, with
 
37
# dashes changed to underlines.
 
38
build=NONE
 
39
cache_file=./config.cache
 
40
exec_prefix=NONE
 
41
host=NONE
 
42
no_create=
 
43
nonopt=NONE
 
44
no_recursion=
 
45
prefix=NONE
 
46
program_prefix=NONE
 
47
program_suffix=NONE
 
48
program_transform_name=s,x,x,
 
49
silent=
 
50
site=
 
51
srcdir=
 
52
target=NONE
 
53
verbose=
 
54
x_includes=NONE
 
55
x_libraries=NONE
 
56
bindir='${exec_prefix}/bin'
 
57
sbindir='${exec_prefix}/sbin'
 
58
libexecdir='${exec_prefix}/libexec'
 
59
datadir='${prefix}/share'
 
60
sysconfdir='${prefix}/etc'
 
61
sharedstatedir='${prefix}/com'
 
62
localstatedir='${prefix}/var'
 
63
libdir='${exec_prefix}/lib'
 
64
includedir='${prefix}/include'
 
65
oldincludedir='/usr/include'
 
66
infodir='${prefix}/info'
 
67
mandir='${prefix}/man'
 
68
 
 
69
# Initialize some other variables.
 
70
subdirs=
 
71
MFLAGS= MAKEFLAGS=
 
72
SHELL=${CONFIG_SHELL-/bin/sh}
 
73
# Maximum number of lines to put in a shell here document.
 
74
ac_max_here_lines=12
 
75
 
 
76
ac_prev=
 
77
for ac_option
 
78
do
 
79
 
 
80
  # If the previous option needs an argument, assign it.
 
81
  if test -n "$ac_prev"; then
 
82
    eval "$ac_prev=\$ac_option"
 
83
    ac_prev=
 
84
    continue
 
85
  fi
 
86
 
 
87
  case "$ac_option" in
 
88
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
89
  *) ac_optarg= ;;
 
90
  esac
 
91
 
 
92
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
93
 
 
94
  case "$ac_option" in
 
95
 
 
96
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
97
    ac_prev=bindir ;;
 
98
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
99
    bindir="$ac_optarg" ;;
 
100
 
 
101
  -build | --build | --buil | --bui | --bu)
 
102
    ac_prev=build ;;
 
103
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
104
    build="$ac_optarg" ;;
 
105
 
 
106
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
107
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
108
    ac_prev=cache_file ;;
 
109
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
110
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
111
    cache_file="$ac_optarg" ;;
 
112
 
 
113
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
114
    ac_prev=datadir ;;
 
115
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
116
  | --da=*)
 
117
    datadir="$ac_optarg" ;;
 
118
 
 
119
  -disable-* | --disable-*)
 
120
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
121
    # Reject names that are not valid shell variable names.
 
122
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
123
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
124
    fi
 
125
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
126
    eval "enable_${ac_feature}=no" ;;
 
127
 
 
128
  -enable-* | --enable-*)
 
129
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
130
    # Reject names that are not valid shell variable names.
 
131
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
132
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
133
    fi
 
134
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
135
    case "$ac_option" in
 
136
      *=*) ;;
 
137
      *) ac_optarg=yes ;;
 
138
    esac
 
139
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
140
 
 
141
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
142
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
143
  | --exec | --exe | --ex)
 
144
    ac_prev=exec_prefix ;;
 
145
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
146
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
147
  | --exec=* | --exe=* | --ex=*)
 
148
    exec_prefix="$ac_optarg" ;;
 
149
 
 
150
  -gas | --gas | --ga | --g)
 
151
    # Obsolete; use --with-gas.
 
152
    with_gas=yes ;;
 
153
 
 
154
  -help | --help | --hel | --he)
 
155
    # Omit some internal or obsolete options to make the list less imposing.
 
156
    # This message is too long to be a string in the A/UX 3.1 sh.
 
157
    cat << EOF
 
158
Usage: configure [options] [host]
 
159
Options: [defaults in brackets after descriptions]
 
160
Configuration:
 
161
  --cache-file=FILE       cache test results in FILE
 
162
  --help                  print this message
 
163
  --no-create             do not create output files
 
164
  --quiet, --silent       do not print \`checking...' messages
 
165
  --version               print the version of autoconf that created configure
 
166
Directory and file names:
 
167
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
168
                          [$ac_default_prefix]
 
169
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
170
                          [same as prefix]
 
171
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
172
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
173
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
174
  --datadir=DIR           read-only architecture-independent data in DIR
 
175
                          [PREFIX/share]
 
176
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
177
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
178
                          [PREFIX/com]
 
179
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
180
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
181
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
182
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
183
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
184
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
185
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
186
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
187
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
188
  --program-transform-name=PROGRAM
 
189
                          run sed PROGRAM on installed program names
 
190
EOF
 
191
    cat << EOF
 
192
Host type:
 
193
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
194
  --host=HOST             configure for HOST [guessed]
 
195
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
196
Features and packages:
 
197
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
198
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
199
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
200
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
201
  --x-includes=DIR        X include files are in DIR
 
202
  --x-libraries=DIR       X library files are in DIR
 
203
EOF
 
204
    if test -n "$ac_help"; then
 
205
      echo "--enable and --with options recognized:$ac_help"
 
206
    fi
 
207
    exit 0 ;;
 
208
 
 
209
  -host | --host | --hos | --ho)
 
210
    ac_prev=host ;;
 
211
  -host=* | --host=* | --hos=* | --ho=*)
 
212
    host="$ac_optarg" ;;
 
213
 
 
214
  -includedir | --includedir | --includedi | --included | --include \
 
215
  | --includ | --inclu | --incl | --inc)
 
216
    ac_prev=includedir ;;
 
217
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
218
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
219
    includedir="$ac_optarg" ;;
 
220
 
 
221
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
222
    ac_prev=infodir ;;
 
223
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
224
    infodir="$ac_optarg" ;;
 
225
 
 
226
  -libdir | --libdir | --libdi | --libd)
 
227
    ac_prev=libdir ;;
 
228
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
229
    libdir="$ac_optarg" ;;
 
230
 
 
231
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
232
  | --libexe | --libex | --libe)
 
233
    ac_prev=libexecdir ;;
 
234
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
235
  | --libexe=* | --libex=* | --libe=*)
 
236
    libexecdir="$ac_optarg" ;;
 
237
 
 
238
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
239
  | --localstate | --localstat | --localsta | --localst \
 
240
  | --locals | --local | --loca | --loc | --lo)
 
241
    ac_prev=localstatedir ;;
 
242
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
243
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
244
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
245
    localstatedir="$ac_optarg" ;;
 
246
 
 
247
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
248
    ac_prev=mandir ;;
 
249
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
250
    mandir="$ac_optarg" ;;
 
251
 
 
252
  -nfp | --nfp | --nf)
 
253
    # Obsolete; use --without-fp.
 
254
    with_fp=no ;;
 
255
 
 
256
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
257
  | --no-cr | --no-c)
 
258
    no_create=yes ;;
 
259
 
 
260
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
261
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
262
    no_recursion=yes ;;
 
263
 
 
264
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
265
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
266
  | --oldin | --oldi | --old | --ol | --o)
 
267
    ac_prev=oldincludedir ;;
 
268
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
269
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
270
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
271
    oldincludedir="$ac_optarg" ;;
 
272
 
 
273
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
274
    ac_prev=prefix ;;
 
275
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
276
    prefix="$ac_optarg" ;;
 
277
 
 
278
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
279
  | --program-pre | --program-pr | --program-p)
 
280
    ac_prev=program_prefix ;;
 
281
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
282
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
283
    program_prefix="$ac_optarg" ;;
 
284
 
 
285
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
286
  | --program-suf | --program-su | --program-s)
 
287
    ac_prev=program_suffix ;;
 
288
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
289
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
290
    program_suffix="$ac_optarg" ;;
 
291
 
 
292
  -program-transform-name | --program-transform-name \
 
293
  | --program-transform-nam | --program-transform-na \
 
294
  | --program-transform-n | --program-transform- \
 
295
  | --program-transform | --program-transfor \
 
296
  | --program-transfo | --program-transf \
 
297
  | --program-trans | --program-tran \
 
298
  | --progr-tra | --program-tr | --program-t)
 
299
    ac_prev=program_transform_name ;;
 
300
  -program-transform-name=* | --program-transform-name=* \
 
301
  | --program-transform-nam=* | --program-transform-na=* \
 
302
  | --program-transform-n=* | --program-transform-=* \
 
303
  | --program-transform=* | --program-transfor=* \
 
304
  | --program-transfo=* | --program-transf=* \
 
305
  | --program-trans=* | --program-tran=* \
 
306
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
307
    program_transform_name="$ac_optarg" ;;
 
308
 
 
309
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
310
  | -silent | --silent | --silen | --sile | --sil)
 
311
    silent=yes ;;
 
312
 
 
313
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
314
    ac_prev=sbindir ;;
 
315
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
316
  | --sbi=* | --sb=*)
 
317
    sbindir="$ac_optarg" ;;
 
318
 
 
319
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
320
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
321
  | --sharedst | --shareds | --shared | --share | --shar \
 
322
  | --sha | --sh)
 
323
    ac_prev=sharedstatedir ;;
 
324
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
325
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
326
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
327
  | --sha=* | --sh=*)
 
328
    sharedstatedir="$ac_optarg" ;;
 
329
 
 
330
  -site | --site | --sit)
 
331
    ac_prev=site ;;
 
332
  -site=* | --site=* | --sit=*)
 
333
    site="$ac_optarg" ;;
 
334
 
 
335
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
336
    ac_prev=srcdir ;;
 
337
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
338
    srcdir="$ac_optarg" ;;
 
339
 
 
340
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
341
  | --syscon | --sysco | --sysc | --sys | --sy)
 
342
    ac_prev=sysconfdir ;;
 
343
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
344
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
345
    sysconfdir="$ac_optarg" ;;
 
346
 
 
347
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
348
    ac_prev=target ;;
 
349
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
350
    target="$ac_optarg" ;;
 
351
 
 
352
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
353
    verbose=yes ;;
 
354
 
 
355
  -version | --version | --versio | --versi | --vers)
 
356
    echo "configure generated by autoconf version 2.13"
 
357
    exit 0 ;;
 
358
 
 
359
  -with-* | --with-*)
 
360
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
361
    # Reject names that are not valid shell variable names.
 
362
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
363
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
364
    fi
 
365
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
366
    case "$ac_option" in
 
367
      *=*) ;;
 
368
      *) ac_optarg=yes ;;
 
369
    esac
 
370
    eval "with_${ac_package}='$ac_optarg'" ;;
 
371
 
 
372
  -without-* | --without-*)
 
373
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
374
    # Reject names that are not valid shell variable names.
 
375
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
376
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
377
    fi
 
378
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
379
    eval "with_${ac_package}=no" ;;
 
380
 
 
381
  --x)
 
382
    # Obsolete; use --with-x.
 
383
    with_x=yes ;;
 
384
 
 
385
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
386
  | --x-incl | --x-inc | --x-in | --x-i)
 
387
    ac_prev=x_includes ;;
 
388
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
389
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
390
    x_includes="$ac_optarg" ;;
 
391
 
 
392
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
393
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
394
    ac_prev=x_libraries ;;
 
395
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
396
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
397
    x_libraries="$ac_optarg" ;;
 
398
 
 
399
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
400
    ;;
 
401
 
 
402
  *)
 
403
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
404
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
405
    fi
 
406
    if test "x$nonopt" != xNONE; then
 
407
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
408
    fi
 
409
    nonopt="$ac_option"
 
410
    ;;
 
411
 
 
412
  esac
 
413
done
 
414
 
 
415
if test -n "$ac_prev"; then
 
416
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
417
fi
 
418
 
 
419
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
420
 
 
421
# File descriptor usage:
 
422
# 0 standard input
 
423
# 1 file creation
 
424
# 2 errors and warnings
 
425
# 3 some systems may open it to /dev/tty
 
426
# 4 used on the Kubota Titan
 
427
# 6 checking for... messages and results
 
428
# 5 compiler messages saved in config.log
 
429
if test "$silent" = yes; then
 
430
  exec 6>/dev/null
 
431
else
 
432
  exec 6>&1
 
433
fi
 
434
exec 5>./config.log
 
435
 
 
436
echo "\
 
437
This file contains any messages produced by compilers while
 
438
running configure, to aid debugging if configure makes a mistake.
 
439
" 1>&5
 
440
 
 
441
# Strip out --no-create and --no-recursion so they do not pile up.
 
442
# Also quote any args containing shell metacharacters.
 
443
ac_configure_args=
 
444
for ac_arg
 
445
do
 
446
  case "$ac_arg" in
 
447
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
448
  | --no-cr | --no-c) ;;
 
449
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
450
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
451
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
452
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
453
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
454
  esac
 
455
done
 
456
 
 
457
# NLS nuisances.
 
458
# Only set these to C if already set.  These must not be set unconditionally
 
459
# because not all systems understand e.g. LANG=C (notably SCO).
 
460
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
461
# Non-C LC_CTYPE values break the ctype check.
 
462
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
463
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
464
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
465
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
466
 
 
467
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
468
rm -rf conftest* confdefs.h
 
469
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
470
echo > confdefs.h
 
471
 
 
472
# A filename unique to this package, relative to the directory that
 
473
# configure is in, which we can look for to find out if srcdir is correct.
 
474
ac_unique_file=tls.h
 
475
 
 
476
# Find the source files, if location was not specified.
 
477
if test -z "$srcdir"; then
 
478
  ac_srcdir_defaulted=yes
 
479
  # Try the directory containing this script, then its parent.
 
480
  ac_prog=$0
 
481
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
482
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
483
  srcdir=$ac_confdir
 
484
  if test ! -r $srcdir/$ac_unique_file; then
 
485
    srcdir=..
 
486
  fi
 
487
else
 
488
  ac_srcdir_defaulted=no
 
489
fi
 
490
if test ! -r $srcdir/$ac_unique_file; then
 
491
  if test "$ac_srcdir_defaulted" = yes; then
 
492
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
493
  else
 
494
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
495
  fi
 
496
fi
 
497
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
498
 
 
499
# Prefer explicitly selected file to automatically selected ones.
 
500
if test -z "$CONFIG_SITE"; then
 
501
  if test "x$prefix" != xNONE; then
 
502
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
503
  else
 
504
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
505
  fi
 
506
fi
 
507
for ac_site_file in $CONFIG_SITE; do
 
508
  if test -r "$ac_site_file"; then
 
509
    echo "loading site script $ac_site_file"
 
510
    . "$ac_site_file"
 
511
  fi
 
512
done
 
513
 
 
514
if test -r "$cache_file"; then
 
515
  echo "loading cache $cache_file"
 
516
  . $cache_file
 
517
else
 
518
  echo "creating cache $cache_file"
 
519
  > $cache_file
 
520
fi
 
521
 
 
522
ac_ext=c
 
523
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
524
ac_cpp='$CPP $CPPFLAGS'
 
525
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
526
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
527
cross_compiling=$ac_cv_prog_cc_cross
 
528
 
 
529
ac_exeext=
 
530
ac_objext=o
 
531
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
532
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
533
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
534
    ac_n= ac_c='
 
535
' ac_t='        '
 
536
  else
 
537
    ac_n=-n ac_c= ac_t=
 
538
  fi
 
539
else
 
540
  ac_n= ac_c='\c' ac_t=
 
541
fi
 
542
 
 
543
 
 
544
 
 
545
ac_aux_dir=
 
546
for ac_dir in config $srcdir/config; do
 
547
  if test -f $ac_dir/install-sh; then
 
548
    ac_aux_dir=$ac_dir
 
549
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
550
    break
 
551
  elif test -f $ac_dir/install.sh; then
 
552
    ac_aux_dir=$ac_dir
 
553
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
554
    break
 
555
  fi
 
556
done
 
557
if test -z "$ac_aux_dir"; then
 
558
  { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
 
559
fi
 
560
ac_config_guess=$ac_aux_dir/config.guess
 
561
ac_config_sub=$ac_aux_dir/config.sub
 
562
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
563
 
 
564
CONFIGDIR=${srcdir}/config
 
565
 
 
566
 
 
567
#--------------------------------------------------------------------
 
568
# Set package name and version numbers here.  The NODOT_VERSION is
 
569
# required for constructing the library name on systems that don't
 
570
# like dots in # library names (Windows).  The VERSION variable is
 
571
# used on the other systems.
 
572
#--------------------------------------------------------------------
 
573
 
 
574
PACKAGE=tls
 
575
 
 
576
MAJOR_VERSION=1
 
577
MINOR_VERSION=5
 
578
PATCHLEVEL=0
 
579
 
 
580
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL}
 
581
NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}
 
582
 
 
583
 
 
584
 
 
585
 
 
586
 
 
587
#--------------------------------------------------------------------
 
588
# We put this here so that you can compile with -DVERSION="1.2" to
 
589
# encode the package version directly into the source files.
 
590
#--------------------------------------------------------------------
 
591
 
 
592
eval cat >> confdefs.h <<EOF
 
593
#define VERSION "${VERSION}"
 
594
EOF
 
595
 
 
596
eval cat >> confdefs.h <<EOF
 
597
#define PACKAGE "${PACKAGE}"
 
598
EOF
 
599
 
 
600
 
 
601
#--------------------------------------------------------------------
 
602
# If the variable OPENSSL is set, we will build with the OpenSSL
 
603
# libraries.  If it is not set, then we will use RSA BSAFE SSL-C
 
604
# libraries instead of the default OpenSSL libaries.
 
605
#--------------------------------------------------------------------
 
606
 
 
607
OPENSSL="1"
 
608
 
 
609
# Check whether --enable-bsafe or --disable-bsafe was given.
 
610
if test "${enable_bsafe+set}" = set; then
 
611
  enableval="$enable_bsafe"
 
612
  OPENSSL=""
 
613
else
 
614
  OPENSSL="1"
 
615
fi
 
616
 
 
617
 
 
618
#--------------------------------------------------------------------
 
619
# Establish the location of the root directory for OpenSSL.
 
620
# If we're not using OpenSSL, set the root for BSAFE SSL-C.
 
621
# If we're using BSAFE, define the BSAFE compiler flag.
 
622
# The "FLAT_INC" flag is used in the BSAFE ssl.h header file and
 
623
# doesn't seem to be referenced anywhere else.
 
624
#--------------------------------------------------------------------
 
625
 
 
626
if test -n "${OPENSSL}"; then
 
627
    SSL_DIR='/usr/local/ssl'
 
628
    cat >> confdefs.h <<\EOF
 
629
#define NO_IDEA 1
 
630
EOF
 
631
 
 
632
    cat >> confdefs.h <<\EOF
 
633
#define NO_RC5 1
 
634
EOF
 
635
 
 
636
else
 
637
    SSL_DIR='/use/local/sslc'
 
638
    cat >> confdefs.h <<\EOF
 
639
#define BSAFE 1
 
640
EOF
 
641
 
 
642
    cat >> confdefs.h <<\EOF
 
643
#define FLAT_INC 1
 
644
EOF
 
645
 
 
646
fi
 
647
 
 
648
#--------------------------------------------------------------------
 
649
# If we're using RSA BSAFE SSL-C, we need to establish what platform
 
650
# we're running on before we can figure out some paths.
 
651
# This step isn't necessary if we're using OpenSSL.
 
652
#--------------------------------------------------------------------
 
653
 
 
654
 
 
655
if test -z "${OPENSSL}"; then
 
656
    echo $ac_n "checking host type""... $ac_c" 1>&6
 
657
echo "configure:658: checking host type" >&5
 
658
    case "`uname -s`" in
 
659
        *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
 
660
            PLATFORM=WIN32
 
661
            cat >> confdefs.h <<\EOF
 
662
#define WINDOWS 1
 
663
EOF
 
664
 
 
665
            ;;
 
666
        *SunOS*)
 
667
            PLATFORM=SOLARIS
 
668
            ;;
 
669
        HP-UX)
 
670
            PLATFORM=HPUX
 
671
            ;;
 
672
        *)
 
673
            PLATFORM=LINUX
 
674
            ;;
 
675
    esac
 
676
    echo "$ac_t""${PLATFORM}" 1>&6
 
677
fi
 
678
 
 
679
# Check whether --with-ssl-dir or --without-ssl-dir was given.
 
680
if test "${with_ssl_dir+set}" = set; then
 
681
  withval="$with_ssl_dir"
 
682
  SSL_DIR=$withval
 
683
fi
 
684
 
 
685
 
 
686
if test ! -d "${SSL_DIR}"; then
 
687
    { echo "configure: error: ${SSL_DIR} is not a valid directory" 1>&2; exit 1; }
 
688
fi
 
689
 
 
690
#--------------------------------------------------------------------
 
691
# The OpenSSL and BSAFE SSL-C directory structures differ.
 
692
#--------------------------------------------------------------------
 
693
 
 
694
if test -n "${OPENSSL}"; then
 
695
    SSL_LIB_DIR=${SSL_DIR}/lib
 
696
    SSL_INCLUDE_DIR=${SSL_DIR}/include
 
697
    if test ! -f "${SSL_INCLUDE_DIR}/openssl/opensslv.h"; then
 
698
        { echo "configure: error: bad ssl-dir: cannot find openssl/opensslv.h under ${SSL_INCLUDE_DIR}" 1>&2; exit 1; }
 
699
    fi
 
700
else
 
701
    SSL_LIB_DIR=${SSL_DIR}/${PLATFORM}/library/lib
 
702
    SSL_INCLUDE_DIR=${SSL_DIR}/${PLATFORM}/library/include
 
703
    if test ! -f "${SSL_INCLUDE_DIR}/crypto.h"; then
 
704
        { echo "configure: error: bad ssl-dir: cannot find crypto.h under ${SSL_INCLUDE_DIR}" 1>&2; exit 1; }
 
705
    fi
 
706
fi
 
707
 
 
708
 
 
709
 
 
710
 
 
711
 
 
712
#--------------------------------------------------------------------
 
713
# Determine if we should use the patented encryption code
 
714
#--------------------------------------------------------------------
 
715
 
 
716
# Check whether --enable-patents or --disable-patents was given.
 
717
if test "${enable_patents+set}" = set; then
 
718
  enableval="$enable_patents"
 
719
  PATENTS=${enableval}
 
720
else
 
721
  PATENTS=yes
 
722
fi
 
723
  
 
724
 
 
725
if test ${PATENTS} = no; then
 
726
    cat >> confdefs.h <<\EOF
 
727
#define "NO_PATENTS" 1
 
728
EOF
 
729
 
 
730
fi
 
731
 
 
732
#--------------------------------------------------------------------
 
733
# Check whether --enable-gcc or --disable-gcc was given.  Do this 
 
734
# before AC_CYGWIN is called so the compiler can be fully tested by
 
735
# built-in autoconf tools.  This macro also calls AC_PROG_CC to set
 
736
# the compiler if --enable-gcc was not used.
 
737
#--------------------------------------------------------------------
 
738
 
 
739
 
 
740
    # Check whether --enable-gcc or --disable-gcc was given.
 
741
if test "${enable_gcc+set}" = set; then
 
742
  enableval="$enable_gcc"
 
743
  ok=$enableval
 
744
else
 
745
  ok=no
 
746
fi
 
747
 
 
748
    if test "$ok" = "yes"; then
 
749
        CC=gcc
 
750
    else
 
751
        case "`uname -s`" in
 
752
            *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
 
753
                CC=cl
 
754
            ;;
 
755
            *)
 
756
                CC=${CC-cc}
 
757
            ;;
 
758
        esac
 
759
    fi
 
760
    # Extract the first word of "gcc", so it can be a program name with args.
 
761
set dummy gcc; ac_word=$2
 
762
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
763
echo "configure:764: checking for $ac_word" >&5
 
764
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
765
  echo $ac_n "(cached) $ac_c" 1>&6
 
766
else
 
767
  if test -n "$CC"; then
 
768
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
769
else
 
770
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
771
  ac_dummy="$PATH"
 
772
  for ac_dir in $ac_dummy; do
 
773
    test -z "$ac_dir" && ac_dir=.
 
774
    if test -f $ac_dir/$ac_word; then
 
775
      ac_cv_prog_CC="gcc"
 
776
      break
 
777
    fi
 
778
  done
 
779
  IFS="$ac_save_ifs"
 
780
fi
 
781
fi
 
782
CC="$ac_cv_prog_CC"
 
783
if test -n "$CC"; then
 
784
  echo "$ac_t""$CC" 1>&6
 
785
else
 
786
  echo "$ac_t""no" 1>&6
 
787
fi
 
788
 
 
789
if test -z "$CC"; then
 
790
  # Extract the first word of "cc", so it can be a program name with args.
 
791
set dummy cc; ac_word=$2
 
792
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
793
echo "configure:794: checking for $ac_word" >&5
 
794
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
795
  echo $ac_n "(cached) $ac_c" 1>&6
 
796
else
 
797
  if test -n "$CC"; then
 
798
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
799
else
 
800
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
801
  ac_prog_rejected=no
 
802
  ac_dummy="$PATH"
 
803
  for ac_dir in $ac_dummy; do
 
804
    test -z "$ac_dir" && ac_dir=.
 
805
    if test -f $ac_dir/$ac_word; then
 
806
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
807
        ac_prog_rejected=yes
 
808
        continue
 
809
      fi
 
810
      ac_cv_prog_CC="cc"
 
811
      break
 
812
    fi
 
813
  done
 
814
  IFS="$ac_save_ifs"
 
815
if test $ac_prog_rejected = yes; then
 
816
  # We found a bogon in the path, so make sure we never use it.
 
817
  set dummy $ac_cv_prog_CC
 
818
  shift
 
819
  if test $# -gt 0; then
 
820
    # We chose a different compiler from the bogus one.
 
821
    # However, it has the same basename, so the bogon will be chosen
 
822
    # first if we set CC to just the basename; use the full file name.
 
823
    shift
 
824
    set dummy "$ac_dir/$ac_word" "$@"
 
825
    shift
 
826
    ac_cv_prog_CC="$@"
 
827
  fi
 
828
fi
 
829
fi
 
830
fi
 
831
CC="$ac_cv_prog_CC"
 
832
if test -n "$CC"; then
 
833
  echo "$ac_t""$CC" 1>&6
 
834
else
 
835
  echo "$ac_t""no" 1>&6
 
836
fi
 
837
 
 
838
  if test -z "$CC"; then
 
839
    case "`uname -s`" in
 
840
    *win32* | *WIN32*)
 
841
      # Extract the first word of "cl", so it can be a program name with args.
 
842
set dummy cl; ac_word=$2
 
843
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
844
echo "configure:845: checking for $ac_word" >&5
 
845
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
846
  echo $ac_n "(cached) $ac_c" 1>&6
 
847
else
 
848
  if test -n "$CC"; then
 
849
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
850
else
 
851
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
852
  ac_dummy="$PATH"
 
853
  for ac_dir in $ac_dummy; do
 
854
    test -z "$ac_dir" && ac_dir=.
 
855
    if test -f $ac_dir/$ac_word; then
 
856
      ac_cv_prog_CC="cl"
 
857
      break
 
858
    fi
 
859
  done
 
860
  IFS="$ac_save_ifs"
 
861
fi
 
862
fi
 
863
CC="$ac_cv_prog_CC"
 
864
if test -n "$CC"; then
 
865
  echo "$ac_t""$CC" 1>&6
 
866
else
 
867
  echo "$ac_t""no" 1>&6
 
868
fi
 
869
 ;;
 
870
    esac
 
871
  fi
 
872
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
873
fi
 
874
 
 
875
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
876
echo "configure:877: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
877
 
 
878
ac_ext=c
 
879
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
880
ac_cpp='$CPP $CPPFLAGS'
 
881
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
882
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
883
cross_compiling=$ac_cv_prog_cc_cross
 
884
 
 
885
cat > conftest.$ac_ext << EOF
 
886
 
 
887
#line 888 "configure"
 
888
#include "confdefs.h"
 
889
 
 
890
main(){return(0);}
 
891
EOF
 
892
if { (eval echo configure:893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
893
  ac_cv_prog_cc_works=yes
 
894
  # If we can't run a trivial program, we are probably using a cross compiler.
 
895
  if (./conftest; exit) 2>/dev/null; then
 
896
    ac_cv_prog_cc_cross=no
 
897
  else
 
898
    ac_cv_prog_cc_cross=yes
 
899
  fi
 
900
else
 
901
  echo "configure: failed program was:" >&5
 
902
  cat conftest.$ac_ext >&5
 
903
  ac_cv_prog_cc_works=no
 
904
fi
 
905
rm -fr conftest*
 
906
ac_ext=c
 
907
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
908
ac_cpp='$CPP $CPPFLAGS'
 
909
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
910
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
911
cross_compiling=$ac_cv_prog_cc_cross
 
912
 
 
913
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
914
if test $ac_cv_prog_cc_works = no; then
 
915
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
916
fi
 
917
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
918
echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
919
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
920
cross_compiling=$ac_cv_prog_cc_cross
 
921
 
 
922
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
923
echo "configure:924: checking whether we are using GNU C" >&5
 
924
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
925
  echo $ac_n "(cached) $ac_c" 1>&6
 
926
else
 
927
  cat > conftest.c <<EOF
 
928
#ifdef __GNUC__
 
929
  yes;
 
930
#endif
 
931
EOF
 
932
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
933
  ac_cv_prog_gcc=yes
 
934
else
 
935
  ac_cv_prog_gcc=no
 
936
fi
 
937
fi
 
938
 
 
939
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
940
 
 
941
if test $ac_cv_prog_gcc = yes; then
 
942
  GCC=yes
 
943
else
 
944
  GCC=
 
945
fi
 
946
 
 
947
ac_test_CFLAGS="${CFLAGS+set}"
 
948
ac_save_CFLAGS="$CFLAGS"
 
949
CFLAGS=
 
950
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
951
echo "configure:952: checking whether ${CC-cc} accepts -g" >&5
 
952
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
953
  echo $ac_n "(cached) $ac_c" 1>&6
 
954
else
 
955
  echo 'void f(){}' > conftest.c
 
956
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
957
  ac_cv_prog_cc_g=yes
 
958
else
 
959
  ac_cv_prog_cc_g=no
 
960
fi
 
961
rm -f conftest*
 
962
 
 
963
fi
 
964
 
 
965
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
966
if test "$ac_test_CFLAGS" = set; then
 
967
  CFLAGS="$ac_save_CFLAGS"
 
968
elif test $ac_cv_prog_cc_g = yes; then
 
969
  if test "$GCC" = yes; then
 
970
    CFLAGS="-g -O2"
 
971
  else
 
972
    CFLAGS="-g"
 
973
  fi
 
974
else
 
975
  if test "$GCC" = yes; then
 
976
    CFLAGS="-O2"
 
977
  else
 
978
    CFLAGS=
 
979
  fi
 
980
fi
 
981
 
 
982
 
 
983
# Find a good install program.  We prefer a C program (faster),
 
984
# so one script is as good as another.  But avoid the broken or
 
985
# incompatible versions:
 
986
# SysV /etc/install, /usr/sbin/install
 
987
# SunOS /usr/etc/install
 
988
# IRIX /sbin/install
 
989
# AIX /bin/install
 
990
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
991
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
992
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
993
# ./install, which can be erroneously created by make from ./install.sh.
 
994
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
995
echo "configure:996: checking for a BSD compatible install" >&5
 
996
if test -z "$INSTALL"; then
 
997
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
998
  echo $ac_n "(cached) $ac_c" 1>&6
 
999
else
 
1000
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
1001
  for ac_dir in $PATH; do
 
1002
    # Account for people who put trailing slashes in PATH elements.
 
1003
    case "$ac_dir/" in
 
1004
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
1005
    *)
 
1006
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
1007
      # Don't use installbsd from OSF since it installs stuff as root
 
1008
      # by default.
 
1009
      for ac_prog in ginstall scoinst install; do
 
1010
        if test -f $ac_dir/$ac_prog; then
 
1011
          if test $ac_prog = install &&
 
1012
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1013
            # AIX install.  It has an incompatible calling convention.
 
1014
            :
 
1015
          else
 
1016
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
1017
            break 2
 
1018
          fi
 
1019
        fi
 
1020
      done
 
1021
      ;;
 
1022
    esac
 
1023
  done
 
1024
  IFS="$ac_save_IFS"
 
1025
 
 
1026
fi
 
1027
  if test "${ac_cv_path_install+set}" = set; then
 
1028
    INSTALL="$ac_cv_path_install"
 
1029
  else
 
1030
    # As a last resort, use the slow shell script.  We don't cache a
 
1031
    # path for INSTALL within a source directory, because that will
 
1032
    # break other packages using the cache if that directory is
 
1033
    # removed, or if the path is relative.
 
1034
    INSTALL="$ac_install_sh"
 
1035
  fi
 
1036
fi
 
1037
echo "$ac_t""$INSTALL" 1>&6
 
1038
 
 
1039
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1040
# It thinks the first close brace ends the variable substitution.
 
1041
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1042
 
 
1043
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1044
 
 
1045
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1046
 
 
1047
 
 
1048
#--------------------------------------------------------------------
 
1049
# If OpenSSL was built with gcc then there may be some symbols that need
 
1050
# resolving before we can load it into tclsh (__udivd3i on solaris.  Let the
 
1051
# user specify if we need to add libgcc to the link line to resolve these
 
1052
# symbols.
 
1053
#
 
1054
# This doesn't seem to be necessary if the RSA BSAFE SSL-C libraries
 
1055
# are used instead of OpenSSL.
 
1056
#--------------------------------------------------------------------
 
1057
 
 
1058
if test -n "${OPENSSL}"; then
 
1059
 
 
1060
    echo $ac_n "checking if libgcc is needed to resolve openssl symbols""... $ac_c" 1>&6
 
1061
echo "configure:1062: checking if libgcc is needed to resolve openssl symbols" >&5
 
1062
 
 
1063
    # Check whether --with-gcclib or --without-gcclib was given.
 
1064
if test "${with_gcclib+set}" = set; then
 
1065
  withval="$with_gcclib"
 
1066
  GCCLIB="-lgcc"
 
1067
else
 
1068
  GCCLIB=""
 
1069
fi
 
1070
 
 
1071
 
 
1072
    if test "x${GCCLIB}" = "x" ; then
 
1073
        echo "$ac_t""no" 1>&6
 
1074
    else
 
1075
        echo "$ac_t""yes" 1>&6
 
1076
        echo $ac_n "checking for gcc library location""... $ac_c" 1>&6
 
1077
echo "configure:1078: checking for gcc library location" >&5
 
1078
        GCCPATH=`${CC} -print-libgcc-file-name | sed -e 's#[^/]*$##'`
 
1079
        GCCPATH="-L${GCCPATH}"
 
1080
        echo "$ac_t""${GCCPATH}" 1>&6
 
1081
    fi
 
1082
fi
 
1083
 
 
1084
#--------------------------------------------------------------------
 
1085
# Checks to see if the make program sets the $MAKE variable.
 
1086
#--------------------------------------------------------------------
 
1087
 
 
1088
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
1089
echo "configure:1090: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
1090
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
1091
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
1092
  echo $ac_n "(cached) $ac_c" 1>&6
 
1093
else
 
1094
  cat > conftestmake <<\EOF
 
1095
all:
 
1096
        @echo 'ac_maketemp="${MAKE}"'
 
1097
EOF
 
1098
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1099
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
1100
if test -n "$ac_maketemp"; then
 
1101
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1102
else
 
1103
  eval ac_cv_prog_make_${ac_make}_set=no
 
1104
fi
 
1105
rm -f conftestmake
 
1106
fi
 
1107
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1108
  echo "$ac_t""yes" 1>&6
 
1109
  SET_MAKE=
 
1110
else
 
1111
  echo "$ac_t""no" 1>&6
 
1112
  SET_MAKE="MAKE=${MAKE-make}"
 
1113
fi
 
1114
 
 
1115
 
 
1116
#--------------------------------------------------------------------
 
1117
# Find ranlib
 
1118
#--------------------------------------------------------------------
 
1119
 
 
1120
# Extract the first word of "ranlib", so it can be a program name with args.
 
1121
set dummy ranlib; ac_word=$2
 
1122
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1123
echo "configure:1124: checking for $ac_word" >&5
 
1124
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
1125
  echo $ac_n "(cached) $ac_c" 1>&6
 
1126
else
 
1127
  if test -n "$RANLIB"; then
 
1128
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
1129
else
 
1130
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1131
  ac_dummy="$PATH"
 
1132
  for ac_dir in $ac_dummy; do
 
1133
    test -z "$ac_dir" && ac_dir=.
 
1134
    if test -f $ac_dir/$ac_word; then
 
1135
      ac_cv_prog_RANLIB="ranlib"
 
1136
      break
 
1137
    fi
 
1138
  done
 
1139
  IFS="$ac_save_ifs"
 
1140
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
1141
fi
 
1142
fi
 
1143
RANLIB="$ac_cv_prog_RANLIB"
 
1144
if test -n "$RANLIB"; then
 
1145
  echo "$ac_t""$RANLIB" 1>&6
 
1146
else
 
1147
  echo "$ac_t""no" 1>&6
 
1148
fi
 
1149
 
 
1150
 
 
1151
#--------------------------------------------------------------------
 
1152
# This macro performs additional compiler tests.
 
1153
#--------------------------------------------------------------------
 
1154
 
 
1155
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 
1156
echo "configure:1157: checking for Cygwin environment" >&5
 
1157
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 
1158
  echo $ac_n "(cached) $ac_c" 1>&6
 
1159
else
 
1160
  cat > conftest.$ac_ext <<EOF
 
1161
#line 1162 "configure"
 
1162
#include "confdefs.h"
 
1163
 
 
1164
int main() {
 
1165
 
 
1166
#ifndef __CYGWIN__
 
1167
#define __CYGWIN__ __CYGWIN32__
 
1168
#endif
 
1169
return __CYGWIN__;
 
1170
; return 0; }
 
1171
EOF
 
1172
if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1173
  rm -rf conftest*
 
1174
  ac_cv_cygwin=yes
 
1175
else
 
1176
  echo "configure: failed program was:" >&5
 
1177
  cat conftest.$ac_ext >&5
 
1178
  rm -rf conftest*
 
1179
  ac_cv_cygwin=no
 
1180
fi
 
1181
rm -f conftest*
 
1182
rm -f conftest*
 
1183
fi
 
1184
 
 
1185
echo "$ac_t""$ac_cv_cygwin" 1>&6
 
1186
CYGWIN=
 
1187
test "$ac_cv_cygwin" = yes && CYGWIN=yes
 
1188
 
 
1189
#--------------------------------------------------------------------
 
1190
# Determines the correct binary file extension (.o, .obj, .exe etc.)
 
1191
#--------------------------------------------------------------------
 
1192
 
 
1193
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 
1194
echo "configure:1195: checking for object suffix" >&5
 
1195
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 
1196
  echo $ac_n "(cached) $ac_c" 1>&6
 
1197
else
 
1198
  rm -f conftest*
 
1199
echo 'int i = 1;' > conftest.$ac_ext
 
1200
if { (eval echo configure:1201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1201
  for ac_file in conftest.*; do
 
1202
    case $ac_file in
 
1203
    *.c) ;;
 
1204
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 
1205
    esac
 
1206
  done
 
1207
else
 
1208
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 
1209
fi
 
1210
rm -f conftest*
 
1211
fi
 
1212
 
 
1213
echo "$ac_t""$ac_cv_objext" 1>&6
 
1214
OBJEXT=$ac_cv_objext
 
1215
ac_objext=$ac_cv_objext
 
1216
 
 
1217
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 
1218
echo "configure:1219: checking for mingw32 environment" >&5
 
1219
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 
1220
  echo $ac_n "(cached) $ac_c" 1>&6
 
1221
else
 
1222
  cat > conftest.$ac_ext <<EOF
 
1223
#line 1224 "configure"
 
1224
#include "confdefs.h"
 
1225
 
 
1226
int main() {
 
1227
return __MINGW32__;
 
1228
; return 0; }
 
1229
EOF
 
1230
if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1231
  rm -rf conftest*
 
1232
  ac_cv_mingw32=yes
 
1233
else
 
1234
  echo "configure: failed program was:" >&5
 
1235
  cat conftest.$ac_ext >&5
 
1236
  rm -rf conftest*
 
1237
  ac_cv_mingw32=no
 
1238
fi
 
1239
rm -f conftest*
 
1240
rm -f conftest*
 
1241
fi
 
1242
 
 
1243
echo "$ac_t""$ac_cv_mingw32" 1>&6
 
1244
MINGW32=
 
1245
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
1246
 
 
1247
 
 
1248
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 
1249
echo "configure:1250: checking for executable suffix" >&5
 
1250
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 
1251
  echo $ac_n "(cached) $ac_c" 1>&6
 
1252
else
 
1253
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 
1254
  ac_cv_exeext=.exe
 
1255
else
 
1256
  rm -f conftest*
 
1257
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
1258
  ac_cv_exeext=
 
1259
  if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 
1260
    for file in conftest.*; do
 
1261
      case $file in
 
1262
      *.c | *.o | *.obj) ;;
 
1263
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 
1264
      esac
 
1265
    done
 
1266
  else
 
1267
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 
1268
  fi
 
1269
  rm -f conftest*
 
1270
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 
1271
fi
 
1272
fi
 
1273
 
 
1274
EXEEXT=""
 
1275
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 
1276
echo "$ac_t""${ac_cv_exeext}" 1>&6
 
1277
ac_exeext=$EXEEXT
 
1278
 
 
1279
 
 
1280
#--------------------------------------------------------------------
 
1281
# "cygpath" is used on windows to generate native path names for
 
1282
# include files.  These variables should only be used with the
 
1283
# compiler and linker since # they generate native path names.
 
1284
#
 
1285
# Unix tclConfig.sh points SRC_DIR at the top-level directory of
 
1286
# the Tcl sources, while the Windows tclConfig.sh points SRC_DIR at
 
1287
# the win subdirectory.  Hence the different usages of SRC_DIR below.
 
1288
#
 
1289
# This must be done before calling SC_PUBLIC_TCL_HEADERS or
 
1290
# SC_PRIVATE_TCL_HEADERS.
 
1291
#--------------------------------------------------------------------
 
1292
 
 
1293
case "`uname -s`" in
 
1294
    *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
 
1295
        CYGPATH="cygpath -w"
 
1296
        RELPATH=".. .. bin"
 
1297
    ;;
 
1298
    *)
 
1299
        CYGPATH=echo
 
1300
        RELPATH=".."
 
1301
    ;;
 
1302
esac
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
SSL_INCLUDE_DIR_NATIVE=\"`${CYGPATH} ${SSL_INCLUDE_DIR}`\"
 
1308
 
 
1309
 
 
1310
 
 
1311
#--------------------------------------------------------------------
 
1312
# Load the tclConfig.sh file
 
1313
#--------------------------------------------------------------------
 
1314
 
 
1315
 
 
1316
    #
 
1317
    # Ok, lets find the tcl configuration
 
1318
    # First, look for one uninstalled.
 
1319
    # the alternative search directory is invoked by --with-tcl
 
1320
    #
 
1321
 
 
1322
    if test x"${no_tcl}" = x ; then
 
1323
        # we reset no_tcl in case something fails here
 
1324
        no_tcl=true
 
1325
        # Check whether --with-tcl or --without-tcl was given.
 
1326
if test "${with_tcl+set}" = set; then
 
1327
  withval="$with_tcl"
 
1328
  with_tclconfig=${withval}
 
1329
fi
 
1330
 
 
1331
        echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
 
1332
echo "configure:1333: checking for Tcl configuration" >&5
 
1333
        if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
 
1334
  echo $ac_n "(cached) $ac_c" 1>&6
 
1335
else
 
1336
  
 
1337
 
 
1338
            # First check to see if --with-tcl was specified.
 
1339
            if test x"${with_tclconfig}" != x ; then
 
1340
                if test -f "${with_tclconfig}/tclConfig.sh" ; then
 
1341
                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
 
1342
                else
 
1343
                    { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
 
1344
                fi
 
1345
            fi
 
1346
 
 
1347
            # then check for a private Tcl installation
 
1348
            if test x"${ac_cv_c_tclconfig}" = x ; then
 
1349
                for i in \
 
1350
                        ../tcl \
 
1351
                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
 
1352
                        ../../tcl \
 
1353
                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
 
1354
                        ../../../tcl \
 
1355
                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
 
1356
                    if test -f "$i/unix/tclConfig.sh" ; then
 
1357
                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
 
1358
                        break
 
1359
                    fi
 
1360
                done
 
1361
            fi
 
1362
 
 
1363
            # check in a few common install locations
 
1364
            if test x"${ac_cv_c_tclconfig}" = x ; then
 
1365
                for i in `ls -d ${prefix}/lib 2>/dev/null` \
 
1366
                        `ls -d /usr/lib 2>/dev/null` \
 
1367
                        `ls -d /usr/local/lib 2>/dev/null` ; do
 
1368
                    if test -f "$i/tclConfig.sh" ; then
 
1369
                        ac_cv_c_tclconfig=`(cd $i; pwd)`
 
1370
                        break
 
1371
                    fi
 
1372
                done
 
1373
            fi
 
1374
 
 
1375
            # check in a few other private locations
 
1376
            if test x"${ac_cv_c_tclconfig}" = x ; then
 
1377
                for i in \
 
1378
                        ${srcdir}/../tcl \
 
1379
                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
 
1380
                    if test -f "$i/unix/tclConfig.sh" ; then
 
1381
                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
 
1382
                    break
 
1383
                fi
 
1384
                done
 
1385
            fi
 
1386
        
 
1387
fi
 
1388
 
 
1389
 
 
1390
        if test x"${ac_cv_c_tclconfig}" = x ; then
 
1391
            TCL_BIN_DIR="# no Tcl configs found"
 
1392
            echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
 
1393
            exit 0
 
1394
        else
 
1395
            no_tcl=
 
1396
            TCL_BIN_DIR=${ac_cv_c_tclconfig}
 
1397
            echo "$ac_t""found $TCL_BIN_DIR/tclConfig.sh" 1>&6
 
1398
        fi
 
1399
    fi
 
1400
 
 
1401
 
 
1402
    echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
 
1403
echo "configure:1404: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
 
1404
 
 
1405
    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
 
1406
        echo "$ac_t""loading" 1>&6
 
1407
        . $TCL_BIN_DIR/tclConfig.sh
 
1408
    else
 
1409
        echo "$ac_t""file not found" 1>&6
 
1410
    fi
 
1411
 
 
1412
    #
 
1413
    # The eval is required to do the TCL_DBGX substitution in the
 
1414
    # TCL_LIB_FILE variable
 
1415
    #
 
1416
 
 
1417
    eval TCL_LIB_FILE=${TCL_LIB_FILE}
 
1418
    eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
 
1419
 
 
1420
    
 
1421
    
 
1422
    
 
1423
    
 
1424
    
 
1425
    
 
1426
    
 
1427
    
 
1428
    
 
1429
    
 
1430
    
 
1431
    
 
1432
    
 
1433
    
 
1434
    
 
1435
 
 
1436
 
 
1437
 
 
1438
    echo $ac_n "checking for Tcl public headers""... $ac_c" 1>&6
 
1439
echo "configure:1440: checking for Tcl public headers" >&5
 
1440
 
 
1441
    # Check whether --with-tclinclude or --without-tclinclude was given.
 
1442
if test "${with_tclinclude+set}" = set; then
 
1443
  withval="$with_tclinclude"
 
1444
  with_tclinclude=${withval}
 
1445
fi
 
1446
 
 
1447
 
 
1448
    if test x"${with_tclinclude}" != x ; then
 
1449
        if test -f "${with_tclinclude}/tcl.h" ; then
 
1450
            ac_cv_c_tclh=${with_tclinclude}
 
1451
        else
 
1452
            { echo "configure: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" 1>&2; exit 1; }
 
1453
        fi
 
1454
    else
 
1455
        if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
 
1456
  echo $ac_n "(cached) $ac_c" 1>&6
 
1457
else
 
1458
  
 
1459
            # Use the value from --with-tclinclude, if it was given
 
1460
 
 
1461
            if test x"${with_tclinclude}" != x ; then
 
1462
                ac_cv_c_tclh=${with_tclinclude}
 
1463
            else
 
1464
                # Check in the includedir, if --prefix was specified
 
1465
 
 
1466
                eval "temp_includedir=${includedir}"
 
1467
                for i in \
 
1468
                        `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
 
1469
                        `ls -d ${temp_includedir} 2>/dev/null` \
 
1470
                        `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null` \
 
1471
                        /usr/local/include /usr/include ; do
 
1472
                    if test -f "$i/tcl.h" ; then
 
1473
                        ac_cv_c_tclh=$i
 
1474
                        break
 
1475
                    fi
 
1476
                done
 
1477
            fi
 
1478
        
 
1479
fi
 
1480
 
 
1481
    fi
 
1482
 
 
1483
    # Print a message based on how we determined the include path
 
1484
 
 
1485
    if test x"${ac_cv_c_tclh}" = x ; then
 
1486
        { echo "configure: error: tcl.h not found.  Please specify its location with --with-tclinclude" 1>&2; exit 1; }
 
1487
    else
 
1488
        echo "$ac_t""${ac_cv_c_tclh}" 1>&6
 
1489
    fi
 
1490
 
 
1491
    # Convert to a native path and substitute into the output files.
 
1492
 
 
1493
    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
 
1494
 
 
1495
    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
 
1496
 
 
1497
    
 
1498
 
 
1499
 
 
1500
#--------------------------------------------------------------------
 
1501
# A few miscellaneous platform-specific items:
 
1502
#
 
1503
# Define a special symbol for Windows (BUILD_tls in this case) so
 
1504
# that we create the export library with the dll.
 
1505
#
 
1506
# Clean up any extra files that Windows creates.
 
1507
#
 
1508
# Define any extra compiler flags in the PACKAGE_CFLAGS variable.
 
1509
# These will be appended to the current set of compiler flags for
 
1510
# your system.
 
1511
#--------------------------------------------------------------------
 
1512
 
 
1513
case "`uname -s`" in
 
1514
    *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
 
1515
        cat >> confdefs.h <<EOF
 
1516
#define BUILD_${PACKAGE} 1
 
1517
EOF
 
1518
 
 
1519
        CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc50.pch"
 
1520
        
 
1521
    ;;
 
1522
    *)
 
1523
        CLEANFILES=
 
1524
    ;;
 
1525
esac
 
1526
 
 
1527
#--------------------------------------------------------------------
 
1528
# Check whether --enable-threads or --disable-threads was given.
 
1529
# So far only Tcl responds to this one.
 
1530
#--------------------------------------------------------------------
 
1531
 
 
1532
 
 
1533
    echo $ac_n "checking for building with threads""... $ac_c" 1>&6
 
1534
echo "configure:1535: checking for building with threads" >&5
 
1535
    # Check whether --enable-threads or --disable-threads was given.
 
1536
if test "${enable_threads+set}" = set; then
 
1537
  enableval="$enable_threads"
 
1538
  tcl_ok=$enableval
 
1539
else
 
1540
  tcl_ok=no
 
1541
fi
 
1542
 
 
1543
 
 
1544
    if test "$tcl_ok" = "yes"; then
 
1545
        TCL_THREADS=1
 
1546
        cat >> confdefs.h <<\EOF
 
1547
#define TCL_THREADS 1
 
1548
EOF
 
1549
 
 
1550
        cat >> confdefs.h <<\EOF
 
1551
#define _REENTRANT 1
 
1552
EOF
 
1553
 
 
1554
 
 
1555
        case "`uname -s`" in
 
1556
            *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
 
1557
                    echo "$ac_t""yes" 1>&6
 
1558
                ;;
 
1559
            *)
 
1560
                echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
 
1561
echo "configure:1562: checking for pthread_mutex_init in -lpthread" >&5
 
1562
ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
 
1563
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1564
  echo $ac_n "(cached) $ac_c" 1>&6
 
1565
else
 
1566
  ac_save_LIBS="$LIBS"
 
1567
LIBS="-lpthread  $LIBS"
 
1568
cat > conftest.$ac_ext <<EOF
 
1569
#line 1570 "configure"
 
1570
#include "confdefs.h"
 
1571
/* Override any gcc2 internal prototype to avoid an error.  */
 
1572
/* We use char because int might match the return type of a gcc2
 
1573
    builtin and then its argument prototype would still apply.  */
 
1574
char pthread_mutex_init();
 
1575
 
 
1576
int main() {
 
1577
pthread_mutex_init()
 
1578
; return 0; }
 
1579
EOF
 
1580
if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1581
  rm -rf conftest*
 
1582
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1583
else
 
1584
  echo "configure: failed program was:" >&5
 
1585
  cat conftest.$ac_ext >&5
 
1586
  rm -rf conftest*
 
1587
  eval "ac_cv_lib_$ac_lib_var=no"
 
1588
fi
 
1589
rm -f conftest*
 
1590
LIBS="$ac_save_LIBS"
 
1591
 
 
1592
fi
 
1593
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1594
  echo "$ac_t""yes" 1>&6
 
1595
  tcl_ok=yes
 
1596
else
 
1597
  echo "$ac_t""no" 1>&6
 
1598
tcl_ok=no
 
1599
fi
 
1600
 
 
1601
                if test "$tcl_ok" = "yes"; then
 
1602
                    # The space is needed
 
1603
                    THREADS_LIBS=" -lpthread"
 
1604
                    echo "$ac_t""yes" 1>&6
 
1605
                else
 
1606
                    TCL_THREADS=0
 
1607
                    echo "$ac_t""no" 1>&6
 
1608
                    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
 
1609
                fi
 
1610
                ;;
 
1611
        esac
 
1612
    else
 
1613
        TCL_THREADS=0
 
1614
        echo "$ac_t""no (default)" 1>&6
 
1615
    fi
 
1616
 
 
1617
 
 
1618
 
 
1619
#--------------------------------------------------------------------
 
1620
# The statement below defines a collection of symbols related to
 
1621
# building as a shared library instead of a static library.
 
1622
#--------------------------------------------------------------------
 
1623
 
 
1624
 
 
1625
    echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
 
1626
echo "configure:1627: checking how to build libraries" >&5
 
1627
    # Check whether --enable-shared or --disable-shared was given.
 
1628
if test "${enable_shared+set}" = set; then
 
1629
  enableval="$enable_shared"
 
1630
  tcl_ok=$enableval
 
1631
else
 
1632
  tcl_ok=yes
 
1633
fi
 
1634
 
 
1635
 
 
1636
    if test "${enable_shared+set}" = set; then
 
1637
        enableval="$enable_shared"
 
1638
        tcl_ok=$enableval
 
1639
    else
 
1640
        tcl_ok=yes
 
1641
    fi
 
1642
 
 
1643
    if test "$tcl_ok" = "yes" ; then
 
1644
        echo "$ac_t""shared" 1>&6
 
1645
        SHARED_BUILD=1
 
1646
    else
 
1647
        echo "$ac_t""static" 1>&6
 
1648
        SHARED_BUILD=0
 
1649
        cat >> confdefs.h <<\EOF
 
1650
#define STATIC_BUILD 1
 
1651
EOF
 
1652
 
 
1653
    fi
 
1654
 
 
1655
 
 
1656
#--------------------------------------------------------------------
 
1657
# This macro figures out what flags to use with the compiler/linker
 
1658
# when building shared/static debug/optimized objects.  This information
 
1659
# is all taken from the tclConfig.sh file.
 
1660
#--------------------------------------------------------------------
 
1661
 
 
1662
CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
 
1663
CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
 
1664
LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
 
1665
LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
 
1666
SHLIB_LD=${TCL_SHLIB_LD}
 
1667
STLIB_LD=${TCL_STLIB_LD}
 
1668
SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
 
1669
 
 
1670
 
 
1671
 
 
1672
 
 
1673
 
 
1674
 
 
1675
 
 
1676
 
 
1677
#--------------------------------------------------------------------
 
1678
# Set the default compiler switches based on the --enable-symbols 
 
1679
# option.
 
1680
#--------------------------------------------------------------------
 
1681
 
 
1682
 
 
1683
    case "`uname -s`" in
 
1684
        *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
 
1685
            tcl_dbgx=d
 
1686
        ;;
 
1687
        *)
 
1688
            tcl_dbgx=g
 
1689
        ;;
 
1690
    esac
 
1691
 
 
1692
    echo $ac_n "checking for build with symbols""... $ac_c" 1>&6
 
1693
echo "configure:1694: checking for build with symbols" >&5
 
1694
    # Check whether --enable-symbols or --disable-symbols was given.
 
1695
if test "${enable_symbols+set}" = set; then
 
1696
  enableval="$enable_symbols"
 
1697
  tcl_ok=$enableval
 
1698
else
 
1699
  tcl_ok=no
 
1700
fi
 
1701
 
 
1702
    if test "$tcl_ok" = "yes"; then
 
1703
        CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
 
1704
        LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
 
1705
        DBGX=${tcl_dbgx}
 
1706
        TCL_DBGX=${tcl_dbgx}
 
1707
        echo "$ac_t""yes" 1>&6
 
1708
    else
 
1709
        CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
 
1710
        LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
 
1711
        DBGX=""
 
1712
        TCL_DBGX=""
 
1713
        echo "$ac_t""no" 1>&6
 
1714
    fi
 
1715
 
 
1716
    
 
1717
    
 
1718
    
 
1719
 
 
1720
 
 
1721
if test "${SHARED_BUILD}" = "1" ; then
 
1722
    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}'
 
1723
else
 
1724
    CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}'
 
1725
fi
 
1726
 
 
1727
#--------------------------------------------------------------------
 
1728
# Everyone should be linking against the Tcl stub library.  If you
 
1729
# can't for some reason, remove this definition.  If you aren't using
 
1730
# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
 
1731
# link against the non-stubbed Tcl library.
 
1732
#--------------------------------------------------------------------
 
1733
 
 
1734
cat >> confdefs.h <<\EOF
 
1735
#define USE_TCL_STUBS 1
 
1736
EOF
 
1737
 
 
1738
 
 
1739
#--------------------------------------------------------------------
 
1740
# This macro generates a line to use when building a library.  It
 
1741
# depends on values set by the SC_ENABLE_SHARED, SC_ENABLE_SYMBOLS,
 
1742
# and SC_LOAD_TCLCONFIG macros above.
 
1743
#--------------------------------------------------------------------
 
1744
 
 
1745
 
 
1746
    case "`uname -s`" in
 
1747
        *win32* | *WIN32* | *CYGWIN_NT* |*CYGWIN_98*|*CYGWIN_95*)
 
1748
            if test "${CC-cc}" = "cl"; then
 
1749
                MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(\$@_OBJECTS) "
 
1750
                MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS} \$(LDFLAGS) -out:\$@ \$(\$@_OBJECTS) "
 
1751
            fi
 
1752
            ;;
 
1753
        *)
 
1754
            MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(\$@_OBJECTS)"
 
1755
            MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(\$@_OBJECTS) \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS}"
 
1756
            ;;
 
1757
    esac
 
1758
 
 
1759
    if test "${SHARED_BUILD}" = "1" ; then
 
1760
        MAKE_LIB=${MAKE_SHARED_LIB}
 
1761
    else
 
1762
        MAKE_LIB=${MAKE_STATIC_LIB}
 
1763
    fi
 
1764
 
 
1765
    
 
1766
    
 
1767
    
 
1768
 
 
1769
 
 
1770
#--------------------------------------------------------------------
 
1771
# eval these two values to dereference the ${DBGX} variable.
 
1772
#--------------------------------------------------------------------
 
1773
 
 
1774
eval "SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
 
1775
eval "UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}"
 
1776
 
 
1777
#--------------------------------------------------------------------
 
1778
# Shared libraries and static libraries have different names.
 
1779
# Also, windows libraries and unix libraries have different names.
 
1780
# For the OpenSSL version, I chose to use the same library names that
 
1781
# OpenSSL uses as its default names.
 
1782
#--------------------------------------------------------------------
 
1783
 
 
1784
if test -n "${OPENSSL}"; then
 
1785
 
 
1786
    case "`uname -s`" in
 
1787
        *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
 
1788
            if test "${SHARED_BUILD}" = "1" ; then
 
1789
                SHLIB_LD_LIBS="\"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\" ${TCL_SHLIB_LD_LIBS} \"`${CYGPATH} ${SSL_LIB_DIR}/ssleay32.lib`\" \"`${CYGPATH} ${SSL_LIB_DIR}/libeay32.lib`\""
 
1790
                eval "${PACKAGE}_LIB_FILE=${PACKAGE}${SHARED_LIB_SUFFIX}"
 
1791
                RANLIB=:
 
1792
            else
 
1793
                eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}"
 
1794
            fi
 
1795
        ;;
 
1796
        *)
 
1797
            if test "${SHARED_BUILD}" = "1" ; then
 
1798
                SHLIB_LD_LIBS="${TCL_STUB_LIB_SPEC} -L${SSL_LIB_DIR} -lssl -L${SSL_LIB_DIR} -lcrypto ${GCCPATH} ${GCCLIB}"
 
1799
                eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${SHARED_LIB_SUFFIX}"
 
1800
                RANLIB=:
 
1801
            else
 
1802
                eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}"
 
1803
            fi
 
1804
        ;;
 
1805
    esac
 
1806
else
 
1807
    case "`uname -s`" in
 
1808
        *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
 
1809
            if test "${SHARED_BUILD}" = "1" ; then
 
1810
                SHLIB_LD_LIBS="\"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\" ${TCL_SHLIB_LD_LIBS} \"`${CYGPATH} ${SSL_LIB_DIR}/sslc32.lib`\""
 
1811
                eval "${PACKAGE}_LIB_FILE=${PACKAGE}${SHARED_LIB_SUFFIX}"
 
1812
                RANLIB=:
 
1813
            else
 
1814
                eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}"
 
1815
            fi
 
1816
        ;;
 
1817
        *)
 
1818
            if test "${SHARED_BUILD}" = "1" ; then
 
1819
                SHLIB_LD_LIBS="${TCL_STUB_LIB_SPEC} -L${SSL_LIB_DIR} -lsslc"
 
1820
                eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${SHARED_LIB_SUFFIX}"
 
1821
                RANLIB=:
 
1822
            else
 
1823
                eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}"
 
1824
            fi
 
1825
        ;;
 
1826
    esac
 
1827
fi
 
1828
 
 
1829
 
 
1830
 
 
1831
 
 
1832
#--------------------------------------------------------------------
 
1833
# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
 
1834
# file during the install process.  Don't run the TCLSH_PROG through
 
1835
# ${CYGPATH} because it's being used directly by make.
 
1836
# Require that we use a tclsh shell version 8.2 or later since earlier
 
1837
# versions have bugs in the pkg_mkIndex routine.
 
1838
#--------------------------------------------------------------------
 
1839
 
 
1840
 
 
1841
    echo $ac_n "checking for tclsh""... $ac_c" 1>&6
 
1842
echo "configure:1843: checking for tclsh" >&5
 
1843
 
 
1844
    if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then
 
1845
  echo $ac_n "(cached) $ac_c" 1>&6
 
1846
else
 
1847
  
 
1848
        search_path=`echo ${exec_prefix}/bin:${prefix}/bin:${TCL_BIN_DIR}:${TCL_BIN_DIR}/../bin:${PATH} | sed -e 's/:/ /g'`
 
1849
        for dir in $search_path ; do
 
1850
            for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \
 
1851
                    `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do
 
1852
                if test x"$ac_cv_path_tclsh" = x ; then
 
1853
                    if test -f "$j" ; then
 
1854
                        ac_cv_path_tclsh=$j
 
1855
                        break
 
1856
                    fi
 
1857
                fi
 
1858
            done
 
1859
        done
 
1860
    
 
1861
fi
 
1862
 
 
1863
 
 
1864
    if test -f "$ac_cv_path_tclsh" ; then
 
1865
        TCLSH_PROG=$ac_cv_path_tclsh
 
1866
        echo "$ac_t""$TCLSH_PROG" 1>&6
 
1867
    else
 
1868
        { echo "configure: error: No tclsh found in PATH:  $search_path" 1>&2; exit 1; }
 
1869
    fi
 
1870
    
 
1871
 
 
1872
 
 
1873
#--------------------------------------------------------------------
 
1874
# Finally, substitute all of the various values into the Makefile.
 
1875
#--------------------------------------------------------------------
 
1876
 
 
1877
trap '' 1 2 15
 
1878
cat > confcache <<\EOF
 
1879
# This file is a shell script that caches the results of configure
 
1880
# tests run on this system so they can be shared between configure
 
1881
# scripts and configure runs.  It is not useful on other systems.
 
1882
# If it contains results you don't want to keep, you may remove or edit it.
 
1883
#
 
1884
# By default, configure uses ./config.cache as the cache file,
 
1885
# creating it if it does not exist already.  You can give configure
 
1886
# the --cache-file=FILE option to use a different cache file; that is
 
1887
# what configure does when it calls configure scripts in
 
1888
# subdirectories, so they share the cache.
 
1889
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1890
# config.status only pays attention to the cache file if you give it the
 
1891
# --recheck option to rerun configure.
 
1892
#
 
1893
EOF
 
1894
# The following way of writing the cache mishandles newlines in values,
 
1895
# but we know of no workaround that is simple, portable, and efficient.
 
1896
# So, don't put newlines in cache variables' values.
 
1897
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1898
# and sets the high bit in the cache file unless we assign to the vars.
 
1899
(set) 2>&1 |
 
1900
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1901
  *ac_space=\ *)
 
1902
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1903
    # turns \\\\ into \\, and sed turns \\ into \).
 
1904
    sed -n \
 
1905
      -e "s/'/'\\\\''/g" \
 
1906
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1907
    ;;
 
1908
  *)
 
1909
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1910
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1911
    ;;
 
1912
  esac >> confcache
 
1913
if cmp -s $cache_file confcache; then
 
1914
  :
 
1915
else
 
1916
  if test -w $cache_file; then
 
1917
    echo "updating cache $cache_file"
 
1918
    cat confcache > $cache_file
 
1919
  else
 
1920
    echo "not updating unwritable cache $cache_file"
 
1921
  fi
 
1922
fi
 
1923
rm -f confcache
 
1924
 
 
1925
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1926
 
 
1927
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1928
# Let make expand exec_prefix.
 
1929
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1930
 
 
1931
# Any assignment to VPATH causes Sun make to only execute
 
1932
# the first set of double-colon rules, so remove it if not needed.
 
1933
# If there is a colon in the path, we need to keep it.
 
1934
if test "x$srcdir" = x.; then
 
1935
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1936
fi
 
1937
 
 
1938
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1939
 
 
1940
# Transform confdefs.h into DEFS.
 
1941
# Protect against shell expansion while executing Makefile rules.
 
1942
# Protect against Makefile macro expansion.
 
1943
cat > conftest.defs <<\EOF
 
1944
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
 
1945
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
 
1946
s%\[%\\&%g
 
1947
s%\]%\\&%g
 
1948
s%\$%$$%g
 
1949
EOF
 
1950
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
 
1951
rm -f conftest.defs
 
1952
 
 
1953
 
 
1954
# Without the "./", some shells look in PATH for config.status.
 
1955
: ${CONFIG_STATUS=./config.status}
 
1956
 
 
1957
echo creating $CONFIG_STATUS
 
1958
rm -f $CONFIG_STATUS
 
1959
cat > $CONFIG_STATUS <<EOF
 
1960
#! /bin/sh
 
1961
# Generated automatically by configure.
 
1962
# Run this file to recreate the current configuration.
 
1963
# This directory was configured as follows,
 
1964
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1965
#
 
1966
# $0 $ac_configure_args
 
1967
#
 
1968
# Compiler output produced by configure, useful for debugging
 
1969
# configure, is in ./config.log if it exists.
 
1970
 
 
1971
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1972
for ac_option
 
1973
do
 
1974
  case "\$ac_option" in
 
1975
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1976
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1977
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1978
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1979
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1980
    exit 0 ;;
 
1981
  -help | --help | --hel | --he | --h)
 
1982
    echo "\$ac_cs_usage"; exit 0 ;;
 
1983
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1984
  esac
 
1985
done
 
1986
 
 
1987
ac_given_srcdir=$srcdir
 
1988
ac_given_INSTALL="$INSTALL"
 
1989
 
 
1990
trap 'rm -fr `echo "Makefile \
 
1991
        pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1992
EOF
 
1993
cat >> $CONFIG_STATUS <<EOF
 
1994
 
 
1995
# Protect against being on the right side of a sed subst in config.status.
 
1996
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1997
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1998
$ac_vpsub
 
1999
$extrasub
 
2000
s%@SHELL@%$SHELL%g
 
2001
s%@CFLAGS@%$CFLAGS%g
 
2002
s%@CPPFLAGS@%$CPPFLAGS%g
 
2003
s%@CXXFLAGS@%$CXXFLAGS%g
 
2004
s%@FFLAGS@%$FFLAGS%g
 
2005
s%@DEFS@%$DEFS%g
 
2006
s%@LDFLAGS@%$LDFLAGS%g
 
2007
s%@LIBS@%$LIBS%g
 
2008
s%@exec_prefix@%$exec_prefix%g
 
2009
s%@prefix@%$prefix%g
 
2010
s%@program_transform_name@%$program_transform_name%g
 
2011
s%@bindir@%$bindir%g
 
2012
s%@sbindir@%$sbindir%g
 
2013
s%@libexecdir@%$libexecdir%g
 
2014
s%@datadir@%$datadir%g
 
2015
s%@sysconfdir@%$sysconfdir%g
 
2016
s%@sharedstatedir@%$sharedstatedir%g
 
2017
s%@localstatedir@%$localstatedir%g
 
2018
s%@libdir@%$libdir%g
 
2019
s%@includedir@%$includedir%g
 
2020
s%@oldincludedir@%$oldincludedir%g
 
2021
s%@infodir@%$infodir%g
 
2022
s%@mandir@%$mandir%g
 
2023
s%@CONFIGDIR@%$CONFIGDIR%g
 
2024
s%@PACKAGE@%$PACKAGE%g
 
2025
s%@VERSION@%$VERSION%g
 
2026
s%@SSL_DIR@%$SSL_DIR%g
 
2027
s%@SSL_LIB_DIR@%$SSL_LIB_DIR%g
 
2028
s%@SSL_INCLUDE_DIR@%$SSL_INCLUDE_DIR%g
 
2029
s%@CC@%$CC%g
 
2030
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
2031
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
2032
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
2033
s%@SET_MAKE@%$SET_MAKE%g
 
2034
s%@RANLIB@%$RANLIB%g
 
2035
s%@OBJEXT@%$OBJEXT%g
 
2036
s%@EXEEXT@%$EXEEXT%g
 
2037
s%@CYGPATH@%$CYGPATH%g
 
2038
s%@RELPATH@%$RELPATH%g
 
2039
s%@SSL_INCLUDE_DIR_NATIVE@%$SSL_INCLUDE_DIR_NATIVE%g
 
2040
s%@TCL_DBGX@%$TCL_DBGX%g
 
2041
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
 
2042
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
 
2043
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
 
2044
s%@TCL_LIBS@%$TCL_LIBS%g
 
2045
s%@TCL_DEFS@%$TCL_DEFS%g
 
2046
s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
 
2047
s%@TCL_EXTRA_CFLAGS@%$TCL_EXTRA_CFLAGS%g
 
2048
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
 
2049
s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
 
2050
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
 
2051
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
 
2052
s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g
 
2053
s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
 
2054
s%@TCL_INCLUDES@%$TCL_INCLUDES%g
 
2055
s%@CLEANFILES@%$CLEANFILES%g
 
2056
s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
 
2057
s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
 
2058
s%@STLIB_LD@%$STLIB_LD%g
 
2059
s%@SHLIB_LD@%$SHLIB_LD%g
 
2060
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
 
2061
s%@SHLIB_LDFLAGS@%$SHLIB_LDFLAGS%g
 
2062
s%@CFLAGS_DEFAULT@%$CFLAGS_DEFAULT%g
 
2063
s%@LDFLAGS_DEFAULT@%$LDFLAGS_DEFAULT%g
 
2064
s%@MAKE_LIB@%$MAKE_LIB%g
 
2065
s%@MAKE_SHARED_LIB@%$MAKE_SHARED_LIB%g
 
2066
s%@MAKE_STATIC_LIB@%$MAKE_STATIC_LIB%g
 
2067
s%@tls_LIB_FILE@%$tls_LIB_FILE%g
 
2068
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
 
2069
s%@TCLSH_PROG@%$TCLSH_PROG%g
 
2070
 
 
2071
CEOF
 
2072
EOF
 
2073
 
 
2074
cat >> $CONFIG_STATUS <<\EOF
 
2075
 
 
2076
# Split the substitutions into bite-sized pieces for seds with
 
2077
# small command number limits, like on Digital OSF/1 and HP-UX.
 
2078
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
2079
ac_file=1 # Number of current file.
 
2080
ac_beg=1 # First line for current file.
 
2081
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
2082
ac_more_lines=:
 
2083
ac_sed_cmds=""
 
2084
while $ac_more_lines; do
 
2085
  if test $ac_beg -gt 1; then
 
2086
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
2087
  else
 
2088
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
2089
  fi
 
2090
  if test ! -s conftest.s$ac_file; then
 
2091
    ac_more_lines=false
 
2092
    rm -f conftest.s$ac_file
 
2093
  else
 
2094
    if test -z "$ac_sed_cmds"; then
 
2095
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
2096
    else
 
2097
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
2098
    fi
 
2099
    ac_file=`expr $ac_file + 1`
 
2100
    ac_beg=$ac_end
 
2101
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
2102
  fi
 
2103
done
 
2104
if test -z "$ac_sed_cmds"; then
 
2105
  ac_sed_cmds=cat
 
2106
fi
 
2107
EOF
 
2108
 
 
2109
cat >> $CONFIG_STATUS <<EOF
 
2110
 
 
2111
CONFIG_FILES=\${CONFIG_FILES-"Makefile \
 
2112
        pkgIndex.tcl"}
 
2113
EOF
 
2114
cat >> $CONFIG_STATUS <<\EOF
 
2115
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
2116
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2117
  case "$ac_file" in
 
2118
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2119
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2120
  *) ac_file_in="${ac_file}.in" ;;
 
2121
  esac
 
2122
 
 
2123
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
2124
 
 
2125
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
2126
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
2127
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
2128
    # The file is in a subdirectory.
 
2129
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
2130
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
2131
    # A "../" for each directory in $ac_dir_suffix.
 
2132
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
2133
  else
 
2134
    ac_dir_suffix= ac_dots=
 
2135
  fi
 
2136
 
 
2137
  case "$ac_given_srcdir" in
 
2138
  .)  srcdir=.
 
2139
      if test -z "$ac_dots"; then top_srcdir=.
 
2140
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
2141
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
2142
  *) # Relative path.
 
2143
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
2144
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
2145
  esac
 
2146
 
 
2147
  case "$ac_given_INSTALL" in
 
2148
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
2149
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
2150
  esac
 
2151
 
 
2152
  echo creating "$ac_file"
 
2153
  rm -f "$ac_file"
 
2154
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
2155
  case "$ac_file" in
 
2156
  *Makefile*) ac_comsub="1i\\
 
2157
# $configure_input" ;;
 
2158
  *) ac_comsub= ;;
 
2159
  esac
 
2160
 
 
2161
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2162
  sed -e "$ac_comsub
 
2163
s%@configure_input@%$configure_input%g
 
2164
s%@srcdir@%$srcdir%g
 
2165
s%@top_srcdir@%$top_srcdir%g
 
2166
s%@INSTALL@%$INSTALL%g
 
2167
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
2168
fi; done
 
2169
rm -f conftest.s*
 
2170
 
 
2171
EOF
 
2172
cat >> $CONFIG_STATUS <<EOF
 
2173
 
 
2174
EOF
 
2175
cat >> $CONFIG_STATUS <<\EOF
 
2176
 
 
2177
exit 0
 
2178
EOF
 
2179
chmod +x $CONFIG_STATUS
 
2180
rm -fr confdefs* $ac_clean_files
 
2181
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
2182