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