1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15       --enable-scoring         use a world-writable score directory
16       --disable-scoring        no scoring"
17
18# Initialize some variables set by options.
19# The variables have the same names as the options, with
20# dashes changed to underlines.
21build=NONE
22cache_file=./config.cache
23exec_prefix=NONE
24host=NONE
25no_create=
26nonopt=NONE
27no_recursion=
28prefix=NONE
29program_prefix=NONE
30program_suffix=NONE
31program_transform_name=s,x,x,
32silent=
33site=
34srcdir=
35target=NONE
36verbose=
37x_includes=NONE
38x_libraries=NONE
39bindir='${exec_prefix}/bin'
40sbindir='${exec_prefix}/sbin'
41libexecdir='${exec_prefix}/libexec'
42datadir='${prefix}/share'
43sysconfdir='${prefix}/etc'
44sharedstatedir='${prefix}/com'
45localstatedir='${prefix}/var'
46libdir='${exec_prefix}/lib'
47includedir='${prefix}/include'
48oldincludedir='/usr/include'
49infodir='${prefix}/info'
50mandir='${prefix}/man'
51
52# Initialize some other variables.
53subdirs=
54MFLAGS= MAKEFLAGS=
55# Maximum number of lines to put in a shell here document.
56ac_max_here_lines=12
57
58ac_prev=
59for ac_option
60do
61
62  # If the previous option needs an argument, assign it.
63  if test -n "$ac_prev"; then
64    eval "$ac_prev=\$ac_option"
65    ac_prev=
66    continue
67  fi
68
69  case "$ac_option" in
70  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71  *) ac_optarg= ;;
72  esac
73
74  # Accept the important Cygnus configure options, so we can diagnose typos.
75
76  case "$ac_option" in
77
78  -bindir | --bindir | --bindi | --bind | --bin | --bi)
79    ac_prev=bindir ;;
80  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81    bindir="$ac_optarg" ;;
82
83  -build | --build | --buil | --bui | --bu)
84    ac_prev=build ;;
85  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86    build="$ac_optarg" ;;
87
88  -cache-file | --cache-file | --cache-fil | --cache-fi \
89  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90    ac_prev=cache_file ;;
91  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93    cache_file="$ac_optarg" ;;
94
95  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96    ac_prev=datadir ;;
97  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98  | --da=*)
99    datadir="$ac_optarg" ;;
100
101  -disable-* | --disable-*)
102    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103    # Reject names that are not valid shell variable names.
104    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106    fi
107    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108    eval "enable_${ac_feature}=no" ;;
109
110  -enable-* | --enable-*)
111    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112    # Reject names that are not valid shell variable names.
113    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115    fi
116    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117    case "$ac_option" in
118      *=*) ;;
119      *) ac_optarg=yes ;;
120    esac
121    eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125  | --exec | --exe | --ex)
126    ac_prev=exec_prefix ;;
127  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129  | --exec=* | --exe=* | --ex=*)
130    exec_prefix="$ac_optarg" ;;
131
132  -gas | --gas | --ga | --g)
133    # Obsolete; use --with-gas.
134    with_gas=yes ;;
135
136  -help | --help | --hel | --he)
137    # Omit some internal or obsolete options to make the list less imposing.
138    # This message is too long to be a string in the A/UX 3.1 sh.
139    cat << EOF
140Usage: configure [options] [host]
141Options: [defaults in brackets after descriptions]
142Configuration:
143  --cache-file=FILE       cache test results in FILE
144  --help                  print this message
145  --no-create             do not create output files
146  --quiet, --silent       do not print \`checking...' messages
147  --version               print the version of autoconf that created configure
148Directory and file names:
149  --prefix=PREFIX         install architecture-independent files in PREFIX
150                          [$ac_default_prefix]
151  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                          [same as prefix]
153  --bindir=DIR            user executables in DIR [EPREFIX/bin]
154  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156  --datadir=DIR           read-only architecture-independent data in DIR
157                          [PREFIX/share]
158  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                          [PREFIX/com]
161  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163  --includedir=DIR        C header files in DIR [PREFIX/include]
164  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165  --infodir=DIR           info documentation in DIR [PREFIX/info]
166  --mandir=DIR            man documentation in DIR [PREFIX/man]
167  --srcdir=DIR            find the sources in DIR [configure dir or ..]
168  --program-prefix=PREFIX prepend PREFIX to installed program names
169  --program-suffix=SUFFIX append SUFFIX to installed program names
170  --program-transform-name=PROGRAM
171                          run sed PROGRAM on installed program names
172EOF
173    cat << EOF
174Host type:
175  --build=BUILD           configure for building on BUILD [BUILD=HOST]
176  --host=HOST             configure for HOST [guessed]
177  --target=TARGET         configure for TARGET [TARGET=HOST]
178Features and packages:
179  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183  --x-includes=DIR        X include files are in DIR
184  --x-libraries=DIR       X library files are in DIR
185EOF
186    if test -n "$ac_help"; then
187      echo "--enable and --with options recognized:$ac_help"
188    fi
189    exit 0 ;;
190
191  -host | --host | --hos | --ho)
192    ac_prev=host ;;
193  -host=* | --host=* | --hos=* | --ho=*)
194    host="$ac_optarg" ;;
195
196  -includedir | --includedir | --includedi | --included | --include \
197  | --includ | --inclu | --incl | --inc)
198    ac_prev=includedir ;;
199  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200  | --includ=* | --inclu=* | --incl=* | --inc=*)
201    includedir="$ac_optarg" ;;
202
203  -infodir | --infodir | --infodi | --infod | --info | --inf)
204    ac_prev=infodir ;;
205  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206    infodir="$ac_optarg" ;;
207
208  -libdir | --libdir | --libdi | --libd)
209    ac_prev=libdir ;;
210  -libdir=* | --libdir=* | --libdi=* | --libd=*)
211    libdir="$ac_optarg" ;;
212
213  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214  | --libexe | --libex | --libe)
215    ac_prev=libexecdir ;;
216  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217  | --libexe=* | --libex=* | --libe=*)
218    libexecdir="$ac_optarg" ;;
219
220  -localstatedir | --localstatedir | --localstatedi | --localstated \
221  | --localstate | --localstat | --localsta | --localst \
222  | --locals | --local | --loca | --loc | --lo)
223    ac_prev=localstatedir ;;
224  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227    localstatedir="$ac_optarg" ;;
228
229  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230    ac_prev=mandir ;;
231  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232    mandir="$ac_optarg" ;;
233
234  -nfp | --nfp | --nf)
235    # Obsolete; use --without-fp.
236    with_fp=no ;;
237
238  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239  | --no-cr | --no-c)
240    no_create=yes ;;
241
242  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244    no_recursion=yes ;;
245
246  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248  | --oldin | --oldi | --old | --ol | --o)
249    ac_prev=oldincludedir ;;
250  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253    oldincludedir="$ac_optarg" ;;
254
255  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256    ac_prev=prefix ;;
257  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258    prefix="$ac_optarg" ;;
259
260  -program-prefix | --program-prefix | --program-prefi | --program-pref \
261  | --program-pre | --program-pr | --program-p)
262    ac_prev=program_prefix ;;
263  -program-prefix=* | --program-prefix=* | --program-prefi=* \
264  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265    program_prefix="$ac_optarg" ;;
266
267  -program-suffix | --program-suffix | --program-suffi | --program-suff \
268  | --program-suf | --program-su | --program-s)
269    ac_prev=program_suffix ;;
270  -program-suffix=* | --program-suffix=* | --program-suffi=* \
271  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272    program_suffix="$ac_optarg" ;;
273
274  -program-transform-name | --program-transform-name \
275  | --program-transform-nam | --program-transform-na \
276  | --program-transform-n | --program-transform- \
277  | --program-transform | --program-transfor \
278  | --program-transfo | --program-transf \
279  | --program-trans | --program-tran \
280  | --progr-tra | --program-tr | --program-t)
281    ac_prev=program_transform_name ;;
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    program_transform_name="$ac_optarg" ;;
290
291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292  | -silent | --silent | --silen | --sile | --sil)
293    silent=yes ;;
294
295  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296    ac_prev=sbindir ;;
297  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298  | --sbi=* | --sb=*)
299    sbindir="$ac_optarg" ;;
300
301  -sharedstatedir | --sharedstatedir | --sharedstatedi \
302  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303  | --sharedst | --shareds | --shared | --share | --shar \
304  | --sha | --sh)
305    ac_prev=sharedstatedir ;;
306  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309  | --sha=* | --sh=*)
310    sharedstatedir="$ac_optarg" ;;
311
312  -site | --site | --sit)
313    ac_prev=site ;;
314  -site=* | --site=* | --sit=*)
315    site="$ac_optarg" ;;
316
317  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318    ac_prev=srcdir ;;
319  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320    srcdir="$ac_optarg" ;;
321
322  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323  | --syscon | --sysco | --sysc | --sys | --sy)
324    ac_prev=sysconfdir ;;
325  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327    sysconfdir="$ac_optarg" ;;
328
329  -target | --target | --targe | --targ | --tar | --ta | --t)
330    ac_prev=target ;;
331  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332    target="$ac_optarg" ;;
333
334  -v | -verbose | --verbose | --verbos | --verbo | --verb)
335    verbose=yes ;;
336
337  -version | --version | --versio | --versi | --vers)
338    echo "configure generated by autoconf version 2.12"
339    exit 0 ;;
340
341  -with-* | --with-*)
342    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343    # Reject names that are not valid shell variable names.
344    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346    fi
347    ac_package=`echo $ac_package| sed 's/-/_/g'`
348    case "$ac_option" in
349      *=*) ;;
350      *) ac_optarg=yes ;;
351    esac
352    eval "with_${ac_package}='$ac_optarg'" ;;
353
354  -without-* | --without-*)
355    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356    # Reject names that are not valid shell variable names.
357    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359    fi
360    ac_package=`echo $ac_package| sed 's/-/_/g'`
361    eval "with_${ac_package}=no" ;;
362
363  --x)
364    # Obsolete; use --with-x.
365    with_x=yes ;;
366
367  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368  | --x-incl | --x-inc | --x-in | --x-i)
369    ac_prev=x_includes ;;
370  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372    x_includes="$ac_optarg" ;;
373
374  -x-libraries | --x-libraries | --x-librarie | --x-librari \
375  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376    ac_prev=x_libraries ;;
377  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379    x_libraries="$ac_optarg" ;;
380
381  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382    ;;
383
384  *)
385    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386      echo "configure: warning: $ac_option: invalid host type" 1>&2
387    fi
388    if test "x$nonopt" != xNONE; then
389      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390    fi
391    nonopt="$ac_option"
392    ;;
393
394  esac
395done
396
397if test -n "$ac_prev"; then
398  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399fi
400
401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403# File descriptor usage:
404# 0 standard input
405# 1 file creation
406# 2 errors and warnings
407# 3 some systems may open it to /dev/tty
408# 4 used on the Kubota Titan
409# 6 checking for... messages and results
410# 5 compiler messages saved in config.log
411if test "$silent" = yes; then
412  exec 6>/dev/null
413else
414  exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running configure, to aid debugging if configure makes a mistake.
421" 1>&5
422
423# Strip out --no-create and --no-recursion so they do not pile up.
424# Also quote any args containing shell metacharacters.
425ac_configure_args=
426for ac_arg
427do
428  case "$ac_arg" in
429  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430  | --no-cr | --no-c) ;;
431  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436  esac
437done
438
439# NLS nuisances.
440# Only set these to C if already set.  These must not be set unconditionally
441# because not all systems understand e.g. LANG=C (notably SCO).
442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443# Non-C LC_CTYPE values break the ctype check.
444if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449# confdefs.h avoids OS command line length limits that DEFS can exceed.
450rm -rf conftest* confdefs.h
451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
452echo > confdefs.h
453
454# A filename unique to this package, relative to the directory that
455# configure is in, which we can look for to find out if srcdir is correct.
456ac_unique_file=dontspaceMenus.tcl
457
458# Find the source files, if location was not specified.
459if test -z "$srcdir"; then
460  ac_srcdir_defaulted=yes
461  # Try the directory containing this script, then its parent.
462  ac_prog=$0
463  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465  srcdir=$ac_confdir
466  if test ! -r $srcdir/$ac_unique_file; then
467    srcdir=..
468  fi
469else
470  ac_srcdir_defaulted=no
471fi
472if test ! -r $srcdir/$ac_unique_file; then
473  if test "$ac_srcdir_defaulted" = yes; then
474    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475  else
476    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477  fi
478fi
479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481# Prefer explicitly selected file to automatically selected ones.
482if test -z "$CONFIG_SITE"; then
483  if test "x$prefix" != xNONE; then
484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485  else
486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487  fi
488fi
489for ac_site_file in $CONFIG_SITE; do
490  if test -r "$ac_site_file"; then
491    echo "loading site script $ac_site_file"
492    . "$ac_site_file"
493  fi
494done
495
496if test -r "$cache_file"; then
497  echo "loading cache $cache_file"
498  . $cache_file
499else
500  echo "creating cache $cache_file"
501  > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514    ac_n= ac_c='
515' ac_t='	'
516  else
517    ac_n=-n ac_c= ac_t=
518  fi
519else
520  ac_n= ac_c='\c' ac_t=
521fi
522
523
524
525
526package=dontspace
527
528if test "x$prefix" = xNONE; then
529echo $ac_n "checking for prefix by $ac_c" 1>&6
530# Extract the first word of "dontspace", so it can be a program name with args.
531set dummy dontspace; ac_word=$2
532echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533echo "configure:534: checking for $ac_word" >&5
534if eval "test \"`echo '$''{'ac_cv_path_DONTSPACE'+set}'`\" = set"; then
535  echo $ac_n "(cached) $ac_c" 1>&6
536else
537  case "$DONTSPACE" in
538  /*)
539  ac_cv_path_DONTSPACE="$DONTSPACE" # Let the user override the test with a path.
540  ;;
541  *)
542  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
543  for ac_dir in $PATH; do
544    test -z "$ac_dir" && ac_dir=.
545    if test -f $ac_dir/$ac_word; then
546      ac_cv_path_DONTSPACE="$ac_dir/$ac_word"
547      break
548    fi
549  done
550  IFS="$ac_save_ifs"
551  ;;
552esac
553fi
554DONTSPACE="$ac_cv_path_DONTSPACE"
555if test -n "$DONTSPACE"; then
556  echo "$ac_t""$DONTSPACE" 1>&6
557else
558  echo "$ac_t""no" 1>&6
559fi
560
561  if test -n "$ac_cv_path_DONTSPACE"; then
562    prefix=`echo $ac_cv_path_DONTSPACE|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
563  fi
564fi
565
566
567for ac_prog in wishx wish wish4.2 wish4.1
568do
569# Extract the first word of "$ac_prog", so it can be a program name with args.
570set dummy $ac_prog; ac_word=$2
571echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572echo "configure:573: checking for $ac_word" >&5
573if eval "test \"`echo '$''{'ac_cv_path_WISHX'+set}'`\" = set"; then
574  echo $ac_n "(cached) $ac_c" 1>&6
575else
576  case "$WISHX" in
577  /*)
578  ac_cv_path_WISHX="$WISHX" # Let the user override the test with a path.
579  ;;
580  *)
581  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
582  for ac_dir in $PATH; do
583    test -z "$ac_dir" && ac_dir=.
584    if test -f $ac_dir/$ac_word; then
585      ac_cv_path_WISHX="$ac_dir/$ac_word"
586      break
587    fi
588  done
589  IFS="$ac_save_ifs"
590  ;;
591esac
592fi
593WISHX="$ac_cv_path_WISHX"
594if test -n "$WISHX"; then
595  echo "$ac_t""$WISHX" 1>&6
596else
597  echo "$ac_t""no" 1>&6
598fi
599
600test -n "$WISHX" && break
601done
602test -n "$WISHX" || WISHX="no"
603
604if test "$WISHX" = wish; then
605  wish_vers=`echo 'global tk_version; puts $tk_version;exit 0'|wish`
606  case $wish_vers in
607  123.*) wish=no;;
608  4.0) wish=no;;
609  esac
610fi
611if test "$WISHX" = no; then
612  { echo "configure: error: klondike requires either wishx or wish-4.1 (or later).
613Configure can't find either.
614See the README file for instructions about where to fetch these programs." 1>&2; exit 1; }
615fi
616
617
618
619
620
621
622
623
624
625
626if test "$prefix" != NONE
627then
628  mybindir='${prefix}'/bin
629  mydatadir='${prefix}'/lib
630  mymandir='${prefix}'/man
631fi
632test "$bindir" != '${exec_prefix}'/bin && mybindir=$bindir
633test "$datadir" != '${prefix}'/share && mydatadir=$datadir
634test "$mandir" != '${prefix}'/man && mymandir=$mandir
635
636
637if test "$prefix" = NONE -a "$bindir" = '${exec_prefix}'/bin -a "$datadir" = '${prefix}'/share -a "$mandir" = '${prefix}'/man
638then
639  for my_p in "$prefix" /usr/local /usr
640  do
641    mymandir=$my_p/man
642
643        if test -d $my_p/games && test -d $my_p/lib/games
644    then
645      mybindir=$my_p/games
646      mydatadir=$my_p/lib/games
647      echo "$ac_t""Guessing Linux/Redhat-style installation:" 1>&6
648      echo "$ac_t""    bindir=$mybindir, datadir=$mydatadir." 1>&6
649      break
650    fi
651
652        if test -d $my_p/games && test -d $my_p/share/games
653    then
654      mybindir=$my_p/games
655      mydatadir=$my_p/share/games
656      echo "$ac_t""Guessing FreeBSD-style installation:" 1>&6
657      echo "$ac_t""    bindir=$mybindir, datadir=$mydatadir." 1>&6
658      break
659    fi
660
661        if test -d $my_p/games && test -d $my_p/games/lib
662    then
663      mybindir=$my_p/games
664      mydatadir=$my_p/games/lib
665      echo "$ac_t""Guessing SunOS-style installation:" 1>&6
666      echo "$ac_t""    bindir=$mybindir, datadir=$mydatadir." 1>&6
667      break
668    fi
669  done
670else
671  echo "$ac_t""Using user-supplied destinations:" 1>&6
672  echo "$ac_t""    bindir=$mybindir, datadir=$mydatadir." 1>&6
673fi
674
675enable_scoring=yes
676# Check whether --enable-enable-scoring or --disable-enable-scoring was given.
677if test "${enable_enable_scoring+set}" = set; then
678  enableval="$enable_enable_scoring"
679  :
680fi
681
682
683
684echo $ac_n "checking the dictionary""... $ac_c" 1>&6
685echo "configure:686: checking the dictionary" >&5
686dictwords=/dev/null
687if test -f /usr/dict/words
688then
689  dictwords=/usr/dict/words
690  echo "$ac_t""$dictwords" 1>&6
691elif test -f /usr/share/dict/words
692then
693  dictwords=/usr/share/dict/words
694  echo "$ac_t""$dictwords" 1>&6
695else
696    echo "$ac_t""none found." 1>&6
697fi
698
699
700
701ac_aux_dir=
702for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
703  if test -f $ac_dir/install-sh; then
704    ac_aux_dir=$ac_dir
705    ac_install_sh="$ac_aux_dir/install-sh -c"
706    break
707  elif test -f $ac_dir/install.sh; then
708    ac_aux_dir=$ac_dir
709    ac_install_sh="$ac_aux_dir/install.sh -c"
710    break
711  fi
712done
713if test -z "$ac_aux_dir"; then
714  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
715fi
716ac_config_guess=$ac_aux_dir/config.guess
717ac_config_sub=$ac_aux_dir/config.sub
718ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
719
720# Find a good install program.  We prefer a C program (faster),
721# so one script is as good as another.  But avoid the broken or
722# incompatible versions:
723# SysV /etc/install, /usr/sbin/install
724# SunOS /usr/etc/install
725# IRIX /sbin/install
726# AIX /bin/install
727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
729# ./install, which can be erroneously created by make from ./install.sh.
730echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
731echo "configure:732: checking for a BSD compatible install" >&5
732if test -z "$INSTALL"; then
733if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
734  echo $ac_n "(cached) $ac_c" 1>&6
735else
736    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
737  for ac_dir in $PATH; do
738    # Account for people who put trailing slashes in PATH elements.
739    case "$ac_dir/" in
740    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
741    *)
742      # OSF1 and SCO ODT 3.0 have their own names for install.
743      for ac_prog in ginstall installbsd scoinst install; do
744        if test -f $ac_dir/$ac_prog; then
745	  if test $ac_prog = install &&
746            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
747	    # AIX install.  It has an incompatible calling convention.
748	    # OSF/1 installbsd also uses dspmsg, but is usable.
749	    :
750	  else
751	    ac_cv_path_install="$ac_dir/$ac_prog -c"
752	    break 2
753	  fi
754	fi
755      done
756      ;;
757    esac
758  done
759  IFS="$ac_save_IFS"
760
761fi
762  if test "${ac_cv_path_install+set}" = set; then
763    INSTALL="$ac_cv_path_install"
764  else
765    # As a last resort, use the slow shell script.  We don't cache a
766    # path for INSTALL within a source directory, because that will
767    # break other packages using the cache if that directory is
768    # removed, or if the path is relative.
769    INSTALL="$ac_install_sh"
770  fi
771fi
772echo "$ac_t""$INSTALL" 1>&6
773
774# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
775# It thinks the first close brace ends the variable substitution.
776test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
777
778test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
779
780
781
782echo $ac_n "checking mkdir -p""... $ac_c" 1>&6
783echo "configure:784: checking mkdir -p" >&5
784if mkdir -p /tmp/mkdir.$$
785then
786  mkdir_p="mkdir -p "
787  rmdir /tmp/mkdir.$$
788  echo "$ac_t""$mkdir_p" 1>&6
789elif test -x ./install-sh
790then
791  mkdir_p="./install-sh -d "
792  echo "$ac_t""$mkdir_p" 1>&6
793else
794  echo "$ac_t""none found" 1>&6
795  echo "configure: warning:   Couldn't find mkdir -p.  You may have to manually mkdir some directories." 1>&2
796  mkdir_p="mkdir "
797fi
798
799
800
801
802trap '' 1 2 15
803cat > confcache <<\EOF
804# This file is a shell script that caches the results of configure
805# tests run on this system so they can be shared between configure
806# scripts and configure runs.  It is not useful on other systems.
807# If it contains results you don't want to keep, you may remove or edit it.
808#
809# By default, configure uses ./config.cache as the cache file,
810# creating it if it does not exist already.  You can give configure
811# the --cache-file=FILE option to use a different cache file; that is
812# what configure does when it calls configure scripts in
813# subdirectories, so they share the cache.
814# Giving --cache-file=/dev/null disables caching, for debugging configure.
815# config.status only pays attention to the cache file if you give it the
816# --recheck option to rerun configure.
817#
818EOF
819# The following way of writing the cache mishandles newlines in values,
820# but we know of no workaround that is simple, portable, and efficient.
821# So, don't put newlines in cache variables' values.
822# Ultrix sh set writes to stderr and can't be redirected directly,
823# and sets the high bit in the cache file unless we assign to the vars.
824(set) 2>&1 |
825  case `(ac_space=' '; set) 2>&1` in
826  *ac_space=\ *)
827    # `set' does not quote correctly, so add quotes (double-quote substitution
828    # turns \\\\ into \\, and sed turns \\ into \).
829    sed -n \
830      -e "s/'/'\\\\''/g" \
831      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
832    ;;
833  *)
834    # `set' quotes correctly as required by POSIX, so do not add quotes.
835    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
836    ;;
837  esac >> confcache
838if cmp -s $cache_file confcache; then
839  :
840else
841  if test -w $cache_file; then
842    echo "updating cache $cache_file"
843    cat confcache > $cache_file
844  else
845    echo "not updating unwritable cache $cache_file"
846  fi
847fi
848rm -f confcache
849
850trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
851
852test "x$prefix" = xNONE && prefix=$ac_default_prefix
853# Let make expand exec_prefix.
854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
855
856# Any assignment to VPATH causes Sun make to only execute
857# the first set of double-colon rules, so remove it if not needed.
858# If there is a colon in the path, we need to keep it.
859if test "x$srcdir" = x.; then
860  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
861fi
862
863trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
864
865# Transform confdefs.h into DEFS.
866# Protect against shell expansion while executing Makefile rules.
867# Protect against Makefile macro expansion.
868cat > conftest.defs <<\EOF
869s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
870s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
871s%\[%\\&%g
872s%\]%\\&%g
873s%\$%$$%g
874EOF
875DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
876rm -f conftest.defs
877
878
879# Without the "./", some shells look in PATH for config.status.
880: ${CONFIG_STATUS=./config.status}
881
882echo creating $CONFIG_STATUS
883rm -f $CONFIG_STATUS
884cat > $CONFIG_STATUS <<EOF
885#! /bin/sh
886# Generated automatically by configure.
887# Run this file to recreate the current configuration.
888# This directory was configured as follows,
889# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
890#
891# $0 $ac_configure_args
892#
893# Compiler output produced by configure, useful for debugging
894# configure, is in ./config.log if it exists.
895
896ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
897for ac_option
898do
899  case "\$ac_option" in
900  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
901    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
902    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
903  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
904    echo "$CONFIG_STATUS generated by autoconf version 2.12"
905    exit 0 ;;
906  -help | --help | --hel | --he | --h)
907    echo "\$ac_cs_usage"; exit 0 ;;
908  *) echo "\$ac_cs_usage"; exit 1 ;;
909  esac
910done
911
912ac_given_srcdir=$srcdir
913ac_given_INSTALL="$INSTALL"
914
915trap 'rm -fr `echo "Makefile dontspace" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
916EOF
917cat >> $CONFIG_STATUS <<EOF
918
919# Protect against being on the right side of a sed subst in config.status.
920sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
921 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
922$ac_vpsub
923$extrasub
924s%@CFLAGS@%$CFLAGS%g
925s%@CPPFLAGS@%$CPPFLAGS%g
926s%@CXXFLAGS@%$CXXFLAGS%g
927s%@DEFS@%$DEFS%g
928s%@LDFLAGS@%$LDFLAGS%g
929s%@LIBS@%$LIBS%g
930s%@exec_prefix@%$exec_prefix%g
931s%@prefix@%$prefix%g
932s%@program_transform_name@%$program_transform_name%g
933s%@bindir@%$bindir%g
934s%@sbindir@%$sbindir%g
935s%@libexecdir@%$libexecdir%g
936s%@datadir@%$datadir%g
937s%@sysconfdir@%$sysconfdir%g
938s%@sharedstatedir@%$sharedstatedir%g
939s%@localstatedir@%$localstatedir%g
940s%@libdir@%$libdir%g
941s%@includedir@%$includedir%g
942s%@oldincludedir@%$oldincludedir%g
943s%@infodir@%$infodir%g
944s%@mandir@%$mandir%g
945s%@package@%$package%g
946s%@DONTSPACE@%$DONTSPACE%g
947s%@WISHX@%$WISHX%g
948s%@mybindir@%$mybindir%g
949s%@mydatadir@%$mydatadir%g
950s%@mymandir@%$mymandir%g
951s%@enable_scoring@%$enable_scoring%g
952s%@dictwords@%$dictwords%g
953s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
954s%@INSTALL_DATA@%$INSTALL_DATA%g
955s%@mkdir_p@%$mkdir_p%g
956
957CEOF
958EOF
959
960cat >> $CONFIG_STATUS <<\EOF
961
962# Split the substitutions into bite-sized pieces for seds with
963# small command number limits, like on Digital OSF/1 and HP-UX.
964ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
965ac_file=1 # Number of current file.
966ac_beg=1 # First line for current file.
967ac_end=$ac_max_sed_cmds # Line after last line for current file.
968ac_more_lines=:
969ac_sed_cmds=""
970while $ac_more_lines; do
971  if test $ac_beg -gt 1; then
972    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
973  else
974    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
975  fi
976  if test ! -s conftest.s$ac_file; then
977    ac_more_lines=false
978    rm -f conftest.s$ac_file
979  else
980    if test -z "$ac_sed_cmds"; then
981      ac_sed_cmds="sed -f conftest.s$ac_file"
982    else
983      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
984    fi
985    ac_file=`expr $ac_file + 1`
986    ac_beg=$ac_end
987    ac_end=`expr $ac_end + $ac_max_sed_cmds`
988  fi
989done
990if test -z "$ac_sed_cmds"; then
991  ac_sed_cmds=cat
992fi
993EOF
994
995cat >> $CONFIG_STATUS <<EOF
996
997CONFIG_FILES=\${CONFIG_FILES-"Makefile dontspace"}
998EOF
999cat >> $CONFIG_STATUS <<\EOF
1000for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1001  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1002  case "$ac_file" in
1003  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1004       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1005  *) ac_file_in="${ac_file}.in" ;;
1006  esac
1007
1008  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1009
1010  # Remove last slash and all that follows it.  Not all systems have dirname.
1011  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1012  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1013    # The file is in a subdirectory.
1014    test ! -d "$ac_dir" && mkdir "$ac_dir"
1015    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1016    # A "../" for each directory in $ac_dir_suffix.
1017    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1018  else
1019    ac_dir_suffix= ac_dots=
1020  fi
1021
1022  case "$ac_given_srcdir" in
1023  .)  srcdir=.
1024      if test -z "$ac_dots"; then top_srcdir=.
1025      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1026  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1027  *) # Relative path.
1028    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1029    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1030  esac
1031
1032  case "$ac_given_INSTALL" in
1033  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1034  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1035  esac
1036
1037  echo creating "$ac_file"
1038  rm -f "$ac_file"
1039  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1040  case "$ac_file" in
1041  *Makefile*) ac_comsub="1i\\
1042# $configure_input" ;;
1043  *) ac_comsub= ;;
1044  esac
1045
1046  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1047  sed -e "$ac_comsub
1048s%@configure_input@%$configure_input%g
1049s%@srcdir@%$srcdir%g
1050s%@top_srcdir@%$top_srcdir%g
1051s%@INSTALL@%$INSTALL%g
1052" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1053fi; done
1054rm -f conftest.s*
1055
1056EOF
1057cat >> $CONFIG_STATUS <<EOF
1058
1059EOF
1060cat >> $CONFIG_STATUS <<\EOF
1061
1062exit 0
1063EOF
1064chmod +x $CONFIG_STATUS
1065rm -fr confdefs* $ac_clean_files
1066test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1067
1068
1069
1070