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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 578 markom
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/local
15
ac_help="$ac_help
16
  --enable-gcc            allow use of gcc if available"
17
ac_help="$ac_help
18
  --with-tcl=DIR          use Tcl 8.0 binaries from DIR"
19
ac_help="$ac_help
20
  --with-tk=DIR          use Tk 8.0 binaries from DIR"
21
ac_help="$ac_help
22
  --with-itcl=DIR          use Itcl 3.0 binaries from DIR"
23
ac_help="$ac_help
24
  --with-cflags=FLAGS     set compiler flags to FLAGS"
25
ac_help="$ac_help
26
  --with-cc=CC            set C compiler to CC"
27
ac_help="$ac_help
28
  --with-x                use the X Window System"
29
ac_help="$ac_help
30
  --enable-shared         build libitk as a shared library"
31
 
32
# Initialize some variables set by options.
33
# The variables have the same names as the options, with
34
# dashes changed to underlines.
35
build=NONE
36
cache_file=./config.cache
37
exec_prefix=NONE
38
host=NONE
39
no_create=
40
nonopt=NONE
41
no_recursion=
42
prefix=NONE
43
program_prefix=NONE
44
program_suffix=NONE
45
program_transform_name=s,x,x,
46
silent=
47
site=
48
srcdir=
49
target=NONE
50
verbose=
51
x_includes=NONE
52
x_libraries=NONE
53
bindir='${exec_prefix}/bin'
54
sbindir='${exec_prefix}/sbin'
55
libexecdir='${exec_prefix}/libexec'
56
datadir='${prefix}/share'
57
sysconfdir='${prefix}/etc'
58
sharedstatedir='${prefix}/com'
59
localstatedir='${prefix}/var'
60
libdir='${exec_prefix}/lib'
61
includedir='${prefix}/include'
62
oldincludedir='/usr/include'
63
infodir='${prefix}/info'
64
mandir='${prefix}/man'
65
 
66
# Initialize some other variables.
67
subdirs=
68
MFLAGS= MAKEFLAGS=
69
SHELL=${CONFIG_SHELL-/bin/sh}
70
# Maximum number of lines to put in a shell here document.
71
ac_max_here_lines=12
72
 
73
ac_prev=
74
for ac_option
75
do
76
 
77
  # If the previous option needs an argument, assign it.
78
  if test -n "$ac_prev"; then
79
    eval "$ac_prev=\$ac_option"
80
    ac_prev=
81
    continue
82
  fi
83
 
84
  case "$ac_option" in
85
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86
  *) ac_optarg= ;;
87
  esac
88
 
89
  # Accept the important Cygnus configure options, so we can diagnose typos.
90
 
91
  case "$ac_option" in
92
 
93
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
94
    ac_prev=bindir ;;
95
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96
    bindir="$ac_optarg" ;;
97
 
98
  -build | --build | --buil | --bui | --bu)
99
    ac_prev=build ;;
100
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101
    build="$ac_optarg" ;;
102
 
103
  -cache-file | --cache-file | --cache-fil | --cache-fi \
104
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105
    ac_prev=cache_file ;;
106
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108
    cache_file="$ac_optarg" ;;
109
 
110
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111
    ac_prev=datadir ;;
112
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113
  | --da=*)
114
    datadir="$ac_optarg" ;;
115
 
116
  -disable-* | --disable-*)
117
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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
    eval "enable_${ac_feature}=no" ;;
124
 
125
  -enable-* | --enable-*)
126
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127
    # Reject names that are not valid shell variable names.
128
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130
    fi
131
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132
    case "$ac_option" in
133
      *=*) ;;
134
      *) ac_optarg=yes ;;
135
    esac
136
    eval "enable_${ac_feature}='$ac_optarg'" ;;
137
 
138
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140
  | --exec | --exe | --ex)
141
    ac_prev=exec_prefix ;;
142
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144
  | --exec=* | --exe=* | --ex=*)
145
    exec_prefix="$ac_optarg" ;;
146
 
147
  -gas | --gas | --ga | --g)
148
    # Obsolete; use --with-gas.
149
    with_gas=yes ;;
150
 
151
  -help | --help | --hel | --he)
152
    # Omit some internal or obsolete options to make the list less imposing.
153
    # This message is too long to be a string in the A/UX 3.1 sh.
154
    cat << EOF
155
Usage: configure [options] [host]
156
Options: [defaults in brackets after descriptions]
157
Configuration:
158
  --cache-file=FILE       cache test results in FILE
159
  --help                  print this message
160
  --no-create             do not create output files
