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.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-bsafe Use RSA BSAFE SSL-C libs. Default is to use OpenSSL libs"
17
--with-ssl-dir=DIR SSL root directory"
19
--enable-patents Use patented code. Default is enabled"
21
--enable-gcc allow use of gcc if available [--disable-gcc]"
23
--with-gcclib link with libgcc to resolve symbols in a gcc-built openssl library"
25
--with-tcl directory containing tcl configuration (tclConfig.sh)"
27
--with-tclinclude directory containing the public Tcl header files."
29
--enable-threads build with threads"
31
--enable-shared build and link with shared libraries [--enable-shared]"
33
--enable-symbols build with debugging symbols [--disable-symbols]"
35
# Initialize some variables set by options.
36
# The variables have the same names as the options, with
37
# dashes changed to underlines.
39
cache_file=./config.cache
48
program_transform_name=s,x,x,
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'
69
# Initialize some other variables.
72
SHELL=${CONFIG_SHELL-/bin/sh}
73
# Maximum number of lines to put in a shell here document.
80
# If the previous option needs an argument, assign it.
81
if test -n "$ac_prev"; then
82
eval "$ac_prev=\$ac_option"
88
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92
# Accept the important Cygnus configure options, so we can diagnose typos.
96
-bindir | --bindir | --bindi | --bind | --bin | --bi)
98
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99
bindir="$ac_optarg" ;;
101
-build | --build | --buil | --bui | --bu)
103
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
104
build="$ac_optarg" ;;
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" ;;
113
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117
datadir="$ac_optarg" ;;
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; }
125
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126
eval "enable_${ac_feature}=no" ;;
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; }
134
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139
eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
150
-gas | --gas | --ga | --g)
151
# Obsolete; use --with-gas.
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.
158
Usage: configure [options] [host]
159
Options: [defaults in brackets after descriptions]
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
169
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
176
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177
--sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
204
if test -n "$ac_help"; then
205
echo "--enable and --with options recognized:$ac_help"
209
-host | --host | --hos | --ho)
211
-host=* | --host=* | --hos=* | --ho=*)
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" ;;
221
-infodir | --infodir | --infodi | --infod | --info | --inf)
223
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224
infodir="$ac_optarg" ;;
226
-libdir | --libdir | --libdi | --libd)
228
-libdir=* | --libdir=* | --libdi=* | --libd=*)
229
libdir="$ac_optarg" ;;
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" ;;
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" ;;
247
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250
mandir="$ac_optarg" ;;
253
# Obsolete; use --without-fp.
256
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
260
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
261
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
273
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276
prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
309
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
310
| -silent | --silent | --silen | --sile | --sil)
313
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317
sbindir="$ac_optarg" ;;
319
-sharedstatedir | --sharedstatedir | --sharedstatedi \
320
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321
| --sharedst | --shareds | --shared | --share | --shar \
323
ac_prev=sharedstatedir ;;
324
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328
sharedstatedir="$ac_optarg" ;;
330
-site | --site | --sit)
332
-site=* | --site=* | --sit=*)
335
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338
srcdir="$ac_optarg" ;;
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" ;;
347
-target | --target | --targe | --targ | --tar | --ta | --t)
349
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350
target="$ac_optarg" ;;
352
-v | -verbose | --verbose | --verbos | --verbo | --verb)
355
-version | --version | --versio | --versi | --vers)
356
echo "configure generated by autoconf version 2.13"
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; }
365
ac_package=`echo $ac_package| sed 's/-/_/g'`
370
eval "with_${ac_package}='$ac_optarg'" ;;
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; }
378
ac_package=`echo $ac_package| sed 's/-/_/g'`
379
eval "with_${ac_package}=no" ;;
382
# Obsolete; use --with-x.
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" ;;
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" ;;
399
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
415
if test -n "$ac_prev"; then
416
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
# File descriptor usage:
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
437
This file contains any messages produced by compilers while
438
running configure, to aid debugging if configure makes a mistake.
441
# Strip out --no-create and --no-recursion so they do not pile up.
442
# Also quote any args containing shell metacharacters.
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" ;;
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
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.
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.
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.
481
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484
if test ! -r $srcdir/$ac_unique_file; then
488
ac_srcdir_defaulted=no
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; }
494
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
504
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
514
if test -r "$cache_file"; then
515
echo "loading cache $cache_file"
518
echo "creating cache $cache_file"
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
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
540
ac_n= ac_c='\c' ac_t=
546
for ac_dir in config $srcdir/config; do
547
if test -f $ac_dir/install-sh; then
549
ac_install_sh="$ac_aux_dir/install-sh -c"
551
elif test -f $ac_dir/install.sh; then
553
ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
564
CONFIGDIR=${srcdir}/config
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
#--------------------------------------------------------------------
580
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL}
581
NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION}
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
#--------------------------------------------------------------------
592
eval cat >> confdefs.h <<EOF
593
#define VERSION "${VERSION}"
596
eval cat >> confdefs.h <<EOF
597
#define PACKAGE "${PACKAGE}"
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
#--------------------------------------------------------------------
609
# Check whether --enable-bsafe or --disable-bsafe was given.
610
if test "${enable_bsafe+set}" = set; then
611
enableval="$enable_bsafe"
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
#--------------------------------------------------------------------
626
if test -n "${OPENSSL}"; then
627
SSL_DIR='/usr/local/ssl'
628
cat >> confdefs.h <<\EOF
632
cat >> confdefs.h <<\EOF
637
SSL_DIR='/use/local/sslc'
638
cat >> confdefs.h <<\EOF
642
cat >> confdefs.h <<\EOF
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
#--------------------------------------------------------------------
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
659
*win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
661
cat >> confdefs.h <<\EOF
676
echo "$ac_t""${PLATFORM}" 1>&6
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"
686
if test ! -d "${SSL_DIR}"; then
687
{ echo "configure: error: ${SSL_DIR} is not a valid directory" 1>&2; exit 1; }
690
#--------------------------------------------------------------------
691
# The OpenSSL and BSAFE SSL-C directory structures differ.
692
#--------------------------------------------------------------------
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; }
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; }
712
#--------------------------------------------------------------------
713
# Determine if we should use the patented encryption code
714
#--------------------------------------------------------------------
716
# Check whether --enable-patents or --disable-patents was given.
717
if test "${enable_patents+set}" = set; then
718
enableval="$enable_patents"
725
if test ${PATENTS} = no; then
726
cat >> confdefs.h <<\EOF
727
#define "NO_PATENTS" 1
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
#--------------------------------------------------------------------
740
# Check whether --enable-gcc or --disable-gcc was given.
741
if test "${enable_gcc+set}" = set; then
742
enableval="$enable_gcc"
748
if test "$ok" = "yes"; then
752
*win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
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
767
if test -n "$CC"; then
768
ac_cv_prog_CC="$CC" # Let the user override the test.
770
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
772
for ac_dir in $ac_dummy; do
773
test -z "$ac_dir" && ac_dir=.
774
if test -f $ac_dir/$ac_word; then
783
if test -n "$CC"; then
784
echo "$ac_t""$CC" 1>&6
786
echo "$ac_t""no" 1>&6
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
797
if test -n "$CC"; then
798
ac_cv_prog_CC="$CC" # Let the user override the test.
800
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
824
set dummy "$ac_dir/$ac_word" "$@"
832
if test -n "$CC"; then
833
echo "$ac_t""$CC" 1>&6
835
echo "$ac_t""no" 1>&6
838
if test -z "$CC"; then
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
848
if test -n "$CC"; then
849
ac_cv_prog_CC="$CC" # Let the user override the test.
851
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
853
for ac_dir in $ac_dummy; do
854
test -z "$ac_dir" && ac_dir=.
855
if test -f $ac_dir/$ac_word; then
864
if test -n "$CC"; then
865
echo "$ac_t""$CC" 1>&6
867
echo "$ac_t""no" 1>&6
872
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
885
cat > conftest.$ac_ext << EOF
887
#line 888 "configure"
888
#include "confdefs.h"
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
898
ac_cv_prog_cc_cross=yes
901
echo "configure: failed program was:" >&5
902
cat conftest.$ac_ext >&5
903
ac_cv_prog_cc_works=no
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
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; }
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
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
927
cat > conftest.c <<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
939
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
941
if test $ac_cv_prog_gcc = yes; then
947
ac_test_CFLAGS="${CFLAGS+set}"
948
ac_save_CFLAGS="$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
955
echo 'void f(){}' > conftest.c
956
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
975
if test "$GCC" = yes; then
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
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
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.
1004
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
1016
ac_cv_path_install="$ac_dir/$ac_prog -c"
1027
if test "${ac_cv_path_install+set}" = set; then
1028
INSTALL="$ac_cv_path_install"
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"
1037
echo "$ac_t""$INSTALL" 1>&6
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}'
1043
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1045
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
1054
# This doesn't seem to be necessary if the RSA BSAFE SSL-C libraries
1055
# are used instead of OpenSSL.
1056
#--------------------------------------------------------------------
1058
if test -n "${OPENSSL}"; then
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
1063
# Check whether --with-gcclib or --without-gcclib was given.
1064
if test "${with_gcclib+set}" = set; then
1065
withval="$with_gcclib"
1072
if test "x${GCCLIB}" = "x" ; then
1073
echo "$ac_t""no" 1>&6
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
1084
#--------------------------------------------------------------------
1085
# Checks to see if the make program sets the $MAKE variable.
1086
#--------------------------------------------------------------------
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
1094
cat > conftestmake <<\EOF
1096
@echo 'ac_maketemp="${MAKE}"'
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
1103
eval ac_cv_prog_make_${ac_make}_set=no
1107
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1108
echo "$ac_t""yes" 1>&6
1111
echo "$ac_t""no" 1>&6
1112
SET_MAKE="MAKE=${MAKE-make}"
1116
#--------------------------------------------------------------------
1118
#--------------------------------------------------------------------
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
1127
if test -n "$RANLIB"; then
1128
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1130
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1140
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1143
RANLIB="$ac_cv_prog_RANLIB"
1144
if test -n "$RANLIB"; then
1145
echo "$ac_t""$RANLIB" 1>&6
1147
echo "$ac_t""no" 1>&6
1151
#--------------------------------------------------------------------
1152
# This macro performs additional compiler tests.
1153
#--------------------------------------------------------------------
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
1160
cat > conftest.$ac_ext <<EOF
1161
#line 1162 "configure"
1162
#include "confdefs.h"
1167
#define __CYGWIN__ __CYGWIN32__
1172
if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1176
echo "configure: failed program was:" >&5
1177
cat conftest.$ac_ext >&5
1185
echo "$ac_t""$ac_cv_cygwin" 1>&6
1187
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1189
#--------------------------------------------------------------------
1190
# Determines the correct binary file extension (.o, .obj, .exe etc.)
1191
#--------------------------------------------------------------------
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
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
1204
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1208
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1213
echo "$ac_t""$ac_cv_objext" 1>&6
1214
OBJEXT=$ac_cv_objext
1215
ac_objext=$ac_cv_objext
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
1222
cat > conftest.$ac_ext <<EOF
1223
#line 1224 "configure"
1224
#include "confdefs.h"
1230
if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1234
echo "configure: failed program was:" >&5
1235
cat conftest.$ac_ext >&5
1243
echo "$ac_t""$ac_cv_mingw32" 1>&6
1245
test "$ac_cv_mingw32" = yes && MINGW32=yes
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
1253
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1257
echo 'int main () { return 0; }' > conftest.$ac_ext
1259
if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1260
for file in conftest.*; do
1262
*.c | *.o | *.obj) ;;
1263
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1267
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1270
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1275
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1276
echo "$ac_t""${ac_cv_exeext}" 1>&6
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.
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.
1289
# This must be done before calling SC_PUBLIC_TCL_HEADERS or
1290
# SC_PRIVATE_TCL_HEADERS.
1291
#--------------------------------------------------------------------
1293
case "`uname -s`" in
1294
*win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
1295
CYGPATH="cygpath -w"
1307
SSL_INCLUDE_DIR_NATIVE=\"`${CYGPATH} ${SSL_INCLUDE_DIR}`\"
1311
#--------------------------------------------------------------------
1312
# Load the tclConfig.sh file
1313
#--------------------------------------------------------------------
1317
# Ok, lets find the tcl configuration
1318
# First, look for one uninstalled.
1319
# the alternative search directory is invoked by --with-tcl
1322
if test x"${no_tcl}" = x ; then
1323
# we reset no_tcl in case something fails here
1325
# Check whether --with-tcl or --without-tcl was given.
1326
if test "${with_tcl+set}" = set; then
1328
with_tclconfig=${withval}
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
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)`
1343
{ echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
1347
# then check for a private Tcl installation
1348
if test x"${ac_cv_c_tclconfig}" = x ; then
1351
`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
1353
`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
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)`
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)`
1375
# check in a few other private locations
1376
if test x"${ac_cv_c_tclconfig}" = x ; then
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)`
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
1396
TCL_BIN_DIR=${ac_cv_c_tclconfig}
1397
echo "$ac_t""found $TCL_BIN_DIR/tclConfig.sh" 1>&6
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
1405
if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
1406
echo "$ac_t""loading" 1>&6
1407
. $TCL_BIN_DIR/tclConfig.sh
1409
echo "$ac_t""file not found" 1>&6
1413
# The eval is required to do the TCL_DBGX substitution in the
1414
# TCL_LIB_FILE variable
1417
eval TCL_LIB_FILE=${TCL_LIB_FILE}
1418
eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
1438
echo $ac_n "checking for Tcl public headers""... $ac_c" 1>&6
1439
echo "configure:1440: checking for Tcl public headers" >&5
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}
1448
if test x"${with_tclinclude}" != x ; then
1449
if test -f "${with_tclinclude}/tcl.h" ; then
1450
ac_cv_c_tclh=${with_tclinclude}
1452
{ echo "configure: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" 1>&2; exit 1; }
1455
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
1456
echo $ac_n "(cached) $ac_c" 1>&6
1459
# Use the value from --with-tclinclude, if it was given
1461
if test x"${with_tclinclude}" != x ; then
1462
ac_cv_c_tclh=${with_tclinclude}
1464
# Check in the includedir, if --prefix was specified
1466
eval "temp_includedir=${includedir}"
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
1483
# Print a message based on how we determined the include path
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; }
1488
echo "$ac_t""${ac_cv_c_tclh}" 1>&6
1491
# Convert to a native path and substitute into the output files.
1493
INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
1495
TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
1500
#--------------------------------------------------------------------
1501
# A few miscellaneous platform-specific items:
1503
# Define a special symbol for Windows (BUILD_tls in this case) so
1504
# that we create the export library with the dll.
1506
# Clean up any extra files that Windows creates.
1508
# Define any extra compiler flags in the PACKAGE_CFLAGS variable.
1509
# These will be appended to the current set of compiler flags for
1511
#--------------------------------------------------------------------
1513
case "`uname -s`" in
1514
*win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
1515
cat >> confdefs.h <<EOF
1516
#define BUILD_${PACKAGE} 1
1519
CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc50.pch"
1527
#--------------------------------------------------------------------
1528
# Check whether --enable-threads or --disable-threads was given.
1529
# So far only Tcl responds to this one.
1530
#--------------------------------------------------------------------
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"
1544
if test "$tcl_ok" = "yes"; then
1546
cat >> confdefs.h <<\EOF
1547
#define TCL_THREADS 1
1550
cat >> confdefs.h <<\EOF
1551
#define _REENTRANT 1
1555
case "`uname -s`" in
1556
*win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
1557
echo "$ac_t""yes" 1>&6
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
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();
1577
pthread_mutex_init()
1580
if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1582
eval "ac_cv_lib_$ac_lib_var=yes"
1584
echo "configure: failed program was:" >&5
1585
cat conftest.$ac_ext >&5
1587
eval "ac_cv_lib_$ac_lib_var=no"
1590
LIBS="$ac_save_LIBS"
1593
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594
echo "$ac_t""yes" 1>&6
1597
echo "$ac_t""no" 1>&6
1601
if test "$tcl_ok" = "yes"; then
1602
# The space is needed
1603
THREADS_LIBS=" -lpthread"
1604
echo "$ac_t""yes" 1>&6
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
1614
echo "$ac_t""no (default)" 1>&6
1619
#--------------------------------------------------------------------
1620
# The statement below defines a collection of symbols related to
1621
# building as a shared library instead of a static library.
1622
#--------------------------------------------------------------------
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"
1636
if test "${enable_shared+set}" = set; then
1637
enableval="$enable_shared"
1643
if test "$tcl_ok" = "yes" ; then
1644
echo "$ac_t""shared" 1>&6
1647
echo "$ac_t""static" 1>&6
1649
cat >> confdefs.h <<\EOF
1650
#define STATIC_BUILD 1
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
#--------------------------------------------------------------------
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}
1677
#--------------------------------------------------------------------
1678
# Set the default compiler switches based on the --enable-symbols
1680
#--------------------------------------------------------------------
1683
case "`uname -s`" in
1684
*win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95*)
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"
1702
if test "$tcl_ok" = "yes"; then
1703
CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
1704
LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
1706
TCL_DBGX=${tcl_dbgx}
1707
echo "$ac_t""yes" 1>&6
1709
CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
1710
LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
1713
echo "$ac_t""no" 1>&6
1721
if test "${SHARED_BUILD}" = "1" ; then
1722
CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}'
1724
CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}'
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
#--------------------------------------------------------------------
1734
cat >> confdefs.h <<\EOF
1735
#define USE_TCL_STUBS 1
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
#--------------------------------------------------------------------
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) "
1754
MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(\$@_OBJECTS)"
1755
MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(\$@_OBJECTS) \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS}"
1759
if test "${SHARED_BUILD}" = "1" ; then
1760
MAKE_LIB=${MAKE_SHARED_LIB}
1762
MAKE_LIB=${MAKE_STATIC_LIB}
1770
#--------------------------------------------------------------------
1771
# eval these two values to dereference the ${DBGX} variable.
1772
#--------------------------------------------------------------------
1774
eval "SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
1775
eval "UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}"
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
#--------------------------------------------------------------------
1784
if test -n "${OPENSSL}"; then
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}"
1793
eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}"
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}"
1802
eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}"
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}"
1814
eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}"
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}"
1823
eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}"
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
#--------------------------------------------------------------------
1841
echo $ac_n "checking for tclsh""... $ac_c" 1>&6
1842
echo "configure:1843: checking for tclsh" >&5
1844
if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then
1845
echo $ac_n "(cached) $ac_c" 1>&6
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
1864
if test -f "$ac_cv_path_tclsh" ; then
1865
TCLSH_PROG=$ac_cv_path_tclsh
1866
echo "$ac_t""$TCLSH_PROG" 1>&6
1868
{ echo "configure: error: No tclsh found in PATH: $search_path" 1>&2; exit 1; }
1873
#--------------------------------------------------------------------
1874
# Finally, substitute all of the various values into the Makefile.
1875
#--------------------------------------------------------------------
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.
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.
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.
1900
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1902
# `set' does not quote correctly, so add quotes (double-quote substitution
1903
# turns \\\\ into \\, and sed turns \\ into \).
1905
-e "s/'/'\\\\''/g" \
1906
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1913
if cmp -s $cache_file confcache; then
1916
if test -w $cache_file; then
1917
echo "updating cache $cache_file"
1918
cat confcache > $cache_file
1920
echo "not updating unwritable cache $cache_file"
1925
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1927
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1928
# Let make expand exec_prefix.
1929
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
1938
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
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
1950
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1954
# Without the "./", some shells look in PATH for config.status.
1955
: ${CONFIG_STATUS=./config.status}
1957
echo creating $CONFIG_STATUS
1958
rm -f $CONFIG_STATUS
1959
cat > $CONFIG_STATUS <<EOF
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`:
1966
# $0 $ac_configure_args
1968
# Compiler output produced by configure, useful for debugging
1969
# configure, is in ./config.log if it exists.
1971
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
1981
-help | --help | --hel | --he | --h)
1982
echo "\$ac_cs_usage"; exit 0 ;;
1983
*) echo "\$ac_cs_usage"; exit 1 ;;
1987
ac_given_srcdir=$srcdir
1988
ac_given_INSTALL="$INSTALL"
1990
trap 'rm -fr `echo "Makefile \
1991
pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1993
cat >> $CONFIG_STATUS <<EOF
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
2001
s%@CFLAGS@%$CFLAGS%g
2002
s%@CPPFLAGS@%$CPPFLAGS%g
2003
s%@CXXFLAGS@%$CXXFLAGS%g
2004
s%@FFLAGS@%$FFLAGS%g
2006
s%@LDFLAGS@%$LDFLAGS%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
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
2074
cat >> $CONFIG_STATUS <<\EOF
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.
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
2088
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2090
if test ! -s conftest.s$ac_file; then
2092
rm -f conftest.s$ac_file
2094
if test -z "$ac_sed_cmds"; then
2095
ac_sed_cmds="sed -f conftest.s$ac_file"
2097
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2099
ac_file=`expr $ac_file + 1`
2101
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2104
if test -z "$ac_sed_cmds"; then
2109
cat >> $CONFIG_STATUS <<EOF
2111
CONFIG_FILES=\${CONFIG_FILES-"Makefile \
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".
2118
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2119
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2120
*) ac_file_in="${ac_file}.in" ;;
2123
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
2134
ac_dir_suffix= ac_dots=
2137
case "$ac_given_srcdir" in
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" ;;
2143
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2144
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2147
case "$ac_given_INSTALL" in
2148
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2149
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2152
echo creating "$ac_file"
2154
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2156
*Makefile*) ac_comsub="1i\\
2157
# $configure_input" ;;
2161
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
2172
cat >> $CONFIG_STATUS <<EOF
2175
cat >> $CONFIG_STATUS <<\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