Debian Codegraph @

pTk/mTk/tixUnix/itcl3.1/configure

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