Debian Codegraph @

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