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