OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [itcl/] [win/] [configure] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#! /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_default_prefix=/usr/local
15
ac_help="$ac_help
16
  --enable-gcc            allow use of gcc if available"
17
ac_help="$ac_help
18
  --with-tcl=DIR          use Tcl 8.0 binaries from DIR"
19
ac_help="$ac_help
20
  --with-cflags=FLAGS     set compiler flags to FLAGS"
21
ac_help="$ac_help
22
  --enable-shared         build libitcl as a shared library"
23
 
24
# Initialize some variables set by options.
25
# The variables have the same names as the options, with
26
# dashes changed to underlines.
27
build=NONE
28
cache_file=./config.cache
29
exec_prefix=NONE
30
host=NONE
31
no_create=
32
nonopt=NONE
33
no_recursion=
34
prefix=NONE
35
program_prefix=NONE
36
program_suffix=NONE
37
program_transform_name=s,x,x,
38
silent=
39
site=
40
srcdir=
41
target=NONE
42
verbose=
43
x_includes=NONE
44
x_libraries=NONE
45
bindir='${exec_prefix}/bin'
46
sbindir='${exec_prefix}/sbin'
47
libexecdir='${exec_prefix}/libexec'
48
datadir='${prefix}/share'
49
sysconfdir='${prefix}/etc'
50
sharedstatedir='${prefix}/com'
51
localstatedir='${prefix}/var'
52
libdir='${exec_prefix}/lib'
53
includedir='${prefix}/include'
54
oldincludedir='/usr/include'
55
infodir='${prefix}/info'
56
mandir='${prefix}/man'
57
 
58
# Initialize some other variables.
59
subdirs=
60
MFLAGS= MAKEFLAGS=
61
SHELL=${CONFIG_SHELL-/bin/sh}
62
# Maximum number of lines to put in a shell here document.
63
ac_max_here_lines=12
64
 
65
ac_prev=
66
for ac_option
67
do
68
 
69
  # If the previous option needs an argument, assign it.
70
  if test -n "$ac_prev"; then
71
    eval "$ac_prev=\$ac_option"
72
    ac_prev=
73
    continue
74
  fi
75
 
76
  case "$ac_option" in
77
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78
  *) ac_optarg= ;;
79
  esac
80
 
81
  # Accept the important Cygnus configure options, so we can diagnose typos.
82
 
83
  case "$ac_option" in
84
 
85
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
86
    ac_prev=bindir ;;
87
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88
    bindir="$ac_optarg" ;;
89
 
90
  -build | --build | --buil | --bui | --bu)
91
    ac_prev=build ;;
92
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93
    build="$ac_optarg" ;;
94
 
95
  -cache-file | --cache-file | --cache-fil | --cache-fi \
96
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97
    ac_prev=cache_file ;;
98
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100
    cache_file="$ac_optarg" ;;
101
 
102
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103
    ac_prev=datadir ;;
104
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105
  | --da=*)
106
    datadir="$ac_optarg" ;;
107
 
108
  -disable-* | --disable-*)
109
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110
    # Reject names that are not valid shell variable names.
111
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113
    fi
114
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115
    eval "enable_${ac_feature}=no" ;;
116
 
117
  -enable-* | --enable-*)
118
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119
    # Reject names that are not valid shell variable names.
120
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122
    fi
123
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124
    case "$ac_option" in
125
      *=*) ;;
126
      *) ac_optarg=yes ;;
127
    esac
128
    eval "enable_${ac_feature}='$ac_optarg'" ;;
129
 
130
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132
  | --exec | --exe | --ex)
133
    ac_prev=exec_prefix ;;
134
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136
  | --exec=* | --exe=* | --ex=*)
137
    exec_prefix="$ac_optarg" ;;
138
 
139
  -gas | --gas | --ga | --g)
140
    # Obsolete; use --with-gas.
141
    with_gas=yes ;;
142
 
143
  -help | --help | --hel | --he)
144
    # Omit some internal or obsolete options to make the list less imposing.
145
    # This message is too long to be a string in the A/UX 3.1 sh.
146
    cat << EOF
147
Usage: configure [options] [host]
148
Options: [defaults in brackets after descriptions]
149
Configuration:
150
  --cache-file=FILE       cache test results in FILE
151
  --help                  print this message
152
  --no-create             do not create output files
