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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [tix/] [win/] [configure] - Blame information for rev 1782

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
  --with-tclconfig           directory containing tcl configuration (tclConfig.sh)"
16
ac_help="$ac_help
17
  --with-tkconfig           directory containing tk configuration (tkConfig.sh)"
18
ac_help="$ac_help
19
  --with-tclinclude       directory where tcl headers are"
20
ac_help="$ac_help
21
  --with-tkinclude       directory where tk headers are"
22
 
23
# Initialize some variables set by options.
24
# The variables have the same names as the options, with
25
# dashes changed to underlines.
26
build=NONE
27
cache_file=./config.cache
28
exec_prefix=NONE
29
host=NONE
30
no_create=
31
nonopt=NONE
32
no_recursion=
33
prefix=NONE
34
program_prefix=NONE
35
program_suffix=NONE
36
program_transform_name=s,x,x,
37
silent=
38
site=
39
srcdir=
40
target=NONE
41
verbose=
42
x_includes=NONE
43
x_libraries=NONE
44
bindir='${exec_prefix}/bin'
45
sbindir='${exec_prefix}/sbin'
46
libexecdir='${exec_prefix}/libexec'
47
datadir='${prefix}/share'
48
sysconfdir='${prefix}/etc'
49
sharedstatedir='${prefix}/com'
50
localstatedir='${prefix}/var'
51
libdir='${exec_prefix}/lib'
52
includedir='${prefix}/include'
53
oldincludedir='/usr/include'
54
infodir='${prefix}/info'
55
mandir='${prefix}/man'
56
 
57
# Initialize some other variables.
58
subdirs=
59
MFLAGS= MAKEFLAGS=
60
SHELL=${CONFIG_SHELL-/bin/sh}
61
# Maximum number of lines to put in a shell here document.
62
ac_max_here_lines=12
63
 
64
ac_prev=
65
for ac_option
66
do
67
 
68
  # If the previous option needs an argument, assign it.
69
  if test -n "$ac_prev"; then
70
    eval "$ac_prev=\$ac_option"
71
    ac_prev=
72
    continue
73
  fi
74
 
75
  case "$ac_option" in
76
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77
  *) ac_optarg= ;;
78
  esac
79
 
80
  # Accept the important Cygnus configure options, so we can diagnose typos.
81
 
82
  case "$ac_option" in
83
 
84
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85
    ac_prev=bindir ;;
86
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87
    bindir="$ac_optarg" ;;
88
 
89
  -build | --build | --buil | --bui | --bu)
90
    ac_prev=build ;;
91
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
    build="$ac_optarg" ;;
93
 
94
  -cache-file | --cache-file | --cache-fil | --cache-fi \
95
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96
    ac_prev=cache_file ;;
97
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99
    cache_file="$ac_optarg" ;;
100
 
101
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102
    ac_prev=datadir ;;
103
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104
  | --da=*)
105
    datadir="$ac_optarg" ;;
106
 
107
  -disable-* | --disable-*)
108
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109
    # Reject names that are not valid shell variable names.
110
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112
    fi
113
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114
    eval "enable_${ac_feature}=no" ;;
115
 
116
  -enable-* | --enable-*)
117
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118
    # Reject names that are not valid shell variable names.
119
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
    fi
122
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
    case "$ac_option" in
124
      *=*) ;;
125
      *) ac_optarg=yes ;;
126
    esac
127
    eval "enable_${ac_feature}='$ac_optarg'" ;;
128
 
129
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
  | --exec | --exe | --ex)
132
    ac_prev=exec_prefix ;;
133
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135
  | --exec=* | --exe=* | --ex=*)
136
    exec_prefix="$ac_optarg" ;;
137
 
138
  -gas | --gas | --ga | --g)
139
    # Obsolete; use --with-gas.
140
    with_gas=yes ;;
141
 
142
  -help | --help | --hel | --he)
143
    # Omit some internal or obsolete options to make the list less imposing.
144
    # This message is too long to be a string in the A/UX 3.1 sh.
145
    cat << EOF
146
Usage: configure [options] [host]
147
Options: [defaults in brackets after descriptions]
148
Configuration:
149
  --cache-file=FILE       cache test results in FILE
150
  --help                  print this message
151
  --no-create             do not create output files
