Debian Codegraph @

pTk/mTk/tixUnix/tk8.0/configure

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