153
  --quiet, --silent       do not print \`checking...' messages
154
  --version               print the version of autoconf that created configure
155
Directory and file names:
156
  --prefix=PREFIX         install architecture-independent files in PREFIX
157
                          [$ac_default_prefix]
158
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159
                          [same as prefix]
160
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
161
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163
  --datadir=DIR           read-only architecture-independent data in DIR
164
                          [PREFIX/share]
165
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167
                          [PREFIX/com]
168
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170
  --includedir=DIR        C header files in DIR [PREFIX/include]
171
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172
  --infodir=DIR           info documentation in DIR [PREFIX/info]
173
  --mandir=DIR            man documentation in DIR [PREFIX/man]
174
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
175
  --program-prefix=PREFIX prepend PREFIX to installed program names
176
  --program-suffix=SUFFIX append SUFFIX to installed program names
177
  --program-transform-name=PROGRAM
178
                          run sed PROGRAM on installed program names
179
EOF
180
    cat << EOF
181
Host type:
182
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
183
  --host=HOST             configure for HOST [guessed]
184
  --target=TARGET         configure for TARGET [TARGET=HOST]
185
Features and packages:
186
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190
  --x-includes=DIR        X include files are in DIR
191
  --x-libraries=DIR       X library files are in DIR
192
EOF
193
    if test -n "$ac_help"; then
194
      echo "--enable and --with options recognized:$ac_help"
195
    fi
196
    exit 0 ;;
197
 
198
  -host | --host | --hos | --ho)
199
    ac_prev=host ;;
200
  -host=* | --host=* | --hos=* | --ho=*)
201
    host="$ac_optarg" ;;
202
 
203
  -includedir | --includedir | --includedi | --included | --include \
204
  | --includ | --inclu | --incl | --inc)
205
    ac_prev=includedir ;;
206
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207
  | --includ=* | --inclu=* | --incl=* | --inc=*)
208
    includedir="$ac_optarg" ;;
209
 
210
  -infodir | --infodir | --infodi | --infod | --info | --inf)
211
    ac_prev=infodir ;;
212
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213
    infodir="$ac_optarg" ;;
214
 
215
  -libdir | --libdir | --libdi | --libd)
216
    ac_prev=libdir ;;
217
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
218
    libdir="$ac_optarg" ;;
219
 
220
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221
  | --libexe | --libex | --libe)
222
    ac_prev=libexecdir ;;
223
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224
  | --libexe=* | --libex=* | --libe=*)
225
    libexecdir="$ac_optarg" ;;
226
 
227
  -localstatedir | --localstatedir | --localstatedi | --localstated \
228
  | --localstate | --localstat | --localsta | --localst \
229
  | --locals | --local | --loca | --loc | --lo)
230
    ac_prev=localstatedir ;;
231
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234
    localstatedir="$ac_optarg" ;;
235
 
236
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237
    ac_prev=mandir ;;
238
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239
    mandir="$ac_optarg" ;;
240
 
241
  -nfp | --nfp | --nf)
242
    # Obsolete; use --without-fp.
243
    with_fp=no ;;
244
 
245
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246
  | --no-cr | --no-c)
247
    no_create=yes ;;
248
 
249
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251
    no_recursion=yes ;;
252
 
253
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255
  | --oldin | --oldi | --old | --ol | --o)
256
    ac_prev=oldincludedir ;;
257
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260
    oldincludedir="$ac_optarg" ;;
261
 
262
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263
    ac_prev=prefix ;;
264
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265
    prefix="$ac_optarg" ;;
266
 
267
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
268
  | --program-pre | --program-pr | --program-p)
269
    ac_prev=program_prefix ;;
270
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
271
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272
    program_prefix="$ac_optarg" ;;
273
 
274
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
275
  | --program-suf | --program-su | --program-s)
276
    ac_prev=program_suffix ;;
277
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
278
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279
    program_suffix="$ac_optarg" ;;
280
 
281
  -program-transform-name | --program-transform-name \
282
  | --program-transform-nam | --program-transform-na \
283
  | --program-transform-n | --program-transform- \
284
  | --program-transform | --program-transfor \
285
  | --program-transfo | --program-transf \
286
  | --program-trans | --program-tran \
287
  | --progr-tra | --program-tr | --program-t)
288
    ac_prev=program_transform_name ;;
289
  -program-transform-name=* | --program-transform-name=* \
290
  | --program-transform-nam=* | --program-transform-na=* \
291
  | --program-transform-n=* | --program-transform-=* \
292
  | --program-transform=* | --program-transfor=* \
293
  | --program-transfo=* | --program-transf=* \
294
  | --program-trans=* | --program-tran=* \
295
  | --progr-tra=* | --program-tr=* | --program-t=*)
296
    program_transform_name="$ac_optarg" ;;
297
 
298
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299
  | -silent | --silent | --silen | --sile | --sil)
300
    silent=yes ;;
301
 
302
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303
    ac_prev=sbindir ;;
304
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305
  | --sbi=* | --sb=*)
306
    sbindir="$ac_optarg" ;;
307
 
308
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
309
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310
  | --sharedst | --shareds | --shared | --share | --shar \
311
  | --sha | --sh)
312
    ac_prev=sharedstatedir ;;
313
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316
  | --sha=* | --sh=*)
317
    sharedstatedir="$ac_optarg" ;;
318
 
319
  -site | --site | --sit)
320
    ac_prev=site ;;
321
  -site=* | --site=* | --sit=*)
322
    site="$ac_optarg" ;;
323
 
324
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325
    ac_prev=srcdir ;;
326
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327
    srcdir="$ac_optarg" ;;
328
 
329
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330
  | --syscon | --sysco | --sysc | --sys | --sy)
331
    ac_prev=sysconfdir ;;
332
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334
    sysconfdir="$ac_optarg" ;;
335
 
336
  -target | --target | --targe | --targ | --tar | --ta | --t)
337
    ac_prev=target ;;
338
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339
    target="$ac_optarg" ;;
340
 
341
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
342
    verbose=yes ;;
343
 
344
  -version | --version | --versio | --versi | --vers)
345
    echo "configure generated by autoconf version 2.13"
346
    exit 0 ;;
347
 
348
  -with-* | --with-*)
349
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350
    # Reject names that are not valid shell variable names.
351
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353
    fi
354
    ac_package=`echo $ac_package| sed 's/-/_/g'`
355
    case "$ac_option" in
356
      *=*) ;;
357
      *) ac_optarg=yes ;;
358
    esac
359
    eval "with_${ac_package}='$ac_optarg'" ;;
360
 
361
  -without-* | --without-*)
362
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363
    # Reject names that are not valid shell variable names.
364
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366
    fi
367
    ac_package=`echo $ac_package| sed 's/-/_/g'`
368
    eval "with_${ac_package}=no" ;;
369
 
370
  --x)
371
    # Obsolete; use --with-x.
372
    with_x=yes ;;
373
 
374
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375
  | --x-incl | --x-inc | --x-in | --x-i)
376
    ac_prev=x_includes ;;
377
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379
    x_includes="$ac_optarg" ;;
380
 
381
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
382
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383
    ac_prev=x_libraries ;;
384
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386
    x_libraries="$ac_optarg" ;;
387
 
388
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389
    ;;
390
 
391
  *)
392
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393
      echo "configure: warning: $ac_option: invalid host type" 1>&2
394
    fi
395
    if test "x$nonopt" != xNONE; then
396
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397
    fi
398
    nonopt="$ac_option"
399
    ;;
400
 
401
  esac
402
done
403
 
404
if test -n "$ac_prev"; then
405
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406
fi
407
 
408
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
 
410
# File descriptor usage:
411
# 0 standard input
412
# 1 file creation
413
# 2 errors and warnings
414
# 3 some systems may open it to /dev/tty
415
# 4 used on the Kubota Titan
416
# 6 checking for... messages and results
417
# 5 compiler messages saved in config.log
418
if test "$silent" = yes; then
419
  exec 6>/dev/null
420
else
421
  exec 6>&1
422
fi
423
exec 5>./config.log
424
 
425
echo "\
426
This file contains any messages produced by compilers while
427
running configure, to aid debugging if configure makes a mistake.
428
" 1>&5
429
 
430
# Strip out --no-create and --no-recursion so they do not pile up.
431
# Also quote any args containing shell metacharacters.
432
ac_configure_args=
433
for ac_arg
434
do
435
  case "$ac_arg" in
436
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437
  | --no-cr | --no-c) ;;
438
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443
  esac
444
done
445
 
446
# NLS nuisances.
447
# Only set these to C if already set.  These must not be set unconditionally
448
# because not all systems understand e.g. LANG=C (notably SCO).
449
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450
# Non-C LC_CTYPE values break the ctype check.
451
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
 
456
# confdefs.h avoids OS command line length limits that DEFS can exceed.
457
rm -rf conftest* confdefs.h
458
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
459
echo > confdefs.h
460
 
461
# A filename unique to this package, relative to the directory that
462
# configure is in, which we can look for to find out if srcdir is correct.
463
ac_unique_file=../generic/itcl.h
464
 
465
# Find the source files, if location was not specified.
466
if test -z "$srcdir"; then
467
  ac_srcdir_defaulted=yes
468
  # Try the directory containing this script, then its parent.
469
  ac_prog=$0
470
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472
  srcdir=$ac_confdir
473
  if test ! -r $srcdir/$ac_unique_file; then
474
    srcdir=..
475
  fi
476
else
477
  ac_srcdir_defaulted=no
478
fi
479
if test ! -r $srcdir/$ac_unique_file; then
480
  if test "$ac_srcdir_defaulted" = yes; then
481
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482
  else
483
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484
  fi
485
fi
486
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
 
488
# Prefer explicitly selected file to automatically selected ones.
489
if test -z "$CONFIG_SITE"; then
490
  if test "x$prefix" != xNONE; then
491
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492
  else
493
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494
  fi
495
fi
496
for ac_site_file in $CONFIG_SITE; do
497
  if test -r "$ac_site_file"; then
498
    echo "loading site script $ac_site_file"
499
    . "$ac_site_file"
500
  fi
501
done
502
 
503
if test -r "$cache_file"; then
504
  echo "loading cache $cache_file"
505
  . $cache_file
506
else
507
  echo "creating cache $cache_file"
508
  > $cache_file
509
fi
510
 
511
ac_ext=c
512
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513
ac_cpp='$CPP $CPPFLAGS'
514
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516
cross_compiling=$ac_cv_prog_cc_cross
517
 
518
ac_exeext=
519
ac_objext=o
520
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523
    ac_n= ac_c='
524
' ac_t='        '
525
  else
526
    ac_n=-n ac_c= ac_t=
527
  fi
528
else
529
  ac_n= ac_c='\c' ac_t=
530
fi
531
 
532
 
533
 
534
ac_aux_dir=
535
for ac_dir in ../../../ $srcdir/../../../; do
536
  if test -f $ac_dir/install-sh; then
537
    ac_aux_dir=$ac_dir
538
    ac_install_sh="$ac_aux_dir/install-sh -c"
539
    break
540
  elif test -f $ac_dir/install.sh; then
541
    ac_aux_dir=$ac_dir
542
    ac_install_sh="$ac_aux_dir/install.sh -c"
543
    break
544
  fi
545
done
546
if test -z "$ac_aux_dir"; then
547
  { echo "configure: error: can not find install-sh or install.sh in ../../../ $srcdir/../../../" 1>&2; exit 1; }
548
fi
549
ac_config_guess=$ac_aux_dir/config.guess
550
ac_config_sub=$ac_aux_dir/config.sub
551
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
552
 
553
 
554
# Make sure we can run config.sub.
555
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
556
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
557
fi
558
 
559
echo $ac_n "checking host system type""... $ac_c" 1>&6
560
echo "configure:561: checking host system type" >&5
561
 
562
host_alias=$host
563
case "$host_alias" in
564
NONE)
565
  case $nonopt in
566
  NONE)
567
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
568
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
569
    fi ;;
570
  *) host_alias=$nonopt ;;
571
  esac ;;
572
esac
573
 
574
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
575
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
576
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
577
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
578
echo "$ac_t""$host" 1>&6
579
 
580
 
581
# Extract the first word of "ranlib", so it can be a program name with args.
582
set dummy ranlib; ac_word=$2
583
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584
echo "configure:585: checking for $ac_word" >&5
585
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
586
  echo $ac_n "(cached) $ac_c" 1>&6
587
else
588
  if test -n "$RANLIB"; then
589
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
590
else
591
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
592
  ac_dummy="$PATH"
593
  for ac_dir in $ac_dummy; do
594
    test -z "$ac_dir" && ac_dir=.
595
    if test -f $ac_dir/$ac_word; then
596
      ac_cv_prog_RANLIB="ranlib"
597
      break
598
    fi
599
  done
600
  IFS="$ac_save_ifs"
601
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
602
fi
603
fi
604
RANLIB="$ac_cv_prog_RANLIB"
605
if test -n "$RANLIB"; then
606
  echo "$ac_t""$RANLIB" 1>&6
607
else
608
  echo "$ac_t""no" 1>&6
609
fi
610
 
611
 
612
# Extract the first word of "gcc", so it can be a program name with args.
613
set dummy gcc; ac_word=$2
614
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615
echo "configure:616: checking for $ac_word" >&5
616
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617
  echo $ac_n "(cached) $ac_c" 1>&6
618
else
619
  if test -n "$CC"; then
620
  ac_cv_prog_CC="$CC" # Let the user override the test.
621
else
622
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
623
  ac_dummy="$PATH"
624
  for ac_dir in $ac_dummy; do
625
    test -z "$ac_dir" && ac_dir=.
626
    if test -f $ac_dir/$ac_word; then
627
      ac_cv_prog_CC="gcc"
628
      break
629
    fi
630
  done
631
  IFS="$ac_save_ifs"
632
fi
633
fi
634
CC="$ac_cv_prog_CC"
635
if test -n "$CC"; then
636
  echo "$ac_t""$CC" 1>&6
637
else
638
  echo "$ac_t""no" 1>&6
639
fi
640
 
641
if test -z "$CC"; then
642
  # Extract the first word of "cc", so it can be a program name with args.
643
set dummy cc; ac_word=$2
644
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645
echo "configure:646: checking for $ac_word" >&5
646
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647
  echo $ac_n "(cached) $ac_c" 1>&6
648
else
649
  if test -n "$CC"; then
650
  ac_cv_prog_CC="$CC" # Let the user override the test.
651
else
652
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
653
  ac_prog_rejected=no
654
  ac_dummy="$PATH"
655
  for ac_dir in $ac_dummy; do
656
    test -z "$ac_dir" && ac_dir=.
657
    if test -f $ac_dir/$ac_word; then
658
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
659
        ac_prog_rejected=yes
660
        continue
661
      fi
662
      ac_cv_prog_CC="cc"
663
      break
664
    fi
665
  done
666
  IFS="$ac_save_ifs"
667
if test $ac_prog_rejected = yes; then
668
  # We found a bogon in the path, so make sure we never use it.
669
  set dummy $ac_cv_prog_CC
670
  shift
671
  if test $# -gt 0; then
672
    # We chose a different compiler from the bogus one.
673
    # However, it has the same basename, so the bogon will be chosen
674
    # first if we set CC to just the basename; use the full file name.
675
    shift
676
    set dummy "$ac_dir/$ac_word" "$@"
677
    shift
678
    ac_cv_prog_CC="$@"
679
  fi
680
fi
681
fi
682
fi
683
CC="$ac_cv_prog_CC"
684
if test -n "$CC"; then
685
  echo "$ac_t""$CC" 1>&6
686
else
687
  echo "$ac_t""no" 1>&6
688
fi
689
 
690
  if test -z "$CC"; then
691
    case "`uname -s`" in
692
    *win32* | *WIN32*)
693
      # Extract the first word of "cl", so it can be a program name with args.
694
set dummy cl; ac_word=$2
695
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696
echo "configure:697: checking for $ac_word" >&5
697
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698
  echo $ac_n "(cached) $ac_c" 1>&6
699
else
700
  if test -n "$CC"; then
701
  ac_cv_prog_CC="$CC" # Let the user override the test.
702
else
703
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
704
  ac_dummy="$PATH"
705
  for ac_dir in $ac_dummy; do
706
    test -z "$ac_dir" && ac_dir=.
707
    if test -f $ac_dir/$ac_word; then
708
      ac_cv_prog_CC="cl"
709
      break
710
    fi
711
  done
712
  IFS="$ac_save_ifs"
713
fi
714
fi
715
CC="$ac_cv_prog_CC"
716
if test -n "$CC"; then
717
  echo "$ac_t""$CC" 1>&6
718
else
719
  echo "$ac_t""no" 1>&6
720
fi
721
 ;;
722
    esac
723
  fi
724
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
725
fi
726
 
727
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
728
echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
729
 
730
ac_ext=c
731
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
732
ac_cpp='$CPP $CPPFLAGS'
733
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
734
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
735
cross_compiling=$ac_cv_prog_cc_cross
736
 
737
cat > conftest.$ac_ext << EOF
738
 
739
#line 740 "configure"
740
#include "confdefs.h"
741
 
742
main(){return(0);}
743
EOF
744
if { (eval echo configure:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
745
  ac_cv_prog_cc_works=yes
746
  # If we can't run a trivial program, we are probably using a cross compiler.
747
  if (./conftest; exit) 2>/dev/null; then
748
    ac_cv_prog_cc_cross=no
749
  else
750
    ac_cv_prog_cc_cross=yes
751
  fi
752
else
753
  echo "configure: failed program was:" >&5
754
  cat conftest.$ac_ext >&5
755
  ac_cv_prog_cc_works=no
756
fi
757
rm -fr conftest*
758
ac_ext=c
759
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760
ac_cpp='$CPP $CPPFLAGS'
761
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763
cross_compiling=$ac_cv_prog_cc_cross
764
 
765
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
766
if test $ac_cv_prog_cc_works = no; then
767
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768
fi
769
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
770
echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
771
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
772
cross_compiling=$ac_cv_prog_cc_cross
773
 
774
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
775
echo "configure:776: checking whether we are using GNU C" >&5
776
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
777
  echo $ac_n "(cached) $ac_c" 1>&6
778
else
779
  cat > conftest.c <
780
#ifdef __GNUC__
781
  yes;
782
#endif
783
EOF
784
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
785
  ac_cv_prog_gcc=yes
786
else
787
  ac_cv_prog_gcc=no
788
fi
789
fi
790
 
791
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792
 
793
if test $ac_cv_prog_gcc = yes; then
794
  GCC=yes
795
else
796
  GCC=
797
fi
798
 
799
ac_test_CFLAGS="${CFLAGS+set}"
800
ac_save_CFLAGS="$CFLAGS"
801
CFLAGS=
802
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
803
echo "configure:804: checking whether ${CC-cc} accepts -g" >&5
804
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
805
  echo $ac_n "(cached) $ac_c" 1>&6
806
else
807
  echo 'void f(){}' > conftest.c
808
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
809
  ac_cv_prog_cc_g=yes
810
else
811
  ac_cv_prog_cc_g=no
812
fi
813
rm -f conftest*
814
 
815
fi
816
 
817
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
818
if test "$ac_test_CFLAGS" = set; then
819
  CFLAGS="$ac_save_CFLAGS"
820
elif test $ac_cv_prog_cc_g = yes; then
821
  if test "$GCC" = yes; then
822
    CFLAGS="-g -O2"
823
  else
824
    CFLAGS="-g"
825
  fi
826
else
827
  if test "$GCC" = yes; then
828
    CFLAGS="-O2"
829
  else
830
    CFLAGS=
831
  fi
832
fi
833
 
834
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
835
echo "configure:836: checking for object suffix" >&5
836
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
837
  echo $ac_n "(cached) $ac_c" 1>&6
838
else
839
  rm -f conftest*
840
echo 'int i = 1;' > conftest.$ac_ext
841
if { (eval echo configure:842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
842
  for ac_file in conftest.*; do
843
    case $ac_file in
844
    *.c) ;;
845
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
846
    esac
847
  done
848
else
849
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
850
fi
851
rm -f conftest*
852
fi
853
 
854
echo "$ac_t""$ac_cv_objext" 1>&6
855
OBJEXT=$ac_cv_objext
856
ac_objext=$ac_cv_objext
857
 
858
NM=${NM-nm}
859
 
860
AS=${AS-as}
861
 
862
LD=${LD-ld}
863
 
864
DLLTOOL=${DLLTOOL-dlltool}
865
 
866
WINDRES=${WINDRES-windres}
867
 
868
 
869
# Find a good install program.  We prefer a C program (faster),
870
# so one script is as good as another.  But avoid the broken or
871
# incompatible versions:
872
# SysV /etc/install, /usr/sbin/install
873
# SunOS /usr/etc/install
874
# IRIX /sbin/install
875
# AIX /bin/install
876
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
877
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
878
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
879
# ./install, which can be erroneously created by make from ./install.sh.
880
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
881
echo "configure:882: checking for a BSD compatible install" >&5
882
if test -z "$INSTALL"; then
883
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
884
  echo $ac_n "(cached) $ac_c" 1>&6
885
else
886
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
887
  for ac_dir in $PATH; do
888
    # Account for people who put trailing slashes in PATH elements.
889
    case "$ac_dir/" in
890
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
891
    *)
892
      # OSF1 and SCO ODT 3.0 have their own names for install.
893
      # Don't use installbsd from OSF since it installs stuff as root
894
      # by default.
895
      for ac_prog in ginstall scoinst install; do
896
        if test -f $ac_dir/$ac_prog; then
897
          if test $ac_prog = install &&
898
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
899
            # AIX install.  It has an incompatible calling convention.
900
            :
901
          else
902
            ac_cv_path_install="$ac_dir/$ac_prog -c"
903
            break 2
904
          fi
905
        fi
906
      done
907
      ;;
908
    esac
909
  done
910
  IFS="$ac_save_IFS"
911
 
912
fi
913
  if test "${ac_cv_path_install+set}" = set; then
914
    INSTALL="$ac_cv_path_install"
915
  else
916
    # As a last resort, use the slow shell script.  We don't cache a
917
    # path for INSTALL within a source directory, because that will
918
    # break other packages using the cache if that directory is
919
    # removed, or if the path is relative.
920
    INSTALL="$ac_install_sh"
921
  fi
922
fi
923
echo "$ac_t""$INSTALL" 1>&6
924
 
925
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
926
# It thinks the first close brace ends the variable substitution.
927
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
928
 
929
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
930
 
931
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
932
 
933
 
934
# needed for the subtle differences between cygwin and mingw32
935
case "${host}" in
936
*-*-cygwin*)
937
        TCL_ALLOC_OBJ=
938
        DLL_LDLIBS=-lcygwin
939
        DLL_LDFLAGS='-nostartfiles -Wl,--dll'
940
        ;;
941
*-*-mingw32*)
942
        TCL_ALLOC_OBJ='$(TMPDIR)/tclAlloc.o'
943
        DLL_LDLIBS=
944
        DLL_LDFLAGS='-mdll'
945
        ;;
946
esac
947
 
948
 
949
 
950
ITCL_VERSION=3.0
951
ITCL_MAJOR_VERSION=3
952
ITCL_MINOR_VERSION=0
953
VERSION=${ITCL_MAJOR_VERSION}${ITCL_MINOR_VERSION}
954
 
955
 
956
if test "${prefix}" = "NONE"; then
957
    prefix=/usr/local
958
fi
959
if test "${exec_prefix}" = "NONE"; then
960
    exec_prefix=$prefix
961
fi
962
 
963
# -----------------------------------------------------------------------
964
#   Set up a new default --prefix.  If a previous installation of
965
#   [incr Tcl] can be found searching $PATH use that directory.
966
# -----------------------------------------------------------------------
967
 
968
 
969
if test "x$prefix" = xNONE; then
970
echo $ac_n "checking for prefix by $ac_c" 1>&6
971
# Extract the first word of "itkwish", so it can be a program name with args.
972
set dummy itkwish; ac_word=$2
973
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974
echo "configure:975: checking for $ac_word" >&5
975
if eval "test \"`echo '$''{'ac_cv_path_ITKWISH'+set}'`\" = set"; then
976
  echo $ac_n "(cached) $ac_c" 1>&6
977
else
978
  case "$ITKWISH" in
979
  /*)
980
  ac_cv_path_ITKWISH="$ITKWISH" # Let the user override the test with a path.
981
  ;;
982
  ?:/*)
983
  ac_cv_path_ITKWISH="$ITKWISH" # Let the user override the test with a dos path.
984
  ;;
985
  *)
986
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
987
  ac_dummy="$PATH"
988
  for ac_dir in $ac_dummy; do
989
    test -z "$ac_dir" && ac_dir=.
990
    if test -f $ac_dir/$ac_word; then
991
      ac_cv_path_ITKWISH="$ac_dir/$ac_word"
992
      break
993
    fi
994
  done
995
  IFS="$ac_save_ifs"
996
  ;;
997
esac
998
fi
999
ITKWISH="$ac_cv_path_ITKWISH"
1000
if test -n "$ITKWISH"; then
1001
  echo "$ac_t""$ITKWISH" 1>&6
1002
else
1003
  echo "$ac_t""no" 1>&6
1004
fi
1005
 
1006
  if test -n "$ac_cv_path_ITKWISH"; then
1007
    prefix=`echo $ac_cv_path_ITKWISH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