161
  --quiet, --silent       do not print \`checking...' messages
162
  --version               print the version of autoconf that created configure
163
Directory and file names:
164
  --prefix=PREFIX         install architecture-independent files in PREFIX
165
                          [$ac_default_prefix]
166
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
167
                          [same as prefix]
168
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
169
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
170
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
171
  --datadir=DIR           read-only architecture-independent data in DIR
172
                          [PREFIX/share]
173
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
174
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
175
                          [PREFIX/com]
176
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
177
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
178
  --includedir=DIR        C header files in DIR [PREFIX/include]
179
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
180
  --infodir=DIR           info documentation in DIR [PREFIX/info]
181
  --mandir=DIR            man documentation in DIR [PREFIX/man]
182
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
183
  --program-prefix=PREFIX prepend PREFIX to installed program names
184
  --program-suffix=SUFFIX append SUFFIX to installed program names
185
  --program-transform-name=PROGRAM
186
                          run sed PROGRAM on installed program names
187
EOF
188
    cat << EOF
189
Host type:
190
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
191
  --host=HOST             configure for HOST [guessed]
192
  --target=TARGET         configure for TARGET [TARGET=HOST]
193
Features and packages:
194
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
195
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
196
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
197
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
198
  --x-includes=DIR        X include files are in DIR
199
  --x-libraries=DIR       X library files are in DIR
200
EOF
201
    if test -n "$ac_help"; then
202
      echo "--enable and --with options recognized:$ac_help"
203
    fi
204
    exit 0 ;;
205
 
206
  -host | --host | --hos | --ho)
207
    ac_prev=host ;;
208
  -host=* | --host=* | --hos=* | --ho=*)
209
    host="$ac_optarg" ;;
210
 
211
  -includedir | --includedir | --includedi | --included | --include \
212
  | --includ | --inclu | --incl | --inc)
213
    ac_prev=includedir ;;
214
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215
  | --includ=* | --inclu=* | --incl=* | --inc=*)
216
    includedir="$ac_optarg" ;;
217
 
218
  -infodir | --infodir | --infodi | --infod | --info | --inf)
219
    ac_prev=infodir ;;
220
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221
    infodir="$ac_optarg" ;;
222
 
223
  -libdir | --libdir | --libdi | --libd)
224
    ac_prev=libdir ;;
225
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
226
    libdir="$ac_optarg" ;;
227
 
228
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229
  | --libexe | --libex | --libe)
230
    ac_prev=libexecdir ;;
231
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232
  | --libexe=* | --libex=* | --libe=*)
233
    libexecdir="$ac_optarg" ;;
234
 
235
  -localstatedir | --localstatedir | --localstatedi | --localstated \
236
  | --localstate | --localstat | --localsta | --localst \
237
  | --locals | --local | --loca | --loc | --lo)
238
    ac_prev=localstatedir ;;
239
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242
    localstatedir="$ac_optarg" ;;
243
 
244
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245
    ac_prev=mandir ;;
246
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247
    mandir="$ac_optarg" ;;
248
 
249
  -nfp | --nfp | --nf)
250
    # Obsolete; use --without-fp.
251
    with_fp=no ;;
252
 
253
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254
  | --no-cr | --no-c)
255
    no_create=yes ;;
256
 
257
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259
    no_recursion=yes ;;
260
 
261
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263
  | --oldin | --oldi | --old | --ol | --o)
264
    ac_prev=oldincludedir ;;
265
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268
    oldincludedir="$ac_optarg" ;;
269
 
270
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271
    ac_prev=prefix ;;
272
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273
    prefix="$ac_optarg" ;;
274
 
275
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
276
  | --program-pre | --program-pr | --program-p)
277
    ac_prev=program_prefix ;;
278
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
279
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280
    program_prefix="$ac_optarg" ;;
281
 
282
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
283
  | --program-suf | --program-su | --program-s)
284
    ac_prev=program_suffix ;;
285
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
286
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287
    program_suffix="$ac_optarg" ;;
288
 
289
  -program-transform-name | --program-transform-name \
290
  | --program-transform-nam | --program-transform-na \
291
  | --program-transform-n | --program-transform- \
292
  | --program-transform | --program-transfor \
293
  | --program-transfo | --program-transf \
294
  | --program-trans | --program-tran \
295
  | --progr-tra | --program-tr | --program-t)
296
    ac_prev=program_transform_name ;;
297
  -program-transform-name=* | --program-transform-name=* \
298
  | --program-transform-nam=* | --program-transform-na=* \
299
  | --program-transform-n=* | --program-transform-=* \
300
  | --program-transform=* | --program-transfor=* \
301
  | --program-transfo=* | --program-transf=* \
302
  | --program-trans=* | --program-tran=* \
303
  | --progr-tra=* | --program-tr=* | --program-t=*)
304
    program_transform_name="$ac_optarg" ;;
305
 
306
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307
  | -silent | --silent | --silen | --sile | --sil)
308
    silent=yes ;;
309
 
310
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311
    ac_prev=sbindir ;;
312
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313
  | --sbi=* | --sb=*)
314
    sbindir="$ac_optarg" ;;
315
 
316
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
317
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318
  | --sharedst | --shareds | --shared | --share | --shar \
319
  | --sha | --sh)
320
    ac_prev=sharedstatedir ;;
321
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324
  | --sha=* | --sh=*)
325
    sharedstatedir="$ac_optarg" ;;
326
 
327
  -site | --site | --sit)
328
    ac_prev=site ;;
329
  -site=* | --site=* | --sit=*)
330
    site="$ac_optarg" ;;
331
 
332
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333
    ac_prev=srcdir ;;
334
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335
    srcdir="$ac_optarg" ;;
336
 
337
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338
  | --syscon | --sysco | --sysc | --sys | --sy)
339
    ac_prev=sysconfdir ;;
340
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342
    sysconfdir="$ac_optarg" ;;
343
 
344
  -target | --target | --targe | --targ | --tar | --ta | --t)
345
    ac_prev=target ;;
346
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347
    target="$ac_optarg" ;;
348
 
349
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
350
    verbose=yes ;;
351
 
352
  -version | --version | --versio | --versi | --vers)
353
    echo "configure generated by autoconf version 2.13"
354
    exit 0 ;;
355
 
356
  -with-* | --with-*)
357
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358
    # Reject names that are not valid shell variable names.
359
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361
    fi
362
    ac_package=`echo $ac_package| sed 's/-/_/g'`
363
    case "$ac_option" in
364
      *=*) ;;
365
      *) ac_optarg=yes ;;
366
    esac
367
    eval "with_${ac_package}='$ac_optarg'" ;;
368
 
369
  -without-* | --without-*)
370
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371
    # Reject names that are not valid shell variable names.
372
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374
    fi
375
    ac_package=`echo $ac_package| sed 's/-/_/g'`
376
    eval "with_${ac_package}=no" ;;
377
 
378
  --x)
379
    # Obsolete; use --with-x.
380
    with_x=yes ;;
381
 
382
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383
  | --x-incl | --x-inc | --x-in | --x-i)
384
    ac_prev=x_includes ;;
385
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387
    x_includes="$ac_optarg" ;;
388
 
389
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
390
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391
    ac_prev=x_libraries ;;
392
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394
    x_libraries="$ac_optarg" ;;
395
 
396
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397
    ;;
398
 
399
  *)
400
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401
      echo "configure: warning: $ac_option: invalid host type" 1>&2
402
    fi
403
    if test "x$nonopt" != xNONE; then
404
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405
    fi
406
    nonopt="$ac_option"
407
    ;;
408
 
409
  esac
410
done
411
 
412
if test -n "$ac_prev"; then
413
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414
fi
415
 
416
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
 
418
# File descriptor usage:
419
# 0 standard input
420
# 1 file creation
421
# 2 errors and warnings
422
# 3 some systems may open it to /dev/tty
423
# 4 used on the Kubota Titan
424
# 6 checking for... messages and results
425
# 5 compiler messages saved in config.log
426
if test "$silent" = yes; then
427
  exec 6>/dev/null
428
else
429
  exec 6>&1
430
fi
431
exec 5>./config.log
432
 
433
echo "\
434
This file contains any messages produced by compilers while
435
running configure, to aid debugging if configure makes a mistake.
436
" 1>&5
437
 
438
# Strip out --no-create and --no-recursion so they do not pile up.
439
# Also quote any args containing shell metacharacters.
440
ac_configure_args=
441
for ac_arg
442
do
443
  case "$ac_arg" in
444
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445
  | --no-cr | --no-c) ;;
446
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451
  esac
452
done
453
 
454
# NLS nuisances.
455
# Only set these to C if already set.  These must not be set unconditionally
456
# because not all systems understand e.g. LANG=C (notably SCO).
457
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458
# Non-C LC_CTYPE values break the ctype check.
459
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
460
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463
 
464
# confdefs.h avoids OS command line length limits that DEFS can exceed.
465
rm -rf conftest* confdefs.h
466
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467
echo > confdefs.h
468
 
469
# A filename unique to this package, relative to the directory that
470
# configure is in, which we can look for to find out if srcdir is correct.
471
ac_unique_file=../generic/itk.h
472
 
473
# Find the source files, if location was not specified.
474
if test -z "$srcdir"; then
475
  ac_srcdir_defaulted=yes
476
  # Try the directory containing this script, then its parent.
477
  ac_prog=$0
478
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480
  srcdir=$ac_confdir
481
  if test ! -r $srcdir/$ac_unique_file; then
482
    srcdir=..
483
  fi
484
else
485
  ac_srcdir_defaulted=no
486
fi
487
if test ! -r $srcdir/$ac_unique_file; then
488
  if test "$ac_srcdir_defaulted" = yes; then
489
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490
  else
491
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492
  fi
493
fi
494
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
 
496
# Prefer explicitly selected file to automatically selected ones.
497
if test -z "$CONFIG_SITE"; then
498
  if test "x$prefix" != xNONE; then
499
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500
  else
501
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502
  fi
503
fi
504
for ac_site_file in $CONFIG_SITE; do
505
  if test -r "$ac_site_file"; then
506
    echo "loading site script $ac_site_file"
507
    . "$ac_site_file"
508
  fi
509
done
510
 
511
if test -r "$cache_file"; then
512
  echo "loading cache $cache_file"
513
  . $cache_file
514
else
515
  echo "creating cache $cache_file"
516
  > $cache_file
517
fi
518
 
519
ac_ext=c
520
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521
ac_cpp='$CPP $CPPFLAGS'
522
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524
cross_compiling=$ac_cv_prog_cc_cross
525
 
526
ac_exeext=
527
ac_objext=o
528
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531
    ac_n= ac_c='
532
' ac_t='        '
533
  else
534
    ac_n=-n ac_c= ac_t=
535
  fi
536
else
537
  ac_n= ac_c='\c' ac_t=
538
fi
539
 
540
 
541
 
542
ac_aux_dir=
543
for ac_dir in ../../../ $srcdir/../../../; do
544
  if test -f $ac_dir/install-sh; then
545
    ac_aux_dir=$ac_dir
546
    ac_install_sh="$ac_aux_dir/install-sh -c"
547
    break
548
  elif test -f $ac_dir/install.sh; then
549
    ac_aux_dir=$ac_dir
550
    ac_install_sh="$ac_aux_dir/install.sh -c"
551
    break
552
  fi
553
done
554
if test -z "$ac_aux_dir"; then
555
  { echo "configure: error: can not find install-sh or install.sh in ../../../ $srcdir/../../../" 1>&2; exit 1; }
556
fi
557
ac_config_guess=$ac_aux_dir/config.guess
558
ac_config_sub=$ac_aux_dir/config.sub
559
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
 
561
 
562
# Make sure we can run config.sub.
563
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
564
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
565
fi
566
 
567
echo $ac_n "checking host system type""... $ac_c" 1>&6
568
echo "configure:569: checking host system type" >&5
569
 
570
host_alias=$host
571
case "$host_alias" in
572
NONE)
573
  case $nonopt in
574
  NONE)
575
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
576
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
577
    fi ;;
578
  *) host_alias=$nonopt ;;
579
  esac ;;
580
esac
581
 
582
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
583
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
584
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
585
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
586
echo "$ac_t""$host" 1>&6
587
 
588
 
589
# Extract the first word of "ranlib", so it can be a program name with args.
590
set dummy ranlib; ac_word=$2
591
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592
echo "configure:593: checking for $ac_word" >&5
593
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
594
  echo $ac_n "(cached) $ac_c" 1>&6
595
else
596
  if test -n "$RANLIB"; then
597
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
598
else
599
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
600
  ac_dummy="$PATH"
601
  for ac_dir in $ac_dummy; do
602
    test -z "$ac_dir" && ac_dir=.
603
    if test -f $ac_dir/$ac_word; then
604
      ac_cv_prog_RANLIB="ranlib"
605
      break
606
    fi
607
  done
608
  IFS="$ac_save_ifs"
609
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
610
fi
611
fi
612
RANLIB="$ac_cv_prog_RANLIB"
613
if test -n "$RANLIB"; then
614
  echo "$ac_t""$RANLIB" 1>&6
615
else
616
  echo "$ac_t""no" 1>&6
617
fi
618
 
619
 
620
# Extract the first word of "gcc", so it can be a program name with args.
621
set dummy gcc; ac_word=$2
622
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
623
echo "configure:624: checking for $ac_word" >&5
624
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
625
  echo $ac_n "(cached) $ac_c" 1>&6
626
else
627
  if test -n "$CC"; then
628
  ac_cv_prog_CC="$CC" # Let the user override the test.
629
else
630
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
631
  ac_dummy="$PATH"
632
  for ac_dir in $ac_dummy; do
633
    test -z "$ac_dir" && ac_dir=.
634
    if test -f $ac_dir/$ac_word; then
635
      ac_cv_prog_CC="gcc"
636
      break
637
    fi
638
  done
639
  IFS="$ac_save_ifs"
640
fi
641
fi
642
CC="$ac_cv_prog_CC"
643
if test -n "$CC"; then
644
  echo "$ac_t""$CC" 1>&6
645
else
646
  echo "$ac_t""no" 1>&6
647
fi
648
 
649
if test -z "$CC"; then
650
  # Extract the first word of "cc", so it can be a program name with args.
651
set dummy cc; ac_word=$2
652
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653
echo "configure:654: checking for $ac_word" >&5
654
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655
  echo $ac_n "(cached) $ac_c" 1>&6
656
else
657
  if test -n "$CC"; then
658
  ac_cv_prog_CC="$CC" # Let the user override the test.
659
else
660
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
661
  ac_prog_rejected=no
662
  ac_dummy="$PATH"
663
  for ac_dir in $ac_dummy; do
664
    test -z "$ac_dir" && ac_dir=.
665
    if test -f $ac_dir/$ac_word; then
666
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
667
        ac_prog_rejected=yes
668
        continue
669
      fi
670
      ac_cv_prog_CC="cc"
671
      break
672
    fi
673
  done
674
  IFS="$ac_save_ifs"
675
if test $ac_prog_rejected = yes; then
676
  # We found a bogon in the path, so make sure we never use it.
677
  set dummy $ac_cv_prog_CC
678
  shift
679
  if test $# -gt 0; then
680
    # We chose a different compiler from the bogus one.
681
    # However, it has the same basename, so the bogon will be chosen
682
    # first if we set CC to just the basename; use the full file name.
683
    shift
684
    set dummy "$ac_dir/$ac_word" "$@"
685
    shift
686
    ac_cv_prog_CC="$@"
687
  fi
688
fi
689
fi
690
fi
691
CC="$ac_cv_prog_CC"
692
if test -n "$CC"; then
693
  echo "$ac_t""$CC" 1>&6
694
else
695
  echo "$ac_t""no" 1>&6
696
fi
697
 
698
  if test -z "$CC"; then
699
    case "`uname -s`" in
700
    *win32* | *WIN32*)
701
      # Extract the first word of "cl", so it can be a program name with args.
702
set dummy cl; ac_word=$2
703
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704
echo "configure:705: checking for $ac_word" >&5
705
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
706
  echo $ac_n "(cached) $ac_c" 1>&6
707
else
708
  if test -n "$CC"; then
709
  ac_cv_prog_CC="$CC" # Let the user override the test.
710
else
711
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
712
  ac_dummy="$PATH"
713
  for ac_dir in $ac_dummy; do
714
    test -z "$ac_dir" && ac_dir=.
715
    if test -f $ac_dir/$ac_word; then
716
      ac_cv_prog_CC="cl"
717
      break
718
    fi
719
  done
720
  IFS="$ac_save_ifs"
721
fi
722
fi
723
CC="$ac_cv_prog_CC"
724
if test -n "$CC"; then
725
  echo "$ac_t""$CC" 1>&6
726
else
727
  echo "$ac_t""no" 1>&6
728
fi
729
 ;;
730
    esac
731
  fi
732
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733
fi
734
 
735
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
736
echo "configure:737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737
 
738
ac_ext=c
739
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
740
ac_cpp='$CPP $CPPFLAGS'
741
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
742
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
743
cross_compiling=$ac_cv_prog_cc_cross
744
 
745
cat > conftest.$ac_ext << EOF
746
 
747
#line 748 "configure"
748
#include "confdefs.h"
749
 
750
main(){return(0);}
751
EOF
752
if { (eval echo configure:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
753
  ac_cv_prog_cc_works=yes
754
  # If we can't run a trivial program, we are probably using a cross compiler.
755
  if (./conftest; exit) 2>/dev/null; then
756
    ac_cv_prog_cc_cross=no
757
  else
758
    ac_cv_prog_cc_cross=yes
759
  fi
760
else
761
  echo "configure: failed program was:" >&5
762
  cat conftest.$ac_ext >&5
763
  ac_cv_prog_cc_works=no
764
fi
765
rm -fr conftest*
766
ac_ext=c
767
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
768
ac_cpp='$CPP $CPPFLAGS'
769
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
770
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
771
cross_compiling=$ac_cv_prog_cc_cross
772
 
773
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774
if test $ac_cv_prog_cc_works = no; then
775
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776
fi
777
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778
echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780
cross_compiling=$ac_cv_prog_cc_cross
781
 
782
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783
echo "configure:784: checking whether we are using GNU C" >&5
784
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785
  echo $ac_n "(cached) $ac_c" 1>&6
786
else
787
  cat > conftest.c <
788
#ifdef __GNUC__
789
  yes;
790
#endif
791
EOF
792
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
793
  ac_cv_prog_gcc=yes
794
else
795
  ac_cv_prog_gcc=no
796
fi
797
fi
798
 
799
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800
 
801
if test $ac_cv_prog_gcc = yes; then
802
  GCC=yes
803
else
804
  GCC=
805
fi
806
 
807
ac_test_CFLAGS="${CFLAGS+set}"
808
ac_save_CFLAGS="$CFLAGS"
809
CFLAGS=
810
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
811
echo "configure:812: checking whether ${CC-cc} accepts -g" >&5
812
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
813
  echo $ac_n "(cached) $ac_c" 1>&6
814
else
815
  echo 'void f(){}' > conftest.c
816
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
817
  ac_cv_prog_cc_g=yes
818
else
819
  ac_cv_prog_cc_g=no
820
fi
821
rm -f conftest*
822
 
823
fi
824
 
825
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
826
if test "$ac_test_CFLAGS" = set; then
827
  CFLAGS="$ac_save_CFLAGS"
828
elif test $ac_cv_prog_cc_g = yes; then
829
  if test "$GCC" = yes; then
830
    CFLAGS="-g -O2"
831
  else
832
    CFLAGS="-g"
833
  fi
834
else
835
  if test "$GCC" = yes; then
836
    CFLAGS="-O2"
837
  else
838
    CFLAGS=
839
  fi
840
fi
841
 
842
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
843
echo "configure:844: checking for object suffix" >&5
844
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
845
  echo $ac_n "(cached) $ac_c" 1>&6
846
else
847
  rm -f conftest*
848
echo 'int i = 1;' > conftest.$ac_ext
849
if { (eval echo configure:850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
850
  for ac_file in conftest.*; do
851
    case $ac_file in
852
    *.c) ;;
853
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
854
    esac
855
  done
856
else
857
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
858
fi
859
rm -f conftest*
860
fi
861
 
862
echo "$ac_t""$ac_cv_objext" 1>&6
863
OBJEXT=$ac_cv_objext
864
ac_objext=$ac_cv_objext
865
 
866
echo $ac_n "checking build system type""... $ac_c" 1>&6
867
echo "configure:868: checking build system type" >&5
868
 
869
build_alias=$build
870
case "$build_alias" in
871
NONE)
872
  case $nonopt in
873
  NONE) build_alias=$host_alias ;;
874
  *) build_alias=$nonopt ;;
875
  esac ;;
876
esac
877
 
878
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
879
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882
echo "$ac_t""$build" 1>&6
883
 
884
if test $host != $build; then
885
  ac_tool_prefix=${host_alias}-
886
else
887
  ac_tool_prefix=
888
fi
889
 
890
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
891
set dummy ${ac_tool_prefix}nm; ac_word=$2
892
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893
echo "configure:894: checking for $ac_word" >&5
894
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
895
  echo $ac_n "(cached) $ac_c" 1>&6
896
else
897
  if test -n "$NM"; then
898
  ac_cv_prog_NM="$NM" # Let the user override the test.
899
else
900
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
901
  ac_dummy="$PATH"
902
  for ac_dir in $ac_dummy; do
903
    test -z "$ac_dir" && ac_dir=.
904
    if test -f $ac_dir/$ac_word; then
905
      ac_cv_prog_NM="${ac_tool_prefix}nm"
906
      break
907
    fi
908
  done
909
  IFS="$ac_save_ifs"
910
fi
911
fi
912
NM="$ac_cv_prog_NM"
913
if test -n "$NM"; then
914
  echo "$ac_t""$NM" 1>&6
915
else
916
  echo "$ac_t""no" 1>&6
917
fi
918
 
919
 
920
if test -z "$ac_cv_prog_NM"; then
921
if test -n "$ac_tool_prefix"; then
922
  # Extract the first word of "nm", so it can be a program name with args.
923
set dummy nm; ac_word=$2
924
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925
echo "configure:926: checking for $ac_word" >&5
926
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
927
  echo $ac_n "(cached) $ac_c" 1>&6
928
else
929
  if test -n "$NM"; then
930
  ac_cv_prog_NM="$NM" # Let the user override the test.
931
else
932
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
933
  ac_dummy="$PATH"
934
  for ac_dir in $ac_dummy; do
935
    test -z "$ac_dir" && ac_dir=.
936
    if test -f $ac_dir/$ac_word; then
937
      ac_cv_prog_NM="nm"
938
      break
939
    fi
940
  done
941
  IFS="$ac_save_ifs"
942
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="nm"
943
fi
944
fi
945
NM="$ac_cv_prog_NM"
946
if test -n "$NM"; then
947
  echo "$ac_t""$NM" 1>&6
948
else
949
  echo "$ac_t""no" 1>&6
950
fi
951
 
952
else
953
  NM="nm"
954
fi
955
fi
956
 
957
 
958
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
959
set dummy ${ac_tool_prefix}as; ac_word=$2
960
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961
echo "configure:962: checking for $ac_word" >&5
962
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
963
  echo $ac_n "(cached) $ac_c" 1>&6
964
else
965
  if test -n "$AS"; then
966
  ac_cv_prog_AS="$AS" # Let the user override the test.
967
else
968
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
969
  ac_dummy="$PATH"
970
  for ac_dir in $ac_dummy; do
971
    test -z "$ac_dir" && ac_dir=.
972
    if test -f $ac_dir/$ac_word; then
973
      ac_cv_prog_AS="${ac_tool_prefix}as"
974
      break
975
    fi
976
  done
977
  IFS="$ac_save_ifs"
978
fi
979
fi
980
AS="$ac_cv_prog_AS"
981
if test -n "$AS"; then
982
  echo "$ac_t""$AS" 1>&6
983
else
984
  echo "$ac_t""no" 1>&6
985
fi
986
 
987
 
988
if test -z "$ac_cv_prog_AS"; then
989
if test -n "$ac_tool_prefix"; then
990
  # Extract the first word of "as", so it can be a program name with args.
991
set dummy as; ac_word=$2
992
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993
echo "configure:994: checking for $ac_word" >&5
994
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
995
  echo $ac_n "(cached) $ac_c" 1>&6
996
else
997
  if test -n "$AS"; then
998
  ac_cv_prog_AS="$AS" # Let the user override the test.
999
else
1000
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1001
  ac_dummy="$PATH"
1002
  for ac_dir in $ac_dummy; do
1003
    test -z "$ac_dir" && ac_dir=.
1004
    if test -f $ac_dir/$ac_word; then
1005
      ac_cv_prog_AS="as"
1006
      break
1007
    fi
1008
  done
1009
  IFS="$ac_save_ifs"
1010
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1011
fi
1012
fi
1013
AS="$ac_cv_prog_AS"
1014
if test -n "$AS"; then
1015
  echo "$ac_t""$AS" 1>&6
1016
else
1017
  echo "$ac_t""no" 1>&6
1018
fi
1019
 
1020
else
1021
  AS="as"
1022
fi
1023
fi
1024
 
1025
 
1026
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1027
set dummy ${ac_tool_prefix}ld; ac_word=$2
1028
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029
echo "configure:1030: checking for $ac_word" >&5
1030
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1031
  echo $ac_n "(cached) $ac_c" 1>&6
1032
else
1033
  if test -n "$LD"; then
1034
  ac_cv_prog_LD="$LD" # Let the user override the test.
1035
else
1036
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1037
  ac_dummy="$PATH"
1038
  for ac_dir in $ac_dummy; do
1039
    test -z "$ac_dir" && ac_dir=.
1040
    if test -f $ac_dir/$ac_word; then
1041
      ac_cv_prog_LD="${ac_tool_prefix}ld"
1042
      break
1043
    fi
1044
  done
1045
  IFS="$ac_save_ifs"
1046
fi
1047
fi
1048
LD="$ac_cv_prog_LD"
1049
if test -n "$LD"; then
1050
  echo "$ac_t""$LD" 1>&6
1051
else
1052
  echo "$ac_t""no" 1>&6
1053
fi
1054
 
1055
 
1056
if test -z "$ac_cv_prog_LD"; then
1057
if test -n "$ac_tool_prefix"; then
1058
  # Extract the first word of "ld", so it can be a program name with args.
1059
set dummy ld; ac_word=$2
1060
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061
echo "configure:1062: checking for $ac_word" >&5
1062
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1063
  echo $ac_n "(cached) $ac_c" 1>&6
1064
else
1065
  if test -n "$LD"; then
1066
  ac_cv_prog_LD="$LD" # Let the user override the test.
1067
else
1068
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1069
  ac_dummy="$PATH"
1070
  for ac_dir in $ac_dummy; do
1071
    test -z "$ac_dir" && ac_dir=.
1072
    if test -f $ac_dir/$ac_word; then
1073
      ac_cv_prog_LD="ld"
1074
      break
1075
    fi
1076
  done
1077
  IFS="$ac_save_ifs"
1078
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1079
fi
1080
fi
1081
LD="$ac_cv_prog_LD"
1082
if test -n "$LD"; then
1083
  echo "$ac_t""$LD" 1>&6
1084
else
1085
  echo "$ac_t""no" 1>&6
1086
fi
1087
 
1088
else
1089
  LD="ld"
1090
fi
1091
fi
1092
 
1093
 
1094
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1095
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1096
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097
echo "configure:1098: checking for $ac_word" >&5
1098
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1099
  echo $ac_n "(cached) $ac_c" 1>&6
1100
else
1101
  if test -n "$DLLTOOL"; then
1102
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1103
else
1104
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1105
  ac_dummy="$PATH"
1106
  for ac_dir in $ac_dummy; do
1107
    test -z "$ac_dir" && ac_dir=.
1108
    if test -f $ac_dir/$ac_word; then
1109
      ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1110
      break
1111
    fi
1112
  done
1113
  IFS="$ac_save_ifs"
1114
fi
1115
fi
1116
DLLTOOL="$ac_cv_prog_DLLTOOL"
1117
if test -n "$DLLTOOL"; then
1118
  echo "$ac_t""$DLLTOOL" 1>&6
1119
else
1120
  echo "$ac_t""no" 1>&6
1121
fi
1122
 
1123
 
1124
if test -z "$ac_cv_prog_DLLTOOL"; then
1125
if test -n "$ac_tool_prefix"; then
1126
  # Extract the first word of "dlltool", so it can be a program name with args.
1127
set dummy dlltool; ac_word=$2
1128
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129
echo "configure:1130: checking for $ac_word" >&5
1130
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1131
  echo $ac_n "(cached) $ac_c" 1>&6
1132
else
1133
  if test -n "$DLLTOOL"; then
1134
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1135
else
1136
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1137
  ac_dummy="$PATH"
1138
  for ac_dir in $ac_dummy; do
1139
    test -z "$ac_dir" && ac_dir=.
1140
    if test -f $ac_dir/$ac_word; then
1141
      ac_cv_prog_DLLTOOL="dlltool"
1142
      break
1143
    fi
1144
  done
1145
  IFS="$ac_save_ifs"
1146
  test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
1147
fi
1148
fi
1149
DLLTOOL="$ac_cv_prog_DLLTOOL"
1150
if test -n "$DLLTOOL"; then
1151
  echo "$ac_t""$DLLTOOL" 1>&6
1152
else
1153
  echo "$ac_t""no" 1>&6
1154
fi
1155
 
1156
else
1157
  DLLTOOL="dlltool"
1158
fi
1159
fi
1160
 
1161
 
1162
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
1163
set dummy ${ac_tool_prefix}windres; ac_word=$2
1164
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165
echo "configure:1166: checking for $ac_word" >&5
1166
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1167
  echo $ac_n "(cached) $ac_c" 1>&6
1168
else
1169
  if test -n "$WINDRES"; then
1170
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1171
else
1172
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1173
  ac_dummy="$PATH"
1174
  for ac_dir in $ac_dummy; do
1175
    test -z "$ac_dir" && ac_dir=.
1176
    if test -f $ac_dir/$ac_word; then
1177
      ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
1178
      break
1179
    fi
1180
  done
1181
  IFS="$ac_save_ifs"
1182
fi
1183
fi
1184
WINDRES="$ac_cv_prog_WINDRES"
1185
if test -n "$WINDRES"; then
1186
  echo "$ac_t""$WINDRES" 1>&6
1187
else
1188
  echo "$ac_t""no" 1>&6
1189
fi
1190
 
1191
 
1192
if test -z "$ac_cv_prog_WINDRES"; then
1193
if test -n "$ac_tool_prefix"; then
1194
  # Extract the first word of "windres", so it can be a program name with args.
1195
set dummy windres; ac_word=$2
1196
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197
echo "configure:1198: checking for $ac_word" >&5
1198
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1199
  echo $ac_n "(cached) $ac_c" 1>&6
1200
else
1201
  if test -n "$WINDRES"; then
1202
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
1203
else
1204
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1205
  ac_dummy="$PATH"
1206
  for ac_dir in $ac_dummy; do
1207
    test -z "$ac_dir" && ac_dir=.
1208
    if test -f $ac_dir/$ac_word; then
1209
      ac_cv_prog_WINDRES="windres"
1210
      break
1211
    fi
1212
  done
1213
  IFS="$ac_save_ifs"
1214
  test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
1215
fi
1216
fi
1217
WINDRES="$ac_cv_prog_WINDRES"
1218
if test -n "$WINDRES"; then
1219
  echo "$ac_t""$WINDRES" 1>&6
1220
else
1221
  echo "$ac_t""no" 1>&6
1222
fi
1223
 
1224
else
1225
  WINDRES="windres"
1226
fi
1227
fi
1228
 
1229
 
1230
 
1231
# Find a good install program.  We prefer a C program (faster),
1232
# so one script is as good as another.  But avoid the broken or
1233
# incompatible versions:
1234
# SysV /etc/install, /usr/sbin/install
1235
# SunOS /usr/etc/install
1236
# IRIX /sbin/install
1237
# AIX /bin/install
1238
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1239
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1240
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1241
# ./install, which can be erroneously created by make from ./install.sh.
1242
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1243
echo "configure:1244: checking for a BSD compatible install" >&5
1244
if test -z "$INSTALL"; then
1245
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1246
  echo $ac_n "(cached) $ac_c" 1>&6
1247
else
1248
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1249
  for ac_dir in $PATH; do
1250
    # Account for people who put trailing slashes in PATH elements.
1251
    case "$ac_dir/" in
1252
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1253
    *)
1254
      # OSF1 and SCO ODT 3.0 have their own names for install.
1255
      # Don't use installbsd from OSF since it installs stuff as root
1256
      # by default.
1257
      for ac_prog in ginstall scoinst install; do
1258
        if test -f $ac_dir/$ac_prog; then
1259
          if test $ac_prog = install &&
1260
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1261
            # AIX install.  It has an incompatible calling convention.
1262
            :
1263
          else
1264
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1265
            break 2
1266
          fi
1267
        fi
1268
      done
1269
      ;;
1270
    esac
1271
  done
1272
  IFS="$ac_save_IFS"
1273
 
1274
fi
1275
  if test "${ac_cv_path_install+set}" = set; then
1276
    INSTALL="$ac_cv_path_install"
1277
  else
1278
    # As a last resort, use the slow shell script.  We don't cache a
1279
    # path for INSTALL within a source directory, because that will
1280
    # break other packages using the cache if that directory is
1281
    # removed, or if the path is relative.
1282
    INSTALL="$ac_install_sh"
1283
  fi
1284
fi
1285
echo "$ac_t""$INSTALL" 1>&6
1286
 
1287
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1288
# It thinks the first close brace ends the variable substitution.
1289
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1290
 
1291
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1292
 
1293
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1294
 
1295
 
1296
# needed for the subtle differences between cygwin and mingw32
1297
case "${host}" in
1298
*-*-cygwin*)
1299
        DLL_LDLIBS=-lcygwin
1300
        DLL_LDFLAGS='-nostartfiles -Wl,--dll'
1301
        ;;
1302
*-*-mingw32*)
1303
        DLL_LDLIBS=
1304
        DLL_LDFLAGS='-mdll'
1305
        ;;
1306
esac
1307
 
1308
 
1309
 
1310
ITCL_VERSION=3.0
1311
ITCL_MAJOR_VERSION=3
1312
ITCL_MINOR_VERSION=0
1313
VERSION=${ITCL_MAJOR_VERSION}${ITCL_MINOR_VERSION}
1314
 
1315
if test "${prefix}" = "NONE"; then
1316
    prefix=/usr/local
1317
fi
1318
if test "${exec_prefix}" = "NONE"; then
1319
    exec_prefix=$prefix
1320
fi
1321
 
1322
# -----------------------------------------------------------------------
1323
#   Set up a new default --prefix.  If a previous installation of
1324
#   [incr Tcl] can be found searching $PATH use that directory.
1325
# -----------------------------------------------------------------------
1326
 
1327
 
1328
if test "x$prefix" = xNONE; then
1329
echo $ac_n "checking for prefix by $ac_c" 1>&6
1330
# Extract the first word of "itclsh", so it can be a program name with args.
1331
set dummy itclsh; ac_word=$2
1332
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333
echo "configure:1334: checking for $ac_word" >&5
1334
if eval "test \"`echo '$''{'ac_cv_path_ITCLSH'+set}'`\" = set"; then
1335
  echo $ac_n "(cached) $ac_c" 1>&6
1336
else
1337
  case "$ITCLSH" in
1338
  /*)
1339
  ac_cv_path_ITCLSH="$ITCLSH" # Let the user override the test with a path.
1340
  ;;
1341
  ?:/*)
1342
  ac_cv_path_ITCLSH="$ITCLSH" # Let the user override the test with a dos path.
1343
  ;;
1344
  *)
1345
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1346
  ac_dummy="$PATH"
1347
  for ac_dir in $ac_dummy; do
1348
    test -z "$ac_dir" && ac_dir=.
1349
    if test -f $ac_dir/$ac_word; then
1350
      ac_cv_path_ITCLSH="$ac_dir/$ac_word"
1351
      break
1352
    fi
1353
  done
1354
  IFS="$ac_save_ifs"
1355
  ;;
1356
esac
1357
fi
1358
ITCLSH="$ac_cv_path_ITCLSH"
1359
if test -n "$ITCLSH"; then
1360
  echo "$ac_t""$ITCLSH" 1>&6
1361
else
1362
  echo "$ac_t""no" 1>&6
1363
fi
1364
 
1365
  if test -n "$ac_cv_path_ITCLSH"; then
1366
    prefix=`echo $ac_cv_path_ITCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