152
  --quiet, --silent       do not print \`checking...' messages
153
  --version               print the version of autoconf that created configure
154
Directory and file names:
155
  --prefix=PREFIX         install architecture-independent files in PREFIX
156
                          [$ac_default_prefix]
157
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158
                          [same as prefix]
159
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162
  --datadir=DIR           read-only architecture-independent data in DIR
163
                          [PREFIX/share]
164
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166
                          [PREFIX/com]
167
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169
  --includedir=DIR        C header files in DIR [PREFIX/include]
170
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171
  --infodir=DIR           info documentation in DIR [PREFIX/info]
172
  --mandir=DIR            man documentation in DIR [PREFIX/man]
173
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174
  --program-prefix=PREFIX prepend PREFIX to installed program names
175
  --program-suffix=SUFFIX append SUFFIX to installed program names
176
  --program-transform-name=PROGRAM
177
                          run sed PROGRAM on installed program names
178
EOF
179
    cat << EOF
180
Host type:
181
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182
  --host=HOST             configure for HOST [guessed]
183
  --target=TARGET         configure for TARGET [TARGET=HOST]
184
Features and packages:
185
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189
  --x-includes=DIR        X include files are in DIR
190
  --x-libraries=DIR       X library files are in DIR
191
EOF
192
    if test -n "$ac_help"; then
193
      echo "--enable and --with options recognized:$ac_help"
194
    fi
195
    exit 0 ;;
196
 
197
  -host | --host | --hos | --ho)
198
    ac_prev=host ;;
199
  -host=* | --host=* | --hos=* | --ho=*)
200
    host="$ac_optarg" ;;
201
 
202
  -includedir | --includedir | --includedi | --included | --include \
203
  | --includ | --inclu | --incl | --inc)
204
    ac_prev=includedir ;;
205
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206
  | --includ=* | --inclu=* | --incl=* | --inc=*)
207
    includedir="$ac_optarg" ;;
208
 
209
  -infodir | --infodir | --infodi | --infod | --info | --inf)
210
    ac_prev=infodir ;;
211
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212
    infodir="$ac_optarg" ;;
213
 
214
  -libdir | --libdir | --libdi | --libd)
215
    ac_prev=libdir ;;
216
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217
    libdir="$ac_optarg" ;;
218
 
219
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220
  | --libexe | --libex | --libe)
221
    ac_prev=libexecdir ;;
222
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223
  | --libexe=* | --libex=* | --libe=*)
224
    libexecdir="$ac_optarg" ;;
225
 
226
  -localstatedir | --localstatedir | --localstatedi | --localstated \
227
  | --localstate | --localstat | --localsta | --localst \
228
  | --locals | --local | --loca | --loc | --lo)
229
    ac_prev=localstatedir ;;
230
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233
    localstatedir="$ac_optarg" ;;
234
 
235
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236
    ac_prev=mandir ;;
237
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238
    mandir="$ac_optarg" ;;
239
 
240
  -nfp | --nfp | --nf)
241
    # Obsolete; use --without-fp.
242
    with_fp=no ;;
243
 
244
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245
  | --no-cr | --no-c)
246
    no_create=yes ;;
247
 
248
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250
    no_recursion=yes ;;
251
 
252
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254
  | --oldin | --oldi | --old | --ol | --o)
255
    ac_prev=oldincludedir ;;
256
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259
    oldincludedir="$ac_optarg" ;;
260
 
261
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262
    ac_prev=prefix ;;
263
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264
    prefix="$ac_optarg" ;;
265
 
266
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267
  | --program-pre | --program-pr | --program-p)
268
    ac_prev=program_prefix ;;
269
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271
    program_prefix="$ac_optarg" ;;
272
 
273
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274
  | --program-suf | --program-su | --program-s)
275
    ac_prev=program_suffix ;;
276
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278
    program_suffix="$ac_optarg" ;;
279
 
280
  -program-transform-name | --program-transform-name \
281
  | --program-transform-nam | --program-transform-na \
282
  | --program-transform-n | --program-transform- \
283
  | --program-transform | --program-transfor \
284
  | --program-transfo | --program-transf \
285
  | --program-trans | --program-tran \
286
  | --progr-tra | --program-tr | --program-t)
287
    ac_prev=program_transform_name ;;
288
  -program-transform-name=* | --program-transform-name=* \
289
  | --program-transform-nam=* | --program-transform-na=* \
290
  | --program-transform-n=* | --program-transform-=* \
291
  | --program-transform=* | --program-transfor=* \
292
  | --program-transfo=* | --program-transf=* \
293
  | --program-trans=* | --program-tran=* \
294
  | --progr-tra=* | --program-tr=* | --program-t=*)
295
    program_transform_name="$ac_optarg" ;;
296
 
297
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298
  | -silent | --silent | --silen | --sile | --sil)
299
    silent=yes ;;
300
 
301
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302
    ac_prev=sbindir ;;
303
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304
  | --sbi=* | --sb=*)
305
    sbindir="$ac_optarg" ;;
306
 
307
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309
  | --sharedst | --shareds | --shared | --share | --shar \
310
  | --sha | --sh)
311
    ac_prev=sharedstatedir ;;
312
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315
  | --sha=* | --sh=*)
316
    sharedstatedir="$ac_optarg" ;;
317
 
318
  -site | --site | --sit)
319
    ac_prev=site ;;
320
  -site=* | --site=* | --sit=*)
321
    site="$ac_optarg" ;;
322
 
323
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324
    ac_prev=srcdir ;;
325
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326
    srcdir="$ac_optarg" ;;
327
 
328
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329
  | --syscon | --sysco | --sysc | --sys | --sy)
330
    ac_prev=sysconfdir ;;
331
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333
    sysconfdir="$ac_optarg" ;;
334
 
335
  -target | --target | --targe | --targ | --tar | --ta | --t)
336
    ac_prev=target ;;
337
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338
    target="$ac_optarg" ;;
339
 
340
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341
    verbose=yes ;;
342
 
343
  -version | --version | --versio | --versi | --vers)
344
    echo "configure generated by autoconf version 2.13"
345
    exit 0 ;;
346
 
347
  -with-* | --with-*)
348
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349
    # Reject names that are not valid shell variable names.
350
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352
    fi
353
    ac_package=`echo $ac_package| sed 's/-/_/g'`
354
    case "$ac_option" in
355
      *=*) ;;
356
      *) ac_optarg=yes ;;
357
    esac
358
    eval "with_${ac_package}='$ac_optarg'" ;;
359
 
360
  -without-* | --without-*)
361
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362
    # Reject names that are not valid shell variable names.
363
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365
    fi
366
    ac_package=`echo $ac_package| sed 's/-/_/g'`
367
    eval "with_${ac_package}=no" ;;
368
 
369
  --x)
370
    # Obsolete; use --with-x.
371
    with_x=yes ;;
372
 
373
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374
  | --x-incl | --x-inc | --x-in | --x-i)
375
    ac_prev=x_includes ;;
376
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378
    x_includes="$ac_optarg" ;;
379
 
380
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382
    ac_prev=x_libraries ;;
383
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385
    x_libraries="$ac_optarg" ;;
386
 
387
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388
    ;;
389
 
390
  *)
391
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392
      echo "configure: warning: $ac_option: invalid host type" 1>&2
393
    fi
394
    if test "x$nonopt" != xNONE; then
395
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396
    fi
397
    nonopt="$ac_option"
398
    ;;
399
 
400
  esac
401
done
402
 
403
if test -n "$ac_prev"; then
404
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
fi
406
 
407
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
 
409
# File descriptor usage:
410
# 0 standard input
411
# 1 file creation
412
# 2 errors and warnings
413
# 3 some systems may open it to /dev/tty
414
# 4 used on the Kubota Titan
415
# 6 checking for... messages and results
416
# 5 compiler messages saved in config.log
417
if test "$silent" = yes; then
418
  exec 6>/dev/null
419
else
420
  exec 6>&1
421
fi
422
exec 5>./config.log
423
 
424
echo "\
425
This file contains any messages produced by compilers while
426
running configure, to aid debugging if configure makes a mistake.
427
" 1>&5
428
 
429
# Strip out --no-create and --no-recursion so they do not pile up.
430
# Also quote any args containing shell metacharacters.
431
ac_configure_args=
432
for ac_arg
433
do
434
  case "$ac_arg" in
435
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436
  | --no-cr | --no-c) ;;
437
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
  esac
443
done
444
 
445
# NLS nuisances.
446
# Only set these to C if already set.  These must not be set unconditionally
447
# because not all systems understand e.g. LANG=C (notably SCO).
448
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449
# Non-C LC_CTYPE values break the ctype check.
450
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
 
455
# confdefs.h avoids OS command line length limits that DEFS can exceed.
456
rm -rf conftest* confdefs.h
457
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
echo > confdefs.h
459
 
460
# A filename unique to this package, relative to the directory that
461
# configure is in, which we can look for to find out if srcdir is correct.
462
ac_unique_file=../generic/tixInit.c
463
 
464
# Find the source files, if location was not specified.
465
if test -z "$srcdir"; then
466
  ac_srcdir_defaulted=yes
467
  # Try the directory containing this script, then its parent.
468
  ac_prog=$0
469
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471
  srcdir=$ac_confdir
472
  if test ! -r $srcdir/$ac_unique_file; then
473
    srcdir=..
474
  fi
475
else
476
  ac_srcdir_defaulted=no
477
fi
478
if test ! -r $srcdir/$ac_unique_file; then
479
  if test "$ac_srcdir_defaulted" = yes; then
480
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481
  else
482
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
  fi
484
fi
485
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
 
487
# Prefer explicitly selected file to automatically selected ones.
488
if test -z "$CONFIG_SITE"; then
489
  if test "x$prefix" != xNONE; then
490
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491
  else
492
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493
  fi
494
fi
495
for ac_site_file in $CONFIG_SITE; do
496
  if test -r "$ac_site_file"; then
497
    echo "loading site script $ac_site_file"
498
    . "$ac_site_file"
499
  fi
500
done
501
 
502
if test -r "$cache_file"; then
503
  echo "loading cache $cache_file"
504
  . $cache_file
505
else
506
  echo "creating cache $cache_file"
507
  > $cache_file
508
fi
509
 
510
ac_ext=c
511
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512
ac_cpp='$CPP $CPPFLAGS'
513
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515
cross_compiling=$ac_cv_prog_cc_cross
516
 
517
ac_exeext=
518
ac_objext=o
519
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522
    ac_n= ac_c='
523
' ac_t='        '
524
  else
525
    ac_n=-n ac_c= ac_t=
526
  fi
527
else
528
  ac_n= ac_c='\c' ac_t=
529
fi
530
 
531
 
532
 
533
# Extract the first word of "gcc", so it can be a program name with args.
534
set dummy gcc; ac_word=$2
535
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536
echo "configure:537: checking for $ac_word" >&5
537
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
538
  echo $ac_n "(cached) $ac_c" 1>&6
539
else
540
  if test -n "$CC"; then
541
  ac_cv_prog_CC="$CC" # Let the user override the test.
542
else
543
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
544
  ac_dummy="$PATH"
545
  for ac_dir in $ac_dummy; do
546
    test -z "$ac_dir" && ac_dir=.
547
    if test -f $ac_dir/$ac_word; then
548
      ac_cv_prog_CC="gcc"
549
      break
550
    fi
551
  done
552
  IFS="$ac_save_ifs"
553
fi
554
fi
555
CC="$ac_cv_prog_CC"
556
if test -n "$CC"; then
557
  echo "$ac_t""$CC" 1>&6
558
else
559
  echo "$ac_t""no" 1>&6
560
fi
561
 
562
if test -z "$CC"; then
563
  # Extract the first word of "cc", so it can be a program name with args.
564
set dummy cc; ac_word=$2
565
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566
echo "configure:567: checking for $ac_word" >&5
567
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568
  echo $ac_n "(cached) $ac_c" 1>&6
569
else
570
  if test -n "$CC"; then
571
  ac_cv_prog_CC="$CC" # Let the user override the test.
572
else
573
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
574
  ac_prog_rejected=no
575
  ac_dummy="$PATH"
576
  for ac_dir in $ac_dummy; do
577
    test -z "$ac_dir" && ac_dir=.
578
    if test -f $ac_dir/$ac_word; then
579
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
580
        ac_prog_rejected=yes
581
        continue
582
      fi
583
      ac_cv_prog_CC="cc"
584
      break
585
    fi
586
  done
587
  IFS="$ac_save_ifs"
588
if test $ac_prog_rejected = yes; then
589
  # We found a bogon in the path, so make sure we never use it.
590
  set dummy $ac_cv_prog_CC
591
  shift
592
  if test $# -gt 0; then
593
    # We chose a different compiler from the bogus one.
594
    # However, it has the same basename, so the bogon will be chosen
595
    # first if we set CC to just the basename; use the full file name.
596
    shift
597
    set dummy "$ac_dir/$ac_word" "$@"
598
    shift
599
    ac_cv_prog_CC="$@"
600
  fi
601
fi
602
fi
603
fi
604
CC="$ac_cv_prog_CC"
605
if test -n "$CC"; then
606
  echo "$ac_t""$CC" 1>&6
607
else
608
  echo "$ac_t""no" 1>&6
609
fi
610
 
611
  if test -z "$CC"; then
612
    case "`uname -s`" in
613
    *win32* | *WIN32*)
614
      # Extract the first word of "cl", so it can be a program name with args.
615
set dummy cl; ac_word=$2
616
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617
echo "configure:618: checking for $ac_word" >&5
618
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619
  echo $ac_n "(cached) $ac_c" 1>&6
620
else
621
  if test -n "$CC"; then
622
  ac_cv_prog_CC="$CC" # Let the user override the test.
623
else
624
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
625
  ac_dummy="$PATH"
626
  for ac_dir in $ac_dummy; do
627
    test -z "$ac_dir" && ac_dir=.
628
    if test -f $ac_dir/$ac_word; then
629
      ac_cv_prog_CC="cl"
630
      break
631
    fi
632
  done
633
  IFS="$ac_save_ifs"
634
fi
635
fi
636
CC="$ac_cv_prog_CC"
637
if test -n "$CC"; then
638
  echo "$ac_t""$CC" 1>&6
639
else
640
  echo "$ac_t""no" 1>&6
641
fi
642
 ;;
643
    esac
644
  fi
645
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646
fi
647
 
648
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
649
echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650
 
651
ac_ext=c
652
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653
ac_cpp='$CPP $CPPFLAGS'
654
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656
cross_compiling=$ac_cv_prog_cc_cross
657
 
658
cat > conftest.$ac_ext << EOF
659
 
660
#line 661 "configure"
661
#include "confdefs.h"
662
 
663
main(){return(0);}
664
EOF
665
if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
666
  ac_cv_prog_cc_works=yes
667
  # If we can't run a trivial program, we are probably using a cross compiler.
668
  if (./conftest; exit) 2>/dev/null; then
669
    ac_cv_prog_cc_cross=no
670
  else
671
    ac_cv_prog_cc_cross=yes
672
  fi
673
else
674
  echo "configure: failed program was:" >&5
675
  cat conftest.$ac_ext >&5
676
  ac_cv_prog_cc_works=no
677
fi
678
rm -fr conftest*
679
ac_ext=c
680
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681
ac_cpp='$CPP $CPPFLAGS'
682
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684
cross_compiling=$ac_cv_prog_cc_cross
685
 
686
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
687
if test $ac_cv_prog_cc_works = no; then
688
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
689
fi
690
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
691
echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
692
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
693
cross_compiling=$ac_cv_prog_cc_cross
694
 
695
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
696
echo "configure:697: checking whether we are using GNU C" >&5
697
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
698
  echo $ac_n "(cached) $ac_c" 1>&6
699
else
700
  cat > conftest.c <
701
#ifdef __GNUC__
702
  yes;
703
#endif
704
EOF
705
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
706
  ac_cv_prog_gcc=yes
707
else
708
  ac_cv_prog_gcc=no
709
fi
710
fi
711
 
712
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
713
 
714
if test $ac_cv_prog_gcc = yes; then
715
  GCC=yes
716
else
717
  GCC=
718
fi
719
 
720
ac_test_CFLAGS="${CFLAGS+set}"
721
ac_save_CFLAGS="$CFLAGS"
722
CFLAGS=
723
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724
echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726
  echo $ac_n "(cached) $ac_c" 1>&6
727
else
728
  echo 'void f(){}' > conftest.c
729
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730
  ac_cv_prog_cc_g=yes
731
else
732
  ac_cv_prog_cc_g=no
733
fi
734
rm -f conftest*
735
 
736
fi
737
 
738
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739
if test "$ac_test_CFLAGS" = set; then
740
  CFLAGS="$ac_save_CFLAGS"
741
elif test $ac_cv_prog_cc_g = yes; then
742
  if test "$GCC" = yes; then
743
    CFLAGS="-g -O2"
744
  else
745
    CFLAGS="-g"
746
  fi
747
else
748
  if test "$GCC" = yes; then
749
    CFLAGS="-O2"
750
  else
751
    CFLAGS=
752
  fi
753
fi
754
 
755
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
756
echo "configure:757: checking for object suffix" >&5
757
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
758
  echo $ac_n "(cached) $ac_c" 1>&6
759
else
760
  rm -f conftest*
761
echo 'int i = 1;' > conftest.$ac_ext
762
if { (eval echo configure:763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
763
  for ac_file in conftest.*; do
764
    case $ac_file in
765
    *.c) ;;
766
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
767
    esac
768
  done
769
else
770
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
771
fi
772
rm -f conftest*
773
fi
774
 
775
echo "$ac_t""$ac_cv_objext" 1>&6
776
OBJEXT=$ac_cv_objext
777
ac_objext=$ac_cv_objext
778
 
779
NM=${NM-nm}
780
 
781
AS=${AS-as}
782
 
783
LD=${LD-ld}
784
 
785
DLLTOOL=${DLLTOOL-dlltool}
786
 
787
WINDRES=${WINDRES-windres}
788
 
789
ac_aux_dir=
790
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
791
  if test -f $ac_dir/install-sh; then
792
    ac_aux_dir=$ac_dir
793
    ac_install_sh="$ac_aux_dir/install-sh -c"
794
    break
795
  elif test -f $ac_dir/install.sh; then
796
    ac_aux_dir=$ac_dir
797
    ac_install_sh="$ac_aux_dir/install.sh -c"
798
    break
799
  fi
800
done
801
if test -z "$ac_aux_dir"; then
802
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
803
fi
804
ac_config_guess=$ac_aux_dir/config.guess
805
ac_config_sub=$ac_aux_dir/config.sub
806
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
807
 
808
# Find a good install program.  We prefer a C program (faster),
809
# so one script is as good as another.  But avoid the broken or
810
# incompatible versions:
811
# SysV /etc/install, /usr/sbin/install
812
# SunOS /usr/etc/install
813
# IRIX /sbin/install
814
# AIX /bin/install
815
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
816
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
817
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
818
# ./install, which can be erroneously created by make from ./install.sh.
819
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
820
echo "configure:821: checking for a BSD compatible install" >&5
821
if test -z "$INSTALL"; then
822
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
823
  echo $ac_n "(cached) $ac_c" 1>&6
824
else
825
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
826
  for ac_dir in $PATH; do
827
    # Account for people who put trailing slashes in PATH elements.
828
    case "$ac_dir/" in
829
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
830
    *)
831
      # OSF1 and SCO ODT 3.0 have their own names for install.
832
      # Don't use installbsd from OSF since it installs stuff as root
833
      # by default.
834
      for ac_prog in ginstall scoinst install; do
835
        if test -f $ac_dir/$ac_prog; then
836
          if test $ac_prog = install &&
837
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
838
            # AIX install.  It has an incompatible calling convention.
839
            :
840
          else
841
            ac_cv_path_install="$ac_dir/$ac_prog -c"
842
            break 2
843
          fi
844
        fi
845
      done
846
      ;;
847
    esac
848
  done
849
  IFS="$ac_save_IFS"
850
 
851
fi
852
  if test "${ac_cv_path_install+set}" = set; then
853
    INSTALL="$ac_cv_path_install"
854
  else
855
    # As a last resort, use the slow shell script.  We don't cache a
856
    # path for INSTALL within a source directory, because that will
857
    # break other packages using the cache if that directory is
858
    # removed, or if the path is relative.
859
    INSTALL="$ac_install_sh"
860
  fi
861
fi
862
echo "$ac_t""$INSTALL" 1>&6
863
 
864
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
865
# It thinks the first close brace ends the variable substitution.
866
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
867
 
868
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
869
 
870
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
871
 
872
 
873
# Check for Tcl and Tk.
874
 
875
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
876
if test x"${no_tcl}" = x ; then
877
      no_tcl=true
878
    # Check whether --with-tclconfig or --without-tclconfig was given.
879
if test "${with_tclconfig+set}" = set; then
880
  withval="$with_tclconfig"
881
  with_tclconfig=${withval}
882
fi
883
 
884
    echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
885
echo "configure:886: checking for Tcl configuration script" >&5
886
    if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
887
  echo $ac_n "(cached) $ac_c" 1>&6
888
else
889
 
890
 
891
        if test x"${with_tclconfig}" != x ; then
892
        if test -f "${with_tclconfig}/tclConfig.sh" ; then
893
            ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
894
        else
895
            { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
896
        fi
897
    fi
898
 
899
        if test x"${ac_cv_c_tclconfig}" = x ; then
900
        for i in $dirlist; do
901
            if test -f $srcdir/$i/unix/tclConfig.sh ; then
902
                ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
903
                break
904
            fi
905
        done
906
    fi
907
        if test x"${ac_cv_c_tclconfig}" = x ; then
908
                for i in $dirlist; do
909
            if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
910
                tclconfpath=$i
911
                break
912
            fi
913
        done
914
 
915
                        for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
916
            if test -f $i/unix/tclConfig.sh ; then
917
                ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
918
                break
919
            fi
920
        done
921
    fi
922
 
923
            if test x"${ac_cv_c_tclconfig}" = x ; then
924
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
925
        if test -f $ccpath/tclConfig.sh; then
926
            ac_cv_c_tclconfig=$ccpath
927
        fi
928
    fi
929
 
930
fi
931
 
932
    if test x"${ac_cv_c_tclconfig}" = x ; then
933
        TCLCONFIG=""
934
        echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
935
    else
936
        no_tcl=""
937
        TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
938
        echo "$ac_t""${TCLCONFIG}" 1>&6
939
     fi
940
fi
941
 
942
 
943
 
944
    . $TCLCONFIG
945
 
946
 
947
 
948
 
949
 
950
 
951
 
952
 
953
 
954
 
955
 
956
 
957
 
958
 
959
 
960
 
961
 
962
 
963
 
964
 
965
 
966
 
967
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
968
if test x"${no_tk}" = x ; then
969
      no_tk=true
970
    # Check whether --with-tkconfig or --without-tkconfig was given.
971
if test "${with_tkconfig+set}" = set; then
972
  withval="$with_tkconfig"
973
  with_tkconfig=${withval}
974
fi
975
 
976
    echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
977
echo "configure:978: checking for Tk configuration script" >&5
978
    if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
979
  echo $ac_n "(cached) $ac_c" 1>&6
980
else
981
 
982
 
983
        if test x"${with_tkconfig}" != x ; then
984
        if test -f "${with_tkconfig}/tkConfig.sh" ; then
985
            ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
986
        else
987
            { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
988
        fi
989
    fi
990
 
991
        if test x"${ac_cv_c_tkconfig}" = x ; then
992
        for i in $dirlist; do
993
            if test -f $srcdir/$i/unix/tkConfig.sh ; then
994
                ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
995
                break
996
            fi
997
        done
998
    fi
999
        if test x"${ac_cv_c_tkconfig}" = x ; then
1000
                for i in $dirlist; do
1001
            if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
1002
                tkconfpath=$i
1003
                break
1004
            fi
1005
        done
1006
 
1007
                        for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
1008
            if test -f $i/unix/tkConfig.sh ; then
1009
                ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
1010
                break
1011
            fi
1012
        done
1013
    fi
1014
 
1015
            if test x"${ac_cv_c_tkconfig}" = x ; then
1016
                ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
1017
        if test -f $ccpath/tkConfig.sh; then
1018
            ac_cv_c_tkconfig=$ccpath
1019
        fi
1020
    fi
1021
 
1022
fi
1023
 
1024
    if test x"${ac_cv_c_tkconfig}" = x ; then
1025
        TKCONFIG=""
1026
        echo "configure: warning: Can't find Tk configuration definitions" 1>&2
1027
    else
1028
        no_tk=""
1029
        TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
1030
        echo "$ac_t""${TKCONFIG}" 1>&6
1031
     fi
1032
fi
1033
 
1034
 
1035
 
1036
    if test -f "$TKCONFIG" ; then
1037
      . $TKCONFIG
1038
    fi
1039
 
1040
 
1041
 
1042
 
1043
 
1044
 
1045
 
1046
 
1047
 
1048
 
1049
 
1050
 
1051
 
1052
 
1053
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1054
echo "configure:1055: checking how to run the C preprocessor" >&5
1055
# On Suns, sometimes $CPP names a directory.
1056
if test -n "$CPP" && test -d "$CPP"; then
1057
  CPP=
1058
fi
1059
if test -z "$CPP"; then
1060
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1061
  echo $ac_n "(cached) $ac_c" 1>&6
1062
else
1063
    # This must be in double quotes, not single quotes, because CPP may get
1064
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1065
  CPP="${CC-cc} -E"
1066
  # On the NeXT, cc -E runs the code through the compiler's parser,
1067
  # not just through cpp.
1068
  cat > conftest.$ac_ext <
1069
#line 1070 "configure"
1070
#include "confdefs.h"
1071
#include 
1072
Syntax Error
1073
EOF
1074
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075
{ (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077
if test -z "$ac_err"; then
1078
  :
1079
else
1080
  echo "$ac_err" >&5
1081
  echo "configure: failed program was:" >&5
1082
  cat conftest.$ac_ext >&5
1083
  rm -rf conftest*
1084
  CPP="${CC-cc} -E -traditional-cpp"
1085
  cat > conftest.$ac_ext <
1086
#line 1087 "configure"
1087
#include "confdefs.h"
1088
#include 
1089
Syntax Error
1090
EOF
1091
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1092
{ (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1093
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094
if test -z "$ac_err"; then
1095
  :
1096
else
1097
  echo "$ac_err" >&5
1098
  echo "configure: failed program was:" >&5
1099
  cat conftest.$ac_ext >&5
1100
  rm -rf conftest*
1101
  CPP="${CC-cc} -nologo -E"
1102
  cat > conftest.$ac_ext <
1103
#line 1104 "configure"
1104
#include "confdefs.h"
1105
#include 
1106
Syntax Error
1107
EOF
1108
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1109
{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1110
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1111
if test -z "$ac_err"; then
1112
  :
1113
else
1114
  echo "$ac_err" >&5
1115
  echo "configure: failed program was:" >&5
1116
  cat conftest.$ac_ext >&5
1117
  rm -rf conftest*
1118
  CPP=/lib/cpp
1119
fi
1120
rm -f conftest*
1121
fi
1122
rm -f conftest*
1123
fi
1124
rm -f conftest*
1125
  ac_cv_prog_CPP="$CPP"
1126
fi
1127
  CPP="$ac_cv_prog_CPP"
1128
else
1129
  ac_cv_prog_CPP="$CPP"
1130
fi
1131
echo "$ac_t""$CPP" 1>&6
1132
 
1133
 
1134
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1135
no_tcl=true
1136
echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
1137
echo "configure:1138: checking for Tcl headers in the source tree" >&5
1138
# Check whether --with-tclinclude or --without-tclinclude was given.
1139
if test "${with_tclinclude+set}" = set; then
1140
  withval="$with_tclinclude"
1141
  with_tclinclude=${withval}
1142
fi
1143
 
1144
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
1145
  echo $ac_n "(cached) $ac_c" 1>&6
1146
else
1147
 
1148
if test x"${with_tclinclude}" != x ; then
1149
  if test -f ${with_tclinclude}/tcl.h ; then
1150
    ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
1151
  elif test -f ${with_tclinclude}/generic/tcl.h ; then
1152
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
1153
  else
1154
    { echo "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
1155
  fi
1156
fi
1157
 
1158
if test x"${ac_cv_c_tclconfig}" != x ; then
1159
  for i in $dirlist; do
1160
    if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
1161
      ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
1162
      break
1163
    fi
1164
  done
1165
fi
1166
 
1167
if test x"${ac_cv_c_tclh}" = x ; then
1168
        for i in $dirlist; do
1169
        if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
1170
            tclpath=$srcdir/$i
1171
            break
1172
        fi
1173
    done
1174
 
1175
            for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
1176
        if test -f $i/generic/tcl.h ; then
1177
          ac_cv_c_tclh=`(cd $i/generic; pwd)`
1178
          break
1179
        fi
1180
    done
1181
fi
1182
 
1183
if test x"${ac_cv_c_tclh}" = x ; then
1184
        ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
1185
    if test -f $ccpath/tcl.h; then
1186
        ac_cv_c_tclh=$ccpath
1187
    fi
1188
fi
1189
 
1190
if test x"${ac_cv_c_tclh}" = x ; then
1191
   echo "$ac_t""none" 1>&6
1192
   ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
1193
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
1194
echo "configure:1195: checking for tcl.h" >&5
1195
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1196
  echo $ac_n "(cached) $ac_c" 1>&6
1197
else
1198
  cat > conftest.$ac_ext <
1199
#line 1200 "configure"
1200
#include "confdefs.h"
1201
#include 
1202
EOF
1203
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204
{ (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1206
if test -z "$ac_err"; then
1207
  rm -rf conftest*
1208
  eval "ac_cv_header_$ac_safe=yes"
1209
else
1210
  echo "$ac_err" >&5
1211
  echo "configure: failed program was:" >&5
1212
  cat conftest.$ac_ext >&5
1213
  rm -rf conftest*
1214
  eval "ac_cv_header_$ac_safe=no"
1215
fi
1216
rm -f conftest*
1217
fi
1218
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1219
  echo "$ac_t""yes" 1>&6
1220
  ac_cv_c_tclh=installed
1221
else
1222
  echo "$ac_t""no" 1>&6
1223
ac_cv_c_tclh=""
1224
fi
1225
 
1226
else
1227
   echo "$ac_t""${ac_cv_c_tclh}" 1>&6
1228
fi
1229
 
1230
fi
1231
 
1232
  TCLHDIR=""
1233
if test x"${ac_cv_c_tclh}" = x ; then
1234
    { echo "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
1235
fi
1236
if test x"${ac_cv_c_tclh}" != x ; then
1237
    no_tcl=""
1238
    if test x"${ac_cv_c_tclh}" != x"installed" ; then
1239
        if test x"${CC}" = xcl ; then
1240
            tmp="`cygpath --windows ${ac_cv_c_tclh}`"
1241
            ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1242
        fi
1243
        echo "$ac_t""${ac_cv_c_tclh}" 1>&6
1244
        TCLHDIR="-I${ac_cv_c_tclh}"
1245
    fi
1246
fi
1247
 
1248
 
1249
 
1250
# FIXME: consider only doing this if --with-x given.
1251
 
1252
#
1253
# Ok, lets find the tk source trees so we can use the headers
1254
# If the directory (presumably symlink) named "tk" exists, use that one
1255
# in preference to any others.  Same logic is used when choosing library
1256
# and again with Tcl. The search order is the best place to look first, then in
1257
# decreasing significance. The loop breaks if the trigger file is found.
1258
# Note the gross little conversion here of srcdir by cd'ing to the found
1259
# directory. This converts the path from a relative to an absolute, so
1260
# recursive cache variables for the path will work right. We check all
1261
# the possible paths in one loop rather than many seperate loops to speed
1262
# things up.
1263
# the alternative search directory is involked by --with-tkinclude
1264
#
1265
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1266
no_tk=true
1267
echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
1268
echo "configure:1269: checking for Tk headers in the source tree" >&5
1269
# Check whether --with-tkinclude or --without-tkinclude was given.
1270
if test "${with_tkinclude+set}" = set; then
1271
  withval="$with_tkinclude"
1272
  with_tkinclude=${withval}
1273
fi
1274
 
1275
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
1276
  echo $ac_n "(cached) $ac_c" 1>&6
1277
else
1278
 
1279
if test x"${with_tkinclude}" != x ; then
1280
  if test -f ${with_tkinclude}/tk.h ; then
1281
    ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
1282
  elif test -f ${with_tkinclude}/generic/tk.h ; then
1283
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
1284
  else
1285
    { echo "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
1286
  fi
1287
fi
1288
 
1289
if test x"${ac_cv_c_tkconfig}" != x ; then
1290
  for i in $dirlist; do
1291
    if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
1292
      ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
1293
      break
1294
    fi
1295
  done
1296
fi
1297
 
1298
if test x"${ac_cv_c_tkh}" = x ; then
1299
        for i in $dirlist; do
1300
        if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
1301
            tkpath=$srcdir/$i
1302
            break
1303
        fi
1304
    done
1305
 
1306
            for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
1307
        if test -f $i/generic/tk.h ; then
1308
          ac_cv_c_tkh=`(cd $i/generic; pwd)`
1309
          break
1310
        fi
1311
    done
1312
fi
1313
 
1314
if test x"${ac_cv_c_tkh}" = x ; then
1315
    echo "$ac_t""none" 1>&6
1316
            ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
1317
    if test -f $ccpath/tk.h; then
1318
        ac_cv_c_tkh=$ccpath
1319
    fi
1320
else
1321
   echo "$ac_t""${ac_cv_c_tkh}" 1>&6
1322
fi
1323
 
1324
fi
1325
 
1326
  TKHDIR=""
1327
if test x"${ac_cv_c_tkh}" = x ; then
1328
    { echo "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
1329
fi
1330
if test x"${ac_cv_c_tkh}" != x ; then
1331
    no_tk=""
1332
    if test x"${ac_cv_c_tkh}" != x"installed" ; then
1333
        if test x"${CC}" = xcl ; then
1334
            tmp="`cygpath --windows ${ac_cv_c_tkh}`"
1335
            ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1336
        fi
1337
        echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
1338
        TKHDIR="-I${ac_cv_c_tkh}"
1339
    fi
1340
fi
1341
 
1342
 
1343
 
1344
 
1345
TCL_VER=${TCL_VERSION}
1346
 
1347
 
1348
if test -d tcl${TCL_VERSION}; then
1349
  true
1350
else
1351
  mkdir tcl${TCL_VERSION}
1352
fi
1353
 
1354
SRC_DIR=`cd ${srcdir}/..; pwd`
1355
 
1356
 
1357
TIX_VERSION=4.1
1358
 
1359
 
1360
VERSION=${TIX_VERSION}.${TCL_VERSION}
1361
 
1362
if test "$GCC" = yes; then
1363
    TIX_BUILD_LIB_SPEC="-L`pwd`/tcl${TCL_VERSION} -ltix`echo ${VERSION} | tr -d .`"
1364
    TIX_LIB_FULL_PATH="`pwd`/tcl${TCL_VERSION}/libtix`echo ${VERSION} | tr -d .`.a"
1365
    TIX_LIB_FILE="libtix`echo ${VERSION} | tr -d .`.a"
1366
    TIX_BUILD_LOCATION="`pwd`/tcl${TCL_VERSION}"
1367
else
1368
    tmp="`pwd`/libtix`echo ${VERSION} | tr -d .`.a"
1369
    TIX_LIB_FILE="libtix`echo ${VERSION} | tr -d .`.a"
1370
    tmp2="`cygpath --windows $tmp`"
1371
    TIX_BUILD_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1372
    TIX_LIB_FULL_PATH=${TIX_BUILD_LIB_SPEC}
1373
    TIX_BUILD_LOCATION="`pwd`\\tcl${TCL_VERSION}"
1374
fi
1375
 
1376
case "${host}" in
1377
*-*-cygwin*)
1378
        touch ac$$.c
1379
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
1380
            case "$EXTRA_CFLAGS" in
1381
                *-mwin32*) ;;
1382
                *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
1383
            esac
1384
        fi
1385
        rm -f ac$$.o ac$$.c
1386
        ;;
1387
esac
1388
 
1389
 
1390
 
1391
 
1392
 
1393
 
1394
 
1395
trap '' 1 2 15
1396
cat > confcache <<\EOF
1397
# This file is a shell script that caches the results of configure
1398
# tests run on this system so they can be shared between configure
1399
# scripts and configure runs.  It is not useful on other systems.
1400
# If it contains results you don't want to keep, you may remove or edit it.
1401
#
1402
# By default, configure uses ./config.cache as the cache file,
1403
# creating it if it does not exist already.  You can give configure
1404
# the --cache-file=FILE option to use a different cache file; that is
1405
# what configure does when it calls configure scripts in
1406
# subdirectories, so they share the cache.
1407
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1408
# config.status only pays attention to the cache file if you give it the
1409
# --recheck option to rerun configure.
1410
#
1411
EOF
1412
# The following way of writing the cache mishandles newlines in values,
1413
# but we know of no workaround that is simple, portable, and efficient.
1414
# So, don't put newlines in cache variables' values.
1415
# Ultrix sh set writes to stderr and can't be redirected directly,
1416
# and sets the high bit in the cache file unless we assign to the vars.
1417
(set) 2>&1 |
1418
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1419
  *ac_space=\ *)
1420
    # `set' does not quote correctly, so add quotes (double-quote substitution