1008
  fi
1009
fi
1010
 
1011
 
1012
if test "${prefix}" = "NONE"; then
1013
    prefix=/usr/local
1014
fi
1015
if test "${exec_prefix}" = "NONE"; then
1016
    exec_prefix=$prefix
1017
fi
1018
 
1019
# -----------------------------------------------------------------------
1020
BUILD_DIR=`pwd`
1021
ITCL_SRC_DIR=`cd $srcdir/..; pwd`
1022
 
1023
if ! test "$GCC" = yes; then
1024
    tmp="`cygpath --windows $ITCL_SRC_DIR`"
1025
    ITCL_SRC_DIR="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1026
fi
1027
 
1028
cd ${BUILD_DIR}
1029
 
1030
# Check whether --enable-gcc or --disable-gcc was given.
1031
if test "${enable_gcc+set}" = set; then
1032
  enableval="$enable_gcc"
1033
  itcl_ok=$enableval
1034
else
1035
  itcl_ok=no
1036
fi
1037
 
1038
if test "$itcl_ok" = "yes"; then
1039
    # Extract the first word of "gcc", so it can be a program name with args.
1040
set dummy gcc; ac_word=$2
1041
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042
echo "configure:1043: checking for $ac_word" >&5
1043
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044
  echo $ac_n "(cached) $ac_c" 1>&6
1045
else
1046
  if test -n "$CC"; then
1047
  ac_cv_prog_CC="$CC" # Let the user override the test.
1048
else
1049
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1050
  ac_dummy="$PATH"
1051
  for ac_dir in $ac_dummy; do
1052
    test -z "$ac_dir" && ac_dir=.
1053
    if test -f $ac_dir/$ac_word; then
1054
      ac_cv_prog_CC="gcc"
1055
      break
1056
    fi
1057
  done
1058
  IFS="$ac_save_ifs"
1059
fi
1060
fi
1061
CC="$ac_cv_prog_CC"
1062
if test -n "$CC"; then
1063
  echo "$ac_t""$CC" 1>&6
1064
else
1065
  echo "$ac_t""no" 1>&6
1066
fi
1067
 
1068
if test -z "$CC"; then
1069
  # Extract the first word of "cc", so it can be a program name with args.
1070
set dummy cc; ac_word=$2
1071
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072
echo "configure:1073: checking for $ac_word" >&5
1073
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074
  echo $ac_n "(cached) $ac_c" 1>&6
1075
else
1076
  if test -n "$CC"; then
1077
  ac_cv_prog_CC="$CC" # Let the user override the test.
1078
else
1079
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1080
  ac_prog_rejected=no
1081
  ac_dummy="$PATH"
1082
  for ac_dir in $ac_dummy; do
1083
    test -z "$ac_dir" && ac_dir=.
1084
    if test -f $ac_dir/$ac_word; then
1085
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1086
        ac_prog_rejected=yes
1087
        continue
1088
      fi
1089
      ac_cv_prog_CC="cc"
1090
      break
1091
    fi
1092
  done
1093
  IFS="$ac_save_ifs"
1094
if test $ac_prog_rejected = yes; then
1095
  # We found a bogon in the path, so make sure we never use it.
1096
  set dummy $ac_cv_prog_CC
1097
  shift
1098
  if test $# -gt 0; then
1099
    # We chose a different compiler from the bogus one.
1100
    # However, it has the same basename, so the bogon will be chosen
1101
    # first if we set CC to just the basename; use the full file name.
1102
    shift
1103
    set dummy "$ac_dir/$ac_word" "$@"
1104
    shift
1105
    ac_cv_prog_CC="$@"
1106
  fi
1107
fi
1108
fi
1109
fi
1110
CC="$ac_cv_prog_CC"
1111
if test -n "$CC"; then
1112
  echo "$ac_t""$CC" 1>&6
