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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [unix/] [tk8.1/] [configure] - Blame information for rev 1782

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

powered by: WebSVN 2.1.0

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