1421
    # turns \\\\ into \\, and sed turns \\ into \).
1422
    sed -n \
1423
      -e "s/'/'\\\\''/g" \
1424
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1425
    ;;
1426
  *)
1427
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1428
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1429
    ;;
1430
  esac >> confcache
1431
if cmp -s $cache_file confcache; then
1432
  :
1433
else
1434
  if test -w $cache_file; then
1435
    echo "updating cache $cache_file"
1436
    cat confcache > $cache_file
1437
  else
1438
    echo "not updating unwritable cache $cache_file"
1439
  fi
1440
fi
1441
rm -f confcache
1442
 
1443
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1444
 
1445
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1446
# Let make expand exec_prefix.
1447
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1448
 
1449
# Any assignment to VPATH causes Sun make to only execute
1450
# the first set of double-colon rules, so remove it if not needed.
1451
# If there is a colon in the path, we need to keep it.
1452
if test "x$srcdir" = x.; then
1453
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1454
fi
1455
 
1456
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1457
 
1458
# Transform confdefs.h into DEFS.
1459
# Protect against shell expansion while executing Makefile rules.
1460
# Protect against Makefile macro expansion.
1461
cat > conftest.defs <<\EOF
1462
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1463
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1464
s%\[%\\&%g
1465
s%\]%\\&%g
1466
s%\$%$$%g
1467
EOF
1468
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1469
rm -f conftest.defs
1470
 