1113
else
1114
  echo "$ac_t""no" 1>&6
1115
fi
1116
 
1117
  if test -z "$CC"; then
1118
    case "`uname -s`" in
1119
    *win32* | *WIN32*)
1120
      # Extract the first word of "cl", so it can be a program name with args.
1121
set dummy cl; 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_CC'+set}'`\" = set"; then
1125
  echo $ac_n "(cached) $ac_c" 1>&6
1126
else
1127
  if test -n "$CC"; then
1128
  ac_cv_prog_CC="$CC" # 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_CC="cl"
1136
      break
1137
    fi
1138
  done
1139
  IFS="$ac_save_ifs"
1140
fi
1141
fi
1142
CC="$ac_cv_prog_CC"
1143
if test -n "$CC"; then
1144
  echo "$ac_t""$CC" 1>&6
1145
else
1146
  echo "$ac_t""no" 1>&6
1147
fi
1148
 ;;
1149
    esac
1150
  fi
1151
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1152
fi
1153
 
1154
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1155
echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1156
 
1157
ac_ext=c
1158
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159
ac_cpp='$CPP $CPPFLAGS'
1160
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162
cross_compiling=$ac_cv_prog_cc_cross
1163
 
1164
cat > conftest.$ac_ext << EOF
1165
 
1166
#line 1167 "configure"
1167
#include "confdefs.h"
1168
 
1169
main(){return(0);}
1170
EOF
1171
if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1172
  ac_cv_prog_cc_works=yes
1173
  # If we can't run a trivial program, we are probably using a cross compiler.
1174
  if (./conftest; exit) 2>/dev/null; then
1175
    ac_cv_prog_cc_cross=no
1176
  else
1177
    ac_cv_prog_cc_cross=yes
1178
  fi
1179
else
1180
  echo "configure: failed program was:" >&5
1181
  cat conftest.$ac_ext >&5
1182
  ac_cv_prog_cc_works=no
1183
fi
1184
rm -fr conftest*
1185
ac_ext=c
1186
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1187
ac_cpp='$CPP $CPPFLAGS'
1188
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1189
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1190
cross_compiling=$ac_cv_prog_cc_cross
1191
 
1192
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1193
if test $ac_cv_prog_cc_works = no; then
1194
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195
fi
1196
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1197
echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1198
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1199
cross_compiling=$ac_cv_prog_cc_cross
1200
 
1201
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1202
echo "configure:1203: checking whether we are using GNU C" >&5
1203
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1204
  echo $ac_n "(cached) $ac_c" 1>&6
1205
else
1206
  cat > conftest.c <
1207
#ifdef __GNUC__
1208
  yes;
1209
#endif
1210
EOF
1211
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1212
  ac_cv_prog_gcc=yes
1213
else
1214
  ac_cv_prog_gcc=no
1215
fi
1216
fi
1217
 
1218
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219
 
1220
if test $ac_cv_prog_gcc = yes; then
1221
  GCC=yes
1222
else
1223
  GCC=
1224
fi
1225
 
1226
ac_test_CFLAGS="${CFLAGS+set}"
1227
ac_save_CFLAGS="$CFLAGS"
1228
CFLAGS=
1229
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1230
echo "configure:1231: checking whether ${CC-cc} accepts -g" >&5
1231
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1232
  echo $ac_n "(cached) $ac_c" 1>&6
1233
else
1234
  echo 'void f(){}' > conftest.c
1235
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236
  ac_cv_prog_cc_g=yes
1237
else
1238
  ac_cv_prog_cc_g=no
1239
fi
1240
rm -f conftest*
1241
 
1242
fi
1243
 
1244
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1245
if test "$ac_test_CFLAGS" = set; then
1246
  CFLAGS="$ac_save_CFLAGS"
1247
elif test $ac_cv_prog_cc_g = yes; then
1248
  if test "$GCC" = yes; then
1249
    CFLAGS="-g -O2"
1250
  else
1251
    CFLAGS="-g"
1252
  fi
1253
else
1254
  if test "$GCC" = yes; then
1255
    CFLAGS="-O2"
1256
  else
1257
    CFLAGS=
1258
  fi
1259
fi
1260
 
1261
else
1262
    CC=${CC-cc}
1263
 
1264
fi
1265
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1266
echo "configure:1267: checking how to run the C preprocessor" >&5
1267
# On Suns, sometimes $CPP names a directory.
1268
if test -n "$CPP" && test -d "$CPP"; then
1269
  CPP=
1270
fi
1271
if test -z "$CPP"; then
1272
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1273
  echo $ac_n "(cached) $ac_c" 1>&6
1274
else
1275
    # This must be in double quotes, not single quotes, because CPP may get
1276
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1277
  CPP="${CC-cc} -E"
1278
  # On the NeXT, cc -E runs the code through the compiler's parser,
1279
  # not just through cpp.
1280
  cat > conftest.$ac_ext <
1281
#line 1282 "configure"
1282
#include "confdefs.h"
1283
#include 
1284
Syntax Error
1285
EOF
1286
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1287
{ (eval echo configure:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1288
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1289
if test -z "$ac_err"; then
1290
  :
1291
else
1292
  echo "$ac_err" >&5
1293
  echo "configure: failed program was:" >&5
1294
  cat conftest.$ac_ext >&5
1295
  rm -rf conftest*
1296
  CPP="${CC-cc} -E -traditional-cpp"
1297
  cat > conftest.$ac_ext <
1298
#line 1299 "configure"
1299
#include "confdefs.h"
1300
#include 
1301
Syntax Error
1302
EOF
1303
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304
{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1306
if test -z "$ac_err"; then
1307
  :
1308
else
1309
  echo "$ac_err" >&5
1310
  echo "configure: failed program was:" >&5
1311
  cat conftest.$ac_ext >&5
1312
  rm -rf conftest*
1313
  CPP="${CC-cc} -nologo -E"
1314
  cat > conftest.$ac_ext <
1315
#line 1316 "configure"
1316
#include "confdefs.h"
1317
#include 
1318
Syntax Error
1319
EOF
1320
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1321
{ (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1322
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1323
if test -z "$ac_err"; then
1324
  :
1325
else
1326
  echo "$ac_err" >&5
1327
  echo "configure: failed program was:" >&5
1328
  cat conftest.$ac_ext >&5
1329
  rm -rf conftest*
1330
  CPP=/lib/cpp
1331
fi
1332
rm -f conftest*
1333
fi
1334
rm -f conftest*
1335
fi
1336
rm -f conftest*
1337
  ac_cv_prog_CPP="$CPP"
1338
fi
1339
  CPP="$ac_cv_prog_CPP"
1340
else
1341
  ac_cv_prog_CPP="$CPP"
1342
fi
1343
echo "$ac_t""$CPP" 1>&6
1344
 
1345
for ac_hdr in unistd.h limits.h
1346
do
1347
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1348
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1349
echo "configure:1350: checking for $ac_hdr" >&5
1350
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1351
  echo $ac_n "(cached) $ac_c" 1>&6
1352
else
1353
  cat > conftest.$ac_ext <
1354
#line 1355 "configure"
1355
#include "confdefs.h"
1356
#include <$ac_hdr>
1357
EOF
1358
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1359
{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1360
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1361
if test -z "$ac_err"; then
1362
  rm -rf conftest*
1363
  eval "ac_cv_header_$ac_safe=yes"
1364
else
1365
  echo "$ac_err" >&5
1366
  echo "configure: failed program was:" >&5
1367
  cat conftest.$ac_ext >&5
1368
  rm -rf conftest*
1369
  eval "ac_cv_header_$ac_safe=no"
1370
fi
1371
rm -f conftest*
1372
fi
1373
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1374
  echo "$ac_t""yes" 1>&6
1375
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1376
  cat >> confdefs.h <
1377
#define $ac_tr_hdr 1
1378
EOF
1379
 
1380
else
1381
  echo "$ac_t""no" 1>&6
1382
fi
1383
done
1384
 
1385
 
1386
#--------------------------------------------------------------------
1387
#   See if there was a command-line option for where Tcl is;  if
1388
#   not, assume that its top-level directory is a sibling of ours.
1389
# CYGNUS LOCAL - Actually, tcl is one level higher - a sibling of the
1390
# itcl directory that contains itcl proper, itk & iwidgets.
1391
#--------------------------------------------------------------------
1392
 
1393
# Check whether --with-tcl or --without-tcl was given.
1394
if test "${with_tcl+set}" = set; then
1395
  withval="$with_tcl"
1396
  TCL_BIN_DIR=$withval
1397
else
1398
  TCL_BIN_DIR=`cd ../../../tcl/win; pwd`
1399
fi
1400
 
1401
 
1402
if test ! -f $TCL_BIN_DIR/../unix/tclConfig.sh; then
1403
    TCL_BIN_DIR=`cd ../../../tcl8.1/win;pwd`
1404
fi
1405
 
1406
if test ! -f $TCL_BIN_DIR/../unix/tclConfig.sh; then
1407
    { echo "configure: error: There's no tclConfig.sh in $TCL_BIN_DIR;  perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; }
1408
fi
1409
 
1410
#--------------------------------------------------------------------
1411
#   Read in configuration information generated by Tcl for shared
1412
#   libraries, and arrange for it to be substituted into our
1413
#   Makefile.
1414
#--------------------------------------------------------------------
1415
 
1416
file=$TCL_BIN_DIR/../unix/tclConfig.sh
1417
. $file
1418
 
1419
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1420
SHLIB_LD=$TCL_SHLIB_LD
1421
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1422
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1423
SHLIB_VERSION=$TCL_SHLIB_VERSION
1424
DL_LIBS=$TCL_DL_LIBS
1425
LD_FLAGS=$TCL_LD_FLAGS
1426
ITCL_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
1427
 
1428
echo $ac_n "checking whether C compiler is gcc""... $ac_c" 1>&6
1429
echo "configure:1430: checking whether C compiler is gcc" >&5
1430
if eval "test \"`echo '$''{'itcl_cv_prog_gcc'+set}'`\" = set"; then
1431
  echo $ac_n "(cached) $ac_c" 1>&6
1432
else
1433
 
1434
    cat > conftest.$ac_ext <
1435
#line 1436 "configure"
1436
#include "confdefs.h"
1437
 
1438
#ifdef __GNUC__
1439
_cc_is_gcc_
1440
#endif
1441
 
1442
EOF
1443
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444
  egrep "_cc_is_gcc_" >/dev/null 2>&1; then
1445
  rm -rf conftest*
1446
  itcl_cv_prog_gcc=yes
1447
else
1448
  rm -rf conftest*
1449
  itcl_cv_prog_gcc=no
1450
fi
1451
rm -f conftest*
1452
 
1453
fi
1454
 
1455
echo "$ac_t""$itcl_cv_prog_gcc" 1>&6
1456
 
1457
if test -z "$CFLAGS" ; then
1458
    CFLAGS="-O"
1459
fi
1460
if test "$itcl_cv_prog_gcc" = "yes" ; then
1461
    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
1462
fi
1463
 
1464
echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
1465
echo "configure:1466: checking default compiler flags" >&5
1466
# Check whether --with-cflags or --without-cflags was given.
1467
if test "${with_cflags+set}" = set; then
1468
  withval="$with_cflags"
1469
  CFLAGS="$with_cflags"
1470
fi
1471
 
1472
 
1473
echo "$ac_t""$CFLAGS" 1>&6
1474
 
1475
#--------------------------------------------------------------------
1476
#   Supply a substitute for stdlib.h if it doesn't define strtol,
1477
#   strtoul, or strtod (which it doesn't in some versions of SunOS).
1478
#--------------------------------------------------------------------
1479
 
1480
echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
1481
echo "configure:1482: checking stdlib.h" >&5
1482
cat > conftest.$ac_ext <
1483
#line 1484 "configure"
1484
#include "confdefs.h"
1485
#include 
1486
EOF
1487
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488
  egrep "strtol" >/dev/null 2>&1; then
1489
  rm -rf conftest*
1490
  itcl_ok=yes
1491
else
1492
  rm -rf conftest*
1493
  itcl_ok=no
1494
fi
1495
rm -f conftest*
1496
 
1497
cat > conftest.$ac_ext <
1498
#line 1499 "configure"
1499
#include "confdefs.h"
1500
#include 
1501
EOF
1502
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1503
  egrep "strtoul" >/dev/null 2>&1; then
1504
  :
1505
else
1506
  rm -rf conftest*
1507
  itcl_ok=no
1508
fi
1509
rm -f conftest*
1510
 
1511
cat > conftest.$ac_ext <
1512
#line 1513 "configure"
1513
#include "confdefs.h"
1514
#include 
1515
EOF
1516
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1517
  egrep "strtod" >/dev/null 2>&1; then
1518
  :
1519
else
1520
  rm -rf conftest*
1521
  itcl_ok=no
1522
fi
1523
rm -f conftest*
1524
 
1525
if test $itcl_ok = no; then
1526
    cat >> confdefs.h <<\EOF
1527
#define NO_STDLIB_H 1
1528
EOF
1529
 
1530
fi
1531
echo "$ac_t""$itcl_ok" 1>&6
1532
 
1533
#--------------------------------------------------------------------
1534
#   Check for various typedefs and provide substitutes if
1535
#   they don't exist.
1536
#--------------------------------------------------------------------
1537
 
1538
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1539
echo "configure:1540: checking for ANSI C header files" >&5
1540
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1541
  echo $ac_n "(cached) $ac_c" 1>&6
1542
else
1543
  cat > conftest.$ac_ext <
1544
#line 1545 "configure"
1545
#include "confdefs.h"
1546
#include 
1547
#include 
1548
#include 
1549
#include 
1550
EOF
1551
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1552
{ (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1553
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1554
if test -z "$ac_err"; then
1555
  rm -rf conftest*
1556
  ac_cv_header_stdc=yes
1557
else
1558
  echo "$ac_err" >&5
1559
  echo "configure: failed program was:" >&5
1560
  cat conftest.$ac_ext >&5
1561
  rm -rf conftest*
1562
  ac_cv_header_stdc=no
1563
fi
1564
rm -f conftest*
1565
 
1566
if test $ac_cv_header_stdc = yes; then
1567
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1568
cat > conftest.$ac_ext <
1569
#line 1570 "configure"
1570
#include "confdefs.h"
1571
#include 
1572
EOF
1573
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1574
  egrep "memchr" >/dev/null 2>&1; then
1575
  :
1576
else
1577
  rm -rf conftest*
1578
  ac_cv_header_stdc=no
1579
fi
1580
rm -f conftest*
1581
 
1582
fi
1583
 
1584
if test $ac_cv_header_stdc = yes; then
1585
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1586
cat > conftest.$ac_ext <
1587
#line 1588 "configure"
1588
#include "confdefs.h"
1589
#include 
1590
EOF
1591
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1592
  egrep "free" >/dev/null 2>&1; then
1593
  :
1594
else
1595
  rm -rf conftest*
1596
  ac_cv_header_stdc=no
1597
fi
1598
rm -f conftest*
1599
 
1600
fi
1601
 
1602
if test $ac_cv_header_stdc = yes; then
1603
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1604
if test "$cross_compiling" = yes; then
1605
  :
1606
else
1607
  cat > conftest.$ac_ext <
1608
#line 1609 "configure"
1609
#include "confdefs.h"
1610
#include 
1611
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1612
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1613
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1614
int main () { int i; for (i = 0; i < 256; i++)
1615
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1616
exit (0); }
1617
 
1618
EOF
1619
if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1620
then
1621
  :
1622
else
1623
  echo "configure: failed program was:" >&5
1624
  cat conftest.$ac_ext >&5
1625
  rm -fr conftest*
1626
  ac_cv_header_stdc=no
1627
fi
1628
rm -fr conftest*
1629
fi
1630
 
1631
fi
1632
fi
1633
 
1634
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1635
if test $ac_cv_header_stdc = yes; then
1636
  cat >> confdefs.h <<\EOF
1637
#define STDC_HEADERS 1
1638
EOF
1639
 
1640
fi
1641
 
1642
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1643
echo "configure:1644: checking for mode_t" >&5
1644
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1645
  echo $ac_n "(cached) $ac_c" 1>&6
1646
else
1647
  cat > conftest.$ac_ext <
1648
#line 1649 "configure"
1649
#include "confdefs.h"
1650
#include 
1651
#if STDC_HEADERS
1652
#include 
1653
#include 
1654
#endif
1655
EOF
1656
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1657
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1658
  rm -rf conftest*
1659
  ac_cv_type_mode_t=yes
1660
else
1661
  rm -rf conftest*
1662
  ac_cv_type_mode_t=no
1663
fi
1664
rm -f conftest*
1665
 
1666
fi
1667
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1668
if test $ac_cv_type_mode_t = no; then
1669
  cat >> confdefs.h <<\EOF
1670
#define mode_t int
1671
EOF
1672
 
1673
fi
1674
 
1675
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1676
echo "configure:1677: checking for pid_t" >&5
1677
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1678
  echo $ac_n "(cached) $ac_c" 1>&6
1679
else
1680
  cat > conftest.$ac_ext <
1681
#line 1682 "configure"
1682
#include "confdefs.h"
1683
#include 
1684
#if STDC_HEADERS
1685
#include 
1686
#include 
1687
#endif
1688
EOF
1689
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1690
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1691
  rm -rf conftest*
1692
  ac_cv_type_pid_t=yes
1693
else
1694
  rm -rf conftest*
1695
  ac_cv_type_pid_t=no
1696
fi
1697
rm -f conftest*
1698
 
1699
fi
1700
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1701
if test $ac_cv_type_pid_t = no; then
1702
  cat >> confdefs.h <<\EOF
1703
#define pid_t int
1704
EOF
1705
 
1706
fi
1707
 
1708
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1709
echo "configure:1710: checking for size_t" >&5
1710
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1711
  echo $ac_n "(cached) $ac_c" 1>&6
1712
else
1713
  cat > conftest.$ac_ext <
1714
#line 1715 "configure"
1715
#include "confdefs.h"
1716
#include 
1717
#if STDC_HEADERS
1718
#include 
1719
#include 
1720
#endif
1721
EOF
1722
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1723
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1724
  rm -rf conftest*
1725
  ac_cv_type_size_t=yes
1726
else
1727
  rm -rf conftest*
1728
  ac_cv_type_size_t=no
1729
fi
1730
rm -f conftest*
1731
 
1732
fi
1733
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1734
if test $ac_cv_type_size_t = no; then
1735
  cat >> confdefs.h <<\EOF
1736
#define size_t unsigned
1737
EOF
1738
 
1739
fi
1740
 
1741
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1742
echo "configure:1743: checking for uid_t in sys/types.h" >&5
1743
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1744
  echo $ac_n "(cached) $ac_c" 1>&6
1745
else
1746
  cat > conftest.$ac_ext <
1747
#line 1748 "configure"
1748
#include "confdefs.h"
1749
#include 
1750
EOF
1751
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1752
  egrep "uid_t" >/dev/null 2>&1; then
1753
  rm -rf conftest*
1754
  ac_cv_type_uid_t=yes
1755
else
1756
  rm -rf conftest*
1757
  ac_cv_type_uid_t=no
1758
fi
1759
rm -f conftest*
1760
 
1761
fi
1762
 
1763
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1764
if test $ac_cv_type_uid_t = no; then
1765
  cat >> confdefs.h <<\EOF
1766
#define uid_t int
1767
EOF
1768
 
1769
  cat >> confdefs.h <<\EOF
1770
#define gid_t int
1771
EOF
1772
 
1773
fi
1774
 
1775
 
1776
#--------------------------------------------------------------------
1777
#   Check for the existence of various libraries.  The order here
1778
#   is important, so that then end up in the right order in the
1779
#   command line generated by make.  The -lsocket and -lnsl libraries
1780
#   require a couple of special tricks:
1781
#   1. Use "connect" and "accept" to check for -lsocket, and
1782
#      "gethostbyname" to check for -lnsl.
1783
#   2. Use each function name only once:  can't redo a check because
1784
#      autoconf caches the results of the last check and won't redo it.
1785
#   3. Use -lnsl and -lsocket only if they supply procedures that
1786
#      aren't already present in the normal libraries.  This is because
1787
#      IRIX 5.2 has libraries, but they aren't needed and they're
1788
#      bogus:  they goof up name resolution if used.
1789
#   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
1790
#      To get around this problem, check for both libraries together
1791
#      if -lsocket doesn't work by itself.
1792
#--------------------------------------------------------------------
1793
 
1794
itcl_checkBoth=0
1795
echo $ac_n "checking for connect""... $ac_c" 1>&6
1796
echo "configure:1797: checking for connect" >&5
1797
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1798
  echo $ac_n "(cached) $ac_c" 1>&6
1799
else
1800
  cat > conftest.$ac_ext <
1801
#line 1802 "configure"
1802
#include "confdefs.h"
1803
/* System header to define __stub macros and hopefully few prototypes,
1804
    which can conflict with char connect(); below.  */
1805
#include 
1806
/* Override any gcc2 internal prototype to avoid an error.  */
1807
/* We use char because int might match the return type of a gcc2
1808
    builtin and then its argument prototype would still apply.  */
1809
char connect();
1810
 
1811
int main() {
1812
 
1813
/* The GNU C library defines this for functions which it implements
1814
    to always fail with ENOSYS.  Some functions are actually named
1815
    something starting with __ and the normal name is an alias.  */
1816
#if defined (__stub_connect) || defined (__stub___connect)
1817
choke me
1818
#else
1819
connect();
1820
#endif
1821
 
1822
; return 0; }
1823
EOF
1824
if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825
  rm -rf conftest*
1826
  eval "ac_cv_func_connect=yes"
1827
else
1828
  echo "configure: failed program was:" >&5
1829
  cat conftest.$ac_ext >&5
1830
  rm -rf conftest*
1831
  eval "ac_cv_func_connect=no"
1832
fi
1833
rm -f conftest*
1834
fi
1835
 
1836
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1837
  echo "$ac_t""yes" 1>&6
1838
  itcl_checkSocket=0
1839
else
1840
  echo "$ac_t""no" 1>&6
1841
itcl_checkSocket=1
1842
fi
1843
 
1844
if test "$itcl_checkSocket" = 1; then
1845
    echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1846
echo "configure:1847: checking for main in -lsocket" >&5
1847
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1848
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1849
  echo $ac_n "(cached) $ac_c" 1>&6
1850
else
1851
  ac_save_LIBS="$LIBS"
1852
LIBS="-lsocket  $LIBS"
1853
cat > conftest.$ac_ext <
1854
#line 1855 "configure"
1855
#include "confdefs.h"
1856
 
1857
int main() {
1858
main()
1859
; return 0; }
1860
EOF
1861
if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1862
  rm -rf conftest*
1863
  eval "ac_cv_lib_$ac_lib_var=yes"
1864
else
1865
  echo "configure: failed program was:" >&5
1866
  cat conftest.$ac_ext >&5
1867
  rm -rf conftest*
1868
  eval "ac_cv_lib_$ac_lib_var=no"
1869
fi
1870
rm -f conftest*
1871
LIBS="$ac_save_LIBS"
1872
 
1873
fi
1874
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1875
  echo "$ac_t""yes" 1>&6
1876
  LIBS="$LIBS -lsocket"
1877
else
1878
  echo "$ac_t""no" 1>&6
1879
itcl_checkBoth=1
1880
fi
1881
 
1882
fi
1883
if test "$itcl_checkBoth" = 1; then
1884
    itcl_oldLibs=$LIBS
1885
    LIBS="$LIBS -lsocket -lnsl"
1886
    echo $ac_n "checking for accept""... $ac_c" 1>&6
1887
echo "configure:1888: checking for accept" >&5
1888
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1889
  echo $ac_n "(cached) $ac_c" 1>&6
1890
else
1891
  cat > conftest.$ac_ext <
1892
#line 1893 "configure"
1893
#include "confdefs.h"
1894
/* System header to define __stub macros and hopefully few prototypes,
1895
    which can conflict with char accept(); below.  */
1896
#include 
1897
/* Override any gcc2 internal prototype to avoid an error.  */
1898
/* We use char because int might match the return type of a gcc2
1899
    builtin and then its argument prototype would still apply.  */
1900
char accept();
1901
 
1902
int main() {
1903
 
1904
/* The GNU C library defines this for functions which it implements
1905
    to always fail with ENOSYS.  Some functions are actually named
1906
    something starting with __ and the normal name is an alias.  */
1907
#if defined (__stub_accept) || defined (__stub___accept)
1908
choke me
1909
#else
1910
accept();
1911
#endif
1912
 
1913
; return 0; }
1914
EOF
1915
if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1916
  rm -rf conftest*
1917
  eval "ac_cv_func_accept=yes"
1918
else
1919
  echo "configure: failed program was:" >&5
1920
  cat conftest.$ac_ext >&5
1921
  rm -rf conftest*
1922
  eval "ac_cv_func_accept=no"
1923
fi
1924
rm -f conftest*
1925
fi
1926
 
1927
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1928
  echo "$ac_t""yes" 1>&6
1929
  itcl_checkNsl=0
1930
else
1931
  echo "$ac_t""no" 1>&6
1932
LIBS=$itcl_oldLibs
1933
fi
1934
 
1935
fi
1936
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1937
echo "configure:1938: checking for gethostbyname" >&5
1938
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1939
  echo $ac_n "(cached) $ac_c" 1>&6
1940
else
1941
  cat > conftest.$ac_ext <
1942
#line 1943 "configure"
1943
#include "confdefs.h"
1944
/* System header to define __stub macros and hopefully few prototypes,
1945
    which can conflict with char gethostbyname(); below.  */
1946
#include 
1947
/* Override any gcc2 internal prototype to avoid an error.  */
1948
/* We use char because int might match the return type of a gcc2
1949
    builtin and then its argument prototype would still apply.  */
1950
char gethostbyname();
1951
 
1952
int main() {
1953
 
1954
/* The GNU C library defines this for functions which it implements
1955
    to always fail with ENOSYS.  Some functions are actually named
1956
    something starting with __ and the normal name is an alias.  */
1957
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1958
choke me
1959
#else
1960
gethostbyname();
1961
#endif
1962
 
1963
; return 0; }
1964
EOF
1965
if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966
  rm -rf conftest*
1967
  eval "ac_cv_func_gethostbyname=yes"
1968
else
1969
  echo "configure: failed program was:" >&5
1970
  cat conftest.$ac_ext >&5
1971
  rm -rf conftest*
1972
  eval "ac_cv_func_gethostbyname=no"
1973
fi
1974
rm -f conftest*
1975
fi
1976
 
1977
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1978
  echo "$ac_t""yes" 1>&6
1979
  :
1980
else
1981
  echo "$ac_t""no" 1>&6
1982
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1983
echo "configure:1984: checking for main in -lnsl" >&5
1984
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1985
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1986
  echo $ac_n "(cached) $ac_c" 1>&6
1987
else
1988
  ac_save_LIBS="$LIBS"
1989
LIBS="-lnsl  $LIBS"
1990
cat > conftest.$ac_ext <
1991
#line 1992 "configure"
1992
#include "confdefs.h"
1993
 
1994
int main() {
1995
main()
1996
; return 0; }
1997
EOF
1998
if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1999
  rm -rf conftest*
2000
  eval "ac_cv_lib_$ac_lib_var=yes"
2001
else
2002
  echo "configure: failed program was:" >&5
2003
  cat conftest.$ac_ext >&5
2004
  rm -rf conftest*
2005
  eval "ac_cv_lib_$ac_lib_var=no"
2006
fi
2007
rm -f conftest*
2008
LIBS="$ac_save_LIBS"
2009
 
2010
fi
2011
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2012
  echo "$ac_t""yes" 1>&6
2013
  LIBS="$LIBS -lnsl"
2014
else
2015
  echo "$ac_t""no" 1>&6
2016
fi
2017
 
2018
fi
2019
 
2020
 
2021
#--------------------------------------------------------------------
2022
#   On a few very rare systems, all of the libm.a stuff is
2023
#   already in libc.a.  Set compiler flags accordingly.
2024
#   Also, Linux requires the "ieee" library for math to
2025
#   work right (and it must appear before "-lm").
2026
#--------------------------------------------------------------------
2027
 
2028
MATH_LIBS=""
2029
echo $ac_n "checking for sin""... $ac_c" 1>&6
2030
echo "configure:2031: checking for sin" >&5
2031
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
2032
  echo $ac_n "(cached) $ac_c" 1>&6
2033
else
2034
  cat > conftest.$ac_ext <
2035
#line 2036 "configure"
2036
#include "confdefs.h"
2037
/* System header to define __stub macros and hopefully few prototypes,
2038
    which can conflict with char sin(); below.  */
2039
#include 
2040
/* Override any gcc2 internal prototype to avoid an error.  */
2041
/* We use char because int might match the return type of a gcc2
2042
    builtin and then its argument prototype would still apply.  */
2043
char sin();
2044
 
2045
int main() {
2046
 
2047
/* The GNU C library defines this for functions which it implements
2048
    to always fail with ENOSYS.  Some functions are actually named
2049
    something starting with __ and the normal name is an alias.  */
2050
#if defined (__stub_sin) || defined (__stub___sin)
2051
choke me
2052
#else
2053
sin();
2054
#endif
2055
 
2056
; return 0; }
2057
EOF
2058
if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2059
  rm -rf conftest*
2060
  eval "ac_cv_func_sin=yes"
2061
else
2062
  echo "configure: failed program was:" >&5
2063
  cat conftest.$ac_ext >&5
2064
  rm -rf conftest*
2065
  eval "ac_cv_func_sin=no"
2066
fi
2067
rm -f conftest*
2068
fi
2069
 
2070
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
2071
  echo "$ac_t""yes" 1>&6
2072
  :
2073
else
2074
  echo "$ac_t""no" 1>&6
2075
MATH_LIBS="-lm"
2076
fi
2077
 
2078
echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
2079
echo "configure:2080: checking for main in -lieee" >&5
2080
ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
2081
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2082
  echo $ac_n "(cached) $ac_c" 1>&6
2083
else
2084
  ac_save_LIBS="$LIBS"
2085
LIBS="-lieee  $LIBS"
2086
cat > conftest.$ac_ext <
2087
#line 2088 "configure"
2088
#include "confdefs.h"
2089
 
2090
int main() {
2091
main()
2092
; return 0; }
2093
EOF
2094
if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2095
  rm -rf conftest*
2096
  eval "ac_cv_lib_$ac_lib_var=yes"
2097
else
2098
  echo "configure: failed program was:" >&5
2099
  cat conftest.$ac_ext >&5
2100
  rm -rf conftest*
2101
  eval "ac_cv_lib_$ac_lib_var=no"
2102
fi
2103
rm -f conftest*
2104
LIBS="$ac_save_LIBS"
2105
 
2106
fi
2107
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108
  echo "$ac_t""yes" 1>&6
2109
  MATH_LIBS="-lieee $MATH_LIBS"
2110
else
2111
  echo "$ac_t""no" 1>&6
2112
fi
2113
 
2114
 
2115
#--------------------------------------------------------------------
2116
#   If this system doesn't have a memmove procedure, use memcpy
2117
#   instead.
2118
#--------------------------------------------------------------------
2119
 
2120
echo $ac_n "checking for memmove""... $ac_c" 1>&6
2121
echo "configure:2122: checking for memmove" >&5
2122
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
2123
  echo $ac_n "(cached) $ac_c" 1>&6
2124
else
2125
  cat > conftest.$ac_ext <
2126
#line 2127 "configure"
2127
#include "confdefs.h"
2128
/* System header to define __stub macros and hopefully few prototypes,
2129
    which can conflict with char memmove(); below.  */
2130
#include 
2131
/* Override any gcc2 internal prototype to avoid an error.  */
2132
/* We use char because int might match the return type of a gcc2
2133
    builtin and then its argument prototype would still apply.  */
2134
char memmove();
2135
 
2136
int main() {
2137
 
2138
/* The GNU C library defines this for functions which it implements
2139
    to always fail with ENOSYS.  Some functions are actually named
2140
    something starting with __ and the normal name is an alias.  */
2141
#if defined (__stub_memmove) || defined (__stub___memmove)
2142
choke me
2143
#else
2144
memmove();
2145
#endif
2146
 
2147
; return 0; }
2148
EOF
2149
if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2150
  rm -rf conftest*
2151
  eval "ac_cv_func_memmove=yes"
2152
else
2153
  echo "configure: failed program was:" >&5
2154
  cat conftest.$ac_ext >&5
2155
  rm -rf conftest*
2156
  eval "ac_cv_func_memmove=no"
2157
fi
2158
rm -f conftest*
2159
fi
2160
 
2161
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
2162
  echo "$ac_t""yes" 1>&6
2163
  :
2164
else
2165
  echo "$ac_t""no" 1>&6
2166
cat >> confdefs.h <<\EOF
2167
#define memmove memcpy
2168
EOF
2169
 
2170
fi
2171
 
2172
 
2173
#--------------------------------------------------------------------
2174
#   Figure out whether "char" is unsigned.  If so, set a
2175
#   #define for __CHAR_UNSIGNED__.
2176
#--------------------------------------------------------------------
2177
 
2178
#AC_C_CHAR_UNSIGNED
2179
 
2180
#--------------------------------------------------------------------
2181
#   Under Solaris 2.4, strtod returns the wrong value for the
2182
#   terminating character under some conditions.  Check for this
2183
#   and if the problem exists use a substitute procedure
2184
#   "fixstrtod" (provided by Tcl) that corrects the error.
2185
#--------------------------------------------------------------------
2186
 
2187
echo $ac_n "checking for strtod""... $ac_c" 1>&6
2188
echo "configure:2189: checking for strtod" >&5
2189
if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
2190
  echo $ac_n "(cached) $ac_c" 1>&6
2191
else
2192
  cat > conftest.$ac_ext <
2193
#line 2194 "configure"
2194
#include "confdefs.h"
2195
/* System header to define __stub macros and hopefully few prototypes,
2196
    which can conflict with char strtod(); below.  */
2197
#include 
2198
/* Override any gcc2 internal prototype to avoid an error.  */
2199
/* We use char because int might match the return type of a gcc2
2200
    builtin and then its argument prototype would still apply.  */
2201
char strtod();
2202
 
2203
int main() {
2204
 
2205
/* The GNU C library defines this for functions which it implements
2206
    to always fail with ENOSYS.  Some functions are actually named
2207
    something starting with __ and the normal name is an alias.  */
2208
#if defined (__stub_strtod) || defined (__stub___strtod)
2209
choke me
2210
#else
2211
strtod();
2212
#endif
2213
 
2214
; return 0; }
2215
EOF
2216
if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217
  rm -rf conftest*
2218
  eval "ac_cv_func_strtod=yes"
2219
else
2220
  echo "configure: failed program was:" >&5
2221
  cat conftest.$ac_ext >&5
2222
  rm -rf conftest*
2223
  eval "ac_cv_func_strtod=no"
2224
fi
2225
rm -f conftest*
2226
fi
2227
 
2228
if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
2229
  echo "$ac_t""yes" 1>&6
2230
  itcl_strtod=1
2231
else
2232
  echo "$ac_t""no" 1>&6
2233
itcl_strtod=0
2234
fi
2235
 
2236
if test "$itcl_strtod" = 1; then
2237
    echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
2238
echo "configure:2239: checking for Solaris 2.4 strtod bug" >&5
2239
    if test "$cross_compiling" = yes; then
2240
  itcl_ok=0
2241
else
2242
  cat > conftest.$ac_ext <
2243
#line 2244 "configure"
2244
#include "confdefs.h"
2245
 
2246
        extern double strtod();
2247
        int main()
2248
        {
2249
            char *string = "NaN";
2250
            char *term;
2251
            strtod(string, &term);
2252
            if ((term != string) && (term[-1] == 0)) {
2253
                exit(1);
2254
            }
2255
            exit(0);
2256
        }
2257
EOF
2258
if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2259
then
2260
  itcl_ok=1
2261
else
2262
  echo "configure: failed program was:" >&5
2263
  cat conftest.$ac_ext >&5
2264
  rm -fr conftest*
2265
  itcl_ok=0
2266
fi
2267
rm -fr conftest*
2268
fi
2269
 
2270
    if test "$itcl_ok" = 1; then
2271
        echo "$ac_t""ok" 1>&6
2272
    else
2273
        echo "$ac_t""buggy" 1>&6
2274
        cat >> confdefs.h <<\EOF
2275
#define strtod fixstrtod
2276
EOF
2277
 
2278
    fi
2279
fi
2280
 
2281
#--------------------------------------------------------------------
2282
# If we are building with cygwin, we need one set of library names,
2283
# otherwise, we need the Source-Navigator set.
2284
#--------------------------------------------------------------------
2285
 
2286
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
2287
    CYGITCLLIBSPEC=itcl${VERSION}
2288
else
2289
    CYGITCLLIBSPEC="itcl`echo ${VERSION} | tr -d .`"
2290
fi
2291
CYGITCLLIB=lib${CYGITCLLIBSPEC}.a
2292
CYGITCLDLL=cygitcl${VERSION}.dll
2293
CYGITCLSH=cygitclsh${VERSION}.exe
2294
CYGITCLDEF=itclcyg.def
2295
CYGITCLTEST=cygitcltest.exe
2296
CYGIMPORTLIB=cygitcl${VERSION}.lib
2297
CYGITCLRES=cygitcl.o
2298
CYGITCLSHRES=cygitclsh.o
2299
 
2300
SNITCLLIBSPEC=itcl30.lib
2301
SNITCLLIB=${SNITCLLIBSPEC}
2302
SNITCLDLL=snitcl30.dll
2303
SNITCLSH=snitclsh30.exe
2304
SNITCLDEF=itclsn.def
2305
SNITCLTEST=snitcltest.exe
2306
SNIMPORTLIB=snitcl30.lib
2307
SNITCLRES=snitcl.obj
2308
SNITCLSHRES=snitclsh.obj
2309
 
2310
if test "$GCC" = yes; then
2311
ITCLLIBSPEC=${CYGITCLLIBSPEC}
2312
ITCLLIB=${CYGITCLLIB}
2313
ITCLDLL=${CYGITCLDLL}
2314
ITCLSH=${CYGITCLSH}
2315
ITCLDEF=${CYGITCLDEF}
2316
ITCLTEST=${CYGITCLTEST}
2317
ITCLIMPORTLIB=${CYGIMPORTLIB}
2318
ITCLRES=${CYGITCLRES}
2319
ITCLSHRES=${CYGITCLSHRES}
2320
else
2321
ITCLLIBSPEC=${SNITCLLIBSPEC}
2322
ITCLLIB=${SNITCLLIB}
2323
ITCLDLL=${SNITCLDLL}
2324
ITCLSH=${SNITCLSH}
2325
ITCLDEF=${SNITCLDEF}
2326
ITCLTEST=${SNITCLTEST}
2327
ITCLIMPORTLIB=${SNIMPORTLIB}
2328
ITCLRES=${SNITCLRES}
2329
ITCLSHRES=${SNITCLSHRES}
2330
fi
2331
 
2332
ITCL_SH="`pwd`/${ITCLSH}"
2333
if ! test "$GCC" = yes; then
2334
    tmp="`cygpath --windows $ITCL_SH`"
2335
    ITCL_SH="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2336
fi
2337
 
2338
 
2339
#--------------------------------------------------------------------
2340
#   The statements below define a collection of symbols related to
2341
#   building libitcl as a shared library instead of a static library.
2342
#--------------------------------------------------------------------
2343
 
2344
# Check whether --enable-shared or --disable-shared was given.
2345
if test "${enable_shared+set}" = set; then
2346
  enableval="$enable_shared"
2347
  ok=$enableval
2348
else
2349
  ok=no
2350
fi
2351
 
2352
if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
2353
    ITCL_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
2354
    eval "ITCL_LIB_FILE=libitcl${VERSION}${SHLIB_SUFFIX}"
2355
    ITCL_PKG_FILE="[file join [file dirname \$dir] ${ITCL_LIB_FILE}]"
2356
    MAKE_LIB="\${SHLIB_LD} -o ${ITCL_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
2357
    RANLIB=":"
2358
else
2359
    ITCL_SHLIB_CFLAGS=""
2360
    eval "ITCL_LIB_FILE=libitcl${VERSION}.a"
2361
    ITCL_PKG_FILE=""
2362
    MAKE_LIB="ar cr ${ITCL_LIB_FILE} \${OBJS}"
2363
fi
2364
 
2365
# Note:  in the following variable, it's important to use the absolute
2366
# path name of the Tcl directory rather than "..":  this is because
2367
# AIX remembers this path and will attempt to use it at run-time to look
2368
# up the Tcl library.
2369
 
2370
if test "$GCC" = yes; then
2371
    ITCL_BUILD_LIB_SPEC="-L`pwd` -l${ITCLLIBSPEC}"
2372
    ITCL_LIB_SPEC="-L${exec_prefix}/lib/itcl -l{ITCLLIBSPEC}"
2373
    ITCL_LIB_FULL_PATH="`pwd`/${ITCLLIB}"
2374
else
2375
    tmp="`pwd`/${ITCLLIB}"
2376
    tmp2="`cygpath --windows $tmp`"
2377
    ITCL_BUILD_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
2378
    ITCL_LIB_FULL_PATH=${ITCL_BUILD_LIB_SPEC}
2379
    tmp="${exec_prefix}/lib/itcl/${ITCLLIB}"
2380
    tmp2="`cygpath --windows $tmp`"
2381
    ITCL_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
2382
fi
2383
 
2384
#-------------------------------------------------------------------
2385
# Set up the libraries to link with.
2386
#-------------------------------------------------------------------
2387
if test "$GCC" = yes; then
2388
    BASELIBS="-lkernel32 $(optlibs) -ladvapi32 -luser32"
2389
    WINLIBS="-lgdi32 -lcomdlg32 -lwinspool"
2390
    LIBCDLL=
2391
else
2392
    BASELIBS="kernel32.lib advapi32.lib user32.lib"
2393
    WINLIBS="gdi32.lib comdlg32.lib winspool.lib"
2394
    LIBCDLL="msvcrt.lib oldnames.lib"
2395
fi
2396
 
2397
 
2398
 
2399
 
2400
 
2401
 
2402
 
2403
 
2404
 
2405
 
2406
 
2407
 
2408
 
2409
 
2410
 
2411
 
2412
 
2413
 
2414
 
2415
 
2416
 
2417
 
2418
 
2419
 
2420
 
2421
 
2422
 
2423
 
2424
 
2425
 
2426
 
2427
 
2428
 
2429
 
2430
 
2431
 
2432
 
2433
 
2434
 
2435
 
2436
 
2437
 
2438
 
2439
 
2440
 
2441
 
2442
 
2443
 
2444
 
2445
 
2446
 
2447
 
2448
 
2449
 
2450
 
2451
 
2452
trap '' 1 2 15
2453
cat > confcache <<\EOF
2454
# This file is a shell script that caches the results of configure
2455
# tests run on this system so they can be shared between configure
2456
# scripts and configure runs.  It is not useful on other systems.
2457
# If it contains results you don't want to keep, you may remove or edit it.
2458
#
2459
# By default, configure uses ./config.cache as the cache file,
2460
# creating it if it does not exist already.  You can give configure
2461
# the --cache-file=FILE option to use a different cache file; that is
2462
# what configure does when it calls configure scripts in
2463
# subdirectories, so they share the cache.
2464
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2465
# config.status only pays attention to the cache file if you give it the
2466
# --recheck option to rerun configure.
2467
#
2468
EOF
2469
# The following way of writing the cache mishandles newlines in values,
2470
# but we know of no workaround that is simple, portable, and efficient.
2471
# So, don't put newlines in cache variables' values.
2472
# Ultrix sh set writes to stderr and can't be redirected directly,
2473
# and sets the high bit in the cache file unless we assign to the vars.
2474
(set) 2>&1 |
2475
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2476
  *ac_space=\ *)
2477
    # `set' does not quote correctly, so add quotes (double-quote substitution
