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