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