2478
    # turns \\\\ into \\, and sed turns \\ into \).
2479
    sed -n \
2480
      -e "s/'/'\\\\''/g" \
2481
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2482
    ;;
2483
  *)
2484
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2485
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2486
    ;;
2487
  esac >> confcache
2488
if cmp -s $cache_file confcache; then
2489
  :
2490
else
2491
  if test -w $cache_file; then
2492
    echo "updating cache $cache_file"
2493
    cat confcache > $cache_file
2494
  else
2495
    echo "not updating unwritable cache $cache_file"
2496
  fi
2497
fi
2498
rm -f confcache
2499
 
2500
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2501
 
2502
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2503
# Let make expand exec_prefix.
2504
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2505
 
2506
# Any assignment to VPATH causes Sun make to only execute
2507
# the first set of double-colon rules, so remove it if not needed.
2508
# If there is a colon in the path, we need to keep it.
2509
if test "x$srcdir" = x.; then
2510
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2511
fi
2512
 
2513
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2514
 
2515
# Transform confdefs.h into DEFS.
2516
# Protect against shell expansion while executing Makefile rules.
2517
# Protect against Makefile macro expansion.
2518
cat > conftest.defs <<\EOF
2519
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2520
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2521
s%\[%\\&%g
2522
s%\]%\\&%g
2523
s%\$%$$%g
2524
EOF
2525
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2526
rm -f conftest.defs
2527
 