1471
 
1472
# Without the "./", some shells look in PATH for config.status.
1473
: ${CONFIG_STATUS=./config.status}
1474
 
1475
echo creating $CONFIG_STATUS
1476
rm -f $CONFIG_STATUS
1477
cat > $CONFIG_STATUS <
1478
#! /bin/sh
1479
# Generated automatically by configure.
1480
# Run this file to recreate the current configuration.
1481
# This directory was configured as follows,
1482
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1483
#
1484
# $0 $ac_configure_args
1485
#
1486
# Compiler output produced by configure, useful for debugging
1487
# configure, is in ./config.log if it exists.
1488
 
1489
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1490
for ac_option
1491
do
1492
  case "\$ac_option" in
1493
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1494
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1495
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1496
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1497
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1498
    exit 0 ;;
1499
  -help | --help | --hel | --he | --h)
1500
    echo "\$ac_cs_usage"; exit 0 ;;
1501
  *) echo "\$ac_cs_usage"; exit 1 ;;
1502
  esac
1503
done
1504
 
1505
ac_given_srcdir=$srcdir
1506
ac_given_INSTALL="$INSTALL"
1507
 
1508
trap 'rm -fr `echo "Makefile ../tixConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1509
EOF
1510
cat >> $CONFIG_STATUS <
1511
 