1367
  fi
1368
fi
1369
 
1370
 
1371
# -----------------------------------------------------------------------
1372
BUILD_DIR=`pwd`
1373
ITK_SRC_DIR=`cd $srcdir/..; pwd`
1374
 
1375
if ! test "$GCC" = yes; then
1376
    tmp="`cygpath --windows $ITK_SRC_DIR`"
1377
    ITK_SRC_DIR="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1378
fi
1379
 
1380
cd ${BUILD_DIR}
1381
 
1382
# Check whether --enable-gcc or --disable-gcc was given.
1383
if test "${enable_gcc+set}" = set; then
1384
  enableval="$enable_gcc"
1385
  itk_ok=$enableval
1386
else
1387
  itk_ok=no
1388
fi
1389
 
1390
if test "$itk_ok" = "yes"; then
1391
    # Extract the first word of "gcc", so it can be a program name with args.
1392
set dummy gcc; ac_word=$2
1393
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394
echo "configure:1395: checking for $ac_word" >&5
1395
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1396
  echo $ac_n "(cached) $ac_c" 1>&6
1397
else
1398
  if test -n "$CC"; then
1399
  ac_cv_prog_CC="$CC" # Let the user override the test.
1400
else
1401
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1402
  ac_dummy="$PATH"
1403
  for ac_dir in $ac_dummy; do
1404
    test -z "$ac_dir" && ac_dir=.
1405
    if test -f $ac_dir/$ac_word; then
1406
      ac_cv_prog_CC="gcc"
1407
      break
1408
    fi
1409
  done
1410
  IFS="$ac_save_ifs"
1411
fi
1412
fi
1413
CC="$ac_cv_prog_CC"
1414
if test -n "$CC"; then
1415
  echo "$ac_t""$CC" 1>&6
1416
else
1417
  echo "$ac_t""no" 1>&6
1418
fi
1419
 
1420
if test -z "$CC"; then
1421
  # Extract the first word of "cc", so it can be a program name with args.
1422
set dummy cc; ac_word=$2
1423
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1424
echo "configure:1425: checking for $ac_word" >&5
1425
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1426
  echo $ac_n "(cached) $ac_c" 1>&6
1427
else
1428
  if test -n "$CC"; then
1429
  ac_cv_prog_CC="$CC" # Let the user override the test.
1430
else
1431
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1432
  ac_prog_rejected=no
1433
  ac_dummy="$PATH"
1434
  for ac_dir in $ac_dummy; do
1435
    test -z "$ac_dir" && ac_dir=.
1436
    if test -f $ac_dir/$ac_word; then
1437
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1438
        ac_prog_rejected=yes
1439
        continue
1440
      fi
1441
      ac_cv_prog_CC="cc"
1442
      break
1443
    fi
1444
  done
1445
  IFS="$ac_save_ifs"
1446
if test $ac_prog_rejected = yes; then
1447
  # We found a bogon in the path, so make sure we never use it.
1448
  set dummy $ac_cv_prog_CC
1449
  shift
1450
  if test $# -gt 0; then
1451
    # We chose a different compiler from the bogus one.
1452
    # However, it has the same basename, so the bogon will be chosen
1453
    # first if we set CC to just the basename; use the full file name.
1454
    shift
1455
    set dummy "$ac_dir/$ac_word" "$@"
1456
    shift
1457
    ac_cv_prog_CC="$@"
1458
  fi
1459
fi
1460
fi
1461
fi
1462
CC="$ac_cv_prog_CC"
1463
if test -n "$CC"; then
1464
  echo "$ac_t""$CC" 1>&6
1465
else
1466
  echo "$ac_t""no" 1>&6
1467
fi
1468
 
1469
  if test -z "$CC"; then
1470
    case "`uname -s`" in
1471
    *win32* | *WIN32*)
1472
      # Extract the first word of "cl", so it can be a program name with args.
1473
set dummy cl; ac_word=$2
1474
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1475
echo "configure:1476: checking for $ac_word" >&5
1476
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1477
  echo $ac_n "(cached) $ac_c" 1>&6
1478
else
1479
  if test -n "$CC"; then
1480
  ac_cv_prog_CC="$CC" # Let the user override the test.
1481
else
1482
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1483
  ac_dummy="$PATH"
1484
  for ac_dir in $ac_dummy; do
1485
    test -z "$ac_dir" && ac_dir=.
1486
    if test -f $ac_dir/$ac_word; then
1487
      ac_cv_prog_CC="cl"
1488
      break
1489
    fi
1490
  done
1491
  IFS="$ac_save_ifs"
1492
fi
1493
fi
1494
CC="$ac_cv_prog_CC"
1495
if test -n "$CC"; then
1496
  echo "$ac_t""$CC" 1>&6
1497
else
1498
  echo "$ac_t""no" 1>&6
1499
fi
1500
 ;;
1501
    esac
1502
  fi
1503
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1504
fi
1505
 
1506
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1507
echo "configure:1508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1508
 
1509
ac_ext=c
1510
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1511
ac_cpp='$CPP $CPPFLAGS'
1512
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1513
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1514
cross_compiling=$ac_cv_prog_cc_cross
1515
 
1516
cat > conftest.$ac_ext << EOF
1517
 
1518
#line 1519 "configure"
1519
#include "confdefs.h"
1520
 
1521
main(){return(0);}
1522
EOF
1523
if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524
  ac_cv_prog_cc_works=yes
1525
  # If we can't run a trivial program, we are probably using a cross compiler.
1526
  if (./conftest; exit) 2>/dev/null; then
1527
    ac_cv_prog_cc_cross=no
1528
  else
1529
    ac_cv_prog_cc_cross=yes
1530
  fi
1531
else
1532
  echo "configure: failed program was:" >&5
1533
  cat conftest.$ac_ext >&5
1534
  ac_cv_prog_cc_works=no
1535
fi
1536
rm -fr conftest*
1537
ac_ext=c
1538
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1539
ac_cpp='$CPP $CPPFLAGS'
1540
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1541
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1542
cross_compiling=$ac_cv_prog_cc_cross
1543
 
1544
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1545
if test $ac_cv_prog_cc_works = no; then
1546
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1547
fi
1548
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1549
echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1550
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1551
cross_compiling=$ac_cv_prog_cc_cross
1552
 
1553
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1554
echo "configure:1555: checking whether we are using GNU C" >&5
1555
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1556
  echo $ac_n "(cached) $ac_c" 1>&6
1557
else
1558
  cat > conftest.c <
1559
#ifdef __GNUC__
1560
  yes;
1561
#endif
1562
EOF
1563
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1564
  ac_cv_prog_gcc=yes
1565
else
1566
  ac_cv_prog_gcc=no
1567
fi
1568
fi
1569
 
1570
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1571
 
1572
if test $ac_cv_prog_gcc = yes; then
1573
  GCC=yes
1574
else
1575
  GCC=
1576
fi
1577
 
1578
ac_test_CFLAGS="${CFLAGS+set}"
1579
ac_save_CFLAGS="$CFLAGS"
1580
CFLAGS=
1581
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1582
echo "configure:1583: checking whether ${CC-cc} accepts -g" >&5
1583
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1584
  echo $ac_n "(cached) $ac_c" 1>&6
1585
else
1586
  echo 'void f(){}' > conftest.c
1587
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1588
  ac_cv_prog_cc_g=yes
1589
else
1590
  ac_cv_prog_cc_g=no
1591
fi
1592
rm -f conftest*
1593
 
1594
fi
1595
 
1596
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1597
if test "$ac_test_CFLAGS" = set; then
1598
  CFLAGS="$ac_save_CFLAGS"
1599
elif test $ac_cv_prog_cc_g = yes; then
1600
  if test "$GCC" = yes; then
1601
    CFLAGS="-g -O2"
1602
  else
1603
    CFLAGS="-g"
1604
  fi
1605
else
1606
  if test "$GCC" = yes; then
1607
    CFLAGS="-O2"
1608
  else
1609
    CFLAGS=
1610
  fi
1611
fi
1612
 
1613
else
1614
    CC=${CC-cc}
1615
 
1616
fi
1617
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1618
echo "configure:1619: checking how to run the C preprocessor" >&5
1619
# On Suns, sometimes $CPP names a directory.
1620
if test -n "$CPP" && test -d "$CPP"; then
1621
  CPP=
1622
fi
1623
if test -z "$CPP"; then
1624
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1625
  echo $ac_n "(cached) $ac_c" 1>&6
1626
else
1627
    # This must be in double quotes, not single quotes, because CPP may get
1628
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1629
  CPP="${CC-cc} -E"
1630
  # On the NeXT, cc -E runs the code through the compiler's parser,
1631
  # not just through cpp.
1632
  cat > conftest.$ac_ext <