2528
 
2529
# Without the "./", some shells look in PATH for config.status.
2530
: ${CONFIG_STATUS=./config.status}
2531
 
2532
echo creating $CONFIG_STATUS
2533
rm -f $CONFIG_STATUS
2534
cat > $CONFIG_STATUS <
2535
#! /bin/sh
2536
# Generated automatically by configure.
2537
# Run this file to recreate the current configuration.
2538
# This directory was configured as follows,
2539
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2540
#
2541
# $0 $ac_configure_args
2542
#
2543
# Compiler output produced by configure, useful for debugging
2544
# configure, is in ./config.log if it exists.
2545
 
2546
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2547
for ac_option
2548
do
2549
  case "\$ac_option" in
2550
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2551
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2552
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2553
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2554
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2555
    exit 0 ;;
2556
  -help | --help | --hel | --he | --h)
2557
    echo "\$ac_cs_usage"; exit 0 ;;
2558
  *) echo "\$ac_cs_usage"; exit 1 ;;
2559
  esac
2560
done
2561
 
2562
ac_given_srcdir=$srcdir
2563
ac_given_INSTALL="$INSTALL"
2564
 
2565
trap 'rm -fr `echo "Makefile ../unix/pkgIndex.tcl ../itclConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2566
EOF
2567
cat >> $CONFIG_STATUS <
2568
 