1512
# Protect against being on the right side of a sed subst in config.status.
1513
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1514
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1515
$ac_vpsub
1516
$extrasub
1517
s%@SHELL@%$SHELL%g
1518
s%@CFLAGS@%$CFLAGS%g
1519
s%@CPPFLAGS@%$CPPFLAGS%g
1520
s%@CXXFLAGS@%$CXXFLAGS%g
1521
s%@FFLAGS@%$FFLAGS%g
1522
s%@DEFS@%$DEFS%g
1523
s%@LDFLAGS@%$LDFLAGS%g
1524
s%@LIBS@%$LIBS%g
1525
s%@exec_prefix@%$exec_prefix%g
1526
s%@prefix@%$prefix%g
1527
s%@program_transform_name@%$program_transform_name%g
1528
s%@bindir@%$bindir%g
1529
s%@sbindir@%$sbindir%g
1530
s%@libexecdir@%$libexecdir%g
1531
s%@datadir@%$datadir%g
1532
s%@sysconfdir@%$sysconfdir%g
1533
s%@sharedstatedir@%$sharedstatedir%g
1534
s%@localstatedir@%$localstatedir%g
1535
s%@libdir@%$libdir%g
1536
s%@includedir@%$includedir%g
1537
s%@oldincludedir@%$oldincludedir%g
1538
s%@infodir@%$infodir%g
1539
s%@mandir@%$mandir%g
1540
s%@CC@%$CC%g
1541
s%@OBJEXT@%$OBJEXT%g
1542
s%@NM@%$NM%g
1543
s%@AS@%$AS%g
1544
s%@LD@%$LD%g
1545
s%@DLLTOOL@%$DLLTOOL%g
1546
s%@WINDRES@%$WINDRES%g
1547
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1548
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1549
s%@INSTALL_DATA@%$INSTALL_DATA%g
1550
s%@TCLCONFIG@%$TCLCONFIG%g
1551
s%@TCL_DEFS@%$TCL_DEFS%g
1552
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
1553
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
1554
s%@TCL_LIBS@%$TCL_LIBS%g
1555
s%@TCL_CFLAGS@%$TCL_CFLAGS%g
1556
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
1557
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
1558
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
1559
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
1560
s%@TCL_RANLIB@%$TCL_RANLIB%g
1561
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
1562
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1563
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
1564
s%@TKCONFIG@%$TKCONFIG%g
1565
s%@TK_VERSION@%$TK_VERSION%g
1566
s%@TK_DEFS@%$TK_DEFS%g
1567
s%@TK_LIB_FILE@%$TK_LIB_FILE%g
1568
s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
1569
s%@TK_LIBS@%$TK_LIBS%g
1570
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
1571
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
1572
s%@TK_XLIBSW@%$TK_XLIBSW%g
1573
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
1574
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
1575
s%@CPP@%$CPP%g
1576
s%@TCLHDIR@%$TCLHDIR%g
1577
s%@TKHDIR@%$TKHDIR%g
1578
s%@TCL_VER@%$TCL_VER%g
1579
s%@SRC_DIR@%$SRC_DIR%g
1580
s%@TIX_VERSION@%$TIX_VERSION%g
1581
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
1582
s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
1583
s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g
1584
s%@TIX_BUILD_LOCATION@%$TIX_BUILD_LOCATION%g
1585
s%@TIX_LIB_FULL_PATH@%$TIX_LIB_FULL_PATH%g
1586
 