1633
#line 1634 "configure"
1634
#include "confdefs.h"
1635
#include 
1636
Syntax Error
1637
EOF
1638
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1639
{ (eval echo configure:1640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1640
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1641
if test -z "$ac_err"; then
1642
  :
1643
else
1644
  echo "$ac_err" >&5
1645
  echo "configure: failed program was:" >&5
1646
  cat conftest.$ac_ext >&5
1647
  rm -rf conftest*
1648
  CPP="${CC-cc} -E -traditional-cpp"
1649
  cat > conftest.$ac_ext <
1650
#line 1651 "configure"
1651
#include "confdefs.h"
1652
#include 
1653
Syntax Error
1654
EOF
1655
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1656
{ (eval echo configure:1657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1657
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1658
if test -z "$ac_err"; then
1659
  :
1660
else
1661
  echo "$ac_err" >&5
1662
  echo "configure: failed program was:" >&5
1663
  cat conftest.$ac_ext >&5
1664
  rm -rf conftest*
1665
  CPP="${CC-cc} -nologo -E"
1666
  cat > conftest.$ac_ext <
1667
#line 1668 "configure"
1668
#include "confdefs.h"
1669
#include 
1670
Syntax Error
1671
EOF
1672
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1673
{ (eval echo configure:1674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1674
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1675
if test -z "$ac_err"; then
1676
  :
1677
else
1678
  echo "$ac_err" >&5
1679
  echo "configure: failed program was:" >&5
1680
  cat conftest.$ac_ext >&5
1681
  rm -rf conftest*
1682
  CPP=/lib/cpp
1683
fi
1684
rm -f conftest*
1685
fi
1686
rm -f conftest*
1687
fi
1688
rm -f conftest*
1689
  ac_cv_prog_CPP="$CPP"
1690
fi
1691
  CPP="$ac_cv_prog_CPP"
1692
else
1693
  ac_cv_prog_CPP="$CPP"
1694
fi
1695
echo "$ac_t""$CPP" 1>&6
1696
 
1697
for ac_hdr in unistd.h limits.h
1698
do
1699
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1700
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1701
echo "configure:1702: checking for $ac_hdr" >&5
1702
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1703
  echo $ac_n "(cached) $ac_c" 1>&6
1704
else
1705
  cat > conftest.$ac_ext <
1706
#line 1707 "configure"
1707
#include "confdefs.h"
1708
#include <$ac_hdr>
1709
EOF
1710
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711
{ (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1713
if test -z "$ac_err"; then
1714
  rm -rf conftest*
1715
  eval "ac_cv_header_$ac_safe=yes"
1716
else
1717
  echo "$ac_err" >&5
1718
  echo "configure: failed program was:" >&5
1719
  cat conftest.$ac_ext >&5
1720
  rm -rf conftest*
1721
  eval "ac_cv_header_$ac_safe=no"
1722
fi
1723
rm -f conftest*
1724
fi
1725
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1726
  echo "$ac_t""yes" 1>&6
1727
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1728
  cat >> confdefs.h <
1729
#define $ac_tr_hdr 1
1730
EOF
1731
 
1732
else
1733
  echo "$ac_t""no" 1>&6
1734
fi
1735
done
1736
 
1737
 
1738
 
1739
#--------------------------------------------------------------------
1740
#   See if there was a command-line option for where Tcl is;  if
1741
#   not, assume that its top-level directory is a sibling of ours.
1742
# CYGNUS LOCAL - Actually Tcl & Tk are siblings of the itcl directory
1743
# that contains itcl & itk & iwidgets.
1744
#--------------------------------------------------------------------
1745
 
1746
# Check whether --with-tcl or --without-tcl was given.
1747
if test "${with_tcl+set}" = set; then
1748
  withval="$with_tcl"
1749
  TCL_BIN_DIR=$withval
1750
else
1751
  TCL_BIN_DIR=`cd ../../../tcl/win; pwd`
1752
fi
1753
 
1754
 
1755
if test ! -f $TCL_BIN_DIR/../unix/tclConfig.sh; then
1756
    TCL_BIN_DIR=`cd ../../../tcl8.1/win;pwd`
1757
fi
1758
 
1759
if test ! -f $TCL_BIN_DIR/../unix/tclConfig.sh; then
1760
    { echo "configure: error: There's no tclConfig.sh in $TCL_BIN_DIR;  perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; }
1761
fi
1762
 
1763
#--------------------------------------------------------------------
1764
#   Read in configuration information generated by Tcl for shared
1765
#   libraries, and arrange for it to be substituted into our
1766
#   Makefile.
1767
#--------------------------------------------------------------------
1768
 
1769
file=$TCL_BIN_DIR/../unix/tclConfig.sh
1770
. $file
1771
 
1772
 
1773
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1774
SHLIB_LD=$TCL_SHLIB_LD
1775
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1776
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1777
SHLIB_VERSION=$TCL_SHLIB_VERSION
1778
DL_LIBS=$TCL_DL_LIBS
1779
LD_FLAGS=$TCL_LD_FLAGS
1780
ITK_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
1781
 
1782
#--------------------------------------------------------------------
1783
#   See if there was a command-line option for where Tk is;  if
1784
#   not, assume that its top-level directory is a sibling of ours.
1785
# CYGNUS LOCAL - actually these are one level higher in the CYGNUS tree.
1786
#--------------------------------------------------------------------
1787
 
1788
# Check whether --with-tcl or --without-tcl was given.
1789
if test "${with_tcl+set}" = set; then
1790
  withval="$with_tcl"
1791
  TK_BIN_DIR=$withval
1792
else
1793
  TK_BIN_DIR=`cd ../../../tk/win; pwd`
1794
fi
1795
 
1796
 
1797
if test ! -f $TK_BIN_DIR/../unix/tkConfig.sh; then
1798
    TK_BIN_DIR=`cd ../../../tk8.1/win;pwd`
1799
fi
1800
 
1801
if test ! -f $TK_BIN_DIR/../unix/tkConfig.sh; then
1802
    { echo "configure: error: There's no tkConfig.sh in $TK_BIN_DIR;  perhaps you didn't specify the Tk *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?" 1>&2; exit 1; }
1803
fi
1804
 
1805
file=$TK_BIN_DIR/../unix/tkConfig.sh
1806
. $file
1807
 
1808
if ! test "$GCC" = yes; then
1809
    tmp="`cygpath --windows $TK_BIN_DIR`"
1810
    TK_BIN_DIR="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
1811
fi
1812
 
1813
 
1814
#--------------------------------------------------------------------
1815
#   See if there was a command-line option for where [incr Tcl] is.
1816
#   If not, assume that its top-level directory is a sibling of ours.
1817
#--------------------------------------------------------------------
1818
 
1819
# Check whether --with-itcl or --without-itcl was given.
1820
if test "${with_itcl+set}" = set; then
1821
  withval="$with_itcl"
1822
  ITCL_BIN_DIR=$withval
1823
else
1824
  ITCL_BIN_DIR=`cd ../../itcl/win; pwd`
1825
fi
1826
 
1827
if test ! -d $ITCL_BIN_DIR; then
1828
    { echo "configure: error: Itcl directory $ITCL_BIN_DIR doesn't exist" 1>&2; exit 1; }
1829
fi
1830
if test ! -f $ITCL_BIN_DIR/Makefile; then
1831
    { echo "configure: error: There's no Makefile in $ITCL_BIN_DIR;  perhaps you didn't specify the Itcl *build* directory (not the toplevel Itcl directory) or you forgot to configure Itcl?" 1>&2; exit 1; }
1832
fi
1833
 
1834
file=$ITCL_BIN_DIR/../itclConfig.sh
1835
. $file
1836
 
1837
 
1838
echo $ac_n "checking whether C compiler is gcc""... $ac_c" 1>&6
1839
echo "configure:1840: checking whether C compiler is gcc" >&5
1840
if eval "test \"`echo '$''{'itcl_cv_prog_gcc'+set}'`\" = set"; then
1841
  echo $ac_n "(cached) $ac_c" 1>&6
1842
else
1843
 
1844
    cat > conftest.$ac_ext <
1845
#line 1846 "configure"
1846
#include "confdefs.h"
1847
 
1848
#ifdef __GNUC__
1849
_cc_is_gcc_
1850
#endif
1851
 
1852
EOF
1853
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1854
  egrep "_cc_is_gcc_" >/dev/null 2>&1; then
1855
  rm -rf conftest*
1856
  itcl_cv_prog_gcc=yes
1857
else
1858
  rm -rf conftest*
1859
  itcl_cv_prog_gcc=no
1860
fi
1861
rm -f conftest*
1862
 
1863
fi
1864
 
1865
echo "$ac_t""$itcl_cv_prog_gcc" 1>&6
1866
 
1867
if test -z "$CFLAGS" ; then
1868
    CFLAGS="-O"
1869
fi
1870
if test "$itcl_cv_prog_gcc" = "yes" ; then
1871
    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
1872
fi
1873
 
1874
echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
1875
echo "configure:1876: checking default compiler flags" >&5
1876
# Check whether --with-cflags or --without-cflags was given.
1877
if test "${with_cflags+set}" = set; then
1878
  withval="$with_cflags"
1879
  CFLAGS="$with_cflags"
1880
fi
1881
 
1882
 
1883
echo "$ac_t""$CFLAGS" 1>&6
1884
 
1885
#--------------------------------------------------------------------
1886
#   Supply a substitute for stdlib.h if it doesn't define strtol,
1887
#   strtoul, or strtod (which it doesn't in some versions of SunOS).
1888
#--------------------------------------------------------------------
1889
 
1890
echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
1891
echo "configure:1892: checking stdlib.h" >&5
1892
cat > conftest.$ac_ext <
1893
#line 1894 "configure"
1894
#include "confdefs.h"
1895
#include 
1896
EOF
1897
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898
  egrep "strtol" >/dev/null 2>&1; then
1899
  rm -rf conftest*
1900
  itk_ok=yes
1901
else
1902
  rm -rf conftest*
1903
  itk_ok=no
1904
fi
1905
rm -f conftest*
1906
 
1907
cat > conftest.$ac_ext <
1908
#line 1909 "configure"
1909
#include "confdefs.h"
1910
#include 
1911
EOF
1912
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1913
  egrep "strtoul" >/dev/null 2>&1; then
1914
  :
1915
else
1916
  rm -rf conftest*
1917
  itk_ok=no
1918
fi
1919
rm -f conftest*
1920
 
1921
cat > conftest.$ac_ext <
1922
#line 1923 "configure"
1923
#include "confdefs.h"
1924
#include 
1925
EOF
1926
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1927
  egrep "strtod" >/dev/null 2>&1; then
1928
  :
1929
else
1930
  rm -rf conftest*
1931
  itk_ok=no
1932
fi
1933
rm -f conftest*
1934
 
1935
if test $itk_ok = no; then
1936
    cat >> confdefs.h <<\EOF
1937
#define NO_STDLIB_H 1
1938
EOF
1939
 
1940
fi
1941
echo "$ac_t""$itk_ok" 1>&6
1942
 
1943
#--------------------------------------------------------------------
1944
#   Check for various typedefs and provide substitutes if
1945
#   they don't exist.
1946
#--------------------------------------------------------------------
1947
 
1948
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1949
echo "configure:1950: checking for ANSI C header files" >&5
1950
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1951
  echo $ac_n "(cached) $ac_c" 1>&6
1952
else
1953
  cat > conftest.$ac_ext <
1954
#line 1955 "configure"
1955
#include "confdefs.h"
1956
#include 
1957
#include 
1958
#include 
1959
#include 
1960
EOF
1961
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962
{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964
if test -z "$ac_err"; then
1965
  rm -rf conftest*
1966
  ac_cv_header_stdc=yes
1967
else
1968
  echo "$ac_err" >&5
1969
  echo "configure: failed program was:" >&5
1970
  cat conftest.$ac_ext >&5
1971
  rm -rf conftest*
1972
  ac_cv_header_stdc=no
1973
fi
1974
rm -f conftest*
1975
 
1976
if test $ac_cv_header_stdc = yes; then
1977
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1978
cat > conftest.$ac_ext <
1979
#line 1980 "configure"
1980
#include "confdefs.h"
1981
#include 
1982
EOF
1983
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1984
  egrep "memchr" >/dev/null 2>&1; then
1985
  :
1986
else
1987
  rm -rf conftest*
1988
  ac_cv_header_stdc=no
1989
fi
1990
rm -f conftest*
1991
 
1992
fi
1993
 
1994
if test $ac_cv_header_stdc = yes; then
1995
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1996
cat > conftest.$ac_ext <
1997
#line 1998 "configure"
1998
#include "confdefs.h"
1999
#include 
2000
EOF
2001
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2002
  egrep "free" >/dev/null 2>&1; then
2003
  :
2004
else
2005
  rm -rf conftest*
2006
  ac_cv_header_stdc=no
2007
fi
2008
rm -f conftest*
2009
 
2010
fi
2011
 
2012
if test $ac_cv_header_stdc = yes; then
2013
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2014
if test "$cross_compiling" = yes; then
2015
  :
2016
else
2017
  cat > conftest.$ac_ext <
2018
#line 2019 "configure"
2019
#include "confdefs.h"
2020
#include 
2021
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2022
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2023
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2024
int main () { int i; for (i = 0; i < 256; i++)
2025
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2026
exit (0); }
2027
 
2028
EOF
2029
if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030
then
2031
  :
2032
else
2033
  echo "configure: failed program was:" >&5
2034
  cat conftest.$ac_ext >&5
2035
  rm -fr conftest*
2036
  ac_cv_header_stdc=no
2037
fi
2038
rm -fr conftest*
2039
fi
2040
 
2041
fi
2042
fi
2043
 
2044
echo "$ac_t""$ac_cv_header_stdc" 1>&6
2045
if test $ac_cv_header_stdc = yes; then
2046
  cat >> confdefs.h <<\EOF
2047
#define STDC_HEADERS 1
2048
EOF
2049
 
2050
fi
2051
 
2052
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2053
echo "configure:2054: checking for mode_t" >&5
2054
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2055
  echo $ac_n "(cached) $ac_c" 1>&6
2056
else
2057
  cat > conftest.$ac_ext <
2058
#line 2059 "configure"
2059
#include "confdefs.h"
2060
#include 
2061
#if STDC_HEADERS
2062
#include 
2063
#include 
2064
#endif
2065
EOF
2066
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2067
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2068
  rm -rf conftest*
2069
  ac_cv_type_mode_t=yes
2070
else
2071
  rm -rf conftest*
2072
  ac_cv_type_mode_t=no
2073
fi
2074
rm -f conftest*
2075
 
2076
fi
2077
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2078
if test $ac_cv_type_mode_t = no; then
2079
  cat >> confdefs.h <<\EOF
2080
#define mode_t int
2081
EOF
2082
 
2083
fi
2084
 
2085
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2086
echo "configure:2087: checking for pid_t" >&5
2087
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2088
  echo $ac_n "(cached) $ac_c" 1>&6
2089
else
2090
  cat > conftest.$ac_ext <
2091
#line 2092 "configure"
2092
#include "confdefs.h"
2093
#include 
2094
#if STDC_HEADERS
2095
#include 
2096
#include 
2097
#endif
2098
EOF
2099
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2100
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2101
  rm -rf conftest*
2102
  ac_cv_type_pid_t=yes
2103
else
2104
  rm -rf conftest*
2105
  ac_cv_type_pid_t=no
2106
fi
2107
rm -f conftest*
2108
 
2109
fi
2110
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2111
if test $ac_cv_type_pid_t = no; then
2112
  cat >> confdefs.h <<\EOF
2113
#define pid_t int
2114
EOF
2115
 
2116
fi
2117
 
2118
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2119
echo "configure:2120: checking for size_t" >&5
2120
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2121
  echo $ac_n "(cached) $ac_c" 1>&6
2122
else
2123
  cat > conftest.$ac_ext <
2124
#line 2125 "configure"
2125
#include "confdefs.h"
2126
#include 
2127
#if STDC_HEADERS
2128
#include 
2129
#include 
2130
#endif
2131
EOF
2132
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2133
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2134
  rm -rf conftest*
2135
  ac_cv_type_size_t=yes
2136
else
2137
  rm -rf conftest*
2138
  ac_cv_type_size_t=no
2139
fi
2140
rm -f conftest*
2141
 
2142
fi
2143
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2144
if test $ac_cv_type_size_t = no; then
2145
  cat >> confdefs.h <<\EOF
2146
#define size_t unsigned
2147
EOF
2148
 
2149
fi
2150
 
2151
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2152
echo "configure:2153: checking for uid_t in sys/types.h" >&5
2153
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2154
  echo $ac_n "(cached) $ac_c" 1>&6
2155
else
2156
  cat > conftest.$ac_ext <
2157
#line 2158 "configure"
2158
#include "confdefs.h"
2159
#include 
2160
EOF
2161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2162
  egrep "uid_t" >/dev/null 2>&1; then
2163
  rm -rf conftest*
2164
  ac_cv_type_uid_t=yes
2165
else
2166
  rm -rf conftest*
2167
  ac_cv_type_uid_t=no
2168
fi
2169
rm -f conftest*
2170
 
2171
fi
2172
 
2173
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2174
if test $ac_cv_type_uid_t = no; then
2175
  cat >> confdefs.h <<\EOF
2176
#define uid_t int
2177
EOF
2178
 
2179
  cat >> confdefs.h <<\EOF
2180
#define gid_t int
2181
EOF
2182
 
2183
fi
2184
 
2185
 
2186
# -----------------------------------------------------------------------
2187
#   C compiler and debugging flags
2188
# -----------------------------------------------------------------------
2189
echo $ac_n "checking which C compiler""... $ac_c" 1>&6
2190
echo "configure:2191: checking which C compiler" >&5
2191
if test -z "$CC" ; then
2192
    CC="cc"
2193
fi
2194
# Check whether --with-cc or --without-cc was given.
2195
if test "${with_cc+set}" = set; then
2196
  withval="$with_cc"
2197
  CC=$with_cc
2198
fi
2199
 
2200
echo "$ac_t""$CC" 1>&6
2201
 
2202
 
2203
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2204
echo "configure:2205: checking how to run the C preprocessor" >&5
2205
# On Suns, sometimes $CPP names a directory.
2206
if test -n "$CPP" && test -d "$CPP"; then
2207
  CPP=
2208
fi
2209
if test -z "$CPP"; then
2210
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2211
  echo $ac_n "(cached) $ac_c" 1>&6
2212
else
2213
    # This must be in double quotes, not single quotes, because CPP may get
2214
  # substituted into the Makefile and "${CC-cc}" will confuse make.
2215
  CPP="${CC-cc} -E"
2216
  # On the NeXT, cc -E runs the code through the compiler's parser,
2217
  # not just through cpp.
2218
  cat > conftest.$ac_ext <
2219
#line 2220 "configure"
2220
#include "confdefs.h"
2221
#include 
2222
Syntax Error
2223
EOF
2224
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225
{ (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2227
if test -z "$ac_err"; then
2228
  :
2229
else
2230
  echo "$ac_err" >&5
2231
  echo "configure: failed program was:" >&5
2232
  cat conftest.$ac_ext >&5
2233
  rm -rf conftest*
2234
  CPP="${CC-cc} -E -traditional-cpp"
2235
  cat > conftest.$ac_ext <
2236
#line 2237 "configure"
2237
#include "confdefs.h"
2238
#include 
2239
Syntax Error
2240
EOF
2241
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2242
{ (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2243
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2244
if test -z "$ac_err"; then
2245
  :
2246
else
2247
  echo "$ac_err" >&5
2248
  echo "configure: failed program was:" >&5
2249
  cat conftest.$ac_ext >&5
2250
  rm -rf conftest*
2251
  CPP="${CC-cc} -nologo -E"
2252
  cat > conftest.$ac_ext <
2253
#line 2254 "configure"
2254
#include "confdefs.h"
2255
#include 
2256
Syntax Error
2257
EOF
2258
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2259
{ (eval echo configure:2260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2260
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2261
if test -z "$ac_err"; then
2262
  :
2263
else
2264
  echo "$ac_err" >&5
2265
  echo "configure: failed program was:" >&5
2266
  cat conftest.$ac_ext >&5
2267
  rm -rf conftest*
2268
  CPP=/lib/cpp
2269
fi
2270
rm -f conftest*
2271
fi
2272
rm -f conftest*
2273
fi
2274
rm -f conftest*
2275
  ac_cv_prog_CPP="$CPP"
2276
fi
2277
  CPP="$ac_cv_prog_CPP"
2278
else
2279
  ac_cv_prog_CPP="$CPP"
2280
fi
2281
echo "$ac_t""$CPP" 1>&6
2282
 
2283
 
2284
#--------------------------------------------------------------------
2285
#   Supply substitutes for missing POSIX header files.
2286
#   Replacements are handled in "tclInt.h" which we include here.
2287
#--------------------------------------------------------------------
2288
 
2289
ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'`
2290
echo $ac_n "checking for limits.h""... $ac_c" 1>&6
2291
echo "configure:2292: checking for limits.h" >&5
2292
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2293
  echo $ac_n "(cached) $ac_c" 1>&6
2294
else
2295
  cat > conftest.$ac_ext <
2296
#line 2297 "configure"
2297
#include "confdefs.h"
2298
#include 
2299
EOF
2300
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2301
{ (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2302
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2303
if test -z "$ac_err"; then
2304
  rm -rf conftest*
2305
  eval "ac_cv_header_$ac_safe=yes"
2306
else
2307
  echo "$ac_err" >&5
2308
  echo "configure: failed program was:" >&5
2309
  cat conftest.$ac_ext >&5
2310
  rm -rf conftest*
2311
  eval "ac_cv_header_$ac_safe=no"
2312
fi
2313
rm -f conftest*
2314
fi
2315
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2316
  echo "$ac_t""yes" 1>&6
2317
  :
2318
else
2319
  echo "$ac_t""no" 1>&6
2320
cat >> confdefs.h <<\EOF
2321
#define NO_LIMITS_H 1
2322
EOF
2323
 
2324
fi
2325
 
2326
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
2327
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
2328
echo "configure:2329: checking for stdlib.h" >&5
2329
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2330
  echo $ac_n "(cached) $ac_c" 1>&6
2331
else
2332
  cat > conftest.$ac_ext <
2333
#line 2334 "configure"
2334
#include "confdefs.h"
2335
#include 
2336
EOF
2337
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2338
{ (eval echo configure:2339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2339
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2340
if test -z "$ac_err"; then
2341
  rm -rf conftest*
2342
  eval "ac_cv_header_$ac_safe=yes"
2343
else
2344
  echo "$ac_err" >&5
2345
  echo "configure: failed program was:" >&5
2346
  cat conftest.$ac_ext >&5
2347
  rm -rf conftest*
2348
  eval "ac_cv_header_$ac_safe=no"
2349
fi
2350
rm -f conftest*
2351
fi
2352
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2353
  echo "$ac_t""yes" 1>&6
2354
  tcl_ok=1
2355
else
2356
  echo "$ac_t""no" 1>&6
2357
tcl_ok=0
2358
fi
2359
 
2360
cat > conftest.$ac_ext <
2361
#line 2362 "configure"
2362
#include "confdefs.h"
2363
#include 
2364
EOF
2365
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366
  egrep "strtol" >/dev/null 2>&1; then
2367
  :
2368
else
2369
  rm -rf conftest*
2370
  tcl_ok=0
2371
fi
2372
rm -f conftest*
2373
 
2374
cat > conftest.$ac_ext <
2375
#line 2376 "configure"
2376
#include "confdefs.h"
2377
#include 
2378
EOF
2379
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2380
  egrep "strtoul" >/dev/null 2>&1; then
2381
  :
2382
else
2383
  rm -rf conftest*
2384
  tcl_ok=0
2385
fi
2386
rm -f conftest*
2387
 
2388
cat > conftest.$ac_ext <
2389
#line 2390 "configure"
2390
#include "confdefs.h"
2391
#include 
2392
EOF
2393
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2394
  egrep "strtod" >/dev/null 2>&1; then
2395
  :
2396
else
2397
  rm -rf conftest*
2398
  tcl_ok=0
2399
fi
2400
rm -f conftest*
2401
 
2402
if test $tcl_ok = 0; then
2403
    cat >> confdefs.h <<\EOF
2404
#define NO_STDLIB_H 1
2405
EOF
2406
 
2407
fi
2408
ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
2409
echo $ac_n "checking for string.h""... $ac_c" 1>&6
2410
echo "configure:2411: checking for string.h" >&5
2411
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412
  echo $ac_n "(cached) $ac_c" 1>&6
2413
else
2414
  cat > conftest.$ac_ext <
2415
#line 2416 "configure"
2416
#include "confdefs.h"
2417
#include 
2418
EOF
2419
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420
{ (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422
if test -z "$ac_err"; then
2423
  rm -rf conftest*
2424
  eval "ac_cv_header_$ac_safe=yes"
2425
else
2426
  echo "$ac_err" >&5
2427
  echo "configure: failed program was:" >&5
2428
  cat conftest.$ac_ext >&5
2429
  rm -rf conftest*
2430
  eval "ac_cv_header_$ac_safe=no"
2431
fi
2432
rm -f conftest*
2433
fi
2434
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435
  echo "$ac_t""yes" 1>&6
2436
  tcl_ok=1
2437
else
2438
  echo "$ac_t""no" 1>&6
2439
tcl_ok=0
2440
fi
2441
 
2442
cat > conftest.$ac_ext <
2443
#line 2444 "configure"
2444
#include "confdefs.h"
2445
#include 
2446
EOF
2447
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2448
  egrep "strstr" >/dev/null 2>&1; then
2449
  :
2450
else
2451
  rm -rf conftest*
2452
  tcl_ok=0
2453
fi
2454
rm -f conftest*
2455
 
2456
cat > conftest.$ac_ext <
2457
#line 2458 "configure"
2458
#include "confdefs.h"
2459
#include 
2460
EOF
2461
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2462
  egrep "strerror" >/dev/null 2>&1; then
2463
  :
2464
else
2465
  rm -rf conftest*
2466
  tcl_ok=0
2467
fi
2468
rm -f conftest*
2469
 
2470
if test $tcl_ok = 0; then
2471
    cat >> confdefs.h <<\EOF
2472
#define NO_STRING_H 1
2473
EOF
2474
 
2475
fi
2476
 
2477
#--------------------------------------------------------------------
2478
#   Check for various typedefs and provide substitutes if
2479
#   they don't exist.
2480
#--------------------------------------------------------------------
2481
 
2482
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2483
echo "configure:2484: checking for mode_t" >&5
2484
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2485
  echo $ac_n "(cached) $ac_c" 1>&6
2486
else
2487
  cat > conftest.$ac_ext <
2488
#line 2489 "configure"
2489
#include "confdefs.h"
2490
#include 
2491
#if STDC_HEADERS
2492
#include 
2493
#include 
2494
#endif
2495
EOF
2496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2497
  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2498
  rm -rf conftest*
2499
  ac_cv_type_mode_t=yes
2500
else
2501
  rm -rf conftest*
2502
  ac_cv_type_mode_t=no
2503
fi
2504
rm -f conftest*
2505
 
2506
fi
2507
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2508
if test $ac_cv_type_mode_t = no; then
2509
  cat >> confdefs.h <<\EOF
2510
#define mode_t int
2511
EOF
2512
 
2513
fi
2514
 
2515
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2516
echo "configure:2517: checking for pid_t" >&5
2517
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2518
  echo $ac_n "(cached) $ac_c" 1>&6
2519
else
2520
  cat > conftest.$ac_ext <
2521
#line 2522 "configure"
2522
#include "confdefs.h"
2523
#include 
2524
#if STDC_HEADERS
2525
#include 
2526
#include 
2527
#endif
2528
EOF
2529
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2530
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2531
  rm -rf conftest*
2532
  ac_cv_type_pid_t=yes
2533
else
2534
  rm -rf conftest*
2535
  ac_cv_type_pid_t=no
2536
fi
2537
rm -f conftest*
2538
 
2539
fi
2540
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2541
if test $ac_cv_type_pid_t = no; then
2542
  cat >> confdefs.h <<\EOF
2543
#define pid_t int
2544
EOF
2545
 
2546
fi
2547
 
2548
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2549
echo "configure:2550: checking for size_t" >&5
2550
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2551
  echo $ac_n "(cached) $ac_c" 1>&6
2552
else
2553
  cat > conftest.$ac_ext <
2554
#line 2555 "configure"
2555
#include "confdefs.h"
2556
#include 
2557
#if STDC_HEADERS
2558
#include 
2559
#include 
2560
#endif
2561
EOF
2562
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2563
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2564
  rm -rf conftest*
2565
  ac_cv_type_size_t=yes
2566
else
2567
  rm -rf conftest*
2568
  ac_cv_type_size_t=no
2569
fi
2570
rm -f conftest*
2571
 
2572
fi
2573
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2574
if test $ac_cv_type_size_t = no; then
2575
  cat >> confdefs.h <<\EOF
2576
#define size_t unsigned
2577
EOF
2578
 
2579
fi
2580
 
2581
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2582
echo "configure:2583: checking for uid_t in sys/types.h" >&5
2583
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2584
  echo $ac_n "(cached) $ac_c" 1>&6
2585
else
2586
  cat > conftest.$ac_ext <
2587
#line 2588 "configure"
2588
#include "confdefs.h"
2589
#include 
2590
EOF
2591
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2592
  egrep "uid_t" >/dev/null 2>&1; then
2593
  rm -rf conftest*
2594
  ac_cv_type_uid_t=yes
2595
else
2596
  rm -rf conftest*
2597
  ac_cv_type_uid_t=no
2598
fi
2599
rm -f conftest*
2600
 
2601
fi
2602
 
2603
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2604
if test $ac_cv_type_uid_t = no; then
2605
  cat >> confdefs.h <<\EOF
2606
#define uid_t int
2607
EOF
2608
 
2609
  cat >> confdefs.h <<\EOF
2610
#define gid_t int
2611
EOF
2612
 
2613
fi
2614
 
2615
 
2616
#--------------------------------------------------------------------
2617
#   Locate the X11 header files and the X11 library archive.  Try
2618
#   the ac_path_x macro first, but if it doesn't find the X stuff
2619
#   (e.g. because there's no xmkmf program) then check through
2620
#   a list of possible directories.  Under some conditions the
2621
#   autoconf macro will return an include directory that contains
2622
#   no include files, so double-check its result just to be safe.
2623
#--------------------------------------------------------------------
2624
 
2625
# If we find X, set shell vars x_includes and x_libraries to the
2626
# paths, otherwise set no_x=yes.
2627
# Uses ac_ vars as temps to allow command line to override cache and checks.
2628
# --without-x overrides everything else, but does not touch the cache.
2629
echo $ac_n "checking for X""... $ac_c" 1>&6
2630
echo "configure:2631: checking for X" >&5
2631
 
2632
# Check whether --with-x or --without-x was given.
2633
if test "${with_x+set}" = set; then
2634
  withval="$with_x"
2635
  :
2636
fi
2637
 
2638
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2639
if test "x$with_x" = xno; then
2640
  # The user explicitly disabled X.
2641
  have_x=disabled
2642
else
2643
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2644
    # Both variables are already set.
2645
    have_x=yes
2646
  else
2647
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2648
  echo $ac_n "(cached) $ac_c" 1>&6
2649
else
2650
  # One or both of the vars are not set, and there is no cached value.
2651
ac_x_includes=NO ac_x_libraries=NO
2652
rm -fr conftestdir
2653
if mkdir conftestdir; then
2654
  cd conftestdir
2655
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2656
  cat > Imakefile <<'EOF'
2657
acfindx:
2658
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2659
EOF
2660
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2661
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2662
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2663
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2664
    for ac_extension in a so sl; do
2665
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2666
        test -f $ac_im_libdir/libX11.$ac_extension; then
2667
        ac_im_usrlibdir=$ac_im_libdir; break
2668
      fi
2669
    done
2670
    # Screen out bogus values from the imake configuration.  They are
2671
    # bogus both because they are the default anyway, and because
2672
    # using them would break gcc on systems where it needs fixed includes.
2673
    case "$ac_im_incroot" in
2674
        /usr/include) ;;
2675
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2676
    esac
2677
    case "$ac_im_usrlibdir" in
2678
        /usr/lib | /lib) ;;
2679
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2680
    esac
2681
  fi
2682
  cd ..
2683
  rm -fr conftestdir
2684
fi
2685
 
2686
if test "$ac_x_includes" = NO; then
2687
  # Guess where to find include files, by looking for this one X11 .h file.
2688
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2689
 
2690
  # First, try using that file with no special directory specified.
2691
cat > conftest.$ac_ext <
2692
#line 2693 "configure"
2693
#include "confdefs.h"
2694
#include <$x_direct_test_include>
2695
EOF
2696
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697
{ (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699
if test -z "$ac_err"; then
2700
  rm -rf conftest*
2701
  # We can compile using X headers with no special include directory.
2702
ac_x_includes=
2703
else
2704
  echo "$ac_err" >&5
2705
  echo "configure: failed program was:" >&5
2706
  cat conftest.$ac_ext >&5
2707
  rm -rf conftest*
2708
  # Look for the header file in a standard set of common directories.
2709
# Check X11 before X11Rn because it is often a symlink to the current release.
2710
  for ac_dir in               \
2711
    /usr/X11/include          \
2712
    /usr/X11R6/include        \
2713
    /usr/X11R5/include        \
2714
    /usr/X11R4/include        \
2715
                              \
2716
    /usr/include/X11          \
2717
    /usr/include/X11R6        \
2718
    /usr/include/X11R5        \
2719
    /usr/include/X11R4        \
2720
                              \
2721
    /usr/local/X11/include    \
2722
    /usr/local/X11R6/include  \
2723
    /usr/local/X11R5/include  \
2724
    /usr/local/X11R4/include  \
2725
                              \
2726
    /usr/local/include/X11    \
2727
    /usr/local/include/X11R6  \
2728
    /usr/local/include/X11R5  \
2729
    /usr/local/include/X11R4  \
2730
                              \
2731
    /usr/X386/include         \
2732
    /usr/x386/include         \
2733
    /usr/XFree86/include/X11  \
2734
                              \
2735
    /usr/include              \
2736
    /usr/local/include        \
2737
    /usr/unsupported/include  \
2738
    /usr/athena/include       \
2739
    /usr/local/x11r5/include  \
2740
    /usr/lpp/Xamples/include  \
2741
                              \
2742
    /usr/openwin/include      \
2743
    /usr/openwin/share/include \
2744
    ; \
2745
  do
2746
    if test -r "$ac_dir/$x_direct_test_include"; then
2747
      ac_x_includes=$ac_dir
2748
      break
2749
    fi
2750
  done
2751
fi
2752
rm -f conftest*
2753
fi # $ac_x_includes = NO
2754
 
2755
if test "$ac_x_libraries" = NO; then
2756
  # Check for the libraries.
2757
 
2758
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
2759
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2760
 
2761
  # See if we find them without any special options.
2762
  # Don't add to $LIBS permanently.
2763
  ac_save_LIBS="$LIBS"
2764
  LIBS="-l$x_direct_test_library $LIBS"
2765
cat > conftest.$ac_ext <
2766
#line 2767 "configure"
2767
#include "confdefs.h"
2768
 
2769
int main() {
2770
${x_direct_test_function}()
2771
; return 0; }
2772
EOF
2773
if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2774
  rm -rf conftest*
2775
  LIBS="$ac_save_LIBS"
2776
# We can link X programs with no special library path.
2777
ac_x_libraries=
2778
else
2779
  echo "configure: failed program was:" >&5
2780
  cat conftest.$ac_ext >&5
2781
  rm -rf conftest*
2782
  LIBS="$ac_save_LIBS"
2783
# First see if replacing the include by lib works.
2784
# Check X11 before X11Rn because it is often a symlink to the current release.
2785
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2786
    /usr/X11/lib          \
2787
    /usr/X11R6/lib        \
2788
    /usr/X11R5/lib        \
2789
    /usr/X11R4/lib        \
2790
                          \
2791
    /usr/lib/X11          \
2792
    /usr/lib/X11R6        \
2793
    /usr/lib/X11R5        \
2794
    /usr/lib/X11R4        \
2795
                          \
2796
    /usr/local/X11/lib    \
2797
    /usr/local/X11R6/lib  \
2798
    /usr/local/X11R5/lib  \
2799
    /usr/local/X11R4/lib  \
2800
                          \
2801
    /usr/local/lib/X11    \
2802
    /usr/local/lib/X11R6  \
2803
    /usr/local/lib/X11R5  \
2804
    /usr/local/lib/X11R4  \
2805
                          \
2806
    /usr/X386/lib         \
2807
    /usr/x386/lib         \
2808
    /usr/XFree86/lib/X11  \
2809
                          \
2810
    /usr/lib              \
2811
    /usr/local/lib        \
2812
    /usr/unsupported/lib  \
2813
    /usr/athena/lib       \
2814
    /usr/local/x11r5/lib  \
2815
    /usr/lpp/Xamples/lib  \
2816
    /lib/usr/lib/X11      \
2817
                          \
2818
    /usr/openwin/lib      \
2819
    /usr/openwin/share/lib \
2820
    ; \
2821
do
2822
  for ac_extension in a so sl; do
2823
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2824
      ac_x_libraries=$ac_dir
2825
      break 2
2826
    fi
2827
  done
2828
done
2829
fi
2830
rm -f conftest*
2831
fi # $ac_x_libraries = NO
2832
 
2833
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2834
  # Didn't find X anywhere.  Cache the known absence of X.
2835
  ac_cv_have_x="have_x=no"
2836
else
2837
  # Record where we found X for the cache.
2838
  ac_cv_have_x="have_x=yes \
2839
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2840
fi
2841
fi
2842
  fi
2843
  eval "$ac_cv_have_x"
2844
fi # $with_x != no
2845
 
2846
if test "$have_x" != yes; then
2847
  echo "$ac_t""$have_x" 1>&6
2848
  no_x=yes
2849
else
2850
  # If each of the values was on the command line, it overrides each guess.
2851
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2852
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2853
  # Update the cache value to reflect the command line values.
2854
  ac_cv_have_x="have_x=yes \
2855
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2856
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2857
fi
2858
 
2859
not_really_there=""
2860
if test "$no_x" = ""; then
2861
    if test "$x_includes" = ""; then
2862
        cat > conftest.$ac_ext <
2863
#line 2864 "configure"
2864
#include "confdefs.h"
2865
#include 
2866
EOF
2867
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2868
{ (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2869
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2870
if test -z "$ac_err"; then
2871
  :
2872
else
2873
  echo "$ac_err" >&5
2874
  echo "configure: failed program was:" >&5
2875
  cat conftest.$ac_ext >&5
2876
  rm -rf conftest*
2877
  not_really_there="yes"
2878
fi
2879
rm -f conftest*
2880
    else
2881
        if test ! -r $x_includes/X11/Intrinsic.h; then
2882
            not_really_there="yes"
2883
        fi
2884
    fi
2885
fi
2886
if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
2887
    echo checking for X11 header files
2888
    XINCLUDES="# no special path needed"
2889
    cat > conftest.$ac_ext <
2890
#line 2891 "configure"
2891
#include "confdefs.h"
2892
#include 
2893
EOF
2894
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895
{ (eval echo configure:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897
if test -z "$ac_err"; then
2898
  :
2899
else
2900
  echo "$ac_err" >&5
2901
  echo "configure: failed program was:" >&5
2902
  cat conftest.$ac_ext >&5
2903
  rm -rf conftest*
2904
  XINCLUDES="nope"
2905
fi
2906
rm -f conftest*
2907
    if test "$XINCLUDES" = nope; then
2908
        dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/include/X11R6 /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
2909
        for i in $dirs ; do
2910
            if test -r $i/X11/Intrinsic.h; then
2911
                XINCLUDES=" -I$i"
2912
            fi
2913
        done
2914
    fi
2915
else
2916
    if test "$x_includes" != ""; then
2917
        XINCLUDES=-I$x_includes
2918
    else
2919
        XINCLUDES="# no special path needed"
2920
    fi
2921
fi
2922
if test "$XINCLUDES" = nope; then
2923
  echo "Warning:  couldn't find any X11 include files."
2924
  XINCLUDES="# no include files found"
2925
fi
2926
 
2927
 
2928
if test "$no_x" = yes; then
2929
    XLIBSW=nope
2930
    if test "$XLIBSW" = nope; then
2931
        dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/lib/X11R6 /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
2932
        for i in $dirs ; do
2933
            if test -r $i/libX11.a; then
2934
                XLIBSW="-L$i -lX11"
2935
            fi
2936
        done
2937
    fi
2938
else
2939
    if test "$x_libraries" = ""; then
2940
        XLIBSW=-lX11
2941
    else
2942
        XLIBSW="-L$x_libraries -lX11"
2943
    fi
2944
fi
2945
if test "$XLIBSW" = nope ; then
2946
    echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
2947
echo "configure:2948: checking for XCreateWindow in -lXwindow" >&5
2948
ac_lib_var=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
2949
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2950
  echo $ac_n "(cached) $ac_c" 1>&6
2951
else
2952
  ac_save_LIBS="$LIBS"
2953
LIBS="-lXwindow  $LIBS"
2954
cat > conftest.$ac_ext <
2955
#line 2956 "configure"
2956
#include "confdefs.h"
2957
/* Override any gcc2 internal prototype to avoid an error.  */
2958
/* We use char because int might match the return type of a gcc2
2959
    builtin and then its argument prototype would still apply.  */
2960
char XCreateWindow();
2961
 
2962
int main() {
2963
XCreateWindow()
2964
; return 0; }
2965
EOF
2966
if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2967
  rm -rf conftest*
2968
  eval "ac_cv_lib_$ac_lib_var=yes"
2969
else
2970
  echo "configure: failed program was:" >&5
2971
  cat conftest.$ac_ext >&5
2972
  rm -rf conftest*
2973
  eval "ac_cv_lib_$ac_lib_var=no"
2974
fi
2975
rm -f conftest*
2976
LIBS="$ac_save_LIBS"
2977
 
2978
fi
2979
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2980
  echo "$ac_t""yes" 1>&6
2981
  XLIBSW=-lXwindow
2982
else
2983
  echo "$ac_t""no" 1>&6
2984
fi
2985
 
2986
fi
2987
if test "$XLIBSW" = nope ; then
2988
    echo "$ac_t""couldn't find any!  Using -lX11." 1>&6
2989
    XLIBSW=-lX11
2990
fi
2991
 
2992
#--------------------------------------------------------------------
2993
#   If the X library binaries are in a non-standard directory, and
2994
#   if a mechanism such as -R is available on this platform for
2995
#   specifying a runtime search path for shared libraries, add the X
2996
#   library location into that search path.
2997
#--------------------------------------------------------------------
2998
 
2999
if test "$x_libraries" != "" -a "$ITK_LD_SEARCH_FLAGS" != ""; then
3000
    itk_tmp=`sed -e "s|\\\${LIB_RUNTIME_DIR}|$x_libraries|" << EOF
3001
$ITK_LD_SEARCH_FLAGS
3002
EOF`
3003
    ITK_LD_SEARCH_FLAGS="$ITK_LD_SEARCH_FLAGS $itk_tmp"
3004
fi
3005
 
3006
#--------------------------------------------------------------------
3007
#   Check for the existence of various libraries.  The order here
3008
#   is important, so that then end up in the right order in the
3009
#   command line generated by make.  The -lsocket and -lnsl libraries
3010
#   require a couple of special tricks:
3011
#   1. Use "connect" and "accept" to check for -lsocket, and
3012
#      "gethostbyname" to check for -lnsl.
3013
#   2. Use each function name only once:  can't redo a check because
3014
#      autoconf caches the results of the last check and won't redo it.
3015
#   3. Use -lnsl and -lsocket only if they supply procedures that
3016
#      aren't already present in the normal libraries.  This is because
3017
#      IRIX 5.2 has libraries, but they aren't needed and they're
3018
#      bogus:  they goof up name resolution if used.
3019
#   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3020
#      To get around this problem, check for both libraries together
3021
#      if -lsocket doesn't work by itself.
3022
#--------------------------------------------------------------------
3023
 
3024
echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3025
echo "configure:3026: checking for main in -lXbsd" >&5
3026
ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3027
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028
  echo $ac_n "(cached) $ac_c" 1>&6
3029
else
3030
  ac_save_LIBS="$LIBS"
3031
LIBS="-lXbsd  $LIBS"
3032
cat > conftest.$ac_ext <
3033
#line 3034 "configure"
3034
#include "confdefs.h"
3035
 
3036
int main() {
3037
main()
3038
; return 0; }
3039
EOF
3040
if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3041
  rm -rf conftest*
3042
  eval "ac_cv_lib_$ac_lib_var=yes"
3043
else
3044
  echo "configure: failed program was:" >&5
3045
  cat conftest.$ac_ext >&5
3046
  rm -rf conftest*
3047
  eval "ac_cv_lib_$ac_lib_var=no"
3048
fi
3049
rm -f conftest*
3050
LIBS="$ac_save_LIBS"
3051
 
3052
fi
3053
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054
  echo "$ac_t""yes" 1>&6
3055
  LIBS="$LIBS -lXbsd"
3056
else
3057
  echo "$ac_t""no" 1>&6
3058
fi
3059
 
3060
 
3061
itk_checkBoth=0
3062
echo $ac_n "checking for connect""... $ac_c" 1>&6
3063
echo "configure:3064: checking for connect" >&5
3064
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3065
  echo $ac_n "(cached) $ac_c" 1>&6
3066
else
3067
  cat > conftest.$ac_ext <
3068
#line 3069 "configure"
3069
#include "confdefs.h"
3070
/* System header to define __stub macros and hopefully few prototypes,
3071
    which can conflict with char connect(); below.  */
3072
#include 
3073
/* Override any gcc2 internal prototype to avoid an error.  */
3074
/* We use char because int might match the return type of a gcc2
3075
    builtin and then its argument prototype would still apply.  */
3076
char connect();
3077
 
3078
int main() {
3079
 
3080
/* The GNU C library defines this for functions which it implements
3081
    to always fail with ENOSYS.  Some functions are actually named
3082
    something starting with __ and the normal name is an alias.  */
3083
#if defined (__stub_connect) || defined (__stub___connect)
3084
choke me
3085
#else
3086
connect();
3087
#endif
3088
 
3089
; return 0; }
3090
EOF
3091
if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092
  rm -rf conftest*
3093
  eval "ac_cv_func_connect=yes"
3094
else
3095
  echo "configure: failed program was:" >&5
3096
  cat conftest.$ac_ext >&5
3097
  rm -rf conftest*
3098
  eval "ac_cv_func_connect=no"
3099
fi
3100
rm -f conftest*
3101
fi
3102
 
3103
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3104
  echo "$ac_t""yes" 1>&6
3105
  itk_checkSocket=0
3106
else
3107
  echo "$ac_t""no" 1>&6
3108
itk_checkSocket=1
3109
fi
3110
 
3111
if test "$itk_checkSocket" = 1; then
3112
    echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3113
echo "configure:3114: checking for main in -lsocket" >&5
3114
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3115
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3116
  echo $ac_n "(cached) $ac_c" 1>&6
3117
else
3118
  ac_save_LIBS="$LIBS"
3119
LIBS="-lsocket  $LIBS"
3120
cat > conftest.$ac_ext <
3121
#line 3122 "configure"
3122
#include "confdefs.h"
3123
 
3124
int main() {
3125
main()
3126
; return 0; }
3127
EOF
3128
if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129
  rm -rf conftest*
3130
  eval "ac_cv_lib_$ac_lib_var=yes"
3131
else
3132
  echo "configure: failed program was:" >&5
3133
  cat conftest.$ac_ext >&5
3134
  rm -rf conftest*
3135
  eval "ac_cv_lib_$ac_lib_var=no"
3136
fi
3137
rm -f conftest*
3138
LIBS="$ac_save_LIBS"
3139
 
3140
fi
3141
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142
  echo "$ac_t""yes" 1>&6
3143
  LIBS="$LIBS -lsocket"
3144
else
3145
  echo "$ac_t""no" 1>&6
3146
itk_checkBoth=1
3147
fi
3148
 
3149
fi
3150
if test "$itk_checkBoth" = 1; then
3151
    itk_oldLibs=$LIBS
3152
    LIBS="$LIBS -lsocket -lnsl"
3153
    echo $ac_n "checking for accept""... $ac_c" 1>&6
3154
echo "configure:3155: checking for accept" >&5
3155
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
3156
  echo $ac_n "(cached) $ac_c" 1>&6
3157
else
3158
  cat > conftest.$ac_ext <
3159
#line 3160 "configure"
3160
#include "confdefs.h"
3161
/* System header to define __stub macros and hopefully few prototypes,
3162
    which can conflict with char accept(); below.  */
3163
#include 
3164
/* Override any gcc2 internal prototype to avoid an error.  */
3165
/* We use char because int might match the return type of a gcc2
3166
    builtin and then its argument prototype would still apply.  */
3167
char accept();
3168
 
3169
int main() {
3170
 
3171
/* The GNU C library defines this for functions which it implements
3172
    to always fail with ENOSYS.  Some functions are actually named
3173
    something starting with __ and the normal name is an alias.  */
3174
#if defined (__stub_accept) || defined (__stub___accept)
3175
choke me
3176
#else
3177
accept();
3178
#endif
3179
 
3180
; return 0; }
3181
EOF
3182
if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183
  rm -rf conftest*
3184
  eval "ac_cv_func_accept=yes"
3185
else
3186
  echo "configure: failed program was:" >&5
3187
  cat conftest.$ac_ext >&5
3188
  rm -rf conftest*
3189
  eval "ac_cv_func_accept=no"
3190
fi
3191
rm -f conftest*
3192
fi
3193
 
3194
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
3195
  echo "$ac_t""yes" 1>&6
3196
  itk_checkNsl=0
3197
else
3198
  echo "$ac_t""no" 1>&6
3199
LIBS=$itk_oldLibs
3200
fi
3201
 
3202
fi
3203
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3204
echo "configure:3205: checking for gethostbyname" >&5
3205
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3206
  echo $ac_n "(cached) $ac_c" 1>&6
3207
else
3208
  cat > conftest.$ac_ext <
3209
#line 3210 "configure"
3210
#include "confdefs.h"
3211
/* System header to define __stub macros and hopefully few prototypes,
3212
    which can conflict with char gethostbyname(); below.  */
3213
#include 
3214
/* Override any gcc2 internal prototype to avoid an error.  */
3215
/* We use char because int might match the return type of a gcc2
3216
    builtin and then its argument prototype would still apply.  */
3217
char gethostbyname();
3218
 
3219
int main() {
3220
 
3221
/* The GNU C library defines this for functions which it implements
3222
    to always fail with ENOSYS.  Some functions are actually named
3223
    something starting with __ and the normal name is an alias.  */
3224
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3225
choke me
3226
#else
3227
gethostbyname();
3228
#endif
3229
 
3230
; return 0; }
3231
EOF
3232
if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233
  rm -rf conftest*
3234
  eval "ac_cv_func_gethostbyname=yes"
3235
else
3236
  echo "configure: failed program was:" >&5
3237
  cat conftest.$ac_ext >&5
3238
  rm -rf conftest*
3239
  eval "ac_cv_func_gethostbyname=no"
3240
fi
3241
rm -f conftest*
3242
fi
3243
 
3244
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3245
  echo "$ac_t""yes" 1>&6
3246
  :
3247
else
3248
  echo "$ac_t""no" 1>&6
3249
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3250
echo "configure:3251: checking for main in -lnsl" >&5
3251
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3252
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3253
  echo $ac_n "(cached) $ac_c" 1>&6
3254
else
3255
  ac_save_LIBS="$LIBS"
3256
LIBS="-lnsl  $LIBS"
3257
cat > conftest.$ac_ext <
3258
#line 3259 "configure"
3259
#include "confdefs.h"
3260
 
3261
int main() {
3262
main()
3263
; return 0; }
3264
EOF
3265
if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3266
  rm -rf conftest*
3267
  eval "ac_cv_lib_$ac_lib_var=yes"
3268
else
3269
  echo "configure: failed program was:" >&5
3270
  cat conftest.$ac_ext >&5
3271
  rm -rf conftest*
3272
  eval "ac_cv_lib_$ac_lib_var=no"
3273
fi
3274
rm -f conftest*
3275
LIBS="$ac_save_LIBS"
3276
 
3277
fi
3278
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3279
  echo "$ac_t""yes" 1>&6
3280
  LIBS="$LIBS -lnsl"
3281
else
3282
  echo "$ac_t""no" 1>&6
3283
fi
3284
 
3285
fi
3286
 
3287
 
3288
#--------------------------------------------------------------------
3289
# One more check related to the X libraries.  The standard releases
3290
# of Ultrix don't support the "xauth" mechanism, so send won't work
3291
# unless TK_NO_SECURITY is defined.  However, there are usually copies
3292
# of the MIT X server available as well, which do support xauth.
3293
# Check for the MIT stuff and use it if it exists.
3294
#
3295
# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1)
3296
# because it can't deal with the "-" in the library name.
3297
#--------------------------------------------------------------------
3298
 
3299
if test -d /usr/include/mit ; then
3300
    echo $ac_n "checking MIT X libraries""... $ac_c" 1>&6
3301
echo "configure:3302: checking MIT X libraries" >&5
3302
    itk_oldCFlags=$CFLAGS
3303
    CFLAGS="$CFLAGS -I/usr/include/mit"
3304
    itk_oldLibs=$LIBS
3305
    LIBS="$LIBS -lX11-mit"
3306
    cat > conftest.$ac_ext <
3307
#line 3308 "configure"
3308
#include "confdefs.h"
3309
 
3310
        #include 
3311
 
3312
int main() {
3313
 
3314
        XOpenDisplay(0);
3315
 
3316
; return 0; }
3317
EOF
3318
if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319
  rm -rf conftest*
3320
 
3321
        echo "$ac_t""yes" 1>&6
3322
        XLIBSW="-lX11-mit"
3323
        XINCLUDES="-I/usr/include/mit"
3324
 
3325
else
3326
  echo "configure: failed program was:" >&5
3327
  cat conftest.$ac_ext >&5
3328
  rm -rf conftest*
3329
  echo "$ac_t""no" 1>&6
3330
fi
3331
rm -f conftest*
3332
    CFLAGS=$itk_oldCFlags
3333
    LIBS=$itk_oldLibs
3334
fi
3335
 
3336
#--------------------------------------------------------------------
3337
#   On a few very rare systems, all of the libm.a stuff is
3338
#   already in libc.a.  Set compiler flags accordingly.
3339
#   Also, Linux requires the "ieee" library for math to
3340
#   work right (and it must appear before "-lm").
3341
#--------------------------------------------------------------------
3342
 
3343
MATH_LIBS=""
3344
echo $ac_n "checking for sin""... $ac_c" 1>&6
3345
echo "configure:3346: checking for sin" >&5
3346
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
3347
  echo $ac_n "(cached) $ac_c" 1>&6
3348
else
3349
  cat > conftest.$ac_ext <
3350
#line 3351 "configure"
3351
#include "confdefs.h"
3352
/* System header to define __stub macros and hopefully few prototypes,
3353
    which can conflict with char sin(); below.  */
3354
#include 
3355
/* Override any gcc2 internal prototype to avoid an error.  */
3356
/* We use char because int might match the return type of a gcc2
3357
    builtin and then its argument prototype would still apply.  */
3358
char sin();
3359
 
3360
int main() {
3361
 
3362
/* The GNU C library defines this for functions which it implements
3363
    to always fail with ENOSYS.  Some functions are actually named
3364
    something starting with __ and the normal name is an alias.  */
3365
#if defined (__stub_sin) || defined (__stub___sin)
3366
choke me
3367
#else
3368
sin();
3369
#endif
3370
 
3371
; return 0; }
3372
EOF
3373
if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374
  rm -rf conftest*
3375
  eval "ac_cv_func_sin=yes"
3376
else
3377
  echo "configure: failed program was:" >&5
3378
  cat conftest.$ac_ext >&5
3379
  rm -rf conftest*
3380
  eval "ac_cv_func_sin=no"
3381
fi
3382
rm -f conftest*
3383
fi
3384
 
3385
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
3386
  echo "$ac_t""yes" 1>&6
3387
  :
3388
else
3389
  echo "$ac_t""no" 1>&6
3390
MATH_LIBS="-lm"
3391
fi
3392
 
3393
echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
3394
echo "configure:3395: checking for main in -lieee" >&5
3395
ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
3396
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3397
  echo $ac_n "(cached) $ac_c" 1>&6
3398
else
3399
  ac_save_LIBS="$LIBS"
3400
LIBS="-lieee  $LIBS"
3401
cat > conftest.$ac_ext <
3402
#line 3403 "configure"
3403
#include "confdefs.h"
3404
 
3405
int main() {
3406
main()
3407
; return 0; }
3408
EOF
3409
if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3410
  rm -rf conftest*
3411
  eval "ac_cv_lib_$ac_lib_var=yes"
3412
else
3413
  echo "configure: failed program was:" >&5
3414
  cat conftest.$ac_ext >&5
3415
  rm -rf conftest*
3416
  eval "ac_cv_lib_$ac_lib_var=no"
3417
fi
3418
rm -f conftest*
3419
LIBS="$ac_save_LIBS"
3420
 
3421
fi
3422
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423
  echo "$ac_t""yes" 1>&6
3424
  MATH_LIBS="-lieee $MATH_LIBS"
3425
else
3426
  echo "$ac_t""no" 1>&6
3427
fi
3428
 
3429
 
3430
#--------------------------------------------------------------------
3431
#   If this system doesn't have a memmove procedure, use memcpy
3432
#   instead.
3433
#--------------------------------------------------------------------
3434
 
3435
echo $ac_n "checking for memmove""... $ac_c" 1>&6
3436
echo "configure:3437: checking for memmove" >&5
3437
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
3438
  echo $ac_n "(cached) $ac_c" 1>&6
3439
else
3440
  cat > conftest.$ac_ext <
3441
#line 3442 "configure"
3442
#include "confdefs.h"
3443
/* System header to define __stub macros and hopefully few prototypes,
3444
    which can conflict with char memmove(); below.  */
3445
#include 
3446
/* Override any gcc2 internal prototype to avoid an error.  */
3447
/* We use char because int might match the return type of a gcc2
3448
    builtin and then its argument prototype would still apply.  */
3449
char memmove();
3450
 
3451
int main() {
3452
 
3453
/* The GNU C library defines this for functions which it implements
3454
    to always fail with ENOSYS.  Some functions are actually named
3455
    something starting with __ and the normal name is an alias.  */
3456
#if defined (__stub_memmove) || defined (__stub___memmove)
3457
choke me
3458
#else
3459
memmove();
3460
#endif
3461
 
3462
; return 0; }
3463
EOF
3464
if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465
  rm -rf conftest*
3466
  eval "ac_cv_func_memmove=yes"
3467
else
3468
  echo "configure: failed program was:" >&5
3469
  cat conftest.$ac_ext >&5
3470
  rm -rf conftest*
3471
  eval "ac_cv_func_memmove=no"
3472
fi
3473
rm -f conftest*
3474
fi
3475
 
3476
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
3477
  echo "$ac_t""yes" 1>&6
3478
  :
3479
else
3480
  echo "$ac_t""no" 1>&6
3481
cat >> confdefs.h <<\EOF
3482
#define memmove memcpy
3483
EOF
3484
 
3485
fi
3486
 
3487
 
3488
#--------------------------------------------------------------------
3489
#   Figure out whether "char" is unsigned.  If so, set a
3490
#   #define for __CHAR_UNSIGNED__.
3491
#--------------------------------------------------------------------
3492
 
3493
#AC_C_CHAR_UNSIGNED
3494
 
3495
#--------------------------------------------------------------------
3496
#   Under Solaris 2.4, strtod returns the wrong value for the
3497
#   terminating character under some conditions.  Check for this
3498
#   and if the problem exists use a substitute procedure
3499
#   "fixstrtod" (provided by Tcl) that corrects the error.
3500
#--------------------------------------------------------------------
3501
 
3502
echo $ac_n "checking for strtod""... $ac_c" 1>&6
3503
echo "configure:3504: checking for strtod" >&5
3504
if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
3505
  echo $ac_n "(cached) $ac_c" 1>&6
3506
else
3507
  cat > conftest.$ac_ext <
3508
#line 3509 "configure"
3509
#include "confdefs.h"
3510
/* System header to define __stub macros and hopefully few prototypes,
3511
    which can conflict with char strtod(); below.  */
3512
#include 
3513
/* Override any gcc2 internal prototype to avoid an error.  */
3514
/* We use char because int might match the return type of a gcc2
3515
    builtin and then its argument prototype would still apply.  */
3516
char strtod();
3517
 
3518
int main() {
3519
 
3520
/* The GNU C library defines this for functions which it implements
3521
    to always fail with ENOSYS.  Some functions are actually named
3522
    something starting with __ and the normal name is an alias.  */
3523
#if defined (__stub_strtod) || defined (__stub___strtod)
3524
choke me
3525
#else
3526
strtod();
3527
#endif
3528
 
3529
; return 0; }
3530
EOF
3531
if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532
  rm -rf conftest*
3533
  eval "ac_cv_func_strtod=yes"
3534
else
3535
  echo "configure: failed program was:" >&5
3536
  cat conftest.$ac_ext >&5
3537
  rm -rf conftest*
3538
  eval "ac_cv_func_strtod=no"
3539
fi
3540
rm -f conftest*
3541
fi
3542
 
3543
if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
3544
  echo "$ac_t""yes" 1>&6
3545
  itk_strtod=1
3546
else
3547
  echo "$ac_t""no" 1>&6
3548
itk_strtod=0
3549
fi
3550
 
3551
if test "$itk_strtod" = 1; then
3552
    echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
3553
echo "configure:3554: checking for Solaris 2.4 strtod bug" >&5
3554
    if test "$cross_compiling" = yes; then
3555
  itk_ok=0
3556
else
3557
  cat > conftest.$ac_ext <
3558
#line 3559 "configure"
3559
#include "confdefs.h"
3560
 
3561
        extern double strtod();
3562
        int main()
3563
        {
3564
            char *string = "NaN";
3565
            char *term;
3566
            strtod(string, &term);
3567
            if ((term != string) && (term[-1] == 0)) {
3568
                exit(1);
3569
            }
3570
            exit(0);
3571
        }
3572
EOF
3573
if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3574
then
3575
  itk_ok=1
3576
else
3577
  echo "configure: failed program was:" >&5
3578
  cat conftest.$ac_ext >&5
3579
  rm -fr conftest*
3580
  itk_ok=0
3581
fi
3582
rm -fr conftest*
3583
fi
3584
 
3585
    if test "$itk_ok" = 1; then
3586
        echo "$ac_t""ok" 1>&6
3587
    else
3588
        echo "$ac_t""buggy" 1>&6
3589
        cat >> confdefs.h <<\EOF
3590
#define strtod fixstrtod
3591
EOF
3592
 
3593
    fi
3594
fi
3595
 
3596
#--------------------------------------------------------------------
3597
# If we are building with cygwin, we need one set of library names,
3598
# otherwise, we need the Source-Navigator set.
3599
#--------------------------------------------------------------------
3600
 
3601
 
3602
 
3603
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
3604
    CYGITKLIBSPEC=itk${VERSION}
3605
else
3606
    CYGITKLIBSPEC="itk`echo ${VERSION} | tr -d .`"
3607
fi
3608
CYGITKLIB=lib${CYGITKLIBSPEC}.a
3609
CYGITKDLL=cygitk${VERSION}.dll
3610
CYGITKWISH=cygitkwish${VERSION}.exe
3611
CYGITKDEF=itkcyg.def
3612
CYGITKTEST=cygitktest.exe
3613
CYGIMPORTLIB=cygitk${VERSION}.lib
3614
CYGITKRES=cygitk.o
3615
CYGITKWISHRES=cygitkwish.o
3616
 
3617
SNITKLIBSPEC=itk30.lib
3618
SNITKLIB=${SNITKLIBSPEC}
3619
SNITKDLL=snitk30.dll
3620
SNITKWISH=snitkwish30.exe
3621
SNITKDEF=itksn.def
3622
SNITKTEST=snitktest.exe
3623
SNIMPORTLIB=snitk30.lib
3624
SNITKRES=snitk.obj
3625
SNITKWISHRES=snitksh.obj
3626
 
3627
if test "$GCC" = yes; then
3628
ITKLIBSPEC=${CYGITKLIBSPEC}
3629
ITKLIB=${CYGITKLIB}
3630
ITKDLL=${CYGITKDLL}
3631
ITKWISH=${CYGITKWISH}
3632
ITKDEF=${CYGITKDEF}
3633
ITKTEST=${CYGITKTEST}
3634
ITKIMPORTLIB=${CYGIMPORTLIB}
3635
ITKRES=${CYGITKRES}
3636
ITKWISHRES=${CYGITKWISHRES}
3637
else
3638
ITKLIBSPEC=${SNITKLIBSPEC}
3639
ITKLIB=${SNITKLIB}
3640
ITKDLL=${SNITKDLL}
3641
ITKWISH=${SNITKWISH}
3642
ITKDEF=${SNITKDEF}
3643
ITKTEST=${SNITKTEST}
3644
ITKIMPORTLIB=${SNIMPORTLIB}
3645
ITKRES=${SNITKRES}
3646
ITKWISHRES=${SNITKWISHRES}
3647
fi
3648
 
3649
#--------------------------------------------------------------------
3650
#   The statements below define a collection of symbols related to
3651
#   building libitk as a shared library instead of a static library.
3652
#--------------------------------------------------------------------
3653
 
3654
# Check whether --enable-shared or --disable-shared was given.
3655
if test "${enable_shared+set}" = set; then
3656
  enableval="$enable_shared"
3657
  ok=$enableval
3658
else
3659
  ok=no
3660
fi
3661
 
3662
if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
3663
    ITK_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
3664
    eval "ITK_LIB_FILE=libitk${VERSION}${SHLIB_SUFFIX}"
3665
    ITK_PKG_FILE="[file join [file dirname \$dir] ${ITK_LIB_FILE}]"
3666
    MAKE_LIB="\${SHLIB_LD} -o ${ITK_LIB_FILE} ${LIBS} \${OBJS} ${SHLIB_LD_LIBS}"
3667
    RANLIB=":"
3668
else
3669
    ITK_SHLIB_CFLAGS=""
3670
    eval "ITK_LIB_FILE=libitk${VERSION}.a"
3671
    ITK_PKG_FILE=""
3672
    MAKE_LIB="ar cr ${ITK_LIB_FILE} \${OBJS}"
3673
fi
3674
 
3675
# Note:  in the following variable, it's important to use the absolute
3676
# path name of the Tcl directory rather than "..":  this is because
3677
# AIX remembers this path and will attempt to use it at run-time to look
3678
# up the Tcl library.
3679
 
3680
if test "$GCC" = yes; then
3681
    ITK_BUILD_LIB_SPEC="-L`pwd` -l${ITKLIBSPEC}"
3682
    ITK_LIB_SPEC="-L${exec_prefix}/lib/ITK -l{ITKLIBSPEC}"
3683
    ITK_LIB_FULL_PATH="`pwd`/${ITKLIB}"
3684
else
3685
    tmp="`pwd`/${ITKLIB}"
3686
    tmp2="`cygpath --windows $tmp`"
3687
    ITK_BUILD_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
3688
    ITK_LIB_FULL_PATH=${ITK_BUILD_LIB_SPEC}
3689
    tmp="${exec_prefix}/lib/ITK/${ITKLIB}"
3690
    tmp2="`cygpath --windows $tmp`"
3691
    ITK_LIB_SPEC="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
3692
fi
3693
 
3694
if test "$GCC" = yes; then
3695
    BASELIBS="-lkernel32 $optlibs -ladvapi32 -luser32"
3696
    WINLIBS="-lgdi32 -lcomdlg32 -lwinspool"
3697
    LIBCDLL=
3698
else
3699
    BASELIBS="kernel32.lib advapi32.lib user32.lib"
3700
    WINLIBS="gdi32.lib comdlg32.lib winspool.lib"
3701
    LIBCDLL="msvcrt.lib oldnames.lib"
3702
fi
3703
 
3704
 
3705
 
3706
 
3707
 
3708
 
3709
 
3710
 
3711
 
3712
 
3713
 
3714
 
3715
 
3716
 
3717
 
3718
 
3719
 
3720
 
3721
 
3722
 
3723
 
3724
 
3725
 
3726
 
3727
 
3728
 
3729
 
3730
 
3731
 
3732
 
3733
 
3734
 
3735
 
3736
 
3737
 
3738
 
3739
 
3740
 
3741
 
3742
 
3743
 
3744
 
3745
 
3746
 
3747
 
3748
 
3749
 
3750
 
3751
 
3752
 
3753
 
3754
 
3755
 
3756
 
3757
 
3758
 
3759
 
3760
 
3761
 
3762
 
3763
 
3764
 
3765
 
3766
 
3767
 
3768
 
3769
 
3770
 
3771
 
3772
trap '' 1 2 15
3773
cat > confcache <<\EOF
3774
# This file is a shell script that caches the results of configure
3775
# tests run on this system so they can be shared between configure
3776
# scripts and configure runs.  It is not useful on other systems.
3777
# If it contains results you don't want to keep, you may remove or edit it.
3778
#
3779
# By default, configure uses ./config.cache as the cache file,
3780
# creating it if it does not exist already.  You can give configure
3781
# the --cache-file=FILE option to use a different cache file; that is
3782
# what configure does when it calls configure scripts in
3783
# subdirectories, so they share the cache.
3784
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3785
# config.status only pays attention to the cache file if you give it the
3786
# --recheck option to rerun configure.
3787
#
3788
EOF
3789
# The following way of writing the cache mishandles newlines in values,
3790
# but we know of no workaround that is simple, portable, and efficient.
3791
# So, don't put newlines in cache variables' values.
3792
# Ultrix sh set writes to stderr and can't be redirected directly,
3793
# and sets the high bit in the cache file unless we assign to the vars.
3794
(set) 2>&1 |
3795
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3796
  *ac_space=\ *)
3797
    # `set' does not quote correctly, so add quotes (double-quote substitution
3798
    # turns \\\\ into \\, and sed turns \\ into \).
3799
    sed -n \
3800
      -e "s/'/'\\\\''/g" \
3801
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3802
    ;;
3803
  *)
3804
    # `set' quotes correctly as required by POSIX, so do not add quotes.
3805
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3806
    ;;
3807
  esac >> confcache
3808
if cmp -s $cache_file confcache; then
3809
  :
3810
else
3811
  if test -w $cache_file; then
3812
    echo "updating cache $cache_file"
3813
    cat confcache > $cache_file
3814
  else
3815
    echo "not updating unwritable cache $cache_file"
3816
  fi
3817
fi
3818
rm -f confcache
3819
 
3820
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3821
 
3822
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3823
# Let make expand exec_prefix.
3824
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3825
 
3826
# Any assignment to VPATH causes Sun make to only execute
3827
# the first set of double-colon rules, so remove it if not needed.
3828
# If there is a colon in the path, we need to keep it.
3829
if test "x$srcdir" = x.; then
3830
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3831
fi
3832
 
3833
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3834
 
3835
# Transform confdefs.h into DEFS.
3836
# Protect against shell expansion while executing Makefile rules.
3837
# Protect against Makefile macro expansion.
3838
cat > conftest.defs <<\EOF
3839
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3840
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3841
s%\[%\\&%g
3842
s%\]%\\&%g
3843
s%\$%$$%g
3844
EOF
3845
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3846
rm -f conftest.defs
3847
 
3848
 
3849
# Without the "./", some shells look in PATH for config.status.
3850
: ${CONFIG_STATUS=./config.status}
3851
 
3852
echo creating $CONFIG_STATUS
3853
rm -f $CONFIG_STATUS
3854
cat > $CONFIG_STATUS <
3855
#! /bin/sh
3856
# Generated automatically by configure.
3857
# Run this file to recreate the current configuration.
3858
# This directory was configured as follows,
3859
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3860
#
3861
# $0 $ac_configure_args
3862
#
3863
# Compiler output produced by configure, useful for debugging
3864
# configure, is in ./config.log if it exists.
3865
 
3866
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3867
for ac_option
3868
do
3869
  case "\$ac_option" in
3870
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3871
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3872
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3873
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3874
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3875
    exit 0 ;;
3876
  -help | --help | --hel | --he | --h)
3877
    echo "\$ac_cs_usage"; exit 0 ;;
3878
  *) echo "\$ac_cs_usage"; exit 1 ;;
3879
  esac
3880
done
3881
 
3882
ac_given_srcdir=$srcdir
3883
ac_given_INSTALL="$INSTALL"
3884
 
3885
trap 'rm -fr `echo "Makefile ../unix/pkgIndex.tcl ../itkConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3886
EOF
3887
cat >> $CONFIG_STATUS <
3888
 
3889
# Protect against being on the right side of a sed subst in config.status.
3890
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3891
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3892
$ac_vpsub
3893
$extrasub
3894
s%@SHELL@%$SHELL%g
3895
s%@CFLAGS@%$CFLAGS%g
3896
s%@CPPFLAGS@%$CPPFLAGS%g
3897
s%@CXXFLAGS@%$CXXFLAGS%g
3898
s%@FFLAGS@%$FFLAGS%g
3899
s%@DEFS@%$DEFS%g
3900
s%@LDFLAGS@%$LDFLAGS%g
3901
s%@LIBS@%$LIBS%g
3902
s%@exec_prefix@%$exec_prefix%g
3903
s%@prefix@%$prefix%g
3904
s%@program_transform_name@%$program_transform_name%g
3905
s%@bindir@%$bindir%g
3906
s%@sbindir@%$sbindir%g
3907
s%@libexecdir@%$libexecdir%g
3908
s%@datadir@%$datadir%g
3909
s%@sysconfdir@%$sysconfdir%g
3910
s%@sharedstatedir@%$sharedstatedir%g
3911
s%@localstatedir@%$localstatedir%g
3912
s%@libdir@%$libdir%g
3913
s%@includedir@%$includedir%g
3914
s%@oldincludedir@%$oldincludedir%g
3915
s%@infodir@%$infodir%g
3916
s%@mandir@%$mandir%g
3917
s%@host@%$host%g
3918
s%@host_alias@%$host_alias%g
3919
s%@host_cpu@%$host_cpu%g
3920
s%@host_vendor@%$host_vendor%g
3921
s%@host_os@%$host_os%g
3922
s%@RANLIB@%$RANLIB%g
3923
s%@CC@%$CC%g
3924
s%@OBJEXT@%$OBJEXT%g
3925
s%@build@%$build%g
3926
s%@build_alias@%$build_alias%g
3927
s%@build_cpu@%$build_cpu%g
3928
s%@build_vendor@%$build_vendor%g
3929
s%@build_os@%$build_os%g
3930
s%@NM@%$NM%g
3931
s%@AS@%$AS%g
3932
s%@LD@%$LD%g
3933
s%@DLLTOOL@%$DLLTOOL%g
3934
s%@WINDRES@%$WINDRES%g
3935
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3936
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3937
s%@INSTALL_DATA@%$INSTALL_DATA%g
3938
s%@DLL_LDFLAGS@%$DLL_LDFLAGS%g
3939
s%@DLL_LDLIBS@%$DLL_LDLIBS%g
3940
s%@ITCLSH@%$ITCLSH%g
3941
s%@CPP@%$CPP%g
3942
s%@XINCLUDES@%$XINCLUDES%g
3943
s%@DL_LIBS@%$DL_LIBS%g
3944
s%@LD_FLAGS@%$LD_FLAGS%g
3945
s%@MATH_LIBS@%$MATH_LIBS%g
3946
s%@MAKE_LIB@%$MAKE_LIB%g
3947
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
3948
s%@SHLIB_LD@%$SHLIB_LD%g
3949
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
3950
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
3951
s%@SHLIB_VERSION@%$SHLIB_VERSION%g
3952
s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
3953
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
3954
s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
3955
s%@TCL_VERSION@%$TCL_VERSION%g
3956
s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
3957
s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
3958
s%@TK_BIN_DIR@%$TK_BIN_DIR%g
3959
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
3960
s%@TK_SRC_DIR@%$TK_SRC_DIR%g
3961
s%@TK_VERSION@%$TK_VERSION%g
3962
s%@TK_LIB_FILE@%$TK_LIB_FILE%g
3963
s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
3964
s%@ITCL_BIN_DIR@%$ITCL_BIN_DIR%g
3965
s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
3966
s%@ITCL_MAJOR_VERSION@%$ITCL_MAJOR_VERSION%g
3967
s%@ITCL_MINOR_VERSION@%$ITCL_MINOR_VERSION%g
3968
s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
3969
s%@ITCL_VERSION@%$ITCL_VERSION%g
3970
s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
3971
s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
3972
s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
3973
s%@ITK_LD_SEARCH_FLAGS@%$ITK_LD_SEARCH_FLAGS%g
3974
s%@ITK_LIB_FILE@%$ITK_LIB_FILE%g
3975
s%@ITK_LIB_FULL_PATH@%$ITK_LIB_FULL_PATH%g
3976
s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
3977
s%@ITK_PKG_FILE@%$ITK_PKG_FILE%g
3978
s%@ITK_SHLIB_CFLAGS@%$ITK_SHLIB_CFLAGS%g
3979
s%@ITK_SRC_DIR@%$ITK_SRC_DIR%g
3980
s%@XLIBSW@%$XLIBSW%g
3981
s%@CYGITKLIB@%$CYGITKLIB%g
3982
s%@CYGITKDLL@%$CYGITKDLL%g
3983
s%@CYGITKWISH@%$CYGITKWISH%g
3984
s%@CYGITKDEF@%$CYGITKDEF%g
3985
s%@CYGITKTEST@%$CYGITKTEST%g
3986
s%@CYGIMPORTLIB@%$CYGIMPORTLIB%g
3987
s%@CYGITKRES@%$CYGITKRES%g
3988
s%@CYGITKWISHRES@%$CYGITKWISHRES%g
3989
s%@SNITKLIB@%$SNITKLIB%g
3990
s%@SNITKDLL@%$SNITKDLL%g
3991
s%@SNITKWISH@%$SNITKWISH%g
3992
s%@SNITKDEF@%$SNITKDEF%g
3993
s%@SNITKTEST@%$SNITKTEST%g
3994
s%@SNIMPORTLIB@%$SNIMPORTLIB%g
3995
s%@SNITKRES@%$SNITKRES%g
3996
s%@SNITKWISHRES@%$SNITKWISHRES%g
3997
s%@ITKLIB@%$ITKLIB%g
3998
s%@ITKDLL@%$ITKDLL%g
3999
s%@ITKWISH@%$ITKWISH%g
4000
s%@ITKDEF@%$ITKDEF%g
4001
s%@ITKTEST@%$ITKTEST%g
4002
s%@ITKIMPORTLIB@%$ITKIMPORTLIB%g
4003
s%@ITKRES@%$ITKRES%g
4004
s%@ITKWISHRES@%$ITKWISHRES%g
4005
s%@BASELIBS@%$BASELIBS%g
4006
s%@WINLIBS@%$WINLIBS%g
4007
s%@LIBCDLL@%$LIBCDLL%g
4008
 
4009
CEOF
4010
EOF
4011
 
4012
cat >> $CONFIG_STATUS <<\EOF
4013
 
4014
# Split the substitutions into bite-sized pieces for seds with
4015
# small command number limits, like on Digital OSF/1 and HP-UX.
4016
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4017
ac_file=1 # Number of current file.
4018
ac_beg=1 # First line for current file.
4019
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4020
ac_more_lines=:
4021
ac_sed_cmds=""
4022
while $ac_more_lines; do
4023
  if test $ac_beg -gt 1; then
4024
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4025
  else
4026
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4027
  fi
4028
  if test ! -s conftest.s$ac_file; then
4029
    ac_more_lines=false
4030
    rm -f conftest.s$ac_file
4031
  else
4032
    if test -z "$ac_sed_cmds"; then
4033
      ac_sed_cmds="sed -f conftest.s$ac_file"
4034
    else
4035
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4036
    fi
4037
    ac_file=`expr $ac_file + 1`
4038
    ac_beg=$ac_end
4039
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4040
  fi
4041
done
4042
if test -z "$ac_sed_cmds"; then
4043
  ac_sed_cmds=cat
4044
fi
4045
EOF
4046
 
4047
cat >> $CONFIG_STATUS <
4048
 
4049
CONFIG_FILES=\${CONFIG_FILES-"Makefile ../unix/pkgIndex.tcl ../itkConfig.sh"}
4050
EOF
4051
cat >> $CONFIG_STATUS <<\EOF
4052
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4053
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4054
  case "$ac_file" in
4055
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4056
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4057
  *) ac_file_in="${ac_file}.in" ;;
4058
  esac
4059
 
4060
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4061
 
4062
  # Remove last slash and all that follows it.  Not all systems have dirname.
4063
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4064
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4065
    # The file is in a subdirectory.
4066
    test ! -d "$ac_dir" && mkdir "$ac_dir"
4067
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4068
    # A "../" for each directory in $ac_dir_suffix.
4069
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4070
  else
4071
    ac_dir_suffix= ac_dots=
4072
  fi
4073
 
4074
  case "$ac_given_srcdir" in
4075
  .)  srcdir=.
4076
      if test -z "$ac_dots"; then top_srcdir=.
4077
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4078
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4079
  *) # Relative path.
4080
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4081
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4082
  esac
4083
 
4084
  case "$ac_given_INSTALL" in
4085
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4086
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4087
  esac
4088
 
4089
  echo creating "$ac_file"
4090
  rm -f "$ac_file"
4091
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4092
  case "$ac_file" in
4093
  *Makefile*) ac_comsub="1i\\
4094
# $configure_input" ;;
4095
  *) ac_comsub= ;;
4096
  esac
4097
 
4098
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4099
  sed -e "$ac_comsub
4100
s%@configure_input@%$configure_input%g
4101
s%@srcdir@%$srcdir%g
4102
s%@top_srcdir@%$top_srcdir%g
4103
s%@INSTALL@%$INSTALL%g
4104
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4105
fi; done
4106
rm -f conftest.s*
4107
 
4108
EOF
4109
cat >> $CONFIG_STATUS <
4110
 
4111
EOF
4112
cat >> $CONFIG_STATUS <<\EOF
4113
 
4114
exit 0
4115
EOF
4116
chmod +x $CONFIG_STATUS
4117
rm -fr confdefs* $ac_clean_files
4118
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4119
 
4120
 

powered by: WebSVN 2.1.0

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