2569
# Protect against being on the right side of a sed subst in config.status.
2570
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2571
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2572
$ac_vpsub
2573
$extrasub
2574
s%@SHELL@%$SHELL%g
2575
s%@CFLAGS@%$CFLAGS%g
2576
s%@CPPFLAGS@%$CPPFLAGS%g
2577
s%@CXXFLAGS@%$CXXFLAGS%g
2578
s%@FFLAGS@%$FFLAGS%g
2579
s%@DEFS@%$DEFS%g
2580
s%@LDFLAGS@%$LDFLAGS%g
2581
s%@LIBS@%$LIBS%g
2582
s%@exec_prefix@%$exec_prefix%g
2583
s%@prefix@%$prefix%g
2584
s%@program_transform_name@%$program_transform_name%g
2585
s%@bindir@%$bindir%g
2586
s%@sbindir@%$sbindir%g
2587
s%@libexecdir@%$libexecdir%g
2588
s%@datadir@%$datadir%g
2589
s%@sysconfdir@%$sysconfdir%g
2590
s%@sharedstatedir@%$sharedstatedir%g
2591
s%@localstatedir@%$localstatedir%g
2592
s%@libdir@%$libdir%g
2593
s%@includedir@%$includedir%g
2594
s%@oldincludedir@%$oldincludedir%g
2595
s%@infodir@%$infodir%g
2596
s%@mandir@%$mandir%g
2597
s%@host@%$host%g
2598
s%@host_alias@%$host_alias%g
2599
s%@host_cpu@%$host_cpu%g
2600
s%@host_vendor@%$host_vendor%g
2601
s%@host_os@%$host_os%g
2602
s%@RANLIB@%$RANLIB%g
2603
s%@CC@%$CC%g
2604
s%@OBJEXT@%$OBJEXT%g
2605
s%@NM@%$NM%g
2606
s%@AS@%$AS%g
2607
s%@LD@%$LD%g
2608
s%@DLLTOOL@%$DLLTOOL%g
2609
s%@WINDRES@%$WINDRES%g
2610
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2611
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2612
s%@INSTALL_DATA@%$INSTALL_DATA%g
2613
s%@DLL_LDFLAGS@%$DLL_LDFLAGS%g
2614
s%@DLL_LDLIBS@%$DLL_LDLIBS%g
2615
s%@ITKWISH@%$ITKWISH%g
2616
s%@CPP@%$CPP%g
2617
s%@DL_LIBS@%$DL_LIBS%g
2618
s%@LD_FLAGS@%$LD_FLAGS%g
2619
s%@MATH_LIBS@%$MATH_LIBS%g
2620
s%@MAKE_LIB@%$MAKE_LIB%g
2621
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2622
s%@SHLIB_LD@%$SHLIB_LD%g
2623
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2624
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2625
s%@SHLIB_VERSION@%$SHLIB_VERSION%g
2626
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2627
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2628
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
2629
s%@TCL_VERSION@%$TCL_VERSION%g
2630
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2631
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
2632
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2633
s%@ITCL_LD_SEARCH_FLAGS@%$ITCL_LD_SEARCH_FLAGS%g
2634
s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
2635
s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
2636
s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
2637
s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g
2638
s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g
2639
s%@ITCL_PKG_FILE@%$ITCL_PKG_FILE%g
2640
s%@ITCL_SHLIB_CFLAGS@%$ITCL_SHLIB_CFLAGS%g
2641
s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
2642
s%@ITCL_VERSION@%$ITCL_VERSION%g
2643
s%@CYGITCLLIB@%$CYGITCLLIB%g
2644
s%@CYGITCLDLL@%$CYGITCLDLL%g
2645
s%@CYGITCLSH@%$CYGITCLSH%g
2646
s%@CYGITCLDEF@%$CYGITCLDEF%g
2647
s%@CYGITCLTEST@%$CYGITCLTEST%g
2648
s%@CYGIMPORTLIB@%$CYGIMPORTLIB%g
2649
s%@CYGITCLRES@%$CYGITCLRES%g
2650
s%@CYGITCLSHRES@%$CYGITCLSHRES%g
2651
s%@SNITCLLIB@%$SNITCLLIB%g
2652
s%@SNITCLDLL@%$SNITCLDLL%g
2653
s%@SNITCLSH@%$SNITCLSH%g
2654
s%@SNITCLDEF@%$SNITCLDEF%g
2655
s%@SNITCLTEST@%$SNITCLTEST%g
2656
s%@SNIMPORTLIB@%$SNIMPORTLIB%g
2657
s%@SNITCLRES@%$SNITCLRES%g
2658
s%@SNITCLSHRES@%$SNITCLSHRES%g
2659
s%@ITCLLIB@%$ITCLLIB%g
2660
s%@ITCLDLL@%$ITCLDLL%g
2661
s%@ITCLSH@%$ITCLSH%g
2662
s%@ITCLDEF@%$ITCLDEF%g
2663
s%@ITCLTEST@%$ITCLTEST%g
2664
s%@ITCLIMPORTLIB@%$ITCLIMPORTLIB%g
2665
s%@ITCLRES@%$ITCLRES%g
2666
s%@ITCL_SH@%$ITCL_SH%g
2667
s%@BASELIBS@%$BASELIBS%g
2668
s%@WINLIBS@%$WINLIBS%g
2669
s%@LIBCDLL@%$LIBCDLL%g
2670
 