1587
CEOF
1588
EOF
1589
 
1590
cat >> $CONFIG_STATUS <<\EOF
1591
 
1592
# Split the substitutions into bite-sized pieces for seds with
1593
# small command number limits, like on Digital OSF/1 and HP-UX.
1594
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1595
ac_file=1 # Number of current file.
1596
ac_beg=1 # First line for current file.
1597
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1598
ac_more_lines=:
1599
ac_sed_cmds=""
1600
while $ac_more_lines; do
1601
  if test $ac_beg -gt 1; then
1602
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1603
  else
1604
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1605
  fi
1606
  if test ! -s conftest.s$ac_file; then
1607
    ac_more_lines=false
1608
    rm -f conftest.s$ac_file
1609
  else
1610
    if test -z "$ac_sed_cmds"; then
1611
      ac_sed_cmds="sed -f conftest.s$ac_file"
1612
    else
1613
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1614
    fi
1615
    ac_file=`expr $ac_file + 1`
1616
    ac_beg=$ac_end
1617
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1618
  fi
1619
done
1620
if test -z "$ac_sed_cmds"; then
1621
  ac_sed_cmds=cat
1622
fi
1623
EOF
1624
 
1625
cat >> $CONFIG_STATUS <
1626
 
1627
CONFIG_FILES=\${CONFIG_FILES-"Makefile ../tixConfig.sh"}
1628
EOF
1629
cat >> $CONFIG_STATUS <<\EOF
1630
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1631
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1632
  case "$ac_file" in
