1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66	 X"$0" : 'X\(//\)$' \| \
67	 X"$0" : 'X\(/\)$' \| \
68	 .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
72  	  /^X\/\(\/\).*/{ s//\1/; q; }
73  	  s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141	     CONFIG_SHELL=$as_dir/$as_base
142	     export CONFIG_SHELL
143	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144	   fi;;
145	 esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='	' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" 	$as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261# Factoring default headers for most tests.
262ac_includes_default="\
263#include <stdio.h>
264#if HAVE_SYS_TYPES_H
265# include <sys/types.h>
266#endif
267#if HAVE_SYS_STAT_H
268# include <sys/stat.h>
269#endif
270#if STDC_HEADERS
271# include <stdlib.h>
272# include <stddef.h>
273#else
274# if HAVE_STDLIB_H
275#  include <stdlib.h>
276# endif
277#endif
278#if HAVE_STRING_H
279# if !STDC_HEADERS && HAVE_MEMORY_H
280#  include <memory.h>
281# endif
282# include <string.h>
283#endif
284#if HAVE_STRINGS_H
285# include <strings.h>
286#endif
287#if HAVE_INTTYPES_H
288# include <inttypes.h>
289#else
290# if HAVE_STDINT_H
291#  include <stdint.h>
292# endif
293#endif
294#if HAVE_UNISTD_H
295# include <unistd.h>
296#endif"
297
298
299# Initialize some variables set by options.
300ac_init_help=
301ac_init_version=false
302# The variables have the same names as the options, with
303# dashes changed to underlines.
304cache_file=/dev/null
305exec_prefix=NONE
306no_create=
307no_recursion=
308prefix=NONE
309program_prefix=NONE
310program_suffix=NONE
311program_transform_name=s,x,x,
312silent=
313site=
314srcdir=
315verbose=
316x_includes=NONE
317x_libraries=NONE
318
319# Installation directory options.
320# These are left unexpanded so users can "make install exec_prefix=/foo"
321# and all the variables that are supposed to be based on exec_prefix
322# by default will actually change.
323# Use braces instead of parens because sh, perl, etc. also accept them.
324bindir='${exec_prefix}/bin'
325sbindir='${exec_prefix}/sbin'
326libexecdir='${exec_prefix}/libexec'
327datadir='${prefix}/share'
328sysconfdir='${prefix}/etc'
329sharedstatedir='${prefix}/com'
330localstatedir='${prefix}/var'
331libdir='${exec_prefix}/lib'
332includedir='${prefix}/include'
333oldincludedir='/usr/include'
334infodir='${prefix}/info'
335mandir='${prefix}/man'
336
337ac_prev=
338for ac_option
339do
340  # If the previous option needs an argument, assign it.
341  if test -n "$ac_prev"; then
342    eval "$ac_prev=\$ac_option"
343    ac_prev=
344    continue
345  fi
346
347  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
348
349  # Accept the important Cygnus configure options, so we can diagnose typos.
350
351  case $ac_option in
352
353  -bindir | --bindir | --bindi | --bind | --bin | --bi)
354    ac_prev=bindir ;;
355  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
356    bindir=$ac_optarg ;;
357
358  -build | --build | --buil | --bui | --bu)
359    ac_prev=build_alias ;;
360  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
361    build_alias=$ac_optarg ;;
362
363  -cache-file | --cache-file | --cache-fil | --cache-fi \
364  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
365    ac_prev=cache_file ;;
366  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
367  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
368    cache_file=$ac_optarg ;;
369
370  --config-cache | -C)
371    cache_file=config.cache ;;
372
373  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374    ac_prev=datadir ;;
375  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376  | --da=*)
377    datadir=$ac_optarg ;;
378
379  -disable-* | --disable-*)
380    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381    # Reject names that are not valid shell variable names.
382    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
383      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384   { (exit 1); exit 1; }; }
385    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
386    eval "enable_$ac_feature=no" ;;
387
388  -enable-* | --enable-*)
389    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390    # Reject names that are not valid shell variable names.
391    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393   { (exit 1); exit 1; }; }
394    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395    case $ac_option in
396      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
397      *) ac_optarg=yes ;;
398    esac
399    eval "enable_$ac_feature='$ac_optarg'" ;;
400
401  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
402  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
403  | --exec | --exe | --ex)
404    ac_prev=exec_prefix ;;
405  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
406  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
407  | --exec=* | --exe=* | --ex=*)
408    exec_prefix=$ac_optarg ;;
409
410  -gas | --gas | --ga | --g)
411    # Obsolete; use --with-gas.
412    with_gas=yes ;;
413
414  -help | --help | --hel | --he | -h)
415    ac_init_help=long ;;
416  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
417    ac_init_help=recursive ;;
418  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
419    ac_init_help=short ;;
420
421  -host | --host | --hos | --ho)
422    ac_prev=host_alias ;;
423  -host=* | --host=* | --hos=* | --ho=*)
424    host_alias=$ac_optarg ;;
425
426  -includedir | --includedir | --includedi | --included | --include \
427  | --includ | --inclu | --incl | --inc)
428    ac_prev=includedir ;;
429  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
430  | --includ=* | --inclu=* | --incl=* | --inc=*)
431    includedir=$ac_optarg ;;
432
433  -infodir | --infodir | --infodi | --infod | --info | --inf)
434    ac_prev=infodir ;;
435  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
436    infodir=$ac_optarg ;;
437
438  -libdir | --libdir | --libdi | --libd)
439    ac_prev=libdir ;;
440  -libdir=* | --libdir=* | --libdi=* | --libd=*)
441    libdir=$ac_optarg ;;
442
443  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
444  | --libexe | --libex | --libe)
445    ac_prev=libexecdir ;;
446  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
447  | --libexe=* | --libex=* | --libe=*)
448    libexecdir=$ac_optarg ;;
449
450  -localstatedir | --localstatedir | --localstatedi | --localstated \
451  | --localstate | --localstat | --localsta | --localst \
452  | --locals | --local | --loca | --loc | --lo)
453    ac_prev=localstatedir ;;
454  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
455  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
456  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
457    localstatedir=$ac_optarg ;;
458
459  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460    ac_prev=mandir ;;
461  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
462    mandir=$ac_optarg ;;
463
464  -nfp | --nfp | --nf)
465    # Obsolete; use --without-fp.
466    with_fp=no ;;
467
468  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469  | --no-cr | --no-c | -n)
470    no_create=yes ;;
471
472  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
474    no_recursion=yes ;;
475
476  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
477  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
478  | --oldin | --oldi | --old | --ol | --o)
479    ac_prev=oldincludedir ;;
480  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
481  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
482  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
483    oldincludedir=$ac_optarg ;;
484
485  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486    ac_prev=prefix ;;
487  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
488    prefix=$ac_optarg ;;
489
490  -program-prefix | --program-prefix | --program-prefi | --program-pref \
491  | --program-pre | --program-pr | --program-p)
492    ac_prev=program_prefix ;;
493  -program-prefix=* | --program-prefix=* | --program-prefi=* \
494  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
495    program_prefix=$ac_optarg ;;
496
497  -program-suffix | --program-suffix | --program-suffi | --program-suff \
498  | --program-suf | --program-su | --program-s)
499    ac_prev=program_suffix ;;
500  -program-suffix=* | --program-suffix=* | --program-suffi=* \
501  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
502    program_suffix=$ac_optarg ;;
503
504  -program-transform-name | --program-transform-name \
505  | --program-transform-nam | --program-transform-na \
506  | --program-transform-n | --program-transform- \
507  | --program-transform | --program-transfor \
508  | --program-transfo | --program-transf \
509  | --program-trans | --program-tran \
510  | --progr-tra | --program-tr | --program-t)
511    ac_prev=program_transform_name ;;
512  -program-transform-name=* | --program-transform-name=* \
513  | --program-transform-nam=* | --program-transform-na=* \
514  | --program-transform-n=* | --program-transform-=* \
515  | --program-transform=* | --program-transfor=* \
516  | --program-transfo=* | --program-transf=* \
517  | --program-trans=* | --program-tran=* \
518  | --progr-tra=* | --program-tr=* | --program-t=*)
519    program_transform_name=$ac_optarg ;;
520
521  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
522  | -silent | --silent | --silen | --sile | --sil)
523    silent=yes ;;
524
525  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
526    ac_prev=sbindir ;;
527  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528  | --sbi=* | --sb=*)
529    sbindir=$ac_optarg ;;
530
531  -sharedstatedir | --sharedstatedir | --sharedstatedi \
532  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
533  | --sharedst | --shareds | --shared | --share | --shar \
534  | --sha | --sh)
535    ac_prev=sharedstatedir ;;
536  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
537  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
538  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539  | --sha=* | --sh=*)
540    sharedstatedir=$ac_optarg ;;
541
542  -site | --site | --sit)
543    ac_prev=site ;;
544  -site=* | --site=* | --sit=*)
545    site=$ac_optarg ;;
546
547  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548    ac_prev=srcdir ;;
549  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
550    srcdir=$ac_optarg ;;
551
552  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
553  | --syscon | --sysco | --sysc | --sys | --sy)
554    ac_prev=sysconfdir ;;
555  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
556  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
557    sysconfdir=$ac_optarg ;;
558
559  -target | --target | --targe | --targ | --tar | --ta | --t)
560    ac_prev=target_alias ;;
561  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
562    target_alias=$ac_optarg ;;
563
564  -v | -verbose | --verbose | --verbos | --verbo | --verb)
565    verbose=yes ;;
566
567  -version | --version | --versio | --versi | --vers | -V)
568    ac_init_version=: ;;
569
570  -with-* | --with-*)
571    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid package name: $ac_package" >&2
575   { (exit 1); exit 1; }; }
576    ac_package=`echo $ac_package| sed 's/-/_/g'`
577    case $ac_option in
578      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579      *) ac_optarg=yes ;;
580    esac
581    eval "with_$ac_package='$ac_optarg'" ;;
582
583  -without-* | --without-*)
584    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585    # Reject names that are not valid shell variable names.
586    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587      { echo "$as_me: error: invalid package name: $ac_package" >&2
588   { (exit 1); exit 1; }; }
589    ac_package=`echo $ac_package | sed 's/-/_/g'`
590    eval "with_$ac_package=no" ;;
591
592  --x)
593    # Obsolete; use --with-x.
594    with_x=yes ;;
595
596  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
597  | --x-incl | --x-inc | --x-in | --x-i)
598    ac_prev=x_includes ;;
599  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
600  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
601    x_includes=$ac_optarg ;;
602
603  -x-libraries | --x-libraries | --x-librarie | --x-librari \
604  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
605    ac_prev=x_libraries ;;
606  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
607  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
608    x_libraries=$ac_optarg ;;
609
610  -*) { echo "$as_me: error: unrecognized option: $ac_option
611Try \`$0 --help' for more information." >&2
612   { (exit 1); exit 1; }; }
613    ;;
614
615  *=*)
616    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
617    # Reject names that are not valid shell variable names.
618    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
619      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620   { (exit 1); exit 1; }; }
621    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622    eval "$ac_envvar='$ac_optarg'"
623    export $ac_envvar ;;
624
625  *)
626    # FIXME: should be removed in autoconf 3.0.
627    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
629      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
631    ;;
632
633  esac
634done
635
636if test -n "$ac_prev"; then
637  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
638  { echo "$as_me: error: missing argument to $ac_option" >&2
639   { (exit 1); exit 1; }; }
640fi
641
642# Be sure to have absolute paths.
643for ac_var in exec_prefix prefix
644do
645  eval ac_val=$`echo $ac_var`
646  case $ac_val in
647    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
648    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649   { (exit 1); exit 1; }; };;
650  esac
651done
652
653# Be sure to have absolute paths.
654for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655              localstatedir libdir includedir oldincludedir infodir mandir
656do
657  eval ac_val=$`echo $ac_var`
658  case $ac_val in
659    [\\/$]* | ?:[\\/]* ) ;;
660    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661   { (exit 1); exit 1; }; };;
662  esac
663done
664
665# There might be people who depend on the old broken behavior: `$host'
666# used to hold the argument of --host etc.
667# FIXME: To remove some day.
668build=$build_alias
669host=$host_alias
670target=$target_alias
671
672# FIXME: To remove some day.
673if test "x$host_alias" != x; then
674  if test "x$build_alias" = x; then
675    cross_compiling=maybe
676    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677    If a cross compiler is detected then cross compile mode will be used." >&2
678  elif test "x$build_alias" != "x$host_alias"; then
679    cross_compiling=yes
680  fi
681fi
682
683ac_tool_prefix=
684test -n "$host_alias" && ac_tool_prefix=$host_alias-
685
686test "$silent" = yes && exec 6>/dev/null
687
688
689# Find the source files, if location was not specified.
690if test -z "$srcdir"; then
691  ac_srcdir_defaulted=yes
692  # Try the directory containing this script, then its parent.
693  ac_confdir=`(dirname "$0") 2>/dev/null ||
694$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695         X"$0" : 'X\(//\)[^/]' \| \
696         X"$0" : 'X\(//\)$' \| \
697         X"$0" : 'X\(/\)' \| \
698         .     : '\(.\)' 2>/dev/null ||
699echo X"$0" |
700    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702  	  /^X\(\/\/\)$/{ s//\1/; q; }
703  	  /^X\(\/\).*/{ s//\1/; q; }
704  	  s/.*/./; q'`
705  srcdir=$ac_confdir
706  if test ! -r $srcdir/$ac_unique_file; then
707    srcdir=..
708  fi
709else
710  ac_srcdir_defaulted=no
711fi
712if test ! -r $srcdir/$ac_unique_file; then
713  if test "$ac_srcdir_defaulted" = yes; then
714    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715   { (exit 1); exit 1; }; }
716  else
717    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718   { (exit 1); exit 1; }; }
719  fi
720fi
721srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722ac_env_build_alias_set=${build_alias+set}
723ac_env_build_alias_value=$build_alias
724ac_cv_env_build_alias_set=${build_alias+set}
725ac_cv_env_build_alias_value=$build_alias
726ac_env_host_alias_set=${host_alias+set}
727ac_env_host_alias_value=$host_alias
728ac_cv_env_host_alias_set=${host_alias+set}
729ac_cv_env_host_alias_value=$host_alias
730ac_env_target_alias_set=${target_alias+set}
731ac_env_target_alias_value=$target_alias
732ac_cv_env_target_alias_set=${target_alias+set}
733ac_cv_env_target_alias_value=$target_alias
734ac_env_CC_set=${CC+set}
735ac_env_CC_value=$CC
736ac_cv_env_CC_set=${CC+set}
737ac_cv_env_CC_value=$CC
738ac_env_CFLAGS_set=${CFLAGS+set}
739ac_env_CFLAGS_value=$CFLAGS
740ac_cv_env_CFLAGS_set=${CFLAGS+set}
741ac_cv_env_CFLAGS_value=$CFLAGS
742ac_env_LDFLAGS_set=${LDFLAGS+set}
743ac_env_LDFLAGS_value=$LDFLAGS
744ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
745ac_cv_env_LDFLAGS_value=$LDFLAGS
746ac_env_CPPFLAGS_set=${CPPFLAGS+set}
747ac_env_CPPFLAGS_value=$CPPFLAGS
748ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
749ac_cv_env_CPPFLAGS_value=$CPPFLAGS
750ac_env_CXX_set=${CXX+set}
751ac_env_CXX_value=$CXX
752ac_cv_env_CXX_set=${CXX+set}
753ac_cv_env_CXX_value=$CXX
754ac_env_CXXFLAGS_set=${CXXFLAGS+set}
755ac_env_CXXFLAGS_value=$CXXFLAGS
756ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
757ac_cv_env_CXXFLAGS_value=$CXXFLAGS
758ac_env_CPP_set=${CPP+set}
759ac_env_CPP_value=$CPP
760ac_cv_env_CPP_set=${CPP+set}
761ac_cv_env_CPP_value=$CPP
762
763#
764# Report the --help message.
765#
766if test "$ac_init_help" = "long"; then
767  # Omit some internal or obsolete options to make the list less imposing.
768  # This message is too long to be a string in the A/UX 3.1 sh.
769  cat <<_ACEOF
770\`configure' configures this package to adapt to many kinds of systems.
771
772Usage: $0 [OPTION]... [VAR=VALUE]...
773
774To assign environment variables (e.g., CC, CFLAGS...), specify them as
775VAR=VALUE.  See below for descriptions of some of the useful variables.
776
777Defaults for the options are specified in brackets.
778
779Configuration:
780  -h, --help              display this help and exit
781      --help=short        display options specific to this package
782      --help=recursive    display the short help of all the included packages
783  -V, --version           display version information and exit
784  -q, --quiet, --silent   do not print \`checking...' messages
785      --cache-file=FILE   cache test results in FILE [disabled]
786  -C, --config-cache      alias for \`--cache-file=config.cache'
787  -n, --no-create         do not create output files
788      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
789
790_ACEOF
791
792  cat <<_ACEOF
793Installation directories:
794  --prefix=PREFIX         install architecture-independent files in PREFIX
795                          [$ac_default_prefix]
796  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
797                          [PREFIX]
798
799By default, \`make install' will install all the files in
800\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
801an installation prefix other than \`$ac_default_prefix' using \`--prefix',
802for instance \`--prefix=\$HOME'.
803
804For better control, use the options below.
805
806Fine tuning of the installation directories:
807  --bindir=DIR           user executables [EPREFIX/bin]
808  --sbindir=DIR          system admin executables [EPREFIX/sbin]
809  --libexecdir=DIR       program executables [EPREFIX/libexec]
810  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
811  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
812  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
813  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
814  --libdir=DIR           object code libraries [EPREFIX/lib]
815  --includedir=DIR       C header files [PREFIX/include]
816  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
817  --infodir=DIR          info documentation [PREFIX/info]
818  --mandir=DIR           man documentation [PREFIX/man]
819_ACEOF
820
821  cat <<\_ACEOF
822
823Program names:
824  --program-prefix=PREFIX            prepend PREFIX to installed program names
825  --program-suffix=SUFFIX            append SUFFIX to installed program names
826  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
827
828System types:
829  --build=BUILD     configure for building on BUILD [guessed]
830  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
831  --target=TARGET   configure for building compilers for TARGET [HOST]
832_ACEOF
833fi
834
835if test -n "$ac_init_help"; then
836
837  cat <<\_ACEOF
838
839Optional Features:
840  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
841  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
842  --disable-dependency-tracking Speeds up one-time builds
843  --enable-dependency-tracking  Do not reject slow dependency extractors
844  --enable-ipv6           Enable ipv6 support
845  --disable-ipv6          Disable ipv6 support
846  --disable-sdltest       Do not try to compile and run a test SDL program
847  --enable-debug          Enable development build
848
849Optional Packages:
850  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
851  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
852  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
853  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
854  --with-docdir=DIR       Where to put the documentation
855
856Some influential environment variables:
857  CC          C compiler command
858  CFLAGS      C compiler flags
859  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
860              nonstandard directory <lib dir>
861  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
862              headers in a nonstandard directory <include dir>
863  CXX         C++ compiler command
864  CXXFLAGS    C++ compiler flags
865  CPP         C preprocessor
866
867Use these variables to override the choices made by `configure' or to help
868it to find libraries and programs with nonstandard names/locations.
869
870_ACEOF
871fi
872
873if test "$ac_init_help" = "recursive"; then
874  # If there are subdirs, report their specific --help.
875  ac_popdir=`pwd`
876  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877    test -d $ac_dir || continue
878    ac_builddir=.
879
880if test "$ac_dir" != .; then
881  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882  # A "../" for each directory in $ac_dir_suffix.
883  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884else
885  ac_dir_suffix= ac_top_builddir=
886fi
887
888case $srcdir in
889  .)  # No --srcdir option.  We are building in place.
890    ac_srcdir=.
891    if test -z "$ac_top_builddir"; then
892       ac_top_srcdir=.
893    else
894       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895    fi ;;
896  [\\/]* | ?:[\\/]* )  # Absolute path.
897    ac_srcdir=$srcdir$ac_dir_suffix;
898    ac_top_srcdir=$srcdir ;;
899  *) # Relative path.
900    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901    ac_top_srcdir=$ac_top_builddir$srcdir ;;
902esac
903# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904# absolute.
905ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
907ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910    cd $ac_dir
911    # Check for guested configure; otherwise get Cygnus style configure.
912    if test -f $ac_srcdir/configure.gnu; then
913      echo
914      $SHELL $ac_srcdir/configure.gnu  --help=recursive
915    elif test -f $ac_srcdir/configure; then
916      echo
917      $SHELL $ac_srcdir/configure  --help=recursive
918    elif test -f $ac_srcdir/configure.ac ||
919           test -f $ac_srcdir/configure.in; then
920      echo
921      $ac_configure --help
922    else
923      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924    fi
925    cd $ac_popdir
926  done
927fi
928
929test -n "$ac_init_help" && exit 0
930if $ac_init_version; then
931  cat <<\_ACEOF
932
933Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934Free Software Foundation, Inc.
935This configure script is free software; the Free Software Foundation
936gives unlimited permission to copy, distribute and modify it.
937_ACEOF
938  exit 0
939fi
940exec 5>config.log
941cat >&5 <<_ACEOF
942This file contains any messages produced by compilers while
943running configure, to aid debugging if configure makes a mistake.
944
945It was created by $as_me, which was
946generated by GNU Autoconf 2.53.  Invocation command line was
947
948  $ $0 $@
949
950_ACEOF
951{
952cat <<_ASUNAME
953## --------- ##
954## Platform. ##
955## --------- ##
956
957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958uname -m = `(uname -m) 2>/dev/null || echo unknown`
959uname -r = `(uname -r) 2>/dev/null || echo unknown`
960uname -s = `(uname -s) 2>/dev/null || echo unknown`
961uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
965
966/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
967/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
970/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
971/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
972/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
973
974_ASUNAME
975
976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977for as_dir in $PATH
978do
979  IFS=$as_save_IFS
980  test -z "$as_dir" && as_dir=.
981  echo "PATH: $as_dir"
982done
983
984} >&5
985
986cat >&5 <<_ACEOF
987
988
989## ----------- ##
990## Core tests. ##
991## ----------- ##
992
993_ACEOF
994
995
996# Keep a trace of the command line.
997# Strip out --no-create and --no-recursion so they do not pile up.
998# Also quote any args containing shell meta-characters.
999ac_configure_args=
1000ac_sep=
1001for ac_arg
1002do
1003  case $ac_arg in
1004  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005  | --no-cr | --no-c | -n ) continue ;;
1006  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008    continue ;;
1009  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1010    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1011  esac
1012  case " $ac_configure_args " in
1013    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1014    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015       ac_sep=" " ;;
1016  esac
1017  # Get rid of the leading space.
1018done
1019
1020# When interrupted or exit'd, cleanup temporary files, and complete
1021# config.log.  We remove comments because anyway the quotes in there
1022# would cause problems or look ugly.
1023# WARNING: Be sure not to use single quotes in there, as some shells,
1024# such as our DU 5.0 friend, will then `close' the trap.
1025trap 'exit_status=$?
1026  # Save into config.log some information that might help in debugging.
1027  {
1028    echo
1029    cat <<\_ASBOX
1030## ---------------- ##
1031## Cache variables. ##
1032## ---------------- ##
1033_ASBOX
1034    echo
1035    # The following way of writing the cache mishandles newlines in values,
1036{
1037  (set) 2>&1 |
1038    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1039    *ac_space=\ *)
1040      sed -n \
1041        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1042    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1043      ;;
1044    *)
1045      sed -n \
1046        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1047      ;;
1048    esac;
1049}
1050    echo
1051    if test -s confdefs.h; then
1052      cat <<\_ASBOX
1053## ----------- ##
1054## confdefs.h. ##
1055## ----------- ##
1056_ASBOX
1057      echo
1058      sed "/^$/d" confdefs.h
1059      echo
1060    fi
1061    test "$ac_signal" != 0 &&
1062      echo "$as_me: caught signal $ac_signal"
1063    echo "$as_me: exit $exit_status"
1064  } >&5
1065  rm -f core core.* *.core &&
1066  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1067    exit $exit_status
1068     ' 0
1069for ac_signal in 1 2 13 15; do
1070  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1071done
1072ac_signal=0
1073
1074# confdefs.h avoids OS command line length limits that DEFS can exceed.
1075rm -rf conftest* confdefs.h
1076# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1077echo >confdefs.h
1078
1079# Predefined preprocessor variables.
1080
1081cat >>confdefs.h <<_ACEOF
1082#define PACKAGE_NAME "$PACKAGE_NAME"
1083_ACEOF
1084
1085
1086cat >>confdefs.h <<_ACEOF
1087#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1088_ACEOF
1089
1090
1091cat >>confdefs.h <<_ACEOF
1092#define PACKAGE_VERSION "$PACKAGE_VERSION"
1093_ACEOF
1094
1095
1096cat >>confdefs.h <<_ACEOF
1097#define PACKAGE_STRING "$PACKAGE_STRING"
1098_ACEOF
1099
1100
1101cat >>confdefs.h <<_ACEOF
1102#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1103_ACEOF
1104
1105
1106# Let the site file select an alternate cache file if it wants to.
1107# Prefer explicitly selected file to automatically selected ones.
1108if test -z "$CONFIG_SITE"; then
1109  if test "x$prefix" != xNONE; then
1110    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1111  else
1112    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1113  fi
1114fi
1115for ac_site_file in $CONFIG_SITE; do
1116  if test -r "$ac_site_file"; then
1117    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1118echo "$as_me: loading site script $ac_site_file" >&6;}
1119    sed 's/^/| /' "$ac_site_file" >&5
1120    . "$ac_site_file"
1121  fi
1122done
1123
1124if test -r "$cache_file"; then
1125  # Some versions of bash will fail to source /dev/null (special
1126  # files actually), so we avoid doing that.
1127  if test -f "$cache_file"; then
1128    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1129echo "$as_me: loading cache $cache_file" >&6;}
1130    case $cache_file in
1131      [\\/]* | ?:[\\/]* ) . $cache_file;;
1132      *)                      . ./$cache_file;;
1133    esac
1134  fi
1135else
1136  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1137echo "$as_me: creating cache $cache_file" >&6;}
1138  >$cache_file
1139fi
1140
1141# Check that the precious variables saved in the cache have kept the same
1142# value.
1143ac_cache_corrupted=false
1144for ac_var in `(set) 2>&1 |
1145               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1146  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1147  eval ac_new_set=\$ac_env_${ac_var}_set
1148  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1149  eval ac_new_val="\$ac_env_${ac_var}_value"
1150  case $ac_old_set,$ac_new_set in
1151    set,)
1152      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1153echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1154      ac_cache_corrupted=: ;;
1155    ,set)
1156      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1157echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1158      ac_cache_corrupted=: ;;
1159    ,);;
1160    *)
1161      if test "x$ac_old_val" != "x$ac_new_val"; then
1162        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1163echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1164        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1165echo "$as_me:   former value:  $ac_old_val" >&2;}
1166        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1167echo "$as_me:   current value: $ac_new_val" >&2;}
1168        ac_cache_corrupted=:
1169      fi;;
1170  esac
1171  # Pass precious variables to config.status.
1172  if test "$ac_new_set" = set; then
1173    case $ac_new_val in
1174    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1176    *) ac_arg=$ac_var=$ac_new_val ;;
1177    esac
1178    case " $ac_configure_args " in
1179      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1180      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1181    esac
1182  fi
1183done
1184if $ac_cache_corrupted; then
1185  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1186echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1187  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1188echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1189   { (exit 1); exit 1; }; }
1190fi
1191
1192ac_ext=c
1193ac_cpp='$CPP $CPPFLAGS'
1194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1196ac_compiler_gnu=$ac_cv_c_compiler_gnu
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216ac_aux_dir=
1217for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1218  if test -f $ac_dir/install-sh; then
1219    ac_aux_dir=$ac_dir
1220    ac_install_sh="$ac_aux_dir/install-sh -c"
1221    break
1222  elif test -f $ac_dir/install.sh; then
1223    ac_aux_dir=$ac_dir
1224    ac_install_sh="$ac_aux_dir/install.sh -c"
1225    break
1226  elif test -f $ac_dir/shtool; then
1227    ac_aux_dir=$ac_dir
1228    ac_install_sh="$ac_aux_dir/shtool install -c"
1229    break
1230  fi
1231done
1232if test -z "$ac_aux_dir"; then
1233  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1234echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1235   { (exit 1); exit 1; }; }
1236fi
1237ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1238ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1239ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240
1241# Make sure we can run config.sub.
1242$ac_config_sub sun4 >/dev/null 2>&1 ||
1243  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1244echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1245   { (exit 1); exit 1; }; }
1246
1247echo "$as_me:$LINENO: checking build system type" >&5
1248echo $ECHO_N "checking build system type... $ECHO_C" >&6
1249if test "${ac_cv_build+set}" = set; then
1250  echo $ECHO_N "(cached) $ECHO_C" >&6
1251else
1252  ac_cv_build_alias=$build_alias
1253test -z "$ac_cv_build_alias" &&
1254  ac_cv_build_alias=`$ac_config_guess`
1255test -z "$ac_cv_build_alias" &&
1256  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1257echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1258   { (exit 1); exit 1; }; }
1259ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1260  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1261echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1262   { (exit 1); exit 1; }; }
1263
1264fi
1265echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1266echo "${ECHO_T}$ac_cv_build" >&6
1267build=$ac_cv_build
1268build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271
1272
1273echo "$as_me:$LINENO: checking host system type" >&5
1274echo $ECHO_N "checking host system type... $ECHO_C" >&6
1275if test "${ac_cv_host+set}" = set; then
1276  echo $ECHO_N "(cached) $ECHO_C" >&6
1277else
1278  ac_cv_host_alias=$host_alias
1279test -z "$ac_cv_host_alias" &&
1280  ac_cv_host_alias=$ac_cv_build_alias
1281ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1282  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1283echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1284   { (exit 1); exit 1; }; }
1285
1286fi
1287echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1288echo "${ECHO_T}$ac_cv_host" >&6
1289host=$ac_cv_host
1290host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293
1294
1295echo "$as_me:$LINENO: checking target system type" >&5
1296echo $ECHO_N "checking target system type... $ECHO_C" >&6
1297if test "${ac_cv_target+set}" = set; then
1298  echo $ECHO_N "(cached) $ECHO_C" >&6
1299else
1300  ac_cv_target_alias=$target_alias
1301test "x$ac_cv_target_alias" = "x" &&
1302  ac_cv_target_alias=$ac_cv_host_alias
1303ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1304  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1305echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1306   { (exit 1); exit 1; }; }
1307
1308fi
1309echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1310echo "${ECHO_T}$ac_cv_target" >&6
1311target=$ac_cv_target
1312target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1313target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1314target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1315
1316
1317# The aliases save the names the user supplied, while $host etc.
1318# will get canonicalized.
1319test -n "$target_alias" &&
1320  test "$program_prefix$program_suffix$program_transform_name" = \
1321    NONENONEs,x,x, &&
1322  program_prefix=${target_alias}-
1323# Find a good install program.  We prefer a C program (faster),
1324# so one script is as good as another.  But avoid the broken or
1325# incompatible versions:
1326# SysV /etc/install, /usr/sbin/install
1327# SunOS /usr/etc/install
1328# IRIX /sbin/install
1329# AIX /bin/install
1330# AmigaOS /C/install, which installs bootblocks on floppy discs
1331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1334# ./install, which can be erroneously created by make from ./install.sh.
1335echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1336echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1337if test -z "$INSTALL"; then
1338if test "${ac_cv_path_install+set}" = set; then
1339  echo $ECHO_N "(cached) $ECHO_C" >&6
1340else
1341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1342for as_dir in $PATH
1343do
1344  IFS=$as_save_IFS
1345  test -z "$as_dir" && as_dir=.
1346  # Account for people who put trailing slashes in PATH elements.
1347case $as_dir/ in
1348  ./ | .// | /cC/* | \
1349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1350  /usr/ucb/* ) ;;
1351  *)
1352    # OSF1 and SCO ODT 3.0 have their own names for install.
1353    # Don't use installbsd from OSF since it installs stuff as root
1354    # by default.
1355    for ac_prog in ginstall scoinst install; do
1356      for ac_exec_ext in '' $ac_executable_extensions; do
1357        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1358          if test $ac_prog = install &&
1359            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1360            # AIX install.  It has an incompatible calling convention.
1361            :
1362          elif test $ac_prog = install &&
1363            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364            # program-specific install script used by HP pwplus--don't use.
1365            :
1366          else
1367            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1368            break 3
1369          fi
1370        fi
1371      done
1372    done
1373    ;;
1374esac
1375done
1376
1377
1378fi
1379  if test "${ac_cv_path_install+set}" = set; then
1380    INSTALL=$ac_cv_path_install
1381  else
1382    # As a last resort, use the slow shell script.  We don't cache a
1383    # path for INSTALL within a source directory, because that will
1384    # break other packages using the cache if that directory is
1385    # removed, or if the path is relative.
1386    INSTALL=$ac_install_sh
1387  fi
1388fi
1389echo "$as_me:$LINENO: result: $INSTALL" >&5
1390echo "${ECHO_T}$INSTALL" >&6
1391
1392# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1393# It thinks the first close brace ends the variable substitution.
1394test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1395
1396test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1397
1398test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1399
1400echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1401echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1402# Just in case
1403sleep 1
1404echo timestamp > conftest.file
1405# Do `set' in a subshell so we don't clobber the current shell's
1406# arguments.  Must try -L first in case configure is actually a
1407# symlink; some systems play weird games with the mod time of symlinks
1408# (eg FreeBSD returns the mod time of the symlink's containing
1409# directory).
1410if (
1411   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1412   if test "$*" = "X"; then
1413      # -L didn't work.
1414      set X `ls -t $srcdir/configure conftest.file`
1415   fi
1416   rm -f conftest.file
1417   if test "$*" != "X $srcdir/configure conftest.file" \
1418      && test "$*" != "X conftest.file $srcdir/configure"; then
1419
1420      # If neither matched, then we have a broken ls.  This can happen
1421      # if, for instance, CONFIG_SHELL is bash and it inherits a
1422      # broken ls alias from the environment.  This has actually
1423      # happened.  Such a system could not be considered "sane".
1424      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1425alias in your environment" >&5
1426echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1427alias in your environment" >&2;}
1428   { (exit 1); exit 1; }; }
1429   fi
1430
1431   test "$2" = conftest.file
1432   )
1433then
1434   # Ok.
1435   :
1436else
1437   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1438Check your system clock" >&5
1439echo "$as_me: error: newly created file is older than distributed files!
1440Check your system clock" >&2;}
1441   { (exit 1); exit 1; }; }
1442fi
1443echo "$as_me:$LINENO: result: yes" >&5
1444echo "${ECHO_T}yes" >&6
1445test "$program_prefix" != NONE &&
1446  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1447# Use a double $ so make ignores it.
1448test "$program_suffix" != NONE &&
1449  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1450# Double any \ or $.  echo might interpret backslashes.
1451# By default was `s,x,x', remove it if useless.
1452cat <<\_ACEOF >conftest.sed
1453s/[\\$]/&&/g;s/;s,x,x,$//
1454_ACEOF
1455program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456rm conftest.sed
1457
1458
1459# expand $ac_aux_dir to an absolute path
1460am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1461
1462test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1463# Use eval to expand $SHELL
1464if eval "$MISSING --run true"; then
1465  am_missing_run="$MISSING --run "
1466else
1467  am_missing_run=
1468  am_backtick='`'
1469  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1470echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1471fi
1472
1473for ac_prog in gawk mawk nawk awk
1474do
1475  # Extract the first word of "$ac_prog", so it can be a program name with args.
1476set dummy $ac_prog; ac_word=$2
1477echo "$as_me:$LINENO: checking for $ac_word" >&5
1478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479if test "${ac_cv_prog_AWK+set}" = set; then
1480  echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482  if test -n "$AWK"; then
1483  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1484else
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488  IFS=$as_save_IFS
1489  test -z "$as_dir" && as_dir=.
1490  for ac_exec_ext in '' $ac_executable_extensions; do
1491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492    ac_cv_prog_AWK="$ac_prog"
1493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494    break 2
1495  fi
1496done
1497done
1498
1499fi
1500fi
1501AWK=$ac_cv_prog_AWK
1502if test -n "$AWK"; then
1503  echo "$as_me:$LINENO: result: $AWK" >&5
1504echo "${ECHO_T}$AWK" >&6
1505else
1506  echo "$as_me:$LINENO: result: no" >&5
1507echo "${ECHO_T}no" >&6
1508fi
1509
1510  test -n "$AWK" && break
1511done
1512
1513echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1514echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1515set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1516if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1517  echo $ECHO_N "(cached) $ECHO_C" >&6
1518else
1519  cat >conftest.make <<\_ACEOF
1520all:
1521	@echo 'ac_maketemp="${MAKE}"'
1522_ACEOF
1523# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1524eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1525if test -n "$ac_maketemp"; then
1526  eval ac_cv_prog_make_${ac_make}_set=yes
1527else
1528  eval ac_cv_prog_make_${ac_make}_set=no
1529fi
1530rm -f conftest.make
1531fi
1532if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1533  echo "$as_me:$LINENO: result: yes" >&5
1534echo "${ECHO_T}yes" >&6
1535  SET_MAKE=
1536else
1537  echo "$as_me:$LINENO: result: no" >&5
1538echo "${ECHO_T}no" >&6
1539  SET_MAKE="MAKE=${MAKE-make}"
1540fi
1541
1542# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1543if test "${enable_dependency_tracking+set}" = set; then
1544  enableval="$enable_dependency_tracking"
1545
1546fi;
1547if test "x$enable_dependency_tracking" != xno; then
1548  am_depcomp="$ac_aux_dir/depcomp"
1549  AMDEPBACKSLASH='\'
1550fi
1551
1552
1553if test "x$enable_dependency_tracking" != xno; then
1554  AMDEP_TRUE=
1555  AMDEP_FALSE='#'
1556else
1557  AMDEP_TRUE='#'
1558  AMDEP_FALSE=
1559fi
1560
1561
1562
1563
1564rm -f .deps 2>/dev/null
1565mkdir .deps 2>/dev/null
1566if test -d .deps; then
1567  DEPDIR=.deps
1568else
1569  # MS-DOS does not allow filenames that begin with a dot.
1570  DEPDIR=_deps
1571fi
1572rmdir .deps 2>/dev/null
1573
1574
1575# test to see if srcdir already configured
1576if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1577   test -f $srcdir/config.status; then
1578  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1579echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1580   { (exit 1); exit 1; }; }
1581fi
1582
1583# Define the identity of the package.
1584PACKAGE=jfk
1585VERSION=0.1.1
1586
1587cat >>confdefs.h <<_ACEOF
1588#define PACKAGE "$PACKAGE"
1589_ACEOF
1590
1591
1592cat >>confdefs.h <<_ACEOF
1593#define VERSION "$VERSION"
1594_ACEOF
1595
1596
1597# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1598# the ones we care about.
1599
1600# Autoconf 2.50 always computes EXEEXT.  However we need to be
1601# compatible with 2.13, for now.  So we always define EXEEXT, but we
1602# don't compute it.
1603
1604# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1605# requests that it be used.  This is a bit dumb.
1606: ${OBJEXT=o}
1607
1608
1609# Some tools Automake needs.
1610
1611ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1612
1613
1614AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1615
1616
1617AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1618
1619
1620AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1621
1622
1623MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1624
1625
1626AMTAR=${AMTAR-"${am_missing_run}tar"}
1627
1628install_sh=${install_sh-"$am_aux_dir/install-sh"}
1629
1630INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1631
1632# We need awk for the "check" target.  The system "awk" is bad on
1633# some platforms.
1634
1635
1636
1637
1638		    		    		    ac_config_headers="$ac_config_headers config.h"
1639
1640
1641ac_ext=c
1642ac_cpp='$CPP $CPPFLAGS'
1643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1645ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646if test -n "$ac_tool_prefix"; then
1647  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1648set dummy ${ac_tool_prefix}gcc; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652  echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654  if test -n "$CC"; then
1655  ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  for ac_exec_ext in '' $ac_executable_extensions; do
1663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666    break 2
1667  fi
1668done
1669done
1670
1671fi
1672fi
1673CC=$ac_cv_prog_CC
1674if test -n "$CC"; then
1675  echo "$as_me:$LINENO: result: $CC" >&5
1676echo "${ECHO_T}$CC" >&6
1677else
1678  echo "$as_me:$LINENO: result: no" >&5
1679echo "${ECHO_T}no" >&6
1680fi
1681
1682fi
1683if test -z "$ac_cv_prog_CC"; then
1684  ac_ct_CC=$CC
1685  # Extract the first word of "gcc", so it can be a program name with args.
1686set dummy gcc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690  echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692  if test -n "$ac_ct_CC"; then
1693  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698  IFS=$as_save_IFS
1699  test -z "$as_dir" && as_dir=.
1700  for ac_exec_ext in '' $ac_executable_extensions; do
1701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702    ac_cv_prog_ac_ct_CC="gcc"
1703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704    break 2
1705  fi
1706done
1707done
1708
1709fi
1710fi
1711ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712if test -n "$ac_ct_CC"; then
1713  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714echo "${ECHO_T}$ac_ct_CC" >&6
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720  CC=$ac_ct_CC
1721else
1722  CC="$ac_cv_prog_CC"
1723fi
1724
1725if test -z "$CC"; then
1726  if test -n "$ac_tool_prefix"; then
1727  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1728set dummy ${ac_tool_prefix}cc; ac_word=$2
1729echo "$as_me:$LINENO: checking for $ac_word" >&5
1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731if test "${ac_cv_prog_CC+set}" = set; then
1732  echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734  if test -n "$CC"; then
1735  ac_cv_prog_CC="$CC" # Let the user override the test.
1736else
1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738for as_dir in $PATH
1739do
1740  IFS=$as_save_IFS
1741  test -z "$as_dir" && as_dir=.
1742  for ac_exec_ext in '' $ac_executable_extensions; do
1743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744    ac_cv_prog_CC="${ac_tool_prefix}cc"
1745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746    break 2
1747  fi
1748done
1749done
1750
1751fi
1752fi
1753CC=$ac_cv_prog_CC
1754if test -n "$CC"; then
1755  echo "$as_me:$LINENO: result: $CC" >&5
1756echo "${ECHO_T}$CC" >&6
1757else
1758  echo "$as_me:$LINENO: result: no" >&5
1759echo "${ECHO_T}no" >&6
1760fi
1761
1762fi
1763if test -z "$ac_cv_prog_CC"; then
1764  ac_ct_CC=$CC
1765  # Extract the first word of "cc", so it can be a program name with args.
1766set dummy cc; ac_word=$2
1767echo "$as_me:$LINENO: checking for $ac_word" >&5
1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  if test -n "$ac_ct_CC"; then
1773  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774else
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778  IFS=$as_save_IFS
1779  test -z "$as_dir" && as_dir=.
1780  for ac_exec_ext in '' $ac_executable_extensions; do
1781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782    ac_cv_prog_ac_ct_CC="cc"
1783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784    break 2
1785  fi
1786done
1787done
1788
1789fi
1790fi
1791ac_ct_CC=$ac_cv_prog_ac_ct_CC
1792if test -n "$ac_ct_CC"; then
1793  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1794echo "${ECHO_T}$ac_ct_CC" >&6
1795else
1796  echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800  CC=$ac_ct_CC
1801else
1802  CC="$ac_cv_prog_CC"
1803fi
1804
1805fi
1806if test -z "$CC"; then
1807  # Extract the first word of "cc", so it can be a program name with args.
1808set dummy cc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_CC+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  if test -n "$CC"; then
1815  ac_cv_prog_CC="$CC" # Let the user override the test.
1816else
1817  ac_prog_rejected=no
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821  IFS=$as_save_IFS
1822  test -z "$as_dir" && as_dir=.
1823  for ac_exec_ext in '' $ac_executable_extensions; do
1824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1826       ac_prog_rejected=yes
1827       continue
1828     fi
1829    ac_cv_prog_CC="cc"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835
1836if test $ac_prog_rejected = yes; then
1837  # We found a bogon in the path, so make sure we never use it.
1838  set dummy $ac_cv_prog_CC
1839  shift
1840  if test $# != 0; then
1841    # We chose a different compiler from the bogus one.
1842    # However, it has the same basename, so the bogon will be chosen
1843    # first if we set CC to just the basename; use the full file name.
1844    shift
1845    set dummy "$as_dir/$ac_word" ${1+"$@"}
1846    shift
1847    ac_cv_prog_CC="$@"
1848  fi
1849fi
1850fi
1851fi
1852CC=$ac_cv_prog_CC
1853if test -n "$CC"; then
1854  echo "$as_me:$LINENO: result: $CC" >&5
1855echo "${ECHO_T}$CC" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861fi
1862if test -z "$CC"; then
1863  if test -n "$ac_tool_prefix"; then
1864  for ac_prog in cl
1865  do
1866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_CC+set}" = set; then
1871  echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873  if test -n "$CC"; then
1874  ac_cv_prog_CC="$CC" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  for ac_exec_ext in '' $ac_executable_extensions; do
1882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890fi
1891fi
1892CC=$ac_cv_prog_CC
1893if test -n "$CC"; then
1894  echo "$as_me:$LINENO: result: $CC" >&5
1895echo "${ECHO_T}$CC" >&6
1896else
1897  echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901    test -n "$CC" && break
1902  done
1903fi
1904if test -z "$CC"; then
1905  ac_ct_CC=$CC
1906  for ac_prog in cl
1907do
1908  # Extract the first word of "$ac_prog", so it can be a program name with args.
1909set dummy $ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  if test -n "$ac_ct_CC"; then
1916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923  for ac_exec_ext in '' $ac_executable_extensions; do
1924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925    ac_cv_prog_ac_ct_CC="$ac_prog"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932fi
1933fi
1934ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935if test -n "$ac_ct_CC"; then
1936  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937echo "${ECHO_T}$ac_ct_CC" >&6
1938else
1939  echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943  test -n "$ac_ct_CC" && break
1944done
1945
1946  CC=$ac_ct_CC
1947fi
1948
1949fi
1950
1951
1952test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1953echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1954   { (exit 1); exit 1; }; }
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977#line $LINENO "configure"
1978#include "confdefs.h"
1979
1980#ifdef F77_DUMMY_MAIN
1981#  ifdef __cplusplus
1982     extern "C"
1983#  endif
1984   int F77_DUMMY_MAIN() { return 1; }
1985#endif
1986int
1987main ()
1988{
1989
1990  ;
1991  return 0;
1992}
1993_ACEOF
1994ac_clean_files_save=$ac_clean_files
1995ac_clean_files="$ac_clean_files a.out a.exe"
1996# Try to create an executable without -o first, disregard a.out.
1997# It will help us diagnose broken compilers, and finding out an intuition
1998# of exeext.
1999echo "$as_me:$LINENO: checking for C compiler default output" >&5
2000echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2001ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2002if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2003  (eval $ac_link_default) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }; then
2007  # Find the output, starting from the most likely.  This scheme is
2008# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2009# resort.
2010
2011# Be careful to initialize this variable, since it used to be cached.
2012# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2013ac_cv_exeext=
2014for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2015                ls a.out conftest 2>/dev/null;
2016                ls a.* conftest.* 2>/dev/null`; do
2017  case $ac_file in
2018    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2019    a.out ) # We found the default executable, but exeext='' is most
2020            # certainly right.
2021            break;;
2022    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2023          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2024          export ac_cv_exeext
2025          break;;
2026    * ) break;;
2027  esac
2028done
2029else
2030  echo "$as_me: failed program was:" >&5
2031cat conftest.$ac_ext >&5
2032{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2033echo "$as_me: error: C compiler cannot create executables" >&2;}
2034   { (exit 77); exit 77; }; }
2035fi
2036
2037ac_exeext=$ac_cv_exeext
2038echo "$as_me:$LINENO: result: $ac_file" >&5
2039echo "${ECHO_T}$ac_file" >&6
2040
2041# Check the compiler produces executables we can run.  If not, either
2042# the compiler is broken, or we cross compile.
2043echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2044echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2045# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2046# If not cross compiling, check that we can run a simple program.
2047if test "$cross_compiling" != yes; then
2048  if { ac_try='./$ac_file'
2049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050  (eval $ac_try) 2>&5
2051  ac_status=$?
2052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053  (exit $ac_status); }; }; then
2054    cross_compiling=no
2055  else
2056    if test "$cross_compiling" = maybe; then
2057	cross_compiling=yes
2058    else
2059	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2060If you meant to cross compile, use \`--host'." >&5
2061echo "$as_me: error: cannot run C compiled programs.
2062If you meant to cross compile, use \`--host'." >&2;}
2063   { (exit 1); exit 1; }; }
2064    fi
2065  fi
2066fi
2067echo "$as_me:$LINENO: result: yes" >&5
2068echo "${ECHO_T}yes" >&6
2069
2070rm -f a.out a.exe conftest$ac_cv_exeext
2071ac_clean_files=$ac_clean_files_save
2072# Check the compiler produces executables we can run.  If not, either
2073# the compiler is broken, or we cross compile.
2074echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077echo "${ECHO_T}$cross_compiling" >&6
2078
2079echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082  (eval $ac_link) 2>&5
2083  ac_status=$?
2084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085  (exit $ac_status); }; then
2086  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2088# work properly (i.e., refer to `conftest.exe'), while it won't with
2089# `rm'.
2090for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2091  case $ac_file in
2092    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2093    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094          export ac_cv_exeext
2095          break;;
2096    * ) break;;
2097  esac
2098done
2099else
2100  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2101echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2102   { (exit 1); exit 1; }; }
2103fi
2104
2105rm -f conftest$ac_cv_exeext
2106echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2107echo "${ECHO_T}$ac_cv_exeext" >&6
2108
2109rm -f conftest.$ac_ext
2110EXEEXT=$ac_cv_exeext
2111ac_exeext=$EXEEXT
2112echo "$as_me:$LINENO: checking for suffix of object files" >&5
2113echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2114if test "${ac_cv_objext+set}" = set; then
2115  echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117  cat >conftest.$ac_ext <<_ACEOF
2118#line $LINENO "configure"
2119#include "confdefs.h"
2120
2121#ifdef F77_DUMMY_MAIN
2122#  ifdef __cplusplus
2123     extern "C"
2124#  endif
2125   int F77_DUMMY_MAIN() { return 1; }
2126#endif
2127int
2128main ()
2129{
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135rm -f conftest.o conftest.obj
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137  (eval $ac_compile) 2>&5
2138  ac_status=$?
2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140  (exit $ac_status); }; then
2141  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2142  case $ac_file in
2143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2144    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145       break;;
2146  esac
2147done
2148else
2149  echo "$as_me: failed program was:" >&5
2150cat conftest.$ac_ext >&5
2151{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2152echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2153   { (exit 1); exit 1; }; }
2154fi
2155
2156rm -f conftest.$ac_cv_objext conftest.$ac_ext
2157fi
2158echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2159echo "${ECHO_T}$ac_cv_objext" >&6
2160OBJEXT=$ac_cv_objext
2161ac_objext=$OBJEXT
2162echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2163echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2164if test "${ac_cv_c_compiler_gnu+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  cat >conftest.$ac_ext <<_ACEOF
2168#line $LINENO "configure"
2169#include "confdefs.h"
2170
2171#ifdef F77_DUMMY_MAIN
2172#  ifdef __cplusplus
2173     extern "C"
2174#  endif
2175   int F77_DUMMY_MAIN() { return 1; }
2176#endif
2177int
2178main ()
2179{
2180#ifndef __GNUC__
2181       choke me
2182#endif
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188rm -f conftest.$ac_objext
2189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190  (eval $ac_compile) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); } &&
2194         { ac_try='test -s conftest.$ac_objext'
2195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196  (eval $ac_try) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; }; then
2200  ac_compiler_gnu=yes
2201else
2202  echo "$as_me: failed program was:" >&5
2203cat conftest.$ac_ext >&5
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222#line $LINENO "configure"
2223#include "confdefs.h"
2224
2225#ifdef F77_DUMMY_MAIN
2226#  ifdef __cplusplus
2227     extern "C"
2228#  endif
2229   int F77_DUMMY_MAIN() { return 1; }
2230#endif
2231int
2232main ()
2233{
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -s conftest.$ac_objext'
2246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247  (eval $ac_try) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; }; then
2251  ac_cv_prog_cc_g=yes
2252else
2253  echo "$as_me: failed program was:" >&5
2254cat conftest.$ac_ext >&5
2255ac_cv_prog_cc_g=no
2256fi
2257rm -f conftest.$ac_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2261if test "$ac_test_CFLAGS" = set; then
2262  CFLAGS=$ac_save_CFLAGS
2263elif test $ac_cv_prog_cc_g = yes; then
2264  if test "$GCC" = yes; then
2265    CFLAGS="-g -O2"
2266  else
2267    CFLAGS="-g"
2268  fi
2269else
2270  if test "$GCC" = yes; then
2271    CFLAGS="-O2"
2272  else
2273    CFLAGS=
2274  fi
2275fi
2276# Some people use a C++ compiler to compile C.  Since we use `exit',
2277# in C++ we need to declare it.  In case someone uses the same compiler
2278# for both compiling C and C++ we need to have the C++ compiler decide
2279# the declaration of exit, since it's the most demanding environment.
2280cat >conftest.$ac_ext <<_ACEOF
2281#ifndef __cplusplus
2282  choke me
2283#endif
2284_ACEOF
2285rm -f conftest.$ac_objext
2286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287  (eval $ac_compile) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); } &&
2291         { ac_try='test -s conftest.$ac_objext'
2292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293  (eval $ac_try) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; }; then
2297  for ac_declaration in \
2298   ''\
2299   '#include <stdlib.h>' \
2300   'extern "C" void std::exit (int) throw (); using std::exit;' \
2301   'extern "C" void std::exit (int); using std::exit;' \
2302   'extern "C" void exit (int) throw ();' \
2303   'extern "C" void exit (int);' \
2304   'void exit (int);'
2305do
2306  cat >conftest.$ac_ext <<_ACEOF
2307#line $LINENO "configure"
2308#include "confdefs.h"
2309#include <stdlib.h>
2310$ac_declaration
2311#ifdef F77_DUMMY_MAIN
2312#  ifdef __cplusplus
2313     extern "C"
2314#  endif
2315   int F77_DUMMY_MAIN() { return 1; }
2316#endif
2317int
2318main ()
2319{
2320exit (42);
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325rm -f conftest.$ac_objext
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327  (eval $ac_compile) 2>&5
2328  ac_status=$?
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); } &&
2331         { ac_try='test -s conftest.$ac_objext'
2332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333  (eval $ac_try) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }; }; then
2337  :
2338else
2339  echo "$as_me: failed program was:" >&5
2340cat conftest.$ac_ext >&5
2341continue
2342fi
2343rm -f conftest.$ac_objext conftest.$ac_ext
2344  cat >conftest.$ac_ext <<_ACEOF
2345#line $LINENO "configure"
2346#include "confdefs.h"
2347$ac_declaration
2348#ifdef F77_DUMMY_MAIN
2349#  ifdef __cplusplus
2350     extern "C"
2351#  endif
2352   int F77_DUMMY_MAIN() { return 1; }
2353#endif
2354int
2355main ()
2356{
2357exit (42);
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); } &&
2368         { ac_try='test -s conftest.$ac_objext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  break
2375else
2376  echo "$as_me: failed program was:" >&5
2377cat conftest.$ac_ext >&5
2378fi
2379rm -f conftest.$ac_objext conftest.$ac_ext
2380done
2381rm -f conftest*
2382if test -n "$ac_declaration"; then
2383  echo '#ifdef __cplusplus' >>confdefs.h
2384  echo $ac_declaration      >>confdefs.h
2385  echo '#endif'             >>confdefs.h
2386fi
2387
2388else
2389  echo "$as_me: failed program was:" >&5
2390cat conftest.$ac_ext >&5
2391fi
2392rm -f conftest.$ac_objext conftest.$ac_ext
2393ac_ext=c
2394ac_cpp='$CPP $CPPFLAGS'
2395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399ac_config_commands="$ac_config_commands default-1"
2400
2401am_make=${MAKE-make}
2402cat > confinc << 'END'
2403doit:
2404	@echo done
2405END
2406# If we don't find an include directive, just comment out the code.
2407echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2408echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2409am__include='#'
2410am__quote=
2411_am_result=none
2412# First try GNU make style include.
2413echo "include confinc" > confmf
2414# We grep out `Entering directory' and `Leaving directory'
2415# messages which can occur if `w' ends up in MAKEFLAGS.
2416# In particular we don't look at `^make:' because GNU make might
2417# be invoked under some other name (usually "gmake"), in which
2418# case it prints its new name instead of `make'.
2419if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2420   am__include=include
2421   am__quote=
2422   _am_result=GNU
2423fi
2424# Now try BSD make style include.
2425if test "$am__include" = "#"; then
2426   echo '.include "confinc"' > confmf
2427   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2428      am__include=.include
2429      am__quote='"'
2430      _am_result=BSD
2431   fi
2432fi
2433
2434
2435echo "$as_me:$LINENO: result: $_am_result" >&5
2436echo "${ECHO_T}$_am_result" >&6
2437rm -f confinc confmf
2438
2439
2440depcc="$CC"   am_compiler_list=
2441
2442echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2443echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2444if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2445  echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2448  # We make a subdir and do the tests there.  Otherwise we can end up
2449  # making bogus files that we don't know about and never remove.  For
2450  # instance it was reported that on HP-UX the gcc test will end up
2451  # making a dummy file named `D' -- because `-MD' means `put the output
2452  # in D'.
2453  mkdir conftest.dir
2454  # Copy depcomp to subdir because otherwise we won't find it if we're
2455  # using a relative directory.
2456  cp "$am_depcomp" conftest.dir
2457  cd conftest.dir
2458
2459  am_cv_CC_dependencies_compiler_type=none
2460  if test "$am_compiler_list" = ""; then
2461     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2462  fi
2463  for depmode in $am_compiler_list; do
2464    # We need to recreate these files for each test, as the compiler may
2465    # overwrite some of them when testing with obscure command lines.
2466    # This happens at least with the AIX C compiler.
2467    echo '#include "conftest.h"' > conftest.c
2468    echo 'int i;' > conftest.h
2469    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2470
2471    case $depmode in
2472    nosideeffect)
2473      # after this tag, mechanisms are not by side-effect, so they'll
2474      # only be used when explicitly requested
2475      if test "x$enable_dependency_tracking" = xyes; then
2476	continue
2477      else
2478	break
2479      fi
2480      ;;
2481    none) break ;;
2482    esac
2483    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2484    # mode.  It turns out that the SunPro C++ compiler does not properly
2485    # handle `-M -o', and we need to detect this.
2486    if depmode=$depmode \
2487       source=conftest.c object=conftest.o \
2488       depfile=conftest.Po tmpdepfile=conftest.TPo \
2489       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2490       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2491       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2492      am_cv_CC_dependencies_compiler_type=$depmode
2493      break
2494    fi
2495  done
2496
2497  cd ..
2498  rm -rf conftest.dir
2499else
2500  am_cv_CC_dependencies_compiler_type=none
2501fi
2502
2503fi
2504echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2505echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2506CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2507
2508
2509
2510
2511
2512
2513echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2514echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2515if test "${am_cv_prog_cc_stdc+set}" = set; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  am_cv_prog_cc_stdc=no
2519ac_save_CC="$CC"
2520# Don't try gcc -ansi; that turns off useful extensions and
2521# breaks some systems' header files.
2522# AIX			-qlanglvl=ansi
2523# Ultrix and OSF/1	-std1
2524# HP-UX 10.20 and later	-Ae
2525# HP-UX older versions	-Aa -D_HPUX_SOURCE
2526# SVR4			-Xc -D__EXTENSIONS__
2527for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2528do
2529  CC="$ac_save_CC $ac_arg"
2530  cat >conftest.$ac_ext <<_ACEOF
2531#line $LINENO "configure"
2532#include "confdefs.h"
2533#include <stdarg.h>
2534#include <stdio.h>
2535#include <sys/types.h>
2536#include <sys/stat.h>
2537/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2538struct buf { int x; };
2539FILE * (*rcsopen) (struct buf *, struct stat *, int);
2540static char *e (p, i)
2541     char **p;
2542     int i;
2543{
2544  return p[i];
2545}
2546static char *f (char * (*g) (char **, int), char **p, ...)
2547{
2548  char *s;
2549  va_list v;
2550  va_start (v,p);
2551  s = g (p, va_arg (v,int));
2552  va_end (v);
2553  return s;
2554}
2555int test (int i, double x);
2556struct s1 {int (*f) (int a);};
2557struct s2 {int (*f) (double a);};
2558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559int argc;
2560char **argv;
2561
2562#ifdef F77_DUMMY_MAIN
2563#  ifdef __cplusplus
2564     extern "C"
2565#  endif
2566   int F77_DUMMY_MAIN() { return 1; }
2567#endif
2568int
2569main ()
2570{
2571
2572return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -s conftest.$ac_objext'
2585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586  (eval $ac_try) 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }; }; then
2590  am_cv_prog_cc_stdc="$ac_arg"; break
2591else
2592  echo "$as_me: failed program was:" >&5
2593cat conftest.$ac_ext >&5
2594fi
2595rm -f conftest.$ac_objext conftest.$ac_ext
2596done
2597CC="$ac_save_CC"
2598
2599fi
2600
2601if test -z "$am_cv_prog_cc_stdc"; then
2602  echo "$as_me:$LINENO: result: none needed" >&5
2603echo "${ECHO_T}none needed" >&6
2604else
2605  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2606echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2607fi
2608case "x$am_cv_prog_cc_stdc" in
2609  x|xno) ;;
2610  *) CC="$CC $am_cv_prog_cc_stdc" ;;
2611esac
2612
2613ac_ext=cc
2614ac_cpp='$CXXCPP $CPPFLAGS'
2615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2618if test -n "$ac_tool_prefix"; then
2619  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2620  do
2621    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2623echo "$as_me:$LINENO: checking for $ac_word" >&5
2624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625if test "${ac_cv_prog_CXX+set}" = set; then
2626  echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628  if test -n "$CXX"; then
2629  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636  for ac_exec_ext in '' $ac_executable_extensions; do
2637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640    break 2
2641  fi
2642done
2643done
2644
2645fi
2646fi
2647CXX=$ac_cv_prog_CXX
2648if test -n "$CXX"; then
2649  echo "$as_me:$LINENO: result: $CXX" >&5
2650echo "${ECHO_T}$CXX" >&6
2651else
2652  echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6
2654fi
2655
2656    test -n "$CXX" && break
2657  done
2658fi
2659if test -z "$CXX"; then
2660  ac_ct_CXX=$CXX
2661  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2662do
2663  # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
2665echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2668  echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670  if test -n "$ac_ct_CXX"; then
2671  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676  IFS=$as_save_IFS
2677  test -z "$as_dir" && as_dir=.
2678  for ac_exec_ext in '' $ac_executable_extensions; do
2679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680    ac_cv_prog_ac_ct_CXX="$ac_prog"
2681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682    break 2
2683  fi
2684done
2685done
2686
2687fi
2688fi
2689ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2690if test -n "$ac_ct_CXX"; then
2691  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2692echo "${ECHO_T}$ac_ct_CXX" >&6
2693else
2694  echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
2696fi
2697
2698  test -n "$ac_ct_CXX" && break
2699done
2700test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2701
2702  CXX=$ac_ct_CXX
2703fi
2704
2705
2706# Provide some information about the compiler.
2707echo "$as_me:$LINENO:" \
2708     "checking for C++ compiler version" >&5
2709ac_compiler=`set X $ac_compile; echo $2`
2710{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2711  (eval $ac_compiler --version </dev/null >&5) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }
2715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2716  (eval $ac_compiler -v </dev/null >&5) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }
2720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2721  (eval $ac_compiler -V </dev/null >&5) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }
2725
2726echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2727echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2728if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2729  echo $ECHO_N "(cached) $ECHO_C" >&6
2730else
2731  cat >conftest.$ac_ext <<_ACEOF
2732#line $LINENO "configure"
2733#include "confdefs.h"
2734
2735#ifdef F77_DUMMY_MAIN
2736#  ifdef __cplusplus
2737     extern "C"
2738#  endif
2739   int F77_DUMMY_MAIN() { return 1; }
2740#endif
2741int
2742main ()
2743{
2744#ifndef __GNUC__
2745       choke me
2746#endif
2747
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754  (eval $ac_compile) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -s conftest.$ac_objext'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; }; then
2764  ac_compiler_gnu=yes
2765else
2766  echo "$as_me: failed program was:" >&5
2767cat conftest.$ac_ext >&5
2768ac_compiler_gnu=no
2769fi
2770rm -f conftest.$ac_objext conftest.$ac_ext
2771ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2772
2773fi
2774echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2775echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2776GXX=`test $ac_compiler_gnu = yes && echo yes`
2777ac_test_CXXFLAGS=${CXXFLAGS+set}
2778ac_save_CXXFLAGS=$CXXFLAGS
2779CXXFLAGS="-g"
2780echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2781echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2782if test "${ac_cv_prog_cxx_g+set}" = set; then
2783  echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785  cat >conftest.$ac_ext <<_ACEOF
2786#line $LINENO "configure"
2787#include "confdefs.h"
2788
2789#ifdef F77_DUMMY_MAIN
2790#  ifdef __cplusplus
2791     extern "C"
2792#  endif
2793   int F77_DUMMY_MAIN() { return 1; }
2794#endif
2795int
2796main ()
2797{
2798
2799  ;
2800  return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805  (eval $ac_compile) 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); } &&
2809         { ac_try='test -s conftest.$ac_objext'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; }; then
2815  ac_cv_prog_cxx_g=yes
2816else
2817  echo "$as_me: failed program was:" >&5
2818cat conftest.$ac_ext >&5
2819ac_cv_prog_cxx_g=no
2820fi
2821rm -f conftest.$ac_objext conftest.$ac_ext
2822fi
2823echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2824echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2825if test "$ac_test_CXXFLAGS" = set; then
2826  CXXFLAGS=$ac_save_CXXFLAGS
2827elif test $ac_cv_prog_cxx_g = yes; then
2828  if test "$GXX" = yes; then
2829    CXXFLAGS="-g -O2"
2830  else
2831    CXXFLAGS="-g"
2832  fi
2833else
2834  if test "$GXX" = yes; then
2835    CXXFLAGS="-O2"
2836  else
2837    CXXFLAGS=
2838  fi
2839fi
2840for ac_declaration in \
2841   ''\
2842   '#include <stdlib.h>' \
2843   'extern "C" void std::exit (int) throw (); using std::exit;' \
2844   'extern "C" void std::exit (int); using std::exit;' \
2845   'extern "C" void exit (int) throw ();' \
2846   'extern "C" void exit (int);' \
2847   'void exit (int);'
2848do
2849  cat >conftest.$ac_ext <<_ACEOF
2850#line $LINENO "configure"
2851#include "confdefs.h"
2852#include <stdlib.h>
2853$ac_declaration
2854#ifdef F77_DUMMY_MAIN
2855#  ifdef __cplusplus
2856     extern "C"
2857#  endif
2858   int F77_DUMMY_MAIN() { return 1; }
2859#endif
2860int
2861main ()
2862{
2863exit (42);
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext
2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870  (eval $ac_compile) 2>&5
2871  ac_status=$?
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); } &&
2874         { ac_try='test -s conftest.$ac_objext'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; }; then
2880  :
2881else
2882  echo "$as_me: failed program was:" >&5
2883cat conftest.$ac_ext >&5
2884continue
2885fi
2886rm -f conftest.$ac_objext conftest.$ac_ext
2887  cat >conftest.$ac_ext <<_ACEOF
2888#line $LINENO "configure"
2889#include "confdefs.h"
2890$ac_declaration
2891#ifdef F77_DUMMY_MAIN
2892#  ifdef __cplusplus
2893     extern "C"
2894#  endif
2895   int F77_DUMMY_MAIN() { return 1; }
2896#endif
2897int
2898main ()
2899{
2900exit (42);
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907  (eval $ac_compile) 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911         { ac_try='test -s conftest.$ac_objext'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; }; then
2917  break
2918else
2919  echo "$as_me: failed program was:" >&5
2920cat conftest.$ac_ext >&5
2921fi
2922rm -f conftest.$ac_objext conftest.$ac_ext
2923done
2924rm -f conftest*
2925if test -n "$ac_declaration"; then
2926  echo '#ifdef __cplusplus' >>confdefs.h
2927  echo $ac_declaration      >>confdefs.h
2928  echo '#endif'             >>confdefs.h
2929fi
2930
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936
2937depcc="$CXX"  am_compiler_list=
2938
2939echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2940echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2941if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2942  echo $ECHO_N "(cached) $ECHO_C" >&6
2943else
2944  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2945  # We make a subdir and do the tests there.  Otherwise we can end up
2946  # making bogus files that we don't know about and never remove.  For
2947  # instance it was reported that on HP-UX the gcc test will end up
2948  # making a dummy file named `D' -- because `-MD' means `put the output
2949  # in D'.
2950  mkdir conftest.dir
2951  # Copy depcomp to subdir because otherwise we won't find it if we're
2952  # using a relative directory.
2953  cp "$am_depcomp" conftest.dir
2954  cd conftest.dir
2955
2956  am_cv_CXX_dependencies_compiler_type=none
2957  if test "$am_compiler_list" = ""; then
2958     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2959  fi
2960  for depmode in $am_compiler_list; do
2961    # We need to recreate these files for each test, as the compiler may
2962    # overwrite some of them when testing with obscure command lines.
2963    # This happens at least with the AIX C compiler.
2964    echo '#include "conftest.h"' > conftest.c
2965    echo 'int i;' > conftest.h
2966    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2967
2968    case $depmode in
2969    nosideeffect)
2970      # after this tag, mechanisms are not by side-effect, so they'll
2971      # only be used when explicitly requested
2972      if test "x$enable_dependency_tracking" = xyes; then
2973	continue
2974      else
2975	break
2976      fi
2977      ;;
2978    none) break ;;
2979    esac
2980    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2981    # mode.  It turns out that the SunPro C++ compiler does not properly
2982    # handle `-M -o', and we need to detect this.
2983    if depmode=$depmode \
2984       source=conftest.c object=conftest.o \
2985       depfile=conftest.Po tmpdepfile=conftest.TPo \
2986       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2987       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2988       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2989      am_cv_CXX_dependencies_compiler_type=$depmode
2990      break
2991    fi
2992  done
2993
2994  cd ..
2995  rm -rf conftest.dir
2996else
2997  am_cv_CXX_dependencies_compiler_type=none
2998fi
2999
3000fi
3001echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3002echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3003CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
3004
3005
3006echo "$as_me:$LINENO: checking whether ln -s works" >&5
3007echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3008LN_S=$as_ln_s
3009if test "$LN_S" = "ln -s"; then
3010  echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
3012else
3013  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3014echo "${ECHO_T}no, using $LN_S" >&6
3015fi
3016
3017if test -n "$ac_tool_prefix"; then
3018  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3019set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3020echo "$as_me:$LINENO: checking for $ac_word" >&5
3021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3022if test "${ac_cv_prog_RANLIB+set}" = set; then
3023  echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025  if test -n "$RANLIB"; then
3026  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033  for ac_exec_ext in '' $ac_executable_extensions; do
3034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037    break 2
3038  fi
3039done
3040done
3041
3042fi
3043fi
3044RANLIB=$ac_cv_prog_RANLIB
3045if test -n "$RANLIB"; then
3046  echo "$as_me:$LINENO: result: $RANLIB" >&5
3047echo "${ECHO_T}$RANLIB" >&6
3048else
3049  echo "$as_me:$LINENO: result: no" >&5
3050echo "${ECHO_T}no" >&6
3051fi
3052
3053fi
3054if test -z "$ac_cv_prog_RANLIB"; then
3055  ac_ct_RANLIB=$RANLIB
3056  # Extract the first word of "ranlib", so it can be a program name with args.
3057set dummy ranlib; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3061  echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063  if test -n "$ac_ct_RANLIB"; then
3064  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071  for ac_exec_ext in '' $ac_executable_extensions; do
3072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    ac_cv_prog_ac_ct_RANLIB="ranlib"
3074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078done
3079
3080  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3081fi
3082fi
3083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3084if test -n "$ac_ct_RANLIB"; then
3085  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3086echo "${ECHO_T}$ac_ct_RANLIB" >&6
3087else
3088  echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092  RANLIB=$ac_ct_RANLIB
3093else
3094  RANLIB="$ac_cv_prog_RANLIB"
3095fi
3096
3097
3098build_client=1
3099
3100# Check whether --enable-ipv6 or --disable-ipv6 was given.
3101if test "${enable_ipv6+set}" = set; then
3102  enableval="$enable_ipv6"
3103   if test "$enableval" = yes; then
3104     ac_cv_ipv6 = yes;
3105   fi
3106else
3107  echo "$as_me:$LINENO: checking for working ipv6 implementation" >&5
3108echo $ECHO_N "checking for working ipv6 implementation... $ECHO_C" >&6
3109if test "${ac_cv_ipv6+set}" = set; then
3110  echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112  cat >conftest.$ac_ext <<_ACEOF
3113#line $LINENO "configure"
3114#include "confdefs.h"
3115
3116#include <sys/types.h>
3117#include <sys/socket.h>
3118#include <netinet/in.h>
3119#include <stdlib.h>
3120
3121#ifdef F77_DUMMY_MAIN
3122#  ifdef __cplusplus
3123     extern "C"
3124#  endif
3125   int F77_DUMMY_MAIN() { return 1; }
3126#endif
3127int
3128main ()
3129{
3130
3131  struct sockaddr_in6 s;
3132  int i = socket(AF_INET6, SOCK_STREAM, 0);
3133
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140  (eval $ac_compile) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } &&
3144         { ac_try='test -s conftest.$ac_objext'
3145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146  (eval $ac_try) 2>&5
3147  ac_status=$?
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); }; }; then
3150  ac_cv_ipv6=yes
3151else
3152  echo "$as_me: failed program was:" >&5
3153cat conftest.$ac_ext >&5
3154ac_cv_ipv6=no
3155fi
3156rm -f conftest.$ac_objext conftest.$ac_ext
3157
3158fi
3159echo "$as_me:$LINENO: result: $ac_cv_ipv6" >&5
3160echo "${ECHO_T}$ac_cv_ipv6" >&6
3161fi;
3162  if test "$ac_cv_ipv6" = yes; then
3163
3164cat >>confdefs.h <<\_ACEOF
3165#define INET6
3166_ACEOF
3167
3168  fi
3169
3170
3171# Win32 needs -lwsock32
3172echo "$as_me:$LINENO: checking for wsock32" >&5
3173echo $ECHO_N "checking for wsock32... $ECHO_C" >&6
3174svLIBS=$LIBS
3175LIBS="$LIBS -lwsock32"
3176cat >conftest.$ac_ext <<_ACEOF
3177#line $LINENO "configure"
3178#include "confdefs.h"
3179
3180#include <winsock2.h>
3181
3182#ifdef F77_DUMMY_MAIN
3183#  ifdef __cplusplus
3184     extern "C"
3185#  endif
3186   int F77_DUMMY_MAIN() { return 1; }
3187#endif
3188int
3189main ()
3190{
3191
3192socket(0, 0, 0);
3193
3194  ;
3195  return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext conftest$ac_exeext
3199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200  (eval $ac_link) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); } &&
3204         { ac_try='test -s conftest$ac_exeext'
3205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206  (eval $ac_try) 2>&5
3207  ac_status=$?
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }; }; then
3210  echo "$as_me:$LINENO: result: yes" >&5
3211echo "${ECHO_T}yes" >&6
3212else
3213  echo "$as_me: failed program was:" >&5
3214cat conftest.$ac_ext >&5
3215LIBS=$svLIBS
3216   echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218fi
3219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3220
3221# SDL Checks --------------------------------------------
3222SDL_VERSION=1.2.4
3223
3224# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
3225if test "${with_sdl_prefix+set}" = set; then
3226  withval="$with_sdl_prefix"
3227  sdl_prefix="$withval"
3228else
3229  sdl_prefix=""
3230fi;
3231
3232# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
3233if test "${with_sdl_exec_prefix+set}" = set; then
3234  withval="$with_sdl_exec_prefix"
3235  sdl_exec_prefix="$withval"
3236else
3237  sdl_exec_prefix=""
3238fi;
3239# Check whether --enable-sdltest or --disable-sdltest was given.
3240if test "${enable_sdltest+set}" = set; then
3241  enableval="$enable_sdltest"
3242
3243else
3244  enable_sdltest=yes
3245fi;
3246
3247  if test x$sdl_exec_prefix != x ; then
3248     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
3249     if test x${SDL_CONFIG+set} != xset ; then
3250        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
3251     fi
3252  fi
3253  if test x$sdl_prefix != x ; then
3254     sdl_args="$sdl_args --prefix=$sdl_prefix"
3255     if test x${SDL_CONFIG+set} != xset ; then
3256        SDL_CONFIG=$sdl_prefix/bin/sdl-config
3257     fi
3258  fi
3259
3260
3261  # Extract the first word of "sdl-config", so it can be a program name with args.
3262set dummy sdl-config; ac_word=$2
3263echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3266  echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268  case $SDL_CONFIG in
3269  [\\/]* | ?:[\\/]*)
3270  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3271  ;;
3272  *)
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278  for ac_exec_ext in '' $ac_executable_extensions; do
3279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285done
3286
3287  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
3288  ;;
3289esac
3290fi
3291SDL_CONFIG=$ac_cv_path_SDL_CONFIG
3292
3293if test -n "$SDL_CONFIG"; then
3294  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
3295echo "${ECHO_T}$SDL_CONFIG" >&6
3296else
3297  echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301  min_sdl_version=$SDL_VERSION
3302  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
3303echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
3304  no_sdl=""
3305  if test "$SDL_CONFIG" = "no" ; then
3306    no_sdl=yes
3307  else
3308    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
3309    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
3310
3311    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
3312           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3313    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
3314           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3315    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
3316           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3317    if test "x$enable_sdltest" = "xyes" ; then
3318      ac_save_CFLAGS="$CFLAGS"
3319      ac_save_LIBS="$LIBS"
3320      CFLAGS="$CFLAGS $SDL_CFLAGS"
3321      LIBS="$LIBS $SDL_LIBS"
3322      rm -f conf.sdltest
3323      if test "$cross_compiling" = yes; then
3324  echo $ac_n "cross compiling; assumed OK... $ac_c"
3325else
3326  cat >conftest.$ac_ext <<_ACEOF
3327#line $LINENO "configure"
3328#include "confdefs.h"
3329
3330#include <stdio.h>
3331#include <stdlib.h>
3332#include <string.h>
3333#include "SDL.h"
3334
3335char*
3336my_strdup (char *str)
3337{
3338  char *new_str;
3339
3340  if (str)
3341    {
3342      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
3343      strcpy (new_str, str);
3344    }
3345  else
3346    new_str = NULL;
3347
3348  return new_str;
3349}
3350
3351int main (int argc, char *argv[])
3352{
3353  int major, minor, micro;
3354  char *tmp_version;
3355
3356  /* This hangs on some systems (?)
3357  system ("touch conf.sdltest");
3358  */
3359  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
3360
3361  /* HP/UX 9 (%@#!) writes to sscanf strings */
3362  tmp_version = my_strdup("$min_sdl_version");
3363  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3364     printf("%s, bad version string\n", "$min_sdl_version");
3365     exit(1);
3366   }
3367
3368   if (($sdl_major_version > major) ||
3369      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3370      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3371    {
3372      return 0;
3373    }
3374  else
3375    {
3376      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3377      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
3378      printf("*** best to upgrade to the required version.\n");
3379      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
3380      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
3381      printf("*** config.cache before re-running configure\n");
3382      return 1;
3383    }
3384}
3385
3386
3387_ACEOF
3388rm -f conftest$ac_exeext
3389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3390  (eval $ac_link) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395  (eval $ac_try) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }; }; then
3399  :
3400else
3401  echo "$as_me: program exited with status $ac_status" >&5
3402echo "$as_me: failed program was:" >&5
3403cat conftest.$ac_ext >&5
3404( exit $ac_status )
3405no_sdl=yes
3406fi
3407rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3408fi
3409       CFLAGS="$ac_save_CFLAGS"
3410       LIBS="$ac_save_LIBS"
3411     fi
3412  fi
3413  if test "x$no_sdl" = x ; then
3414     echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
3416     :
3417  else
3418     echo "$as_me:$LINENO: result: no" >&5
3419echo "${ECHO_T}no" >&6
3420     if test "$SDL_CONFIG" = "no" ; then
3421       echo "*** The sdl-config script installed by SDL could not be found"
3422       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3423       echo "*** your path, or set the SDL_CONFIG environment variable to the"
3424       echo "*** full path to sdl-config."
3425     else
3426       if test -f conf.sdltest ; then
3427        :
3428       else
3429          echo "*** Could not run SDL test program, checking why..."
3430          CFLAGS="$CFLAGS $SDL_CFLAGS"
3431          LIBS="$LIBS $SDL_LIBS"
3432          cat >conftest.$ac_ext <<_ACEOF
3433#line $LINENO "configure"
3434#include "confdefs.h"
3435
3436#include <stdio.h>
3437#include "SDL.h"
3438
3439int main(int argc, char *argv[])
3440{ return 0; }
3441#undef  main
3442#define main K_and_R_C_main
3443
3444#ifdef F77_DUMMY_MAIN
3445#  ifdef __cplusplus
3446     extern "C"
3447#  endif
3448   int F77_DUMMY_MAIN() { return 1; }
3449#endif
3450int
3451main ()
3452{
3453 return 0;
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
3459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460  (eval $ac_link) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } &&
3464         { ac_try='test -s conftest$ac_exeext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470   echo "*** The test program compiled, but did not run. This usually means"
3471          echo "*** that the run-time linker is not finding SDL or finding the wrong"
3472          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3473          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3474          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3475          echo "*** is required on your system"
3476	  echo "***"
3477          echo "*** If you have an old version installed, it is best to remove it, although"
3478          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3479else
3480  echo "$as_me: failed program was:" >&5
3481cat conftest.$ac_ext >&5
3482 echo "*** The test program failed to compile or link. See the file config.log for the"
3483          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3484          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3485          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
3486fi
3487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3488          CFLAGS="$ac_save_CFLAGS"
3489          LIBS="$ac_save_LIBS"
3490       fi
3491     fi
3492     SDL_CFLAGS=""
3493     SDL_LIBS=""
3494     build_client=0
3495  fi
3496
3497
3498  rm -f conf.sdltest
3499
3500svCXXFLAGS=$CXXFLAGS
3501svLIBS=$LIBS
3502CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3503LIBS="$LIBS $SDL_LIBS"
3504
3505echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
3506echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
3507if test "${ac_cv_lib_SDL_image_main+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  ac_check_lib_save_LIBS=$LIBS
3511LIBS="-lSDL_image  $LIBS"
3512cat >conftest.$ac_ext <<_ACEOF
3513#line $LINENO "configure"
3514#include "confdefs.h"
3515
3516
3517#ifdef F77_DUMMY_MAIN
3518#  ifdef __cplusplus
3519     extern "C"
3520#  endif
3521   int F77_DUMMY_MAIN() { return 1; }
3522#endif
3523int
3524main ()
3525{
3526main ();
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext conftest$ac_exeext
3532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3533  (eval $ac_link) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); } &&
3537         { ac_try='test -s conftest$ac_exeext'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  ac_cv_lib_SDL_image_main=yes
3544else
3545  echo "$as_me: failed program was:" >&5
3546cat conftest.$ac_ext >&5
3547ac_cv_lib_SDL_image_main=no
3548fi
3549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3550LIBS=$ac_check_lib_save_LIBS
3551fi
3552echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
3553echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
3554if test $ac_cv_lib_SDL_image_main = yes; then
3555  cat >>confdefs.h <<_ACEOF
3556#define HAVE_LIBSDL_IMAGE 1
3557_ACEOF
3558
3559  LIBS="-lSDL_image $LIBS"
3560
3561else
3562  build_client=0
3563fi
3564
3565LIBS=$svLIBS
3566CXXFLAGS=$svCXXFLAGS
3567
3568
3569if test $build_client = 1; then
3570  BUILD_CLIENT_TRUE=
3571  BUILD_CLIENT_FALSE='#'
3572else
3573  BUILD_CLIENT_TRUE='#'
3574  BUILD_CLIENT_FALSE=
3575fi
3576if test $build_client = 0; then
3577	{ echo "$as_me:$LINENO: WARNING: SDL and/or SDL_image not found, only jfkserver will be built" >&5
3578echo "$as_me: WARNING: SDL and/or SDL_image not found, only jfkserver will be built" >&2;}
3579fi
3580if test $build_client = 1; then
3581
3582cat >>confdefs.h <<\_ACEOF
3583#define JFK_OUTPUT_BUILD_SDL
3584_ACEOF
3585
3586fi
3587
3588ac_ext=c
3589ac_cpp='$CPP $CPPFLAGS'
3590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3594echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3595# On Suns, sometimes $CPP names a directory.
3596if test -n "$CPP" && test -d "$CPP"; then
3597  CPP=
3598fi
3599if test -z "$CPP"; then
3600  if test "${ac_cv_prog_CPP+set}" = set; then
3601  echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603      # Double quotes because CPP needs to be expanded
3604    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605    do
3606      ac_preproc_ok=false
3607for ac_c_preproc_warn_flag in '' yes
3608do
3609  # Use a header file that comes with gcc, so configuring glibc
3610  # with a fresh cross-compiler works.
3611  # On the NeXT, cc -E runs the code through the compiler's parser,
3612  # not just through cpp. "Syntax error" is here to catch this case.
3613  cat >conftest.$ac_ext <<_ACEOF
3614#line $LINENO "configure"
3615#include "confdefs.h"
3616#include <assert.h>
3617                     Syntax error
3618_ACEOF
3619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3620  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3621  ac_status=$?
3622  egrep -v '^ *\+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } >/dev/null; then
3627  if test -s conftest.err; then
3628    ac_cpp_err=$ac_c_preproc_warn_flag
3629  else
3630    ac_cpp_err=
3631  fi
3632else
3633  ac_cpp_err=yes
3634fi
3635if test -z "$ac_cpp_err"; then
3636  :
3637else
3638  echo "$as_me: failed program was:" >&5
3639  cat conftest.$ac_ext >&5
3640  # Broken: fails on valid input.
3641continue
3642fi
3643rm -f conftest.err conftest.$ac_ext
3644
3645  # OK, works on sane cases.  Now check whether non-existent headers
3646  # can be detected and how.
3647  cat >conftest.$ac_ext <<_ACEOF
3648#line $LINENO "configure"
3649#include "confdefs.h"
3650#include <ac_nonexistent.h>
3651_ACEOF
3652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654  ac_status=$?
3655  egrep -v '^ *\+' conftest.er1 >conftest.err
3656  rm -f conftest.er1
3657  cat conftest.err >&5
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); } >/dev/null; then
3660  if test -s conftest.err; then
3661    ac_cpp_err=$ac_c_preproc_warn_flag
3662  else
3663    ac_cpp_err=
3664  fi
3665else
3666  ac_cpp_err=yes
3667fi
3668if test -z "$ac_cpp_err"; then
3669  # Broken: success on invalid input.
3670continue
3671else
3672  echo "$as_me: failed program was:" >&5
3673  cat conftest.$ac_ext >&5
3674  # Passes both tests.
3675ac_preproc_ok=:
3676break
3677fi
3678rm -f conftest.err conftest.$ac_ext
3679
3680done
3681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682rm -f conftest.err conftest.$ac_ext
3683if $ac_preproc_ok; then
3684  break
3685fi
3686
3687    done
3688    ac_cv_prog_CPP=$CPP
3689
3690fi
3691  CPP=$ac_cv_prog_CPP
3692else
3693  ac_cv_prog_CPP=$CPP
3694fi
3695echo "$as_me:$LINENO: result: $CPP" >&5
3696echo "${ECHO_T}$CPP" >&6
3697ac_preproc_ok=false
3698for ac_c_preproc_warn_flag in '' yes
3699do
3700  # Use a header file that comes with gcc, so configuring glibc
3701  # with a fresh cross-compiler works.
3702  # On the NeXT, cc -E runs the code through the compiler's parser,
3703  # not just through cpp. "Syntax error" is here to catch this case.
3704  cat >conftest.$ac_ext <<_ACEOF
3705#line $LINENO "configure"
3706#include "confdefs.h"
3707#include <assert.h>
3708                     Syntax error
3709_ACEOF
3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712  ac_status=$?
3713  egrep -v '^ *\+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } >/dev/null; then
3718  if test -s conftest.err; then
3719    ac_cpp_err=$ac_c_preproc_warn_flag
3720  else
3721    ac_cpp_err=
3722  fi
3723else
3724  ac_cpp_err=yes
3725fi
3726if test -z "$ac_cpp_err"; then
3727  :
3728else
3729  echo "$as_me: failed program was:" >&5
3730  cat conftest.$ac_ext >&5
3731  # Broken: fails on valid input.
3732continue
3733fi
3734rm -f conftest.err conftest.$ac_ext
3735
3736  # OK, works on sane cases.  Now check whether non-existent headers
3737  # can be detected and how.
3738  cat >conftest.$ac_ext <<_ACEOF
3739#line $LINENO "configure"
3740#include "confdefs.h"
3741#include <ac_nonexistent.h>
3742_ACEOF
3743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3744  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3745  ac_status=$?
3746  egrep -v '^ *\+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } >/dev/null; then
3751  if test -s conftest.err; then
3752    ac_cpp_err=$ac_c_preproc_warn_flag
3753  else
3754    ac_cpp_err=
3755  fi
3756else
3757  ac_cpp_err=yes
3758fi
3759if test -z "$ac_cpp_err"; then
3760  # Broken: success on invalid input.
3761continue
3762else
3763  echo "$as_me: failed program was:" >&5
3764  cat conftest.$ac_ext >&5
3765  # Passes both tests.
3766ac_preproc_ok=:
3767break
3768fi
3769rm -f conftest.err conftest.$ac_ext
3770
3771done
3772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773rm -f conftest.err conftest.$ac_ext
3774if $ac_preproc_ok; then
3775  :
3776else
3777  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3778echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3779   { (exit 1); exit 1; }; }
3780fi
3781
3782ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788
3789echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3790echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3791if test "${ac_cv_header_stdc+set}" = set; then
3792  echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794  cat >conftest.$ac_ext <<_ACEOF
3795#line $LINENO "configure"
3796#include "confdefs.h"
3797#include <stdlib.h>
3798#include <stdarg.h>
3799#include <string.h>
3800#include <float.h>
3801
3802_ACEOF
3803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3805  ac_status=$?
3806  egrep -v '^ *\+' conftest.er1 >conftest.err
3807  rm -f conftest.er1
3808  cat conftest.err >&5
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); } >/dev/null; then
3811  if test -s conftest.err; then
3812    ac_cpp_err=$ac_c_preproc_warn_flag
3813  else
3814    ac_cpp_err=
3815  fi
3816else
3817  ac_cpp_err=yes
3818fi
3819if test -z "$ac_cpp_err"; then
3820  ac_cv_header_stdc=yes
3821else
3822  echo "$as_me: failed program was:" >&5
3823  cat conftest.$ac_ext >&5
3824  ac_cv_header_stdc=no
3825fi
3826rm -f conftest.err conftest.$ac_ext
3827
3828if test $ac_cv_header_stdc = yes; then
3829  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3830  cat >conftest.$ac_ext <<_ACEOF
3831#line $LINENO "configure"
3832#include "confdefs.h"
3833#include <string.h>
3834
3835_ACEOF
3836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837  egrep "memchr" >/dev/null 2>&1; then
3838  :
3839else
3840  ac_cv_header_stdc=no
3841fi
3842rm -f conftest*
3843
3844fi
3845
3846if test $ac_cv_header_stdc = yes; then
3847  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3848  cat >conftest.$ac_ext <<_ACEOF
3849#line $LINENO "configure"
3850#include "confdefs.h"
3851#include <stdlib.h>
3852
3853_ACEOF
3854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855  egrep "free" >/dev/null 2>&1; then
3856  :
3857else
3858  ac_cv_header_stdc=no
3859fi
3860rm -f conftest*
3861
3862fi
3863
3864if test $ac_cv_header_stdc = yes; then
3865  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3866  if test "$cross_compiling" = yes; then
3867  :
3868else
3869  cat >conftest.$ac_ext <<_ACEOF
3870#line $LINENO "configure"
3871#include "confdefs.h"
3872#include <ctype.h>
3873#if ((' ' & 0x0FF) == 0x020)
3874# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3875# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3876#else
3877# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3878                     || ('j' <= (c) && (c) <= 'r') \
3879                     || ('s' <= (c) && (c) <= 'z'))
3880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3881#endif
3882
3883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3884int
3885main ()
3886{
3887  int i;
3888  for (i = 0; i < 256; i++)
3889    if (XOR (islower (i), ISLOWER (i))
3890        || toupper (i) != TOUPPER (i))
3891      exit(2);
3892  exit (0);
3893}
3894_ACEOF
3895rm -f conftest$ac_exeext
3896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3897  (eval $ac_link) 2>&5
3898  ac_status=$?
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902  (eval $ac_try) 2>&5
3903  ac_status=$?
3904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905  (exit $ac_status); }; }; then
3906  :
3907else
3908  echo "$as_me: program exited with status $ac_status" >&5
3909echo "$as_me: failed program was:" >&5
3910cat conftest.$ac_ext >&5
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3939                  inttypes.h stdint.h unistd.h
3940do
3941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3942echo "$as_me:$LINENO: checking for $ac_header" >&5
3943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_Header+set}\" = set"; then
3945  echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947  cat >conftest.$ac_ext <<_ACEOF
3948#line $LINENO "configure"
3949#include "confdefs.h"
3950$ac_includes_default
3951
3952#include <$ac_header>
3953_ACEOF
3954rm -f conftest.$ac_objext
3955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956  (eval $ac_compile) 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } &&
3960         { ac_try='test -s conftest.$ac_objext'
3961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962  (eval $ac_try) 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); }; }; then
3966  eval "$as_ac_Header=yes"
3967else
3968  echo "$as_me: failed program was:" >&5
3969cat conftest.$ac_ext >&5
3970eval "$as_ac_Header=no"
3971fi
3972rm -f conftest.$ac_objext conftest.$ac_ext
3973fi
3974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3976if test `eval echo '${'$as_ac_Header'}'` = yes; then
3977  cat >>confdefs.h <<_ACEOF
3978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979_ACEOF
3980
3981fi
3982
3983done
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002for ac_header in arpa/inet.h arpa/nameser.h fcntl.h netdb.h netinet/in.h \
4003	netinet/tcp.h poll.h resolv.h stdint.h sys/param.h sys/select.h   \
4004	sys/socket.h sys/syctl.h sys/time.h sys/types.h unistd.h
4005do
4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4007if eval "test \"\${$as_ac_Header+set}\" = set"; then
4008  echo "$as_me:$LINENO: checking for $ac_header" >&5
4009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4010if eval "test \"\${$as_ac_Header+set}\" = set"; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012fi
4013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4015else
4016  # Is the header compilable?
4017echo "$as_me:$LINENO: checking $ac_header usability" >&5
4018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4019cat >conftest.$ac_ext <<_ACEOF
4020#line $LINENO "configure"
4021#include "confdefs.h"
4022$ac_includes_default
4023#include <$ac_header>
4024_ACEOF
4025rm -f conftest.$ac_objext
4026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027  (eval $ac_compile) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } &&
4031         { ac_try='test -s conftest.$ac_objext'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; }; then
4037  ac_header_compiler=yes
4038else
4039  echo "$as_me: failed program was:" >&5
4040cat conftest.$ac_ext >&5
4041ac_header_compiler=no
4042fi
4043rm -f conftest.$ac_objext conftest.$ac_ext
4044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045echo "${ECHO_T}$ac_header_compiler" >&6
4046
4047# Is the header present?
4048echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4050cat >conftest.$ac_ext <<_ACEOF
4051#line $LINENO "configure"
4052#include "confdefs.h"
4053#include <$ac_header>
4054_ACEOF
4055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057  ac_status=$?
4058  egrep -v '^ *\+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } >/dev/null; then
4063  if test -s conftest.err; then
4064    ac_cpp_err=$ac_c_preproc_warn_flag
4065  else
4066    ac_cpp_err=
4067  fi
4068else
4069  ac_cpp_err=yes
4070fi
4071if test -z "$ac_cpp_err"; then
4072  ac_header_preproc=yes
4073else
4074  echo "$as_me: failed program was:" >&5
4075  cat conftest.$ac_ext >&5
4076  ac_header_preproc=no
4077fi
4078rm -f conftest.err conftest.$ac_ext
4079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080echo "${ECHO_T}$ac_header_preproc" >&6
4081
4082# So?  What about this header?
4083case $ac_header_compiler:$ac_header_preproc in
4084  yes:no )
4085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4089  no:yes )
4090    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4092    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4094    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4096esac
4097echo "$as_me:$LINENO: checking for $ac_header" >&5
4098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4099if eval "test \"\${$as_ac_Header+set}\" = set"; then
4100  echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102  eval "$as_ac_Header=$ac_header_preproc"
4103fi
4104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4106
4107fi
4108if test `eval echo '${'$as_ac_Header'}'` = yes; then
4109  cat >>confdefs.h <<_ACEOF
4110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4111_ACEOF
4112
4113fi
4114
4115done
4116
4117
4118echo "$as_me:$LINENO: checking for ssize_t" >&5
4119echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4120if test "${ac_cv_type_ssize_t+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  cat >conftest.$ac_ext <<_ACEOF
4124#line $LINENO "configure"
4125#include "confdefs.h"
4126$ac_includes_default
4127#ifdef F77_DUMMY_MAIN
4128#  ifdef __cplusplus
4129     extern "C"
4130#  endif
4131   int F77_DUMMY_MAIN() { return 1; }
4132#endif
4133int
4134main ()
4135{
4136if ((ssize_t *) 0)
4137  return 0;
4138if (sizeof (ssize_t))
4139  return 0;
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext
4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146  (eval $ac_compile) 2>&5
4147  ac_status=$?
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); } &&
4150         { ac_try='test -s conftest.$ac_objext'
4151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152  (eval $ac_try) 2>&5
4153  ac_status=$?
4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155  (exit $ac_status); }; }; then
4156  ac_cv_type_ssize_t=yes
4157else
4158  echo "$as_me: failed program was:" >&5
4159cat conftest.$ac_ext >&5
4160ac_cv_type_ssize_t=no
4161fi
4162rm -f conftest.$ac_objext conftest.$ac_ext
4163fi
4164echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4165echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4166if test $ac_cv_type_ssize_t = yes; then
4167  :
4168else
4169
4170cat >>confdefs.h <<_ACEOF
4171#define ssize_t int
4172_ACEOF
4173
4174fi
4175
4176echo "$as_me:$LINENO: checking for socklen_t" >&5
4177echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4178if test "${ac_cv_type_socklen_t+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181
4182  cat >conftest.$ac_ext <<_ACEOF
4183#line $LINENO "configure"
4184#include "confdefs.h"
4185#include <sys/types.h>
4186   #include <sys/socket.h>
4187#ifdef F77_DUMMY_MAIN
4188#  ifdef __cplusplus
4189     extern "C"
4190#  endif
4191   int F77_DUMMY_MAIN() { return 1; }
4192#endif
4193int
4194main ()
4195{
4196socklen_t len = 42; return 0;
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext
4202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203  (eval $ac_compile) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); } &&
4207         { ac_try='test -s conftest.$ac_objext'
4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209  (eval $ac_try) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; }; then
4213  ac_cv_type_socklen_t=yes
4214else
4215  echo "$as_me: failed program was:" >&5
4216cat conftest.$ac_ext >&5
4217ac_cv_type_socklen_t=no
4218fi
4219rm -f conftest.$ac_objext conftest.$ac_ext
4220
4221fi
4222echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4223echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4224  if test $ac_cv_type_socklen_t != yes; then
4225
4226cat >>confdefs.h <<\_ACEOF
4227#define socklen_t int
4228_ACEOF
4229
4230  fi
4231
4232
4233echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
4234echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
4235if test "${ac_cv_struct_sa_len+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  cat >conftest.$ac_ext <<_ACEOF
4239#line $LINENO "configure"
4240#include "confdefs.h"
4241
4242#include <sys/types.h>
4243#include <sys/socket.h>
4244
4245#ifdef F77_DUMMY_MAIN
4246#  ifdef __cplusplus
4247     extern "C"
4248#  endif
4249   int F77_DUMMY_MAIN() { return 1; }
4250#endif
4251int
4252main ()
4253{
4254
4255struct sockaddr s; s.sa_len;
4256
4257  ;
4258  return 0;
4259}
4260_ACEOF
4261rm -f conftest.$ac_objext
4262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263  (eval $ac_compile) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } &&
4267         { ac_try='test -s conftest.$ac_objext'
4268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269  (eval $ac_try) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); }; }; then
4273  ac_cv_struct_sa_len=yes
4274else
4275  echo "$as_me: failed program was:" >&5
4276cat conftest.$ac_ext >&5
4277ac_cv_struct_sa_len=no
4278fi
4279rm -f conftest.$ac_objext conftest.$ac_ext
4280fi
4281echo "$as_me:$LINENO: result: $ac_cv_struct_sa_len" >&5
4282echo "${ECHO_T}$ac_cv_struct_sa_len" >&6
4283if test $ac_cv_struct_sa_len = yes; then
4284
4285cat >>confdefs.h <<\_ACEOF
4286#define HAVE_SA_LEN
4287_ACEOF
4288
4289fi
4290
4291
4292
4293echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
4294echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
4295if test "${ac_cv_cxx_namespaces+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298
4299
4300 ac_ext=cc
4301ac_cpp='$CXXCPP $CPPFLAGS'
4302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4305
4306 cat >conftest.$ac_ext <<_ACEOF
4307#line $LINENO "configure"
4308#include "confdefs.h"
4309namespace Outer { namespace Inner { int i = 0; }}
4310#ifdef F77_DUMMY_MAIN
4311#  ifdef __cplusplus
4312     extern "C"
4313#  endif
4314   int F77_DUMMY_MAIN() { return 1; }
4315#endif
4316int
4317main ()
4318{
4319using namespace Outer::Inner; return i;
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326  (eval $ac_compile) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); } &&
4330         { ac_try='test -s conftest.$ac_objext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  ac_cv_cxx_namespaces=yes
4337else
4338  echo "$as_me: failed program was:" >&5
4339cat conftest.$ac_ext >&5
4340ac_cv_cxx_namespaces=no
4341fi
4342rm -f conftest.$ac_objext conftest.$ac_ext
4343 ac_ext=c
4344ac_cpp='$CPP $CPPFLAGS'
4345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350fi
4351echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
4352echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
4353if test "$ac_cv_cxx_namespaces" = yes; then
4354
4355cat >>confdefs.h <<\_ACEOF
4356#define HAVE_NAMESPACES
4357_ACEOF
4358
4359fi
4360
4361if test $ac_cv_cxx_namespaces = "no"; then
4362	{ { echo "$as_me:$LINENO: error: jfk needs a C++ compiler that supports namespaces!" >&5
4363echo "$as_me: error: jfk needs a C++ compiler that supports namespaces!" >&2;}
4364   { (exit 1); exit 1; }; }
4365fi
4366echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
4367echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
4368if test "${ac_cv_cxx_have_sstream+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371
4372
4373
4374 ac_ext=cc
4375ac_cpp='$CXXCPP $CPPFLAGS'
4376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4379
4380 cat >conftest.$ac_ext <<_ACEOF
4381#line $LINENO "configure"
4382#include "confdefs.h"
4383#include <sstream>
4384#ifdef HAVE_NAMESPACES
4385using namespace std;
4386#endif
4387#ifdef F77_DUMMY_MAIN
4388#  ifdef __cplusplus
4389     extern "C"
4390#  endif
4391   int F77_DUMMY_MAIN() { return 1; }
4392#endif
4393int
4394main ()
4395{
4396stringstream message; message << "Hello"; return 0;
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401rm -f conftest.$ac_objext
4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403  (eval $ac_compile) 2>&5
4404  ac_status=$?
4405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406  (exit $ac_status); } &&
4407         { ac_try='test -s conftest.$ac_objext'
4408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }; }; then
4413  ac_cv_cxx_have_sstream=yes
4414else
4415  echo "$as_me: failed program was:" >&5
4416cat conftest.$ac_ext >&5
4417ac_cv_cxx_have_sstream=no
4418fi
4419rm -f conftest.$ac_objext conftest.$ac_ext
4420 ac_ext=c
4421ac_cpp='$CPP $CPPFLAGS'
4422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425
4426
4427fi
4428echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sstream" >&5
4429echo "${ECHO_T}$ac_cv_cxx_have_sstream" >&6
4430if test "$ac_cv_cxx_have_sstream" = yes; then
4431
4432cat >>confdefs.h <<\_ACEOF
4433#define HAVE_SSTREAM
4434_ACEOF
4435
4436fi
4437
4438if test $ac_cv_cxx_have_sstream = "no"; then
4439	{ { echo "$as_me:$LINENO: error: jfk needs a C++ compiler that supports stringstreams!" >&5
4440echo "$as_me: error: jfk needs a C++ compiler that supports stringstreams!" >&2;}
4441   { (exit 1); exit 1; }; }
4442fi
4443echo "$as_me:$LINENO: checking whether std::string::compare() has the correct signature" >&5
4444echo $ECHO_N "checking whether std::string::compare() has the correct signature... $ECHO_C" >&6
4445if test "${ac_cv_cxx_have_std_compare+set}" = set; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448
4449
4450
4451 ac_ext=cc
4452ac_cpp='$CXXCPP $CPPFLAGS'
4453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4456
4457 cat >conftest.$ac_ext <<_ACEOF
4458#line $LINENO "configure"
4459#include "confdefs.h"
4460
4461#include <string>
4462#ifdef HAVE_NAMESPACES
4463using namespace std;
4464#endif
4465
4466#ifdef F77_DUMMY_MAIN
4467#  ifdef __cplusplus
4468     extern "C"
4469#  endif
4470   int F77_DUMMY_MAIN() { return 1; }
4471#endif
4472int
4473main ()
4474{
4475
4476string s = "foobar";
4477return s.compare(0, 3, "foo");
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483rm -f conftest.$ac_objext
4484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485  (eval $ac_compile) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); } &&
4489         { ac_try='test -s conftest.$ac_objext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  ac_cv_cxx_have_std_compare=yes
4496else
4497  echo "$as_me: failed program was:" >&5
4498cat conftest.$ac_ext >&5
4499ac_cv_cxx_have_std_compare=no
4500fi
4501rm -f conftest.$ac_objext conftest.$ac_ext
4502 ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507
4508
4509fi
4510echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_compare" >&5
4511echo "${ECHO_T}$ac_cv_cxx_have_std_compare" >&6
4512if test "$ac_cv_cxx_have_std_compare" = yes; then
4513
4514cat >>confdefs.h <<\_ACEOF
4515#define HAVE_STD_COMPARE
4516_ACEOF
4517
4518fi
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528for ac_func in gettimeofday gethostbyname2 fcntl nanosleep poll select \
4529	setsockopt
4530do
4531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4532echo "$as_me:$LINENO: checking for $ac_func" >&5
4533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4534if eval "test \"\${$as_ac_var+set}\" = set"; then
4535  echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537  cat >conftest.$ac_ext <<_ACEOF
4538#line $LINENO "configure"
4539#include "confdefs.h"
4540/* System header to define __stub macros and hopefully few prototypes,
4541    which can conflict with char $ac_func (); below.  */
4542#include <assert.h>
4543/* Override any gcc2 internal prototype to avoid an error.  */
4544#ifdef __cplusplus
4545extern "C"
4546#endif
4547/* We use char because int might match the return type of a gcc2
4548   builtin and then its argument prototype would still apply.  */
4549char $ac_func ();
4550char (*f) ();
4551
4552#ifdef F77_DUMMY_MAIN
4553#  ifdef __cplusplus
4554     extern "C"
4555#  endif
4556   int F77_DUMMY_MAIN() { return 1; }
4557#endif
4558int
4559main ()
4560{
4561/* The GNU C library defines this for functions which it implements
4562    to always fail with ENOSYS.  Some functions are actually named
4563    something starting with __ and the normal name is an alias.  */
4564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565choke me
4566#else
4567f = $ac_func;
4568#endif
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext conftest$ac_exeext
4575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576  (eval $ac_link) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); } &&
4580         { ac_try='test -s conftest$ac_exeext'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  eval "$as_ac_var=yes"
4587else
4588  echo "$as_me: failed program was:" >&5
4589cat conftest.$ac_ext >&5
4590eval "$as_ac_var=no"
4591fi
4592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593fi
4594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596if test `eval echo '${'$as_ac_var'}'` = yes; then
4597  cat >>confdefs.h <<_ACEOF
4598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4599_ACEOF
4600
4601fi
4602done
4603
4604
4605
4606
4607for ac_func in getaddrinfo inet_ntop inet_pton
4608do
4609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4610echo "$as_me:$LINENO: checking for $ac_func" >&5
4611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4612if eval "test \"\${$as_ac_var+set}\" = set"; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  cat >conftest.$ac_ext <<_ACEOF
4616#line $LINENO "configure"
4617#include "confdefs.h"
4618/* System header to define __stub macros and hopefully few prototypes,
4619    which can conflict with char $ac_func (); below.  */
4620#include <assert.h>
4621/* Override any gcc2 internal prototype to avoid an error.  */
4622#ifdef __cplusplus
4623extern "C"
4624#endif
4625/* We use char because int might match the return type of a gcc2
4626   builtin and then its argument prototype would still apply.  */
4627char $ac_func ();
4628char (*f) ();
4629
4630#ifdef F77_DUMMY_MAIN
4631#  ifdef __cplusplus
4632     extern "C"
4633#  endif
4634   int F77_DUMMY_MAIN() { return 1; }
4635#endif
4636int
4637main ()
4638{
4639/* The GNU C library defines this for functions which it implements
4640    to always fail with ENOSYS.  Some functions are actually named
4641    something starting with __ and the normal name is an alias.  */
4642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4643choke me
4644#else
4645f = $ac_func;
4646#endif
4647
4648  ;
4649  return 0;
4650}
4651_ACEOF
4652rm -f conftest.$ac_objext conftest$ac_exeext
4653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654  (eval $ac_link) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } &&
4658         { ac_try='test -s conftest$ac_exeext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  eval "$as_ac_var=yes"
4665else
4666  echo "$as_me: failed program was:" >&5
4667cat conftest.$ac_ext >&5
4668eval "$as_ac_var=no"
4669fi
4670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4671fi
4672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4674if test `eval echo '${'$as_ac_var'}'` = yes; then
4675  cat >>confdefs.h <<_ACEOF
4676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4677_ACEOF
4678
4679else
4680  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4681fi
4682done
4683
4684
4685
4686# Check whether --enable-debug or --disable-debug was given.
4687if test "${enable_debug+set}" = set; then
4688  enableval="$enable_debug"
4689  enable_debug=yes
4690else
4691  enable_debug=no
4692fi;
4693if test $enable_debug = yes; then
4694	CXXFLAGS="$CXXFLAGS -DDEBUG"
4695fi
4696
4697# Unfortunately, autoconf lacks a --docdir option. This is a workaround:
4698
4699# Check whether --with-docdir or --without-docdir was given.
4700if test "${with_docdir+set}" = set; then
4701  withval="$with_docdir"
4702   if test "x$withval" = xyes || test "x$withval" = xno; then
4703         docdir='${prefix}/share/doc/jfk'
4704      else
4705         docdir="$withval"
4706      fi
4707
4708else
4709   docdir='${prefix}/share/doc/jfk'
4710fi;
4711
4712
4713CXXFLAGS="$CXXFLAGS -W -Wall"
4714CFLAGS="$CFLAGS -W -Wall"
4715
4716# Output Files
4717ac_config_files="$ac_config_files Makefile art/Makefile art/bar/Makefile art/font/Makefile art/ground/Makefile art/splash/Makefile art/object/Makefile art/object/bullet/Makefile art/object/explosion/Makefile art/object/item/Makefile art/object/obstacle/Makefile art/object/person/Makefile art/object/weapon/Makefile doc/Makefile levels/Makefile macros/Makefile src/Makefile src/lib/Makefile src/server/Makefile src/client/Makefile"
4718ac_config_commands="$ac_config_commands default"
4719cat >confcache <<\_ACEOF
4720# This file is a shell script that caches the results of configure
4721# tests run on this system so they can be shared between configure
4722# scripts and configure runs, see configure's option --config-cache.
4723# It is not useful on other systems.  If it contains results you don't
4724# want to keep, you may remove or edit it.
4725#
4726# config.status only pays attention to the cache file if you give it
4727# the --recheck option to rerun configure.
4728#
4729# `ac_cv_env_foo' variables (set or unset) will be overriden when
4730# loading this file, other *unset* `ac_cv_foo' will be assigned the
4731# following values.
4732
4733_ACEOF
4734
4735# The following way of writing the cache mishandles newlines in values,
4736# but we know of no workaround that is simple, portable, and efficient.
4737# So, don't put newlines in cache variables' values.
4738# Ultrix sh set writes to stderr and can't be redirected directly,
4739# and sets the high bit in the cache file unless we assign to the vars.
4740{
4741  (set) 2>&1 |
4742    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4743    *ac_space=\ *)
4744      # `set' does not quote correctly, so add quotes (double-quote
4745      # substitution turns \\\\ into \\, and sed turns \\ into \).
4746      sed -n \
4747        "s/'/'\\\\''/g;
4748    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4749      ;;
4750    *)
4751      # `set' quotes correctly as required by POSIX, so do not add quotes.
4752      sed -n \
4753        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4754      ;;
4755    esac;
4756} |
4757  sed '
4758     t clear
4759     : clear
4760     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4761     t end
4762     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4763     : end' >>confcache
4764if cmp -s $cache_file confcache; then :; else
4765  if test -w $cache_file; then
4766    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4767    cat confcache >$cache_file
4768  else
4769    echo "not updating unwritable cache $cache_file"
4770  fi
4771fi
4772rm -f confcache
4773
4774test "x$prefix" = xNONE && prefix=$ac_default_prefix
4775# Let make expand exec_prefix.
4776test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4777
4778# VPATH may cause trouble with some makes, so we remove $(srcdir),
4779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4780# trailing colons and then remove the whole line if VPATH becomes empty
4781# (actually we leave an empty line to preserve line numbers).
4782if test "x$srcdir" = x.; then
4783  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
4784s/:*\$(srcdir):*/:/;
4785s/:*\${srcdir}:*/:/;
4786s/:*@srcdir@:*/:/;
4787s/^\([^=]*=[ 	]*\):*/\1/;
4788s/:*$//;
4789s/^[^=]*=[ 	]*$//;
4790}'
4791fi
4792
4793DEFS=-DHAVE_CONFIG_H
4794
4795
4796: ${CONFIG_STATUS=./config.status}
4797ac_clean_files_save=$ac_clean_files
4798ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4799{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4800echo "$as_me: creating $CONFIG_STATUS" >&6;}
4801cat >$CONFIG_STATUS <<_ACEOF
4802#! $SHELL
4803# Generated by $as_me.
4804# Run this file to recreate the current configuration.
4805# Compiler output produced by configure, useful for debugging
4806# configure, is in config.log if it exists.
4807
4808debug=false
4809SHELL=\${CONFIG_SHELL-$SHELL}
4810_ACEOF
4811
4812cat >>$CONFIG_STATUS <<\_ACEOF
4813
4814## --------------------- ##
4815## M4sh Initialization.  ##
4816## --------------------- ##
4817
4818# Be Bourne compatible
4819if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4820  emulate sh
4821  NULLCMD=:
4822elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4823  set -o posix
4824fi
4825
4826# NLS nuisances.
4827# Support unset when possible.
4828if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4829  as_unset=unset
4830else
4831  as_unset=false
4832fi
4833
4834(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4835    { $as_unset LANG || test "${LANG+set}" != set; } ||
4836      { LANG=C; export LANG; }
4837(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4838    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4839      { LC_ALL=C; export LC_ALL; }
4840(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4841    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4842      { LC_TIME=C; export LC_TIME; }
4843(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4844    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4845      { LC_CTYPE=C; export LC_CTYPE; }
4846(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4847    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4848      { LANGUAGE=C; export LANGUAGE; }
4849(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4850    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4851      { LC_COLLATE=C; export LC_COLLATE; }
4852(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4853    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4854      { LC_NUMERIC=C; export LC_NUMERIC; }
4855(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4856    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4857      { LC_MESSAGES=C; export LC_MESSAGES; }
4858
4859
4860# Name of the executable.
4861as_me=`(basename "$0") 2>/dev/null ||
4862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4863	 X"$0" : 'X\(//\)$' \| \
4864	 X"$0" : 'X\(/\)$' \| \
4865	 .     : '\(.\)' 2>/dev/null ||
4866echo X/"$0" |
4867    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4868  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4869  	  /^X\/\(\/\).*/{ s//\1/; q; }
4870  	  s/.*/./; q'`
4871
4872# PATH needs CR, and LINENO needs CR and PATH.
4873# Avoid depending upon Character Ranges.
4874as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4875as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4876as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4877as_cr_digits='0123456789'
4878as_cr_alnum=$as_cr_Letters$as_cr_digits
4879
4880# The user is always right.
4881if test "${PATH_SEPARATOR+set}" != set; then
4882  echo "#! /bin/sh" >conftest.sh
4883  echo  "exit 0"   >>conftest.sh
4884  chmod +x conftest.sh
4885  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4886    PATH_SEPARATOR=';'
4887  else
4888    PATH_SEPARATOR=:
4889  fi
4890  rm -f conftest.sh
4891fi
4892
4893
4894  as_lineno_1=$LINENO
4895  as_lineno_2=$LINENO
4896  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4897  test "x$as_lineno_1" != "x$as_lineno_2" &&
4898  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4899  # Find who we are.  Look in the path if we contain no path at all
4900  # relative or not.
4901  case $0 in
4902    *[\\/]* ) as_myself=$0 ;;
4903    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906  IFS=$as_save_IFS
4907  test -z "$as_dir" && as_dir=.
4908  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4909done
4910
4911       ;;
4912  esac
4913  # We did not find ourselves, most probably we were run as `sh COMMAND'
4914  # in which case we are not to be found in the path.
4915  if test "x$as_myself" = x; then
4916    as_myself=$0
4917  fi
4918  if test ! -f "$as_myself"; then
4919    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4920echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4921   { (exit 1); exit 1; }; }
4922  fi
4923  case $CONFIG_SHELL in
4924  '')
4925    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4927do
4928  IFS=$as_save_IFS
4929  test -z "$as_dir" && as_dir=.
4930  for as_base in sh bash ksh sh5; do
4931	 case $as_dir in
4932	 /*)
4933	   if ("$as_dir/$as_base" -c '
4934  as_lineno_1=$LINENO
4935  as_lineno_2=$LINENO
4936  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4937  test "x$as_lineno_1" != "x$as_lineno_2" &&
4938  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4939	     CONFIG_SHELL=$as_dir/$as_base
4940	     export CONFIG_SHELL
4941	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4942	   fi;;
4943	 esac
4944       done
4945done
4946;;
4947  esac
4948
4949  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4950  # uniformly replaced by the line number.  The first 'sed' inserts a
4951  # line-number line before each line; the second 'sed' does the real
4952  # work.  The second script uses 'N' to pair each line-number line
4953  # with the numbered line, and appends trailing '-' during
4954  # substitution so that $LINENO is not a special case at line end.
4955  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4956  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4957  sed '=' <$as_myself |
4958    sed '
4959      N
4960      s,$,-,
4961      : loop
4962      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4963      t loop
4964      s,-$,,
4965      s,^['$as_cr_digits']*\n,,
4966    ' >$as_me.lineno &&
4967  chmod +x $as_me.lineno ||
4968    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4969echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4970   { (exit 1); exit 1; }; }
4971
4972  # Don't try to exec as it changes $[0], causing all sort of problems
4973  # (the dirname of $[0] is not the place where we might find the
4974  # original and so on.  Autoconf is especially sensible to this).
4975  . ./$as_me.lineno
4976  # Exit status is that of the last command.
4977  exit
4978}
4979
4980
4981case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4982  *c*,-n*) ECHO_N= ECHO_C='
4983' ECHO_T='	' ;;
4984  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4985  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4986esac
4987
4988if expr a : '\(a\)' >/dev/null 2>&1; then
4989  as_expr=expr
4990else
4991  as_expr=false
4992fi
4993
4994rm -f conf$$ conf$$.exe conf$$.file
4995echo >conf$$.file
4996if ln -s conf$$.file conf$$ 2>/dev/null; then
4997  # We could just check for DJGPP; but this test a) works b) is more generic
4998  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4999  if test -f conf$$.exe; then
5000    # Don't use ln at all; we don't have any links
5001    as_ln_s='cp -p'
5002  else
5003    as_ln_s='ln -s'
5004  fi
5005elif ln conf$$.file conf$$ 2>/dev/null; then
5006  as_ln_s=ln
5007else
5008  as_ln_s='cp -p'
5009fi
5010rm -f conf$$ conf$$.exe conf$$.file
5011
5012as_executable_p="test -f"
5013
5014# Sed expression to map a string onto a valid CPP name.
5015as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5016
5017# Sed expression to map a string onto a valid variable name.
5018as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5019
5020
5021# IFS
5022# We need space, tab and new line, in precisely that order.
5023as_nl='
5024'
5025IFS=" 	$as_nl"
5026
5027# CDPATH.
5028$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5029
5030exec 6>&1
5031
5032# Open the log real soon, to keep \$[0] and so on meaningful, and to
5033# report actual input values of CONFIG_FILES etc. instead of their
5034# values after options handling.  Logging --version etc. is OK.
5035exec 5>>config.log
5036{
5037  echo
5038  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5039## Running $as_me. ##
5040_ASBOX
5041} >&5
5042cat >&5 <<_CSEOF
5043
5044This file was extended by $as_me, which was
5045generated by GNU Autoconf 2.53.  Invocation command line was
5046
5047  CONFIG_FILES    = $CONFIG_FILES
5048  CONFIG_HEADERS  = $CONFIG_HEADERS
5049  CONFIG_LINKS    = $CONFIG_LINKS
5050  CONFIG_COMMANDS = $CONFIG_COMMANDS
5051  $ $0 $@
5052
5053_CSEOF
5054echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5055echo >&5
5056_ACEOF
5057
5058# Files that config.status was made for.
5059if test -n "$ac_config_files"; then
5060  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5061fi
5062
5063if test -n "$ac_config_headers"; then
5064  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5065fi
5066
5067if test -n "$ac_config_links"; then
5068  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5069fi
5070
5071if test -n "$ac_config_commands"; then
5072  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5073fi
5074
5075cat >>$CONFIG_STATUS <<\_ACEOF
5076
5077ac_cs_usage="\
5078\`$as_me' instantiates files from templates according to the
5079current configuration.
5080
5081Usage: $0 [OPTIONS] [FILE]...
5082
5083  -h, --help       print this help, then exit
5084  -V, --version    print version number, then exit
5085  -d, --debug      don't remove temporary files
5086      --recheck    update $as_me by reconfiguring in the same conditions
5087  --file=FILE[:TEMPLATE]
5088                   instantiate the configuration file FILE
5089  --header=FILE[:TEMPLATE]
5090                   instantiate the configuration header FILE
5091
5092Configuration files:
5093$config_files
5094
5095Configuration headers:
5096$config_headers
5097
5098Configuration commands:
5099$config_commands
5100
5101Report bugs to <bug-autoconf@gnu.org>."
5102_ACEOF
5103
5104cat >>$CONFIG_STATUS <<_ACEOF
5105ac_cs_version="\\
5106config.status
5107configured by $0, generated by GNU Autoconf 2.53,
5108  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5109
5110Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5111Free Software Foundation, Inc.
5112This config.status script is free software; the Free Software Foundation
5113gives unlimited permission to copy, distribute and modify it."
5114srcdir=$srcdir
5115INSTALL="$INSTALL"
5116_ACEOF
5117
5118cat >>$CONFIG_STATUS <<\_ACEOF
5119# If no file are specified by the user, then we need to provide default
5120# value.  By we need to know if files were specified by the user.
5121ac_need_defaults=:
5122while test $# != 0
5123do
5124  case $1 in
5125  --*=*)
5126    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5127    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5128    shift
5129    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5130    shift
5131    ;;
5132  -*);;
5133  *) # This is not an option, so the user has probably given explicit
5134     # arguments.
5135     ac_need_defaults=false;;
5136  esac
5137
5138  case $1 in
5139  # Handling of the options.
5140_ACEOF
5141cat >>$CONFIG_STATUS <<_ACEOF
5142  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5143    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5144    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5145_ACEOF
5146cat >>$CONFIG_STATUS <<\_ACEOF
5147  --version | --vers* | -V )
5148    echo "$ac_cs_version"; exit 0 ;;
5149  --he | --h)
5150    # Conflict between --help and --header
5151    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5152Try \`$0 --help' for more information." >&5
5153echo "$as_me: error: ambiguous option: $1
5154Try \`$0 --help' for more information." >&2;}
5155   { (exit 1); exit 1; }; };;
5156  --help | --hel | -h )
5157    echo "$ac_cs_usage"; exit 0 ;;
5158  --debug | --d* | -d )
5159    debug=: ;;
5160  --file | --fil | --fi | --f )
5161    shift
5162    CONFIG_FILES="$CONFIG_FILES $1"
5163    ac_need_defaults=false;;
5164  --header | --heade | --head | --hea )
5165    shift
5166    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5167    ac_need_defaults=false;;
5168
5169  # This is an error.
5170  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5171Try \`$0 --help' for more information." >&5
5172echo "$as_me: error: unrecognized option: $1
5173Try \`$0 --help' for more information." >&2;}
5174   { (exit 1); exit 1; }; } ;;
5175
5176  *) ac_config_targets="$ac_config_targets $1" ;;
5177
5178  esac
5179  shift
5180done
5181
5182_ACEOF
5183
5184cat >>$CONFIG_STATUS <<_ACEOF
5185#
5186# INIT-COMMANDS section.
5187#
5188
5189AMDEP_TRUE="$AMDEP_TRUE"
5190ac_aux_dir="$ac_aux_dir"
5191
5192_ACEOF
5193
5194
5195
5196cat >>$CONFIG_STATUS <<\_ACEOF
5197for ac_config_target in $ac_config_targets
5198do
5199  case "$ac_config_target" in
5200  # Handling of arguments.
5201  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5202  "art/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/Makefile" ;;
5203  "art/bar/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/bar/Makefile" ;;
5204  "art/font/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/font/Makefile" ;;
5205  "art/ground/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/ground/Makefile" ;;
5206  "art/splash/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/splash/Makefile" ;;
5207  "art/object/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/Makefile" ;;
5208  "art/object/bullet/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/bullet/Makefile" ;;
5209  "art/object/explosion/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/explosion/Makefile" ;;
5210  "art/object/item/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/item/Makefile" ;;
5211  "art/object/obstacle/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/obstacle/Makefile" ;;
5212  "art/object/person/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/person/Makefile" ;;
5213  "art/object/weapon/Makefile" ) CONFIG_FILES="$CONFIG_FILES art/object/weapon/Makefile" ;;
5214  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5215  "levels/Makefile" ) CONFIG_FILES="$CONFIG_FILES levels/Makefile" ;;
5216  "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
5217  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5218  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
5219  "src/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
5220  "src/client/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/client/Makefile" ;;
5221  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5222  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5223  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5224  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5225echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5226   { (exit 1); exit 1; }; };;
5227  esac
5228done
5229
5230# If the user did not use the arguments to specify the items to instantiate,
5231# then the envvar interface is used.  Set only those that are not.
5232# We use the long form for the default assignment because of an extremely
5233# bizarre bug on SunOS 4.1.3.
5234if $ac_need_defaults; then
5235  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5236  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5237  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5238fi
5239
5240# Create a temporary directory, and hook for its removal unless debugging.
5241$debug ||
5242{
5243  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5244  trap '{ (exit 1); exit 1; }' 1 2 13 15
5245}
5246
5247# Create a (secure) tmp directory for tmp files.
5248: ${TMPDIR=/tmp}
5249{
5250  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5251  test -n "$tmp" && test -d "$tmp"
5252}  ||
5253{
5254  tmp=$TMPDIR/cs$$-$RANDOM
5255  (umask 077 && mkdir $tmp)
5256} ||
5257{
5258   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5259   { (exit 1); exit 1; }
5260}
5261
5262_ACEOF
5263
5264cat >>$CONFIG_STATUS <<_ACEOF
5265
5266#
5267# CONFIG_FILES section.
5268#
5269
5270# No need to generate the scripts if there are no CONFIG_FILES.
5271# This happens for instance when ./config.status config.h
5272if test -n "\$CONFIG_FILES"; then
5273  # Protect against being on the right side of a sed subst in config.status.
5274  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5275   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5276s,@SHELL@,$SHELL,;t t
5277s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5278s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5279s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5280s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5281s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5282s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5283s,@exec_prefix@,$exec_prefix,;t t
5284s,@prefix@,$prefix,;t t
5285s,@program_transform_name@,$program_transform_name,;t t
5286s,@bindir@,$bindir,;t t
5287s,@sbindir@,$sbindir,;t t
5288s,@libexecdir@,$libexecdir,;t t
5289s,@datadir@,$datadir,;t t
5290s,@sysconfdir@,$sysconfdir,;t t
5291s,@sharedstatedir@,$sharedstatedir,;t t
5292s,@localstatedir@,$localstatedir,;t t
5293s,@libdir@,$libdir,;t t
5294s,@includedir@,$includedir,;t t
5295s,@oldincludedir@,$oldincludedir,;t t
5296s,@infodir@,$infodir,;t t
5297s,@mandir@,$mandir,;t t
5298s,@build_alias@,$build_alias,;t t
5299s,@host_alias@,$host_alias,;t t
5300s,@target_alias@,$target_alias,;t t
5301s,@DEFS@,$DEFS,;t t
5302s,@ECHO_C@,$ECHO_C,;t t
5303s,@ECHO_N@,$ECHO_N,;t t
5304s,@ECHO_T@,$ECHO_T,;t t
5305s,@LIBS@,$LIBS,;t t
5306s,@build@,$build,;t t
5307s,@build_cpu@,$build_cpu,;t t
5308s,@build_vendor@,$build_vendor,;t t
5309s,@build_os@,$build_os,;t t
5310s,@host@,$host,;t t
5311s,@host_cpu@,$host_cpu,;t t
5312s,@host_vendor@,$host_vendor,;t t
5313s,@host_os@,$host_os,;t t
5314s,@target@,$target,;t t
5315s,@target_cpu@,$target_cpu,;t t
5316s,@target_vendor@,$target_vendor,;t t
5317s,@target_os@,$target_os,;t t
5318s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5319s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5320s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5321s,@PACKAGE@,$PACKAGE,;t t
5322s,@VERSION@,$VERSION,;t t
5323s,@EXEEXT@,$EXEEXT,;t t
5324s,@OBJEXT@,$OBJEXT,;t t
5325s,@ACLOCAL@,$ACLOCAL,;t t
5326s,@AUTOCONF@,$AUTOCONF,;t t
5327s,@AUTOMAKE@,$AUTOMAKE,;t t
5328s,@AUTOHEADER@,$AUTOHEADER,;t t
5329s,@MAKEINFO@,$MAKEINFO,;t t
5330s,@AMTAR@,$AMTAR,;t t
5331s,@install_sh@,$install_sh,;t t
5332s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5333s,@AWK@,$AWK,;t t
5334s,@SET_MAKE@,$SET_MAKE,;t t
5335s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5336s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5337s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5338s,@DEPDIR@,$DEPDIR,;t t
5339s,@CC@,$CC,;t t
5340s,@CFLAGS@,$CFLAGS,;t t
5341s,@LDFLAGS@,$LDFLAGS,;t t
5342s,@CPPFLAGS@,$CPPFLAGS,;t t
5343s,@ac_ct_CC@,$ac_ct_CC,;t t
5344s,@am__include@,$am__include,;t t
5345s,@am__quote@,$am__quote,;t t
5346s,@CCDEPMODE@,$CCDEPMODE,;t t
5347s,@CXX@,$CXX,;t t
5348s,@CXXFLAGS@,$CXXFLAGS,;t t
5349s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5350s,@CXXDEPMODE@,$CXXDEPMODE,;t t
5351s,@LN_S@,$LN_S,;t t
5352s,@RANLIB@,$RANLIB,;t t
5353s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5354s,@SDL_CONFIG@,$SDL_CONFIG,;t t
5355s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
5356s,@SDL_LIBS@,$SDL_LIBS,;t t
5357s,@BUILD_CLIENT_TRUE@,$BUILD_CLIENT_TRUE,;t t
5358s,@BUILD_CLIENT_FALSE@,$BUILD_CLIENT_FALSE,;t t
5359s,@CPP@,$CPP,;t t
5360s,@LIBOBJS@,$LIBOBJS,;t t
5361s,@docdir@,$docdir,;t t
5362CEOF
5363
5364_ACEOF
5365
5366  cat >>$CONFIG_STATUS <<\_ACEOF
5367  # Split the substitutions into bite-sized pieces for seds with
5368  # small command number limits, like on Digital OSF/1 and HP-UX.
5369  ac_max_sed_lines=48
5370  ac_sed_frag=1 # Number of current file.
5371  ac_beg=1 # First line for current file.
5372  ac_end=$ac_max_sed_lines # Line after last line for current file.
5373  ac_more_lines=:
5374  ac_sed_cmds=
5375  while $ac_more_lines; do
5376    if test $ac_beg -gt 1; then
5377      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5378    else
5379      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5380    fi
5381    if test ! -s $tmp/subs.frag; then
5382      ac_more_lines=false
5383    else
5384      # The purpose of the label and of the branching condition is to
5385      # speed up the sed processing (if there are no `@' at all, there
5386      # is no need to browse any of the substitutions).
5387      # These are the two extra sed commands mentioned above.
5388      (echo ':t
5389  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5390      if test -z "$ac_sed_cmds"; then
5391  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5392      else
5393  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5394      fi
5395      ac_sed_frag=`expr $ac_sed_frag + 1`
5396      ac_beg=$ac_end
5397      ac_end=`expr $ac_end + $ac_max_sed_lines`
5398    fi
5399  done
5400  if test -z "$ac_sed_cmds"; then
5401    ac_sed_cmds=cat
5402  fi
5403fi # test -n "$CONFIG_FILES"
5404
5405_ACEOF
5406cat >>$CONFIG_STATUS <<\_ACEOF
5407for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5408  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5409  case $ac_file in
5410  - | *:- | *:-:* ) # input from stdin
5411        cat >$tmp/stdin
5412        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5413        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5414  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5415        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5416  * )   ac_file_in=$ac_file.in ;;
5417  esac
5418
5419  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5420  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5422         X"$ac_file" : 'X\(//\)[^/]' \| \
5423         X"$ac_file" : 'X\(//\)$' \| \
5424         X"$ac_file" : 'X\(/\)' \| \
5425         .     : '\(.\)' 2>/dev/null ||
5426echo X"$ac_file" |
5427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5428  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5429  	  /^X\(\/\/\)$/{ s//\1/; q; }
5430  	  /^X\(\/\).*/{ s//\1/; q; }
5431  	  s/.*/./; q'`
5432  { case "$ac_dir" in
5433  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5434  *)                      as_incr_dir=.;;
5435esac
5436as_dummy="$ac_dir"
5437for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5438  case $as_mkdir_dir in
5439    # Skip DOS drivespec
5440    ?:) as_incr_dir=$as_mkdir_dir ;;
5441    *)
5442      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5443      test -d "$as_incr_dir" ||
5444        mkdir "$as_incr_dir" ||
5445	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5446echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5447   { (exit 1); exit 1; }; }
5448    ;;
5449  esac
5450done; }
5451
5452  ac_builddir=.
5453
5454if test "$ac_dir" != .; then
5455  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5456  # A "../" for each directory in $ac_dir_suffix.
5457  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5458else
5459  ac_dir_suffix= ac_top_builddir=
5460fi
5461
5462case $srcdir in
5463  .)  # No --srcdir option.  We are building in place.
5464    ac_srcdir=.
5465    if test -z "$ac_top_builddir"; then
5466       ac_top_srcdir=.
5467    else
5468       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5469    fi ;;
5470  [\\/]* | ?:[\\/]* )  # Absolute path.
5471    ac_srcdir=$srcdir$ac_dir_suffix;
5472    ac_top_srcdir=$srcdir ;;
5473  *) # Relative path.
5474    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5475    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5476esac
5477# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5478# absolute.
5479ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5480ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5481ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5482ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5483
5484
5485  case $INSTALL in
5486  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5487  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5488  esac
5489
5490  if test x"$ac_file" != x-; then
5491    { echo "$as_me:$LINENO: creating $ac_file" >&5
5492echo "$as_me: creating $ac_file" >&6;}
5493    rm -f "$ac_file"
5494  fi
5495  # Let's still pretend it is `configure' which instantiates (i.e., don't
5496  # use $as_me), people would be surprised to read:
5497  #    /* config.h.  Generated by config.status.  */
5498  if test x"$ac_file" = x-; then
5499    configure_input=
5500  else
5501    configure_input="$ac_file.  "
5502  fi
5503  configure_input=$configure_input"Generated from `echo $ac_file_in |
5504                                     sed 's,.*/,,'` by configure."
5505
5506  # First look for the input files in the build tree, otherwise in the
5507  # src tree.
5508  ac_file_inputs=`IFS=:
5509    for f in $ac_file_in; do
5510      case $f in
5511      -) echo $tmp/stdin ;;
5512      [\\/$]*)
5513         # Absolute (can't be DOS-style, as IFS=:)
5514         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5515echo "$as_me: error: cannot find input file: $f" >&2;}
5516   { (exit 1); exit 1; }; }
5517         echo $f;;
5518      *) # Relative
5519         if test -f "$f"; then
5520           # Build tree
5521           echo $f
5522         elif test -f "$srcdir/$f"; then
5523           # Source tree
5524           echo $srcdir/$f
5525         else
5526           # /dev/null tree
5527           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5528echo "$as_me: error: cannot find input file: $f" >&2;}
5529   { (exit 1); exit 1; }; }
5530         fi;;
5531      esac
5532    done` || { (exit 1); exit 1; }
5533_ACEOF
5534cat >>$CONFIG_STATUS <<_ACEOF
5535  sed "$ac_vpsub
5536$extrasub
5537_ACEOF
5538cat >>$CONFIG_STATUS <<\_ACEOF
5539:t
5540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5541s,@configure_input@,$configure_input,;t t
5542s,@srcdir@,$ac_srcdir,;t t
5543s,@abs_srcdir@,$ac_abs_srcdir,;t t
5544s,@top_srcdir@,$ac_top_srcdir,;t t
5545s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5546s,@builddir@,$ac_builddir,;t t
5547s,@abs_builddir@,$ac_abs_builddir,;t t
5548s,@top_builddir@,$ac_top_builddir,;t t
5549s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5550s,@INSTALL@,$ac_INSTALL,;t t
5551" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5552  rm -f $tmp/stdin
5553  if test x"$ac_file" != x-; then
5554    mv $tmp/out $ac_file
5555  else
5556    cat $tmp/out
5557    rm -f $tmp/out
5558  fi
5559
5560done
5561_ACEOF
5562cat >>$CONFIG_STATUS <<\_ACEOF
5563
5564#
5565# CONFIG_HEADER section.
5566#
5567
5568# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5569# NAME is the cpp macro being defined and VALUE is the value it is being given.
5570#
5571# ac_d sets the value in "#define NAME VALUE" lines.
5572ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
5573ac_dB='[ 	].*$,\1#\2'
5574ac_dC=' '
5575ac_dD=',;t'
5576# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5577ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5578ac_uB='$,\1#\2define\3'
5579ac_uC=' '
5580ac_uD=',;t'
5581
5582for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5583  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5584  case $ac_file in
5585  - | *:- | *:-:* ) # input from stdin
5586        cat >$tmp/stdin
5587        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5588        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5589  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5590        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5591  * )   ac_file_in=$ac_file.in ;;
5592  esac
5593
5594  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5595echo "$as_me: creating $ac_file" >&6;}
5596
5597  # First look for the input files in the build tree, otherwise in the
5598  # src tree.
5599  ac_file_inputs=`IFS=:
5600    for f in $ac_file_in; do
5601      case $f in
5602      -) echo $tmp/stdin ;;
5603      [\\/$]*)
5604         # Absolute (can't be DOS-style, as IFS=:)
5605         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5606echo "$as_me: error: cannot find input file: $f" >&2;}
5607   { (exit 1); exit 1; }; }
5608         echo $f;;
5609      *) # Relative
5610         if test -f "$f"; then
5611           # Build tree
5612           echo $f
5613         elif test -f "$srcdir/$f"; then
5614           # Source tree
5615           echo $srcdir/$f
5616         else
5617           # /dev/null tree
5618           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5619echo "$as_me: error: cannot find input file: $f" >&2;}
5620   { (exit 1); exit 1; }; }
5621         fi;;
5622      esac
5623    done` || { (exit 1); exit 1; }
5624  # Remove the trailing spaces.
5625  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
5626
5627_ACEOF
5628
5629# Transform confdefs.h into two sed scripts, `conftest.defines' and
5630# `conftest.undefs', that substitutes the proper values into
5631# config.h.in to produce config.h.  The first handles `#define'
5632# templates, and the second `#undef' templates.
5633# And first: Protect against being on the right side of a sed subst in
5634# config.status.  Protect against being in an unquoted here document
5635# in config.status.
5636rm -f conftest.defines conftest.undefs
5637# Using a here document instead of a string reduces the quoting nightmare.
5638# Putting comments in sed scripts is not portable.
5639#
5640# `end' is used to avoid that the second main sed command (meant for
5641# 0-ary CPP macros) applies to n-ary macro definitions.
5642# See the Autoconf documentation for `clear'.
5643cat >confdef2sed.sed <<\_ACEOF
5644s/[\\&,]/\\&/g
5645s,[\\$`],\\&,g
5646t clear
5647: clear
5648s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5649t end
5650s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5651: end
5652_ACEOF
5653# If some macros were called several times there might be several times
5654# the same #defines, which is useless.  Nevertheless, we may not want to
5655# sort them, since we want the *last* AC-DEFINE to be honored.
5656uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5657sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5658rm -f confdef2sed.sed
5659
5660# This sed command replaces #undef with comments.  This is necessary, for
5661# example, in the case of _POSIX_SOURCE, which is predefined and required
5662# on some systems where configure will not decide to define it.
5663cat >>conftest.undefs <<\_ACEOF
5664s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5665_ACEOF
5666
5667# Break up conftest.defines because some shells have a limit on the size
5668# of here documents, and old seds have small limits too (100 cmds).
5669echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5670echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5671echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5672echo '  :' >>$CONFIG_STATUS
5673rm -f conftest.tail
5674while grep . conftest.defines >/dev/null
5675do
5676  # Write a limited-size here document to $tmp/defines.sed.
5677  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5678  # Speed up: don't consider the non `#define' lines.
5679  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
5680  # Work around the forget-to-reset-the-flag bug.
5681  echo 't clr' >>$CONFIG_STATUS
5682  echo ': clr' >>$CONFIG_STATUS
5683  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5684  echo 'CEOF
5685  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5686  rm -f $tmp/in
5687  mv $tmp/out $tmp/in
5688' >>$CONFIG_STATUS
5689  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5690  rm -f conftest.defines
5691  mv conftest.tail conftest.defines
5692done
5693rm -f conftest.defines
5694echo '  fi # egrep' >>$CONFIG_STATUS
5695echo >>$CONFIG_STATUS
5696
5697# Break up conftest.undefs because some shells have a limit on the size
5698# of here documents, and old seds have small limits too (100 cmds).
5699echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5700rm -f conftest.tail
5701while grep . conftest.undefs >/dev/null
5702do
5703  # Write a limited-size here document to $tmp/undefs.sed.
5704  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5705  # Speed up: don't consider the non `#undef'
5706  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
5707  # Work around the forget-to-reset-the-flag bug.
5708  echo 't clr' >>$CONFIG_STATUS
5709  echo ': clr' >>$CONFIG_STATUS
5710  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5711  echo 'CEOF
5712  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5713  rm -f $tmp/in
5714  mv $tmp/out $tmp/in
5715' >>$CONFIG_STATUS
5716  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5717  rm -f conftest.undefs
5718  mv conftest.tail conftest.undefs
5719done
5720rm -f conftest.undefs
5721
5722cat >>$CONFIG_STATUS <<\_ACEOF
5723  # Let's still pretend it is `configure' which instantiates (i.e., don't
5724  # use $as_me), people would be surprised to read:
5725  #    /* config.h.  Generated by config.status.  */
5726  if test x"$ac_file" = x-; then
5727    echo "/* Generated by configure.  */" >$tmp/config.h
5728  else
5729    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5730  fi
5731  cat $tmp/in >>$tmp/config.h
5732  rm -f $tmp/in
5733  if test x"$ac_file" != x-; then
5734    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5735      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5736echo "$as_me: $ac_file is unchanged" >&6;}
5737    else
5738      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5739$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5740         X"$ac_file" : 'X\(//\)[^/]' \| \
5741         X"$ac_file" : 'X\(//\)$' \| \
5742         X"$ac_file" : 'X\(/\)' \| \
5743         .     : '\(.\)' 2>/dev/null ||
5744echo X"$ac_file" |
5745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5746  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5747  	  /^X\(\/\/\)$/{ s//\1/; q; }
5748  	  /^X\(\/\).*/{ s//\1/; q; }
5749  	  s/.*/./; q'`
5750      { case "$ac_dir" in
5751  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5752  *)                      as_incr_dir=.;;
5753esac
5754as_dummy="$ac_dir"
5755for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5756  case $as_mkdir_dir in
5757    # Skip DOS drivespec
5758    ?:) as_incr_dir=$as_mkdir_dir ;;
5759    *)
5760      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5761      test -d "$as_incr_dir" ||
5762        mkdir "$as_incr_dir" ||
5763	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5764echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5765   { (exit 1); exit 1; }; }
5766    ;;
5767  esac
5768done; }
5769
5770      rm -f $ac_file
5771      mv $tmp/config.h $ac_file
5772    fi
5773  else
5774    cat $tmp/config.h
5775    rm -f $tmp/config.h
5776  fi
5777  # Run the commands associated with the file.
5778  case $ac_file in
5779    config.h ) # update the timestamp
5780echo timestamp >"./stamp-h1"
5781 ;;
5782  esac
5783done
5784_ACEOF
5785cat >>$CONFIG_STATUS <<\_ACEOF
5786
5787#
5788# CONFIG_COMMANDS section.
5789#
5790for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5791  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5792  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5793  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5794$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5795         X"$ac_dest" : 'X\(//\)[^/]' \| \
5796         X"$ac_dest" : 'X\(//\)$' \| \
5797         X"$ac_dest" : 'X\(/\)' \| \
5798         .     : '\(.\)' 2>/dev/null ||
5799echo X"$ac_dest" |
5800    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5801  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5802  	  /^X\(\/\/\)$/{ s//\1/; q; }
5803  	  /^X\(\/\).*/{ s//\1/; q; }
5804  	  s/.*/./; q'`
5805  ac_builddir=.
5806
5807if test "$ac_dir" != .; then
5808  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5809  # A "../" for each directory in $ac_dir_suffix.
5810  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5811else
5812  ac_dir_suffix= ac_top_builddir=
5813fi
5814
5815case $srcdir in
5816  .)  # No --srcdir option.  We are building in place.
5817    ac_srcdir=.
5818    if test -z "$ac_top_builddir"; then
5819       ac_top_srcdir=.
5820    else
5821       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5822    fi ;;
5823  [\\/]* | ?:[\\/]* )  # Absolute path.
5824    ac_srcdir=$srcdir$ac_dir_suffix;
5825    ac_top_srcdir=$srcdir ;;
5826  *) # Relative path.
5827    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5828    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5829esac
5830# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5831# absolute.
5832ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5833ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5834ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5835ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5836
5837
5838  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5839echo "$as_me: executing $ac_dest commands" >&6;}
5840  case $ac_dest in
5841    default-1 )
5842test x"$AMDEP_TRUE" != x"" ||
5843for mf in $CONFIG_FILES; do
5844  case "$mf" in
5845  Makefile) dirpart=.;;
5846  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
5847  *) continue;;
5848  esac
5849  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5850  # Extract the definition of DEP_FILES from the Makefile without
5851  # running `make'.
5852  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5853  test -z "$DEPDIR" && continue
5854  # When using ansi2knr, U may be empty or an underscore; expand it
5855  U=`sed -n -e '/^U = / s///p' < "$mf"`
5856  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5857  # We invoke sed twice because it is the simplest approach to
5858  # changing $(DEPDIR) to its actual value in the expansion.
5859  for file in `sed -n -e '
5860    /^DEP_FILES = .*\\\\$/ {
5861      s/^DEP_FILES = //
5862      :loop
5863	s/\\\\$//
5864	p
5865	n
5866	/\\\\$/ b loop
5867      p
5868    }
5869    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5870       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5871    # Make sure the directory exists.
5872    test -f "$dirpart/$file" && continue
5873    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
5874    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
5875    # echo "creating $dirpart/$file"
5876    echo '# dummy' > "$dirpart/$file"
5877  done
5878done
5879 ;;
5880    default )
5881	echo timestamp > stamp-h
5882 ;;
5883  esac
5884done
5885_ACEOF
5886
5887cat >>$CONFIG_STATUS <<\_ACEOF
5888
5889{ (exit 0); exit 0; }
5890_ACEOF
5891chmod +x $CONFIG_STATUS
5892ac_clean_files=$ac_clean_files_save
5893
5894
5895# configure is writing to config.log, and then calls config.status.
5896# config.status does its own redirection, appending to config.log.
5897# Unfortunately, on DOS this fails, as config.log is still kept open
5898# by configure, so config.status won't be able to write to it; its
5899# output is simply discarded.  So we exec the FD to /dev/null,
5900# effectively closing config.log, so it can be properly (re)opened and
5901# appended to by config.status.  When coming back to configure, we
5902# need to make the FD available again.
5903if test "$no_create" != yes; then
5904  ac_cs_success=:
5905  exec 5>/dev/null
5906  $SHELL $CONFIG_STATUS || ac_cs_success=false
5907  exec 5>>config.log
5908  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5909  # would make configure fail if this is the last instruction.
5910  $ac_cs_success || { (exit 1); exit 1; }
5911fi
5912
5913