2671
CEOF
2672
EOF
2673
 
2674
cat >> $CONFIG_STATUS <<\EOF
2675
 
2676
# Split the substitutions into bite-sized pieces for seds with
2677
# small command number limits, like on Digital OSF/1 and HP-UX.
2678
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2679
ac_file=1 # Number of current file.
2680
ac_beg=1 # First line for current file.
2681
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2682
ac_more_lines=:
2683
ac_sed_cmds=""
2684
while $ac_more_lines; do
2685
  if test $ac_beg -gt 1; then
2686
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2687
  else
2688
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2689
  fi
2690
  if test ! -s conftest.s$ac_file; then
2691
    ac_more_lines=false
2692
    rm -f conftest.s$ac_file
2693
  else
2694
    if test -z "$ac_sed_cmds"; then
2695
      ac_sed_cmds="sed -f conftest.s$ac_file"
2696
    else
2697
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2698
    fi
2699
    ac_file=`expr $ac_file + 1`
2700
    ac_beg=$ac_end
2701
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2702
  fi
2703
done
2704
if test -z "$ac_sed_cmds"; then
2705
  ac_sed_cmds=cat
2706
fi
2707
EOF
2708
 
2709
cat >> $CONFIG_STATUS <
2710
 
2711
CONFIG_FILES=\${CONFIG_FILES-"Makefile ../unix/pkgIndex.tcl ../itclConfig.sh"}
2712
EOF
2713
cat >> $CONFIG_STATUS <<\EOF
2714
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2715
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2716
  case "$ac_file" in
2717
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2718
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2719
  *) ac_file_in="${ac_file}.in" ;;
2720
  esac
2721
 
2722
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2723
 
2724
  # Remove last slash and all that follows it.  Not all systems have dirname.
2725
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2726
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2727
    # The file is in a subdirectory.
2728
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2729
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2730
    # A "../" for each directory in $ac_dir_suffix.
2731
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2732
  else
2733
    ac_dir_suffix= ac_dots=
2734
  fi
2735
 
2736
  case "$ac_given_srcdir" in
2737
  .)  srcdir=.
2738
      if test -z "$ac_dots"; then top_srcdir=.
2739
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2740
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2741
  *) # Relative path.
2742
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2743
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2744
  esac
2745
 
2746
  case "$ac_given_INSTALL" in
2747
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2748
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2749
  esac
2750
 
2751
  echo creating "$ac_file"
2752
  rm -f "$ac_file"
2753
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2754
  case "$ac_file" in
2755
  *Makefile*) ac_comsub="1i\\
2756
# $configure_input" ;;
2757
  *) ac_comsub= ;;
2758
  esac
2759
 
2760
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2761
  sed -e "$ac_comsub
2762
s%@configure_input@%$configure_input%g
2763
s%@srcdir@%$srcdir%g
2764
s%@top_srcdir@%$top_srcdir%g
2765
s%@INSTALL@%$INSTALL%g
2766
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2767
fi; done
2768
rm -f conftest.s*
2769
 
2770
EOF
2771
cat >> $CONFIG_STATUS <
2772
 
2773
EOF
2774
cat >> $CONFIG_STATUS <<\EOF
2775
 
2776
exit 0
2777
EOF
2778
chmod +x $CONFIG_STATUS
2779
rm -fr confdefs* $ac_clean_files
2780
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2781
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.