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

Subversion Repositories or1k

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

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

powered by: WebSVN 2.1.0

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