Debian Codegraph @

pTk/mTk/tixUnix/tk8.3/configure

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