1633
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1634
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1635
  *) ac_file_in="${ac_file}.in" ;;
1636
  esac
1637
 
1638
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1639
 
1640
  # Remove last slash and all that follows it.  Not all systems have dirname.
1641
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1642
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1643
    # The file is in a subdirectory.
1644
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1645
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1646
    # A "../" for each directory in $ac_dir_suffix.
1647
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1648
  else
1649
    ac_dir_suffix= ac_dots=
1650
  fi
1651
 
1652
  case "$ac_given_srcdir" in
1653
  .)  srcdir=.
1654
      if test -z "$ac_dots"; then top_srcdir=.
1655
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1656
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1657
  *) # Relative path.
1658
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1659
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1660
  esac
1661
 
1662
  case "$ac_given_INSTALL" in
1663
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1664
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1665
  esac
1666
 
1667
  echo creating "$ac_file"
1668
  rm -f "$ac_file"
1669
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1670
  case "$ac_file" in
1671
  *Makefile*) ac_comsub="1i\\
1672
# $configure_input" ;;
1673
  *) ac_comsub= ;;
1674
  esac
1675
 
1676
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1677
  sed -e "$ac_comsub
1678
s%@configure_input@%$configure_input%g
1679
s%@srcdir@%$srcdir%g
1680
s%@top_srcdir@%$top_srcdir%g
1681
s%@INSTALL@%$INSTALL%g
1682
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1683
fi; done
1684
rm -f conftest.s*
1685
 
1686
EOF
1687
cat >> $CONFIG_STATUS <
1688
 
1689
EOF
1690
cat >> $CONFIG_STATUS <<\EOF
1691
 
1692
exit 0
1693
EOF
1694
chmod +x $CONFIG_STATUS
1695
rm -fr confdefs* $ac_clean_files
1696
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1697
 

powered by: WebSVN 2.1.0

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