Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 2625

Last change on this file since 2625 was 2190, checked in by bensch, 20 years ago

orxonox/trunk: merged and copied all files from branches/chris into trunk. it all seems to be in propper order.

  • Property svn:executable set to *
File size: 223.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha.
4#
5# Report bugs to <orxonox-dev@mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.1-pre-alpha'
273PACKAGE_STRING='orxonox 0.1-pre-alpha'
274PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MSBITFIELDS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848_ACEOF
849fi
850
851if test -n "$ac_init_help"; then
852  case $ac_init_help in
853     short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";;
854   esac
855  cat <<\_ACEOF
856
857Optional Features:
858  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860  --disable-dependency-tracking Speeds up one-time builds
861  --enable-dependency-tracking  Do not reject slow dependency extractors
862
863Some influential environment variables:
864  CXX         C++ compiler command
865  CXXFLAGS    C++ compiler flags
866  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
867              nonstandard directory <lib dir>
868  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
869              headers in a nonstandard directory <include dir>
870  CC          C compiler command
871  CFLAGS      C compiler flags
872  CPP         C preprocessor
873
874Use these variables to override the choices made by `configure' or to help
875it to find libraries and programs with nonstandard names/locations.
876
877Report bugs to <orxonox-dev@mail.datacore.ch>.
878_ACEOF
879fi
880
881if test "$ac_init_help" = "recursive"; then
882  # If there are subdirs, report their specific --help.
883  ac_popdir=`pwd`
884  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885    test -d $ac_dir || continue
886    ac_builddir=.
887
888if test "$ac_dir" != .; then
889  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890  # A "../" for each directory in $ac_dir_suffix.
891  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892else
893  ac_dir_suffix= ac_top_builddir=
894fi
895
896case $srcdir in
897  .)  # No --srcdir option.  We are building in place.
898    ac_srcdir=.
899    if test -z "$ac_top_builddir"; then
900       ac_top_srcdir=.
901    else
902       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903    fi ;;
904  [\\/]* | ?:[\\/]* )  # Absolute path.
905    ac_srcdir=$srcdir$ac_dir_suffix;
906    ac_top_srcdir=$srcdir ;;
907  *) # Relative path.
908    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909    ac_top_srcdir=$ac_top_builddir$srcdir ;;
910esac
911
912# Do not use `cd foo && pwd` to compute absolute paths, because
913# the directories may not exist.
914case `pwd` in
915.) ac_abs_builddir="$ac_dir";;
916*)
917  case "$ac_dir" in
918  .) ac_abs_builddir=`pwd`;;
919  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920  *) ac_abs_builddir=`pwd`/"$ac_dir";;
921  esac;;
922esac
923case $ac_abs_builddir in
924.) ac_abs_top_builddir=${ac_top_builddir}.;;
925*)
926  case ${ac_top_builddir}. in
927  .) ac_abs_top_builddir=$ac_abs_builddir;;
928  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930  esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_srcdir=$ac_srcdir;;
934*)
935  case $ac_srcdir in
936  .) ac_abs_srcdir=$ac_abs_builddir;;
937  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939  esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_srcdir=$ac_top_srcdir;;
943*)
944  case $ac_top_srcdir in
945  .) ac_abs_top_srcdir=$ac_abs_builddir;;
946  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948  esac;;
949esac
950
951    cd $ac_dir
952    # Check for guested configure; otherwise get Cygnus style configure.
953    if test -f $ac_srcdir/configure.gnu; then
954      echo
955      $SHELL $ac_srcdir/configure.gnu  --help=recursive
956    elif test -f $ac_srcdir/configure; then
957      echo
958      $SHELL $ac_srcdir/configure  --help=recursive
959    elif test -f $ac_srcdir/configure.ac ||
960           test -f $ac_srcdir/configure.in; then
961      echo
962      $ac_configure --help
963    else
964      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965    fi
966    cd $ac_popdir
967  done
968fi
969
970test -n "$ac_init_help" && exit 0
971if $ac_init_version; then
972  cat <<\_ACEOF
973orxonox configure 0.1-pre-alpha
974generated by GNU Autoconf 2.59
975
976Copyright (C) 2003 Free Software Foundation, Inc.
977This configure script is free software; the Free Software Foundation
978gives unlimited permission to copy, distribute and modify it.
979_ACEOF
980  exit 0
981fi
982exec 5>config.log
983cat >&5 <<_ACEOF
984This file contains any messages produced by compilers while
985running configure, to aid debugging if configure makes a mistake.
986
987It was created by orxonox $as_me 0.1-pre-alpha, which was
988generated by GNU Autoconf 2.59.  Invocation command line was
989
990  $ $0 $@
991
992_ACEOF
993{
994cat <<_ASUNAME
995## --------- ##
996## Platform. ##
997## --------- ##
998
999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1007
1008/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1009/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1012/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1013/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1014/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1015
1016_ASUNAME
1017
1018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019for as_dir in $PATH
1020do
1021  IFS=$as_save_IFS
1022  test -z "$as_dir" && as_dir=.
1023  echo "PATH: $as_dir"
1024done
1025
1026} >&5
1027
1028cat >&5 <<_ACEOF
1029
1030
1031## ----------- ##
1032## Core tests. ##
1033## ----------- ##
1034
1035_ACEOF
1036
1037
1038# Keep a trace of the command line.
1039# Strip out --no-create and --no-recursion so they do not pile up.
1040# Strip out --silent because we don't want to record it for future runs.
1041# Also quote any args containing shell meta-characters.
1042# Make two passes to allow for proper duplicate-argument suppression.
1043ac_configure_args=
1044ac_configure_args0=
1045ac_configure_args1=
1046ac_sep=
1047ac_must_keep_next=false
1048for ac_pass in 1 2
1049do
1050  for ac_arg
1051  do
1052    case $ac_arg in
1053    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055    | -silent | --silent | --silen | --sile | --sil)
1056      continue ;;
1057    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059    esac
1060    case $ac_pass in
1061    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062    2)
1063      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064      if test $ac_must_keep_next = true; then
1065        ac_must_keep_next=false # Got value, back to normal.
1066      else
1067        case $ac_arg in
1068          *=* | --config-cache | -C | -disable-* | --disable-* \
1069          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071          | -with-* | --with-* | -without-* | --without-* | --x)
1072            case "$ac_configure_args0 " in
1073              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074            esac
1075            ;;
1076          -* ) ac_must_keep_next=true ;;
1077        esac
1078      fi
1079      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080      # Get rid of the leading space.
1081      ac_sep=" "
1082      ;;
1083    esac
1084  done
1085done
1086$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089# When interrupted or exit'd, cleanup temporary files, and complete
1090# config.log.  We remove comments because anyway the quotes in there
1091# would cause problems or look ugly.
1092# WARNING: Be sure not to use single quotes in there, as some shells,
1093# such as our DU 5.0 friend, will then `close' the trap.
1094trap 'exit_status=$?
1095  # Save into config.log some information that might help in debugging.
1096  {
1097    echo
1098
1099    cat <<\_ASBOX
1100## ---------------- ##
1101## Cache variables. ##
1102## ---------------- ##
1103_ASBOX
1104    echo
1105    # The following way of writing the cache mishandles newlines in values,
1106{
1107  (set) 2>&1 |
1108    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109    *ac_space=\ *)
1110      sed -n \
1111        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113      ;;
1114    *)
1115      sed -n \
1116        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117      ;;
1118    esac;
1119}
1120    echo
1121
1122    cat <<\_ASBOX
1123## ----------------- ##
1124## Output variables. ##
1125## ----------------- ##
1126_ASBOX
1127    echo
1128    for ac_var in $ac_subst_vars
1129    do
1130      eval ac_val=$`echo $ac_var`
1131      echo "$ac_var='"'"'$ac_val'"'"'"
1132    done | sort
1133    echo
1134
1135    if test -n "$ac_subst_files"; then
1136      cat <<\_ASBOX
1137## ------------- ##
1138## Output files. ##
1139## ------------- ##
1140_ASBOX
1141      echo
1142      for ac_var in $ac_subst_files
1143      do
1144        eval ac_val=$`echo $ac_var`
1145        echo "$ac_var='"'"'$ac_val'"'"'"
1146      done | sort
1147      echo
1148    fi
1149
1150    if test -s confdefs.h; then
1151      cat <<\_ASBOX
1152## ----------- ##
1153## confdefs.h. ##
1154## ----------- ##
1155_ASBOX
1156      echo
1157      sed "/^$/d" confdefs.h | sort
1158      echo
1159    fi
1160    test "$ac_signal" != 0 &&
1161      echo "$as_me: caught signal $ac_signal"
1162    echo "$as_me: exit $exit_status"
1163  } >&5
1164  rm -f core *.core &&
1165  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166    exit $exit_status
1167     ' 0
1168for ac_signal in 1 2 13 15; do
1169  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170done
1171ac_signal=0
1172
1173# confdefs.h avoids OS command line length limits that DEFS can exceed.
1174rm -rf conftest* confdefs.h
1175# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176echo >confdefs.h
1177
1178# Predefined preprocessor variables.
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_NAME "$PACKAGE_NAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_VERSION "$PACKAGE_VERSION"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_STRING "$PACKAGE_STRING"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202_ACEOF
1203
1204
1205# Let the site file select an alternate cache file if it wants to.
1206# Prefer explicitly selected file to automatically selected ones.
1207if test -z "$CONFIG_SITE"; then
1208  if test "x$prefix" != xNONE; then
1209    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210  else
1211    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212  fi
1213fi
1214for ac_site_file in $CONFIG_SITE; do
1215  if test -r "$ac_site_file"; then
1216    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217echo "$as_me: loading site script $ac_site_file" >&6;}
1218    sed 's/^/| /' "$ac_site_file" >&5
1219    . "$ac_site_file"
1220  fi
1221done
1222
1223if test -r "$cache_file"; then
1224  # Some versions of bash will fail to source /dev/null (special
1225  # files actually), so we avoid doing that.
1226  if test -f "$cache_file"; then
1227    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228echo "$as_me: loading cache $cache_file" >&6;}
1229    case $cache_file in
1230      [\\/]* | ?:[\\/]* ) . $cache_file;;
1231      *)                      . ./$cache_file;;
1232    esac
1233  fi
1234else
1235  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236echo "$as_me: creating cache $cache_file" >&6;}
1237  >$cache_file
1238fi
1239
1240# Check that the precious variables saved in the cache have kept the same
1241# value.
1242ac_cache_corrupted=false
1243for ac_var in `(set) 2>&1 |
1244               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246  eval ac_new_set=\$ac_env_${ac_var}_set
1247  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248  eval ac_new_val="\$ac_env_${ac_var}_value"
1249  case $ac_old_set,$ac_new_set in
1250    set,)
1251      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253      ac_cache_corrupted=: ;;
1254    ,set)
1255      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257      ac_cache_corrupted=: ;;
1258    ,);;
1259    *)
1260      if test "x$ac_old_val" != "x$ac_new_val"; then
1261        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1264echo "$as_me:   former value:  $ac_old_val" >&2;}
1265        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1266echo "$as_me:   current value: $ac_new_val" >&2;}
1267        ac_cache_corrupted=:
1268      fi;;
1269  esac
1270  # Pass precious variables to config.status.
1271  if test "$ac_new_set" = set; then
1272    case $ac_new_val in
1273    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275    *) ac_arg=$ac_var=$ac_new_val ;;
1276    esac
1277    case " $ac_configure_args " in
1278      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1279      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280    esac
1281  fi
1282done
1283if $ac_cache_corrupted; then
1284  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288   { (exit 1); exit 1; }; }
1289fi
1290
1291ac_ext=c
1292ac_cpp='$CPP $CPPFLAGS'
1293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323am__api_version="1.7"
1324ac_aux_dir=
1325for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326  if test -f $ac_dir/install-sh; then
1327    ac_aux_dir=$ac_dir
1328    ac_install_sh="$ac_aux_dir/install-sh -c"
1329    break
1330  elif test -f $ac_dir/install.sh; then
1331    ac_aux_dir=$ac_dir
1332    ac_install_sh="$ac_aux_dir/install.sh -c"
1333    break
1334  elif test -f $ac_dir/shtool; then
1335    ac_aux_dir=$ac_dir
1336    ac_install_sh="$ac_aux_dir/shtool install -c"
1337    break
1338  fi
1339done
1340if test -z "$ac_aux_dir"; then
1341  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343   { (exit 1); exit 1; }; }
1344fi
1345ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349# Find a good install program.  We prefer a C program (faster),
1350# so one script is as good as another.  But avoid the broken or
1351# incompatible versions:
1352# SysV /etc/install, /usr/sbin/install
1353# SunOS /usr/etc/install
1354# IRIX /sbin/install
1355# AIX /bin/install
1356# AmigaOS /C/install, which installs bootblocks on floppy discs
1357# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1358# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1359# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1360# OS/2's system install, which has a completely different semantic
1361# ./install, which can be erroneously created by make from ./install.sh.
1362echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1363echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1364if test -z "$INSTALL"; then
1365if test "${ac_cv_path_install+set}" = set; then
1366  echo $ECHO_N "(cached) $ECHO_C" >&6
1367else
1368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369for as_dir in $PATH
1370do
1371  IFS=$as_save_IFS
1372  test -z "$as_dir" && as_dir=.
1373  # Account for people who put trailing slashes in PATH elements.
1374case $as_dir/ in
1375  ./ | .// | /cC/* | \
1376  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1377  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1378  /usr/ucb/* ) ;;
1379  *)
1380    # OSF1 and SCO ODT 3.0 have their own names for install.
1381    # Don't use installbsd from OSF since it installs stuff as root
1382    # by default.
1383    for ac_prog in ginstall scoinst install; do
1384      for ac_exec_ext in '' $ac_executable_extensions; do
1385        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1386          if test $ac_prog = install &&
1387            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388            # AIX install.  It has an incompatible calling convention.
1389            :
1390          elif test $ac_prog = install &&
1391            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1392            # program-specific install script used by HP pwplus--don't use.
1393            :
1394          else
1395            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1396            break 3
1397          fi
1398        fi
1399      done
1400    done
1401    ;;
1402esac
1403done
1404
1405
1406fi
1407  if test "${ac_cv_path_install+set}" = set; then
1408    INSTALL=$ac_cv_path_install
1409  else
1410    # As a last resort, use the slow shell script.  We don't cache a
1411    # path for INSTALL within a source directory, because that will
1412    # break other packages using the cache if that directory is
1413    # removed, or if the path is relative.
1414    INSTALL=$ac_install_sh
1415  fi
1416fi
1417echo "$as_me:$LINENO: result: $INSTALL" >&5
1418echo "${ECHO_T}$INSTALL" >&6
1419
1420# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1421# It thinks the first close brace ends the variable substitution.
1422test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1423
1424test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1425
1426test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1427
1428echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1429echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1430# Just in case
1431sleep 1
1432echo timestamp > conftest.file
1433# Do `set' in a subshell so we don't clobber the current shell's
1434# arguments.  Must try -L first in case configure is actually a
1435# symlink; some systems play weird games with the mod time of symlinks
1436# (eg FreeBSD returns the mod time of the symlink's containing
1437# directory).
1438if (
1439   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1440   if test "$*" = "X"; then
1441      # -L didn't work.
1442      set X `ls -t $srcdir/configure conftest.file`
1443   fi
1444   rm -f conftest.file
1445   if test "$*" != "X $srcdir/configure conftest.file" \
1446      && test "$*" != "X conftest.file $srcdir/configure"; then
1447
1448      # If neither matched, then we have a broken ls.  This can happen
1449      # if, for instance, CONFIG_SHELL is bash and it inherits a
1450      # broken ls alias from the environment.  This has actually
1451      # happened.  Such a system could not be considered "sane".
1452      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1453alias in your environment" >&5
1454echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1455alias in your environment" >&2;}
1456   { (exit 1); exit 1; }; }
1457   fi
1458
1459   test "$2" = conftest.file
1460   )
1461then
1462   # Ok.
1463   :
1464else
1465   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1466Check your system clock" >&5
1467echo "$as_me: error: newly created file is older than distributed files!
1468Check your system clock" >&2;}
1469   { (exit 1); exit 1; }; }
1470fi
1471echo "$as_me:$LINENO: result: yes" >&5
1472echo "${ECHO_T}yes" >&6
1473test "$program_prefix" != NONE &&
1474  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1475# Use a double $ so make ignores it.
1476test "$program_suffix" != NONE &&
1477  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1478# Double any \ or $.  echo might interpret backslashes.
1479# By default was `s,x,x', remove it if useless.
1480cat <<\_ACEOF >conftest.sed
1481s/[\\$]/&&/g;s/;s,x,x,$//
1482_ACEOF
1483program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1484rm conftest.sed
1485
1486
1487# expand $ac_aux_dir to an absolute path
1488am_aux_dir=`cd $ac_aux_dir && pwd`
1489
1490test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1491# Use eval to expand $SHELL
1492if eval "$MISSING --run true"; then
1493  am_missing_run="$MISSING --run "
1494else
1495  am_missing_run=
1496  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1497echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1498fi
1499
1500for ac_prog in gawk mawk nawk awk
1501do
1502  # Extract the first word of "$ac_prog", so it can be a program name with args.
1503set dummy $ac_prog; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_AWK+set}" = set; then
1507  echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
1509  if test -n "$AWK"; then
1510  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1511else
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515  IFS=$as_save_IFS
1516  test -z "$as_dir" && as_dir=.
1517  for ac_exec_ext in '' $ac_executable_extensions; do
1518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519    ac_cv_prog_AWK="$ac_prog"
1520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521    break 2
1522  fi
1523done
1524done
1525
1526fi
1527fi
1528AWK=$ac_cv_prog_AWK
1529if test -n "$AWK"; then
1530  echo "$as_me:$LINENO: result: $AWK" >&5
1531echo "${ECHO_T}$AWK" >&6
1532else
1533  echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
1535fi
1536
1537  test -n "$AWK" && break
1538done
1539
1540echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1541echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1542set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1543if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1544  echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546  cat >conftest.make <<\_ACEOF
1547all:
1548        @echo 'ac_maketemp="$(MAKE)"'
1549_ACEOF
1550# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1551eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1552if test -n "$ac_maketemp"; then
1553  eval ac_cv_prog_make_${ac_make}_set=yes
1554else
1555  eval ac_cv_prog_make_${ac_make}_set=no
1556fi
1557rm -f conftest.make
1558fi
1559if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1560  echo "$as_me:$LINENO: result: yes" >&5
1561echo "${ECHO_T}yes" >&6
1562  SET_MAKE=
1563else
1564  echo "$as_me:$LINENO: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566  SET_MAKE="MAKE=${MAKE-make}"
1567fi
1568
1569rm -rf .tst 2>/dev/null
1570mkdir .tst 2>/dev/null
1571if test -d .tst; then
1572  am__leading_dot=.
1573else
1574  am__leading_dot=_
1575fi
1576rmdir .tst 2>/dev/null
1577
1578 # test to see if srcdir already configured
1579if test "`cd $srcdir && pwd`" != "`pwd`" &&
1580   test -f $srcdir/config.status; then
1581  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1582echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1583   { (exit 1); exit 1; }; }
1584fi
1585
1586# test whether we have cygpath
1587if test -z "$CYGPATH_W"; then
1588  if (cygpath --version) >/dev/null 2>/dev/null; then
1589    CYGPATH_W='cygpath -w'
1590  else
1591    CYGPATH_W=echo
1592  fi
1593fi
1594
1595
1596# Define the identity of the package.
1597 PACKAGE='orxonox'
1598 VERSION='0.1-pre-alpha'
1599
1600
1601cat >>confdefs.h <<_ACEOF
1602#define PACKAGE "$PACKAGE"
1603_ACEOF
1604
1605
1606cat >>confdefs.h <<_ACEOF
1607#define VERSION "$VERSION"
1608_ACEOF
1609
1610# Some tools Automake needs.
1611
1612ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1613
1614
1615AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1616
1617
1618AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1619
1620
1621AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1622
1623
1624MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1625
1626
1627AMTAR=${AMTAR-"${am_missing_run}tar"}
1628
1629install_sh=${install_sh-"$am_aux_dir/install-sh"}
1630
1631# Installed binaries are usually stripped using `strip' when the user
1632# run `make install-strip'.  However `strip' might not be the right
1633# tool to use in cross-compilation environments, therefore Automake
1634# will honor the `STRIP' environment variable to overrule this program.
1635if test "$cross_compiling" != no; then
1636  if test -n "$ac_tool_prefix"; then
1637  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1638set dummy ${ac_tool_prefix}strip; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_STRIP+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  if test -n "$STRIP"; then
1645  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  for ac_exec_ext in '' $ac_executable_extensions; do
1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656    break 2
1657  fi
1658done
1659done
1660
1661fi
1662fi
1663STRIP=$ac_cv_prog_STRIP
1664if test -n "$STRIP"; then
1665  echo "$as_me:$LINENO: result: $STRIP" >&5
1666echo "${ECHO_T}$STRIP" >&6
1667else
1668  echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672fi
1673if test -z "$ac_cv_prog_STRIP"; then
1674  ac_ct_STRIP=$STRIP
1675  # Extract the first word of "strip", so it can be a program name with args.
1676set dummy strip; ac_word=$2
1677echo "$as_me:$LINENO: checking for $ac_word" >&5
1678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1680  echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682  if test -n "$ac_ct_STRIP"; then
1683  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1684else
1685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686for as_dir in $PATH
1687do
1688  IFS=$as_save_IFS
1689  test -z "$as_dir" && as_dir=.
1690  for ac_exec_ext in '' $ac_executable_extensions; do
1691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692    ac_cv_prog_ac_ct_STRIP="strip"
1693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694    break 2
1695  fi
1696done
1697done
1698
1699  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1700fi
1701fi
1702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1703if test -n "$ac_ct_STRIP"; then
1704  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1705echo "${ECHO_T}$ac_ct_STRIP" >&6
1706else
1707  echo "$as_me:$LINENO: result: no" >&5
1708echo "${ECHO_T}no" >&6
1709fi
1710
1711  STRIP=$ac_ct_STRIP
1712else
1713  STRIP="$ac_cv_prog_STRIP"
1714fi
1715
1716fi
1717INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1718
1719# We need awk for the "check" target.  The system "awk" is bad on
1720# some platforms.
1721
1722
1723
1724
1725          ac_config_headers="$ac_config_headers config.h"
1726
1727
1728echo "$as_me:$LINENO: checking for mingw" >&5
1729echo $ECHO_N "checking for mingw... $ECHO_C" >&6
1730case `uname` in
1731  *MINGW*)
1732    mingw="yes"
1733    MSBITFIELDS="-mms-bitfields"
1734    MWINDOWS="-mwindows"
1735    ;;
1736  *)
1737    mingw="no"
1738    ;;
1739esac
1740echo "$as_me:$LINENO: result: $mingw" >&5
1741echo "${ECHO_T}$mingw" >&6
1742
1743
1744
1745# Checks for programs.
1746ac_ext=cc
1747ac_cpp='$CXXCPP $CPPFLAGS'
1748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1751if test -n "$ac_tool_prefix"; then
1752  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1753  do
1754    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1756echo "$as_me:$LINENO: checking for $ac_word" >&5
1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_CXX+set}" = set; then
1759  echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761  if test -n "$CXX"; then
1762  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1763else
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767  IFS=$as_save_IFS
1768  test -z "$as_dir" && as_dir=.
1769  for ac_exec_ext in '' $ac_executable_extensions; do
1770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773    break 2
1774  fi
1775done
1776done
1777
1778fi
1779fi
1780CXX=$ac_cv_prog_CXX
1781if test -n "$CXX"; then
1782  echo "$as_me:$LINENO: result: $CXX" >&5
1783echo "${ECHO_T}$CXX" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789    test -n "$CXX" && break
1790  done
1791fi
1792if test -z "$CXX"; then
1793  ac_ct_CXX=$CXX
1794  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1795do
1796  # Extract the first word of "$ac_prog", so it can be a program name with args.
1797set dummy $ac_prog; ac_word=$2
1798echo "$as_me:$LINENO: checking for $ac_word" >&5
1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1801  echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803  if test -n "$ac_ct_CXX"; then
1804  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1805else
1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807for as_dir in $PATH
1808do
1809  IFS=$as_save_IFS
1810  test -z "$as_dir" && as_dir=.
1811  for ac_exec_ext in '' $ac_executable_extensions; do
1812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813    ac_cv_prog_ac_ct_CXX="$ac_prog"
1814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815    break 2
1816  fi
1817done
1818done
1819
1820fi
1821fi
1822ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1823if test -n "$ac_ct_CXX"; then
1824  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1825echo "${ECHO_T}$ac_ct_CXX" >&6
1826else
1827  echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831  test -n "$ac_ct_CXX" && break
1832done
1833test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1834
1835  CXX=$ac_ct_CXX
1836fi
1837
1838
1839# Provide some information about the compiler.
1840echo "$as_me:$LINENO:" \
1841     "checking for C++ compiler version" >&5
1842ac_compiler=`set X $ac_compile; echo $2`
1843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1844  (eval $ac_compiler --version </dev/null >&5) 2>&5
1845  ac_status=$?
1846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847  (exit $ac_status); }
1848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1849  (eval $ac_compiler -v </dev/null >&5) 2>&5
1850  ac_status=$?
1851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852  (exit $ac_status); }
1853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1854  (eval $ac_compiler -V </dev/null >&5) 2>&5
1855  ac_status=$?
1856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857  (exit $ac_status); }
1858
1859cat >conftest.$ac_ext <<_ACEOF
1860/* confdefs.h.  */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h.  */
1865
1866int
1867main ()
1868{
1869
1870  ;
1871  return 0;
1872}
1873_ACEOF
1874ac_clean_files_save=$ac_clean_files
1875ac_clean_files="$ac_clean_files a.out a.exe b.out"
1876# Try to create an executable without -o first, disregard a.out.
1877# It will help us diagnose broken compilers, and finding out an intuition
1878# of exeext.
1879echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1880echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1881ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1882if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1883  (eval $ac_link_default) 2>&5
1884  ac_status=$?
1885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886  (exit $ac_status); }; then
1887  # Find the output, starting from the most likely.  This scheme is
1888# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889# resort.
1890
1891# Be careful to initialize this variable, since it used to be cached.
1892# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893ac_cv_exeext=
1894# b.out is created by i960 compilers.
1895for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896do
1897  test -f "$ac_file" || continue
1898  case $ac_file in
1899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900        ;;
1901    conftest.$ac_ext )
1902        # This is the source file.
1903        ;;
1904    [ab].out )
1905        # We found the default executable, but exeext='' is most
1906        # certainly right.
1907        break;;
1908    *.* )
1909        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910        # FIXME: I believe we export ac_cv_exeext for Libtool,
1911        # but it would be cool to find out if it's true.  Does anybody
1912        # maintain Libtool? --akim.
1913        export ac_cv_exeext
1914        break;;
1915    * )
1916        break;;
1917  esac
1918done
1919else
1920  echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1924See \`config.log' for more details." >&5
1925echo "$as_me: error: C++ compiler cannot create executables
1926See \`config.log' for more details." >&2;}
1927   { (exit 77); exit 77; }; }
1928fi
1929
1930ac_exeext=$ac_cv_exeext
1931echo "$as_me:$LINENO: result: $ac_file" >&5
1932echo "${ECHO_T}$ac_file" >&6
1933
1934# Check the compiler produces executables we can run.  If not, either
1935# the compiler is broken, or we cross compile.
1936echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1937echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939# If not cross compiling, check that we can run a simple program.
1940if test "$cross_compiling" != yes; then
1941  if { ac_try='./$ac_file'
1942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943  (eval $ac_try) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }; }; then
1947    cross_compiling=no
1948  else
1949    if test "$cross_compiling" = maybe; then
1950        cross_compiling=yes
1951    else
1952        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1953If you meant to cross compile, use \`--host'.
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot run C++ compiled programs.
1956If you meant to cross compile, use \`--host'.
1957See \`config.log' for more details." >&2;}
1958   { (exit 1); exit 1; }; }
1959    fi
1960  fi
1961fi
1962echo "$as_me:$LINENO: result: yes" >&5
1963echo "${ECHO_T}yes" >&6
1964
1965rm -f a.out a.exe conftest$ac_cv_exeext b.out
1966ac_clean_files=$ac_clean_files_save
1967# Check the compiler produces executables we can run.  If not, either
1968# the compiler is broken, or we cross compile.
1969echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1970echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1971echo "$as_me:$LINENO: result: $cross_compiling" >&5
1972echo "${ECHO_T}$cross_compiling" >&6
1973
1974echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1977  (eval $ac_link) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1983# work properly (i.e., refer to `conftest.exe'), while it won't with
1984# `rm'.
1985for ac_file in conftest.exe conftest conftest.*; do
1986  test -f "$ac_file" || continue
1987  case $ac_file in
1988    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1989    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990          export ac_cv_exeext
1991          break;;
1992    * ) break;;
1993  esac
1994done
1995else
1996  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997See \`config.log' for more details." >&5
1998echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999See \`config.log' for more details." >&2;}
2000   { (exit 1); exit 1; }; }
2001fi
2002
2003rm -f conftest$ac_cv_exeext
2004echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2005echo "${ECHO_T}$ac_cv_exeext" >&6
2006
2007rm -f conftest.$ac_ext
2008EXEEXT=$ac_cv_exeext
2009ac_exeext=$EXEEXT
2010echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2012if test "${ac_cv_objext+set}" = set; then
2013  echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015  cat >conftest.$ac_ext <<_ACEOF
2016/* confdefs.h.  */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h.  */
2021
2022int
2023main ()
2024{
2025
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030rm -f conftest.o conftest.obj
2031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032  (eval $ac_compile) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; then
2036  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037  case $ac_file in
2038    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040       break;;
2041  esac
2042done
2043else
2044  echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050See \`config.log' for more details." >&2;}
2051   { (exit 1); exit 1; }; }
2052fi
2053
2054rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055fi
2056echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057echo "${ECHO_T}$ac_cv_objext" >&6
2058OBJEXT=$ac_cv_objext
2059ac_objext=$OBJEXT
2060echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2061echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2062if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2063  echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065  cat >conftest.$ac_ext <<_ACEOF
2066/* confdefs.h.  */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h.  */
2071
2072int
2073main ()
2074{
2075#ifndef __GNUC__
2076       choke me
2077#endif
2078
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085  (eval $ac_compile) 2>conftest.er1
2086  ac_status=$?
2087  grep -v '^ *+' conftest.er1 >conftest.err
2088  rm -f conftest.er1
2089  cat conftest.err >&5
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); } &&
2092         { ac_try='test -z "$ac_cxx_werror_flag"
2093                         || test ! -s conftest.err'
2094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095  (eval $ac_try) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }; } &&
2099         { ac_try='test -s conftest.$ac_objext'
2100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101  (eval $ac_try) 2>&5
2102  ac_status=$?
2103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104  (exit $ac_status); }; }; then
2105  ac_compiler_gnu=yes
2106else
2107  echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110ac_compiler_gnu=no
2111fi
2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2114
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2117echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2118GXX=`test $ac_compiler_gnu = yes && echo yes`
2119ac_test_CXXFLAGS=${CXXFLAGS+set}
2120ac_save_CXXFLAGS=$CXXFLAGS
2121CXXFLAGS="-g"
2122echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2123echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2124if test "${ac_cv_prog_cxx_g+set}" = set; then
2125  echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127  cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h.  */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h.  */
2133
2134int
2135main ()
2136{
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>conftest.er1
2145  ac_status=$?
2146  grep -v '^ *+' conftest.er1 >conftest.err
2147  rm -f conftest.er1
2148  cat conftest.err >&5
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); } &&
2151         { ac_try='test -z "$ac_cxx_werror_flag"
2152                         || test ! -s conftest.err'
2153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154  (eval $ac_try) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }; } &&
2158         { ac_try='test -s conftest.$ac_objext'
2159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160  (eval $ac_try) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; }; then
2164  ac_cv_prog_cxx_g=yes
2165else
2166  echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169ac_cv_prog_cxx_g=no
2170fi
2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2174echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2175if test "$ac_test_CXXFLAGS" = set; then
2176  CXXFLAGS=$ac_save_CXXFLAGS
2177elif test $ac_cv_prog_cxx_g = yes; then
2178  if test "$GXX" = yes; then
2179    CXXFLAGS="-g -O2"
2180  else
2181    CXXFLAGS="-g"
2182  fi
2183else
2184  if test "$GXX" = yes; then
2185    CXXFLAGS="-O2"
2186  else
2187    CXXFLAGS=
2188  fi
2189fi
2190for ac_declaration in \
2191   '' \
2192   'extern "C" void std::exit (int) throw (); using std::exit;' \
2193   'extern "C" void std::exit (int); using std::exit;' \
2194   'extern "C" void exit (int) throw ();' \
2195   'extern "C" void exit (int);' \
2196   'void exit (int);'
2197do
2198  cat >conftest.$ac_ext <<_ACEOF
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204$ac_declaration
2205#include <stdlib.h>
2206int
2207main ()
2208{
2209exit (42);
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216  (eval $ac_compile) 2>conftest.er1
2217  ac_status=$?
2218  grep -v '^ *+' conftest.er1 >conftest.err
2219  rm -f conftest.er1
2220  cat conftest.err >&5
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); } &&
2223         { ac_try='test -z "$ac_cxx_werror_flag"
2224                         || test ! -s conftest.err'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; } &&
2230         { ac_try='test -s conftest.$ac_objext'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; }; then
2236  :
2237else
2238  echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241continue
2242fi
2243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250$ac_declaration
2251int
2252main ()
2253{
2254exit (42);
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  break
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286fi
2287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288done
2289rm -f conftest*
2290if test -n "$ac_declaration"; then
2291  echo '#ifdef __cplusplus' >>confdefs.h
2292  echo $ac_declaration      >>confdefs.h
2293  echo '#endif'             >>confdefs.h
2294fi
2295
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301DEPDIR="${am__leading_dot}deps"
2302
2303          ac_config_commands="$ac_config_commands depfiles"
2304
2305
2306am_make=${MAKE-make}
2307cat > confinc << 'END'
2308am__doit:
2309        @echo done
2310.PHONY: am__doit
2311END
2312# If we don't find an include directive, just comment out the code.
2313echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2314echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2315am__include="#"
2316am__quote=
2317_am_result=none
2318# First try GNU make style include.
2319echo "include confinc" > confmf
2320# We grep out `Entering directory' and `Leaving directory'
2321# messages which can occur if `w' ends up in MAKEFLAGS.
2322# In particular we don't look at `^make:' because GNU make might
2323# be invoked under some other name (usually "gmake"), in which
2324# case it prints its new name instead of `make'.
2325if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2326   am__include=include
2327   am__quote=
2328   _am_result=GNU
2329fi
2330# Now try BSD make style include.
2331if test "$am__include" = "#"; then
2332   echo '.include "confinc"' > confmf
2333   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2334      am__include=.include
2335      am__quote="\""
2336      _am_result=BSD
2337   fi
2338fi
2339
2340
2341echo "$as_me:$LINENO: result: $_am_result" >&5
2342echo "${ECHO_T}$_am_result" >&6
2343rm -f confinc confmf
2344
2345# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2346if test "${enable_dependency_tracking+set}" = set; then
2347  enableval="$enable_dependency_tracking"
2348
2349fi;
2350if test "x$enable_dependency_tracking" != xno; then
2351  am_depcomp="$ac_aux_dir/depcomp"
2352  AMDEPBACKSLASH='\'
2353fi
2354
2355
2356if test "x$enable_dependency_tracking" != xno; then
2357  AMDEP_TRUE=
2358  AMDEP_FALSE='#'
2359else
2360  AMDEP_TRUE='#'
2361  AMDEP_FALSE=
2362fi
2363
2364
2365
2366
2367depcc="$CXX"  am_compiler_list=
2368
2369echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2370echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2371if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2372  echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2375  # We make a subdir and do the tests there.  Otherwise we can end up
2376  # making bogus files that we don't know about and never remove.  For
2377  # instance it was reported that on HP-UX the gcc test will end up
2378  # making a dummy file named `D' -- because `-MD' means `put the output
2379  # in D'.
2380  mkdir conftest.dir
2381  # Copy depcomp to subdir because otherwise we won't find it if we're
2382  # using a relative directory.
2383  cp "$am_depcomp" conftest.dir
2384  cd conftest.dir
2385  # We will build objects and dependencies in a subdirectory because
2386  # it helps to detect inapplicable dependency modes.  For instance
2387  # both Tru64's cc and ICC support -MD to output dependencies as a
2388  # side effect of compilation, but ICC will put the dependencies in
2389  # the current directory while Tru64 will put them in the object
2390  # directory.
2391  mkdir sub
2392
2393  am_cv_CXX_dependencies_compiler_type=none
2394  if test "$am_compiler_list" = ""; then
2395     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2396  fi
2397  for depmode in $am_compiler_list; do
2398    # Setup a source with many dependencies, because some compilers
2399    # like to wrap large dependency lists on column 80 (with \), and
2400    # we should not choose a depcomp mode which is confused by this.
2401    #
2402    # We need to recreate these files for each test, as the compiler may
2403    # overwrite some of them when testing with obscure command lines.
2404    # This happens at least with the AIX C compiler.
2405    : > sub/conftest.c
2406    for i in 1 2 3 4 5 6; do
2407      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2408      : > sub/conftst$i.h
2409    done
2410    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2411
2412    case $depmode in
2413    nosideeffect)
2414      # after this tag, mechanisms are not by side-effect, so they'll
2415      # only be used when explicitly requested
2416      if test "x$enable_dependency_tracking" = xyes; then
2417        continue
2418      else
2419        break
2420      fi
2421      ;;
2422    none) break ;;
2423    esac
2424    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2425    # mode.  It turns out that the SunPro C++ compiler does not properly
2426    # handle `-M -o', and we need to detect this.
2427    if depmode=$depmode \
2428       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2429       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2430       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2431         >/dev/null 2>conftest.err &&
2432       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2433       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2434       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2435      # icc doesn't choke on unknown options, it will just issue warnings
2436      # (even with -Werror).  So we grep stderr for any message
2437      # that says an option was ignored.
2438      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2439        am_cv_CXX_dependencies_compiler_type=$depmode
2440        break
2441      fi
2442    fi
2443  done
2444
2445  cd ..
2446  rm -rf conftest.dir
2447else
2448  am_cv_CXX_dependencies_compiler_type=none
2449fi
2450
2451fi
2452echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2453echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2454CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2455
2456
2457
2458if
2459  test "x$enable_dependency_tracking" != xno \
2460  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2461  am__fastdepCXX_TRUE=
2462  am__fastdepCXX_FALSE='#'
2463else
2464  am__fastdepCXX_TRUE='#'
2465  am__fastdepCXX_FALSE=
2466fi
2467
2468
2469ac_ext=c
2470ac_cpp='$CPP $CPPFLAGS'
2471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474if test -n "$ac_tool_prefix"; then
2475  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2476set dummy ${ac_tool_prefix}gcc; ac_word=$2
2477echo "$as_me:$LINENO: checking for $ac_word" >&5
2478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479if test "${ac_cv_prog_CC+set}" = set; then
2480  echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482  if test -n "$CC"; then
2483  ac_cv_prog_CC="$CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490  for ac_exec_ext in '' $ac_executable_extensions; do
2491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497done
2498
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
2503  echo "$as_me:$LINENO: result: $CC" >&5
2504echo "${ECHO_T}$CC" >&6
2505else
2506  echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6
2508fi
2509
2510fi
2511if test -z "$ac_cv_prog_CC"; then
2512  ac_ct_CC=$CC
2513  # Extract the first word of "gcc", so it can be a program name with args.
2514set dummy gcc; ac_word=$2
2515echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  if test -n "$ac_ct_CC"; then
2521  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528  for ac_exec_ext in '' $ac_executable_extensions; do
2529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530    ac_cv_prog_ac_ct_CC="gcc"
2531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535done
2536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
2541  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2542echo "${ECHO_T}$ac_ct_CC" >&6
2543else
2544  echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6
2546fi
2547
2548  CC=$ac_ct_CC
2549else
2550  CC="$ac_cv_prog_CC"
2551fi
2552
2553if test -z "$CC"; then
2554  if test -n "$ac_tool_prefix"; then
2555  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556set dummy ${ac_tool_prefix}cc; ac_word=$2
2557echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559if test "${ac_cv_prog_CC+set}" = set; then
2560  echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562  if test -n "$CC"; then
2563  ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568  IFS=$as_save_IFS
2569  test -z "$as_dir" && as_dir=.
2570  for ac_exec_ext in '' $ac_executable_extensions; do
2571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572    ac_cv_prog_CC="${ac_tool_prefix}cc"
2573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574    break 2
2575  fi
2576done
2577done
2578
2579fi
2580fi
2581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
2583  echo "$as_me:$LINENO: result: $CC" >&5
2584echo "${ECHO_T}$CC" >&6
2585else
2586  echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6
2588fi
2589
2590fi
2591if test -z "$ac_cv_prog_CC"; then
2592  ac_ct_CC=$CC
2593  # Extract the first word of "cc", so it can be a program name with args.
2594set dummy cc; ac_word=$2
2595echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598  echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600  if test -n "$ac_ct_CC"; then
2601  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606  IFS=$as_save_IFS
2607  test -z "$as_dir" && as_dir=.
2608  for ac_exec_ext in '' $ac_executable_extensions; do
2609  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610    ac_cv_prog_ac_ct_CC="cc"
2611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612    break 2
2613  fi
2614done
2615done
2616
2617fi
2618fi
2619ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620if test -n "$ac_ct_CC"; then
2621  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622echo "${ECHO_T}$ac_ct_CC" >&6
2623else
2624  echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6
2626fi
2627
2628  CC=$ac_ct_CC
2629else
2630  CC="$ac_cv_prog_CC"
2631fi
2632
2633fi
2634if test -z "$CC"; then
2635  # Extract the first word of "cc", so it can be a program name with args.
2636set dummy cc; ac_word=$2
2637echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639if test "${ac_cv_prog_CC+set}" = set; then
2640  echo $ECHO_N "(cached) $ECHO_C" >&6
2641else
2642  if test -n "$CC"; then
2643  ac_cv_prog_CC="$CC" # Let the user override the test.
2644else
2645  ac_prog_rejected=no
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649  IFS=$as_save_IFS
2650  test -z "$as_dir" && as_dir=.
2651  for ac_exec_ext in '' $ac_executable_extensions; do
2652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2654       ac_prog_rejected=yes
2655       continue
2656     fi
2657    ac_cv_prog_CC="cc"
2658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662done
2663
2664if test $ac_prog_rejected = yes; then
2665  # We found a bogon in the path, so make sure we never use it.
2666  set dummy $ac_cv_prog_CC
2667  shift
2668  if test $# != 0; then
2669    # We chose a different compiler from the bogus one.
2670    # However, it has the same basename, so the bogon will be chosen
2671    # first if we set CC to just the basename; use the full file name.
2672    shift
2673    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2674  fi
2675fi
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680  echo "$as_me:$LINENO: result: $CC" >&5
2681echo "${ECHO_T}$CC" >&6
2682else
2683  echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6
2685fi
2686
2687fi
2688if test -z "$CC"; then
2689  if test -n "$ac_tool_prefix"; then
2690  for ac_prog in cl
2691  do
2692    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2694echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696if test "${ac_cv_prog_CC+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707  for ac_exec_ext in '' $ac_executable_extensions; do
2708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714done
2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
2720  echo "$as_me:$LINENO: result: $CC" >&5
2721echo "${ECHO_T}$CC" >&6
2722else
2723  echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725fi
2726
2727    test -n "$CC" && break
2728  done
2729fi
2730if test -z "$CC"; then
2731  ac_ct_CC=$CC
2732  for ac_prog in cl
2733do
2734  # Extract the first word of "$ac_prog", so it can be a program name with args.
2735set dummy $ac_prog; ac_word=$2
2736echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741  if test -n "$ac_ct_CC"; then
2742  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749  for ac_exec_ext in '' $ac_executable_extensions; do
2750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751    ac_cv_prog_ac_ct_CC="$ac_prog"
2752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756done
2757
2758fi
2759fi
2760ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761if test -n "$ac_ct_CC"; then
2762  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2763echo "${ECHO_T}$ac_ct_CC" >&6
2764else
2765  echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767fi
2768
2769  test -n "$ac_ct_CC" && break
2770done
2771
2772  CC=$ac_ct_CC
2773fi
2774
2775fi
2776
2777
2778test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2779See \`config.log' for more details." >&5
2780echo "$as_me: error: no acceptable C compiler found in \$PATH
2781See \`config.log' for more details." >&2;}
2782   { (exit 1); exit 1; }; }
2783
2784# Provide some information about the compiler.
2785echo "$as_me:$LINENO:" \
2786     "checking for C compiler version" >&5
2787ac_compiler=`set X $ac_compile; echo $2`
2788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2789  (eval $ac_compiler --version </dev/null >&5) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }
2793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2794  (eval $ac_compiler -v </dev/null >&5) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }
2798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2799  (eval $ac_compiler -V </dev/null >&5) 2>&5
2800  ac_status=$?
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); }
2803
2804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2806if test "${ac_cv_c_compiler_gnu+set}" = set; then
2807  echo $ECHO_N "(cached) $ECHO_C" >&6
2808else
2809  cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815
2816int
2817main ()
2818{
2819#ifndef __GNUC__
2820       choke me
2821#endif
2822
2823  ;
2824  return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext
2828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829  (eval $ac_compile) 2>conftest.er1
2830  ac_status=$?
2831  grep -v '^ *+' conftest.er1 >conftest.err
2832  rm -f conftest.er1
2833  cat conftest.err >&5
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); } &&
2836         { ac_try='test -z "$ac_c_werror_flag"
2837                         || test ! -s conftest.err'
2838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839  (eval $ac_try) 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; } &&
2843         { ac_try='test -s conftest.$ac_objext'
2844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845  (eval $ac_try) 2>&5
2846  ac_status=$?
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); }; }; then
2849  ac_compiler_gnu=yes
2850else
2851  echo "$as_me: failed program was:" >&5
2852sed 's/^/| /' conftest.$ac_ext >&5
2853
2854ac_compiler_gnu=no
2855fi
2856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857ac_cv_c_compiler_gnu=$ac_compiler_gnu
2858
2859fi
2860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2862GCC=`test $ac_compiler_gnu = yes && echo yes`
2863ac_test_CFLAGS=${CFLAGS+set}
2864ac_save_CFLAGS=$CFLAGS
2865CFLAGS="-g"
2866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2868if test "${ac_cv_prog_cc_g+set}" = set; then
2869  echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871  cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h.  */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h.  */
2877
2878int
2879main ()
2880{
2881
2882  ;
2883  return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888  (eval $ac_compile) 2>conftest.er1
2889  ac_status=$?
2890  grep -v '^ *+' conftest.er1 >conftest.err
2891  rm -f conftest.er1
2892  cat conftest.err >&5
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); } &&
2895         { ac_try='test -z "$ac_c_werror_flag"
2896                         || test ! -s conftest.err'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; } &&
2902         { ac_try='test -s conftest.$ac_objext'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; }; then
2908  ac_cv_prog_cc_g=yes
2909else
2910  echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913ac_cv_prog_cc_g=no
2914fi
2915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916fi
2917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2919if test "$ac_test_CFLAGS" = set; then
2920  CFLAGS=$ac_save_CFLAGS
2921elif test $ac_cv_prog_cc_g = yes; then
2922  if test "$GCC" = yes; then
2923    CFLAGS="-g -O2"
2924  else
2925    CFLAGS="-g"
2926  fi
2927else
2928  if test "$GCC" = yes; then
2929    CFLAGS="-O2"
2930  else
2931    CFLAGS=
2932  fi
2933fi
2934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2936if test "${ac_cv_prog_cc_stdc+set}" = set; then
2937  echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939  ac_cv_prog_cc_stdc=no
2940ac_save_CC=$CC
2941cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947#include <stdarg.h>
2948#include <stdio.h>
2949#include <sys/types.h>
2950#include <sys/stat.h>
2951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2952struct buf { int x; };
2953FILE * (*rcsopen) (struct buf *, struct stat *, int);
2954static char *e (p, i)
2955     char **p;
2956     int i;
2957{
2958  return p[i];
2959}
2960static char *f (char * (*g) (char **, int), char **p, ...)
2961{
2962  char *s;
2963  va_list v;
2964  va_start (v,p);
2965  s = g (p, va_arg (v,int));
2966  va_end (v);
2967  return s;
2968}
2969
2970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2971   function prototypes and stuff, but not '\xHH' hex character constants.
2972   These don't provoke an error unfortunately, instead are silently treated
2973   as 'x'.  The following induces an error, until -std1 is added to get
2974   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2975   array size at least.  It's necessary to write '\x00'==0 to get something
2976   that's true only with -std1.  */
2977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978
2979int test (int i, double x);
2980struct s1 {int (*f) (int a);};
2981struct s2 {int (*f) (double a);};
2982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2983int argc;
2984char **argv;
2985int
2986main ()
2987{
2988return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2989  ;
2990  return 0;
2991}
2992_ACEOF
2993# Don't try gcc -ansi; that turns off useful extensions and
2994# breaks some systems' header files.
2995# AIX                   -qlanglvl=ansi
2996# Ultrix and OSF/1      -std1
2997# HP-UX 10.20 and later -Ae
2998# HP-UX older versions  -Aa -D_HPUX_SOURCE
2999# SVR4                  -Xc -D__EXTENSIONS__
3000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3001do
3002  CC="$ac_save_CC $ac_arg"
3003  rm -f conftest.$ac_objext
3004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3005  (eval $ac_compile) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012         { ac_try='test -z "$ac_c_werror_flag"
3013                         || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019         { ac_try='test -s conftest.$ac_objext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  ac_cv_prog_cc_stdc=$ac_arg
3026break
3027else
3028  echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031fi
3032rm -f conftest.err conftest.$ac_objext
3033done
3034rm -f conftest.$ac_ext conftest.$ac_objext
3035CC=$ac_save_CC
3036
3037fi
3038
3039case "x$ac_cv_prog_cc_stdc" in
3040  x|xno)
3041    echo "$as_me:$LINENO: result: none needed" >&5
3042echo "${ECHO_T}none needed" >&6 ;;
3043  *)
3044    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3046    CC="$CC $ac_cv_prog_cc_stdc" ;;
3047esac
3048
3049# Some people use a C++ compiler to compile C.  Since we use `exit',
3050# in C++ we need to declare it.  In case someone uses the same compiler
3051# for both compiling C and C++ we need to have the C++ compiler decide
3052# the declaration of exit, since it's the most demanding environment.
3053cat >conftest.$ac_ext <<_ACEOF
3054#ifndef __cplusplus
3055  choke me
3056#endif
3057_ACEOF
3058rm -f conftest.$ac_objext
3059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060  (eval $ac_compile) 2>conftest.er1
3061  ac_status=$?
3062  grep -v '^ *+' conftest.er1 >conftest.err
3063  rm -f conftest.er1
3064  cat conftest.err >&5
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); } &&
3067         { ac_try='test -z "$ac_c_werror_flag"
3068                         || test ! -s conftest.err'
3069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070  (eval $ac_try) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; } &&
3074         { ac_try='test -s conftest.$ac_objext'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; }; then
3080  for ac_declaration in \
3081   '' \
3082   'extern "C" void std::exit (int) throw (); using std::exit;' \
3083   'extern "C" void std::exit (int); using std::exit;' \
3084   'extern "C" void exit (int) throw ();' \
3085   'extern "C" void exit (int);' \
3086   'void exit (int);'
3087do
3088  cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094$ac_declaration
3095#include <stdlib.h>
3096int
3097main ()
3098{
3099exit (42);
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106  (eval $ac_compile) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -z "$ac_c_werror_flag"
3114                         || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120         { ac_try='test -s conftest.$ac_objext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131continue
3132fi
3133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134  cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h.  */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h.  */
3140$ac_declaration
3141int
3142main ()
3143{
3144exit (42);
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext
3150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151  (eval $ac_compile) 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } &&
3158         { ac_try='test -z "$ac_c_werror_flag"
3159                         || test ! -s conftest.err'
3160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161  (eval $ac_try) 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; } &&
3165         { ac_try='test -s conftest.$ac_objext'
3166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167  (eval $ac_try) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; }; then
3171  break
3172else
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176fi
3177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178done
3179rm -f conftest*
3180if test -n "$ac_declaration"; then
3181  echo '#ifdef __cplusplus' >>confdefs.h
3182  echo $ac_declaration      >>confdefs.h
3183  echo '#endif'             >>confdefs.h
3184fi
3185
3186else
3187  echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190fi
3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198depcc="$CC"   am_compiler_list=
3199
3200echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3201echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3202if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3206  # We make a subdir and do the tests there.  Otherwise we can end up
3207  # making bogus files that we don't know about and never remove.  For
3208  # instance it was reported that on HP-UX the gcc test will end up
3209  # making a dummy file named `D' -- because `-MD' means `put the output
3210  # in D'.
3211  mkdir conftest.dir
3212  # Copy depcomp to subdir because otherwise we won't find it if we're
3213  # using a relative directory.
3214  cp "$am_depcomp" conftest.dir
3215  cd conftest.dir
3216  # We will build objects and dependencies in a subdirectory because
3217  # it helps to detect inapplicable dependency modes.  For instance
3218  # both Tru64's cc and ICC support -MD to output dependencies as a
3219  # side effect of compilation, but ICC will put the dependencies in
3220  # the current directory while Tru64 will put them in the object
3221  # directory.
3222  mkdir sub
3223
3224  am_cv_CC_dependencies_compiler_type=none
3225  if test "$am_compiler_list" = ""; then
3226     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3227  fi
3228  for depmode in $am_compiler_list; do
3229    # Setup a source with many dependencies, because some compilers
3230    # like to wrap large dependency lists on column 80 (with \), and
3231    # we should not choose a depcomp mode which is confused by this.
3232    #
3233    # We need to recreate these files for each test, as the compiler may
3234    # overwrite some of them when testing with obscure command lines.
3235    # This happens at least with the AIX C compiler.
3236    : > sub/conftest.c
3237    for i in 1 2 3 4 5 6; do
3238      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3239      : > sub/conftst$i.h
3240    done
3241    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3242
3243    case $depmode in
3244    nosideeffect)
3245      # after this tag, mechanisms are not by side-effect, so they'll
3246      # only be used when explicitly requested
3247      if test "x$enable_dependency_tracking" = xyes; then
3248        continue
3249      else
3250        break
3251      fi
3252      ;;
3253    none) break ;;
3254    esac
3255    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3256    # mode.  It turns out that the SunPro C++ compiler does not properly
3257    # handle `-M -o', and we need to detect this.
3258    if depmode=$depmode \
3259       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3260       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3261       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3262         >/dev/null 2>conftest.err &&
3263       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3264       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3265       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3266      # icc doesn't choke on unknown options, it will just issue warnings
3267      # (even with -Werror).  So we grep stderr for any message
3268      # that says an option was ignored.
3269      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3270        am_cv_CC_dependencies_compiler_type=$depmode
3271        break
3272      fi
3273    fi
3274  done
3275
3276  cd ..
3277  rm -rf conftest.dir
3278else
3279  am_cv_CC_dependencies_compiler_type=none
3280fi
3281
3282fi
3283echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3284echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3285CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3286
3287
3288
3289if
3290  test "x$enable_dependency_tracking" != xno \
3291  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3292  am__fastdepCC_TRUE=
3293  am__fastdepCC_FALSE='#'
3294else
3295  am__fastdepCC_TRUE='#'
3296  am__fastdepCC_FALSE=
3297fi
3298
3299
3300
3301# Checks for libraries.
3302
3303#  cheking for libGL
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3311echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3312# On Suns, sometimes $CPP names a directory.
3313if test -n "$CPP" && test -d "$CPP"; then
3314  CPP=
3315fi
3316if test -z "$CPP"; then
3317  if test "${ac_cv_prog_CPP+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320      # Double quotes because CPP needs to be expanded
3321    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322    do
3323      ac_preproc_ok=false
3324for ac_c_preproc_warn_flag in '' yes
3325do
3326  # Use a header file that comes with gcc, so configuring glibc
3327  # with a fresh cross-compiler works.
3328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329  # <limits.h> exists even on freestanding compilers.
3330  # On the NeXT, cc -E runs the code through the compiler's parser,
3331  # not just through cpp. "Syntax error" is here to catch this case.
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338#ifdef __STDC__
3339# include <limits.h>
3340#else
3341# include <assert.h>
3342#endif
3343                     Syntax error
3344_ACEOF
3345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } >/dev/null; then
3353  if test -s conftest.err; then
3354    ac_cpp_err=$ac_c_preproc_warn_flag
3355    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3356  else
3357    ac_cpp_err=
3358  fi
3359else
3360  ac_cpp_err=yes
3361fi
3362if test -z "$ac_cpp_err"; then
3363  :
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368  # Broken: fails on valid input.
3369continue
3370fi
3371rm -f conftest.err conftest.$ac_ext
3372
3373  # OK, works on sane cases.  Now check whether non-existent headers
3374  # can be detected and how.
3375  cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h.  */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
3380/* end confdefs.h.  */
3381#include <ac_nonexistent.h>
3382_ACEOF
3383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } >/dev/null; then
3391  if test -s conftest.err; then
3392    ac_cpp_err=$ac_c_preproc_warn_flag
3393    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394  else
3395    ac_cpp_err=
3396  fi
3397else
3398  ac_cpp_err=yes
3399fi
3400if test -z "$ac_cpp_err"; then
3401  # Broken: success on invalid input.
3402continue
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407  # Passes both tests.
3408ac_preproc_ok=:
3409break
3410fi
3411rm -f conftest.err conftest.$ac_ext
3412
3413done
3414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415rm -f conftest.err conftest.$ac_ext
3416if $ac_preproc_ok; then
3417  break
3418fi
3419
3420    done
3421    ac_cv_prog_CPP=$CPP
3422
3423fi
3424  CPP=$ac_cv_prog_CPP
3425else
3426  ac_cv_prog_CPP=$CPP
3427fi
3428echo "$as_me:$LINENO: result: $CPP" >&5
3429echo "${ECHO_T}$CPP" >&6
3430ac_preproc_ok=false
3431for ac_c_preproc_warn_flag in '' yes
3432do
3433  # Use a header file that comes with gcc, so configuring glibc
3434  # with a fresh cross-compiler works.
3435  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436  # <limits.h> exists even on freestanding compilers.
3437  # On the NeXT, cc -E runs the code through the compiler's parser,
3438  # not just through cpp. "Syntax error" is here to catch this case.
3439  cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445#ifdef __STDC__
3446# include <limits.h>
3447#else
3448# include <assert.h>
3449#endif
3450                     Syntax error
3451_ACEOF
3452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3453  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3454  ac_status=$?
3455  grep -v '^ *+' conftest.er1 >conftest.err
3456  rm -f conftest.er1
3457  cat conftest.err >&5
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } >/dev/null; then
3460  if test -s conftest.err; then
3461    ac_cpp_err=$ac_c_preproc_warn_flag
3462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463  else
3464    ac_cpp_err=
3465  fi
3466else
3467  ac_cpp_err=yes
3468fi
3469if test -z "$ac_cpp_err"; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475  # Broken: fails on valid input.
3476continue
3477fi
3478rm -f conftest.err conftest.$ac_ext
3479
3480  # OK, works on sane cases.  Now check whether non-existent headers
3481  # can be detected and how.
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488#include <ac_nonexistent.h>
3489_ACEOF
3490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3491  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3492  ac_status=$?
3493  grep -v '^ *+' conftest.er1 >conftest.err
3494  rm -f conftest.er1
3495  cat conftest.err >&5
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); } >/dev/null; then
3498  if test -s conftest.err; then
3499    ac_cpp_err=$ac_c_preproc_warn_flag
3500    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501  else
3502    ac_cpp_err=
3503  fi
3504else
3505  ac_cpp_err=yes
3506fi
3507if test -z "$ac_cpp_err"; then
3508  # Broken: success on invalid input.
3509continue
3510else
3511  echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514  # Passes both tests.
3515ac_preproc_ok=:
3516break
3517fi
3518rm -f conftest.err conftest.$ac_ext
3519
3520done
3521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522rm -f conftest.err conftest.$ac_ext
3523if $ac_preproc_ok; then
3524  :
3525else
3526  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3527See \`config.log' for more details." >&5
3528echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3529See \`config.log' for more details." >&2;}
3530   { (exit 1); exit 1; }; }
3531fi
3532
3533ac_ext=c
3534ac_cpp='$CPP $CPPFLAGS'
3535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538
3539
3540echo "$as_me:$LINENO: checking for egrep" >&5
3541echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3542if test "${ac_cv_prog_egrep+set}" = set; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3546    then ac_cv_prog_egrep='grep -E'
3547    else ac_cv_prog_egrep='egrep'
3548    fi
3549fi
3550echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3551echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3552 EGREP=$ac_cv_prog_egrep
3553
3554
3555echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3556echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3557if test "${ac_cv_header_stdc+set}" = set; then
3558  echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560  cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h.  */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h.  */
3566#include <stdlib.h>
3567#include <stdarg.h>
3568#include <string.h>
3569#include <float.h>
3570
3571int
3572main ()
3573{
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext
3580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581  (eval $ac_compile) 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } &&
3588         { ac_try='test -z "$ac_c_werror_flag"
3589                         || test ! -s conftest.err'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; } &&
3595         { ac_try='test -s conftest.$ac_objext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  ac_cv_header_stdc=yes
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606ac_cv_header_stdc=no
3607fi
3608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609
3610if test $ac_cv_header_stdc = yes; then
3611  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3612  cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h.  */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h.  */
3618#include <string.h>
3619
3620_ACEOF
3621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622  $EGREP "memchr" >/dev/null 2>&1; then
3623  :
3624else
3625  ac_cv_header_stdc=no
3626fi
3627rm -f conftest*
3628
3629fi
3630
3631if test $ac_cv_header_stdc = yes; then
3632  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3633  cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h.  */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h.  */
3639#include <stdlib.h>
3640
3641_ACEOF
3642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643  $EGREP "free" >/dev/null 2>&1; then
3644  :
3645else
3646  ac_cv_header_stdc=no
3647fi
3648rm -f conftest*
3649
3650fi
3651
3652if test $ac_cv_header_stdc = yes; then
3653  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3654  if test "$cross_compiling" = yes; then
3655  :
3656else
3657  cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h.  */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h.  */
3663#include <ctype.h>
3664#if ((' ' & 0x0FF) == 0x020)
3665# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3666# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3667#else
3668# define ISLOWER(c) \
3669                   (('a' <= (c) && (c) <= 'i') \
3670                     || ('j' <= (c) && (c) <= 'r') \
3671                     || ('s' <= (c) && (c) <= 'z'))
3672# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3673#endif
3674
3675#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3676int
3677main ()
3678{
3679  int i;
3680  for (i = 0; i < 256; i++)
3681    if (XOR (islower (i), ISLOWER (i))
3682        || toupper (i) != TOUPPER (i))
3683      exit(2);
3684  exit (0);
3685}
3686_ACEOF
3687rm -f conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689  (eval $ac_link) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694  (eval $ac_try) 2>&5
3695  ac_status=$?
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); }; }; then
3698  :
3699else
3700  echo "$as_me: program exited with status $ac_status" >&5
3701echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704( exit $ac_status )
3705ac_cv_header_stdc=no
3706fi
3707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3708fi
3709fi
3710fi
3711echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3712echo "${ECHO_T}$ac_cv_header_stdc" >&6
3713if test $ac_cv_header_stdc = yes; then
3714
3715cat >>confdefs.h <<\_ACEOF
3716#define STDC_HEADERS 1
3717_ACEOF
3718
3719fi
3720
3721# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3732                  inttypes.h stdint.h unistd.h
3733do
3734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3735echo "$as_me:$LINENO: checking for $ac_header" >&5
3736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3737if eval "test \"\${$as_ac_Header+set}\" = set"; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h.  */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h.  */
3746$ac_includes_default
3747
3748#include <$ac_header>
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752  (eval $ac_compile) 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } &&
3759         { ac_try='test -z "$ac_c_werror_flag"
3760                         || test ! -s conftest.err'
3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762  (eval $ac_try) 2>&5
3763  ac_status=$?
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); }; } &&
3766         { ac_try='test -s conftest.$ac_objext'
3767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768  (eval $ac_try) 2>&5
3769  ac_status=$?
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); }; }; then
3772  eval "$as_ac_Header=yes"
3773else
3774  echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777eval "$as_ac_Header=no"
3778fi
3779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780fi
3781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3783if test `eval echo '${'$as_ac_Header'}'` = yes; then
3784  cat >>confdefs.h <<_ACEOF
3785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3786_ACEOF
3787
3788fi
3789
3790done
3791
3792
3793
3794for ac_header in GL/gl.h
3795do
3796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3797if eval "test \"\${$as_ac_Header+set}\" = set"; then
3798  echo "$as_me:$LINENO: checking for $ac_header" >&5
3799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3800if eval "test \"\${$as_ac_Header+set}\" = set"; then
3801  echo $ECHO_N "(cached) $ECHO_C" >&6
3802fi
3803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3805else
3806  # Is the header compilable?
3807echo "$as_me:$LINENO: checking $ac_header usability" >&5
3808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3809cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h.  */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h.  */
3815$ac_includes_default
3816#include <$ac_header>
3817_ACEOF
3818rm -f conftest.$ac_objext
3819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820  (eval $ac_compile) 2>conftest.er1
3821  ac_status=$?
3822  grep -v '^ *+' conftest.er1 >conftest.err
3823  rm -f conftest.er1
3824  cat conftest.err >&5
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); } &&
3827         { ac_try='test -z "$ac_c_werror_flag"
3828                         || test ! -s conftest.err'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; } &&
3834         { ac_try='test -s conftest.$ac_objext'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; }; then
3840  ac_header_compiler=yes
3841else
3842  echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845ac_header_compiler=no
3846fi
3847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3849echo "${ECHO_T}$ac_header_compiler" >&6
3850
3851# Is the header present?
3852echo "$as_me:$LINENO: checking $ac_header presence" >&5
3853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3854cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h.  */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h.  */
3860#include <$ac_header>
3861_ACEOF
3862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864  ac_status=$?
3865  grep -v '^ *+' conftest.er1 >conftest.err
3866  rm -f conftest.er1
3867  cat conftest.err >&5
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); } >/dev/null; then
3870  if test -s conftest.err; then
3871    ac_cpp_err=$ac_c_preproc_warn_flag
3872    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873  else
3874    ac_cpp_err=
3875  fi
3876else
3877  ac_cpp_err=yes
3878fi
3879if test -z "$ac_cpp_err"; then
3880  ac_header_preproc=yes
3881else
3882  echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885  ac_header_preproc=no
3886fi
3887rm -f conftest.err conftest.$ac_ext
3888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3889echo "${ECHO_T}$ac_header_preproc" >&6
3890
3891# So?  What about this header?
3892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3893  yes:no: )
3894    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3896    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3898    ac_header_preproc=yes
3899    ;;
3900  no:yes:* )
3901    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3903    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3904echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3905    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3907    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3908echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3909    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3911    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3913    (
3914      cat <<\_ASBOX
3915## ------------------------------------------- ##
3916## Report this to orxonox-dev@mail.datacore.ch ##
3917## ------------------------------------------- ##
3918_ASBOX
3919    ) |
3920      sed "s/^/$as_me: WARNING:     /" >&2
3921    ;;
3922esac
3923echo "$as_me:$LINENO: checking for $ac_header" >&5
3924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  eval "$as_ac_Header=\$ac_header_preproc"
3929fi
3930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3932
3933fi
3934if test `eval echo '${'$as_ac_Header'}'` = yes; then
3935  cat >>confdefs.h <<_ACEOF
3936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3937_ACEOF
3938
3939else
3940  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
3941echo "$as_me: error: cannot find opengl headers" >&2;}
3942   { (exit 1); exit 1; }; }
3943fi
3944
3945done
3946
3947
3948#   checking for Unix GL
3949echo "$as_me:$LINENO: checking for main in -lGL" >&5
3950echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
3951if test "${ac_cv_lib_GL_main+set}" = set; then
3952  echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954  ac_check_lib_save_LIBS=$LIBS
3955LIBS="-lGL  $LIBS"
3956cat >conftest.$ac_ext <<_ACEOF
3957/* confdefs.h.  */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
3961/* end confdefs.h.  */
3962
3963
3964int
3965main ()
3966{
3967main ();
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972rm -f conftest.$ac_objext conftest$ac_exeext
3973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974  (eval $ac_link) 2>conftest.er1
3975  ac_status=$?
3976  grep -v '^ *+' conftest.er1 >conftest.err
3977  rm -f conftest.er1
3978  cat conftest.err >&5
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); } &&
3981         { ac_try='test -z "$ac_c_werror_flag"
3982                         || test ! -s conftest.err'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; } &&
3988         { ac_try='test -s conftest$ac_exeext'
3989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990  (eval $ac_try) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; }; then
3994  ac_cv_lib_GL_main=yes
3995else
3996  echo "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999ac_cv_lib_GL_main=no
4000fi
4001rm -f conftest.err conftest.$ac_objext \
4002      conftest$ac_exeext conftest.$ac_ext
4003LIBS=$ac_check_lib_save_LIBS
4004fi
4005echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
4006echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
4007if test $ac_cv_lib_GL_main = yes; then
4008  FOUND_GL=yes
4009fi
4010
4011if test "$FOUND_GL" = "yes" ; then
4012    LIBS="$LIBS -lGL"
4013    #   checking for Windows openGl library
4014else
4015    echo "We did not find the Linux opengl Library. Checking for Windows Library"
4016    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4017echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4018if test "${ac_cv_lib_opengl32_main+set}" = set; then
4019  echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021  ac_check_lib_save_LIBS=$LIBS
4022LIBS="-lopengl32  $LIBS"
4023cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h.  */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h.  */
4029
4030
4031int
4032main ()
4033{
4034main ();
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041  (eval $ac_link) 2>conftest.er1
4042  ac_status=$?
4043  grep -v '^ *+' conftest.er1 >conftest.err
4044  rm -f conftest.er1
4045  cat conftest.err >&5
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); } &&
4048         { ac_try='test -z "$ac_c_werror_flag"
4049                         || test ! -s conftest.err'
4050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051  (eval $ac_try) 2>&5
4052  ac_status=$?
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); }; } &&
4055         { ac_try='test -s conftest$ac_exeext'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; }; then
4061  ac_cv_lib_opengl32_main=yes
4062else
4063  echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066ac_cv_lib_opengl32_main=no
4067fi
4068rm -f conftest.err conftest.$ac_objext \
4069      conftest$ac_exeext conftest.$ac_ext
4070LIBS=$ac_check_lib_save_LIBS
4071fi
4072echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4073echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4074if test $ac_cv_lib_opengl32_main = yes; then
4075  FOUND_opengl32=yes
4076else
4077  "gl/gl.h"
4078fi
4079
4080    if test "$FOUND_opengl32" = "yes" ; then
4081        LIBS="$LIBS -lopengl32"
4082
4083    else
4084         echo "------------------"
4085         echo "opengl not found."
4086         echo "please install the opengl package which can be found at http://www.opengl.org"
4087         echo "------------------"
4088         exit -1
4089    fi
4090fi
4091
4092#  cheking for libGLU
4093
4094for ac_header in GL/glu.h
4095do
4096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097if eval "test \"\${$as_ac_Header+set}\" = set"; then
4098  echo "$as_me:$LINENO: checking for $ac_header" >&5
4099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4100if eval "test \"\${$as_ac_Header+set}\" = set"; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102fi
4103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4105else
4106  # Is the header compilable?
4107echo "$as_me:$LINENO: checking $ac_header usability" >&5
4108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4109cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115$ac_includes_default
4116#include <$ac_header>
4117_ACEOF
4118rm -f conftest.$ac_objext
4119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4120  (eval $ac_compile) 2>conftest.er1
4121  ac_status=$?
4122  grep -v '^ *+' conftest.er1 >conftest.err
4123  rm -f conftest.er1
4124  cat conftest.err >&5
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); } &&
4127         { ac_try='test -z "$ac_c_werror_flag"
4128                         || test ! -s conftest.err'
4129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130  (eval $ac_try) 2>&5
4131  ac_status=$?
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); }; } &&
4134         { ac_try='test -s conftest.$ac_objext'
4135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136  (eval $ac_try) 2>&5
4137  ac_status=$?
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); }; }; then
4140  ac_header_compiler=yes
4141else
4142  echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145ac_header_compiler=no
4146fi
4147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4149echo "${ECHO_T}$ac_header_compiler" >&6
4150
4151# Is the header present?
4152echo "$as_me:$LINENO: checking $ac_header presence" >&5
4153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4154cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h.  */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h.  */
4160#include <$ac_header>
4161_ACEOF
4162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4163  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4164  ac_status=$?
4165  grep -v '^ *+' conftest.er1 >conftest.err
4166  rm -f conftest.er1
4167  cat conftest.err >&5
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); } >/dev/null; then
4170  if test -s conftest.err; then
4171    ac_cpp_err=$ac_c_preproc_warn_flag
4172    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4173  else
4174    ac_cpp_err=
4175  fi
4176else
4177  ac_cpp_err=yes
4178fi
4179if test -z "$ac_cpp_err"; then
4180  ac_header_preproc=yes
4181else
4182  echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185  ac_header_preproc=no
4186fi
4187rm -f conftest.err conftest.$ac_ext
4188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4189echo "${ECHO_T}$ac_header_preproc" >&6
4190
4191# So?  What about this header?
4192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4193  yes:no: )
4194    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4196    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4198    ac_header_preproc=yes
4199    ;;
4200  no:yes:* )
4201    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4203    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4204echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4205    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4207    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4208echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4209    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4211    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4213    (
4214      cat <<\_ASBOX
4215## ------------------------------------------- ##
4216## Report this to orxonox-dev@mail.datacore.ch ##
4217## ------------------------------------------- ##
4218_ASBOX
4219    ) |
4220      sed "s/^/$as_me: WARNING:     /" >&2
4221    ;;
4222esac
4223echo "$as_me:$LINENO: checking for $ac_header" >&5
4224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4225if eval "test \"\${$as_ac_Header+set}\" = set"; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  eval "$as_ac_Header=\$ac_header_preproc"
4229fi
4230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4232
4233fi
4234if test `eval echo '${'$as_ac_Header'}'` = yes; then
4235  cat >>confdefs.h <<_ACEOF
4236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4237_ACEOF
4238
4239else
4240  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4241echo "$as_me: error: cannot find opengl headers" >&2;}
4242   { (exit 1); exit 1; }; }
4243fi
4244
4245done
4246
4247
4248echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
4249echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
4250if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
4251  echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253  ac_check_lib_save_LIBS=$LIBS
4254LIBS="-lGLU  $LIBS"
4255cat >conftest.$ac_ext <<_ACEOF
4256/* confdefs.h.  */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h.  */
4261
4262/* Override any gcc2 internal prototype to avoid an error.  */
4263#ifdef __cplusplus
4264extern "C"
4265#endif
4266/* We use char because int might match the return type of a gcc2
4267   builtin and then its argument prototype would still apply.  */
4268char gluProject ();
4269int
4270main ()
4271{
4272gluProject ();
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279  (eval $ac_link) 2>conftest.er1
4280  ac_status=$?
4281  grep -v '^ *+' conftest.er1 >conftest.err
4282  rm -f conftest.er1
4283  cat conftest.err >&5
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); } &&
4286         { ac_try='test -z "$ac_c_werror_flag"
4287                         || test ! -s conftest.err'
4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289  (eval $ac_try) 2>&5
4290  ac_status=$?
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); }; } &&
4293         { ac_try='test -s conftest$ac_exeext'
4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295  (eval $ac_try) 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); }; }; then
4299  ac_cv_lib_GLU_gluProject=yes
4300else
4301  echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304ac_cv_lib_GLU_gluProject=no
4305fi
4306rm -f conftest.err conftest.$ac_objext \
4307      conftest$ac_exeext conftest.$ac_ext
4308LIBS=$ac_check_lib_save_LIBS
4309fi
4310echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
4311echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
4312if test $ac_cv_lib_GLU_gluProject = yes; then
4313  FOUND_GLU=yes
4314fi
4315
4316if test "$FOUND_GLU" = "yes" ; then
4317    LIBS="$LIBS -lGLU"
4318    #   checking for Windows GLU32 library
4319else
4320    echo "We did not find the Linux GLU Library. Checking for Windows Library"
4321    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4322echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4323if test "${ac_cv_lib_glu32_main+set}" = set; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  ac_check_lib_save_LIBS=$LIBS
4327LIBS="-lglu32  $LIBS"
4328cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h.  */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h.  */
4334
4335
4336int
4337main ()
4338{
4339main ();
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346  (eval $ac_link) 2>conftest.er1
4347  ac_status=$?
4348  grep -v '^ *+' conftest.er1 >conftest.err
4349  rm -f conftest.er1
4350  cat conftest.err >&5
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); } &&
4353         { ac_try='test -z "$ac_c_werror_flag"
4354                         || test ! -s conftest.err'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; } &&
4360         { ac_try='test -s conftest$ac_exeext'
4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362  (eval $ac_try) 2>&5
4363  ac_status=$?
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); }; }; then
4366  ac_cv_lib_glu32_main=yes
4367else
4368  echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371ac_cv_lib_glu32_main=no
4372fi
4373rm -f conftest.err conftest.$ac_objext \
4374      conftest$ac_exeext conftest.$ac_ext
4375LIBS=$ac_check_lib_save_LIBS
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4378echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4379if test $ac_cv_lib_glu32_main = yes; then
4380  FOUND_glu32=yes
4381fi
4382
4383    if test "$FOUND_glu32" = "yes" ; then
4384        LIBS="$LIBS -lGLU32"
4385
4386        else
4387         echo "------------------"
4388         echo "GLU library not found."
4389         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4390         echo "------------------"
4391         exit -1
4392    fi
4393fi
4394
4395# FIXME: Replace `main' with a function in `-lOSMesa':
4396
4397echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
4398echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
4399if test "${ac_cv_lib_OSMesa_main+set}" = set; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  ac_check_lib_save_LIBS=$LIBS
4403LIBS="-lOSMesa  $LIBS"
4404cat >conftest.$ac_ext <<_ACEOF
4405/* confdefs.h.  */
4406_ACEOF
4407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
4409/* end confdefs.h.  */
4410
4411
4412int
4413main ()
4414{
4415main ();
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext conftest$ac_exeext
4421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4422  (eval $ac_link) 2>conftest.er1
4423  ac_status=$?
4424  grep -v '^ *+' conftest.er1 >conftest.err
4425  rm -f conftest.er1
4426  cat conftest.err >&5
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } &&
4429         { ac_try='test -z "$ac_c_werror_flag"
4430                         || test ! -s conftest.err'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; } &&
4436         { ac_try='test -s conftest$ac_exeext'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; }; then
4442  ac_cv_lib_OSMesa_main=yes
4443else
4444  echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447ac_cv_lib_OSMesa_main=no
4448fi
4449rm -f conftest.err conftest.$ac_objext \
4450      conftest$ac_exeext conftest.$ac_ext
4451LIBS=$ac_check_lib_save_LIBS
4452fi
4453echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
4454echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
4455if test $ac_cv_lib_OSMesa_main = yes; then
4456  cat >>confdefs.h <<_ACEOF
4457#define HAVE_LIBOSMESA 1
4458_ACEOF
4459
4460  LIBS="-lOSMesa $LIBS"
4461
4462fi
4463
4464# FIXME: Replace `main' with a function in `-lX11':
4465
4466echo "$as_me:$LINENO: checking for main in -lX11" >&5
4467echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4468if test "${ac_cv_lib_X11_main+set}" = set; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471  ac_check_lib_save_LIBS=$LIBS
4472LIBS="-lX11  $LIBS"
4473cat >conftest.$ac_ext <<_ACEOF
4474/* confdefs.h.  */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h.  */
4479
4480
4481int
4482main ()
4483{
4484main ();
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext conftest$ac_exeext
4490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491  (eval $ac_link) 2>conftest.er1
4492  ac_status=$?
4493  grep -v '^ *+' conftest.er1 >conftest.err
4494  rm -f conftest.er1
4495  cat conftest.err >&5
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); } &&
4498         { ac_try='test -z "$ac_c_werror_flag"
4499                         || test ! -s conftest.err'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; } &&
4505         { ac_try='test -s conftest$ac_exeext'
4506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507  (eval $ac_try) 2>&5
4508  ac_status=$?
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); }; }; then
4511  ac_cv_lib_X11_main=yes
4512else
4513  echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516ac_cv_lib_X11_main=no
4517fi
4518rm -f conftest.err conftest.$ac_objext \
4519      conftest$ac_exeext conftest.$ac_ext
4520LIBS=$ac_check_lib_save_LIBS
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4523echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4524if test $ac_cv_lib_X11_main = yes; then
4525  cat >>confdefs.h <<_ACEOF
4526#define HAVE_LIBX11 1
4527_ACEOF
4528
4529  LIBS="-lX11 $LIBS"
4530
4531fi
4532
4533# FIXME: Replace `main' with a function in `-lXt':
4534
4535echo "$as_me:$LINENO: checking for main in -lXt" >&5
4536echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4537if test "${ac_cv_lib_Xt_main+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  ac_check_lib_save_LIBS=$LIBS
4541LIBS="-lXt  $LIBS"
4542cat >conftest.$ac_ext <<_ACEOF
4543/* confdefs.h.  */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h.  */
4548
4549
4550int
4551main ()
4552{
4553main ();
4554  ;
4555  return 0;
4556}
4557_ACEOF
4558rm -f conftest.$ac_objext conftest$ac_exeext
4559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560  (eval $ac_link) 2>conftest.er1
4561  ac_status=$?
4562  grep -v '^ *+' conftest.er1 >conftest.err
4563  rm -f conftest.er1
4564  cat conftest.err >&5
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } &&
4567         { ac_try='test -z "$ac_c_werror_flag"
4568                         || test ! -s conftest.err'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; } &&
4574         { ac_try='test -s conftest$ac_exeext'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; }; then
4580  ac_cv_lib_Xt_main=yes
4581else
4582  echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585ac_cv_lib_Xt_main=no
4586fi
4587rm -f conftest.err conftest.$ac_objext \
4588      conftest$ac_exeext conftest.$ac_ext
4589LIBS=$ac_check_lib_save_LIBS
4590fi
4591echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4592echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4593if test $ac_cv_lib_Xt_main = yes; then
4594  cat >>confdefs.h <<_ACEOF
4595#define HAVE_LIBXT 1
4596_ACEOF
4597
4598  LIBS="-lXt $LIBS"
4599
4600fi
4601
4602
4603#  cheking for libglut32
4604
4605for ac_header in GL/glut.h
4606do
4607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4608if eval "test \"\${$as_ac_Header+set}\" = set"; then
4609  echo "$as_me:$LINENO: checking for $ac_header" >&5
4610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4611if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612  echo $ECHO_N "(cached) $ECHO_C" >&6
4613fi
4614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616else
4617  # Is the header compilable?
4618echo "$as_me:$LINENO: checking $ac_header usability" >&5
4619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4620cat >conftest.$ac_ext <<_ACEOF
4621/* confdefs.h.  */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h.  */
4626$ac_includes_default
4627#include <$ac_header>
4628_ACEOF
4629rm -f conftest.$ac_objext
4630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631  (eval $ac_compile) 2>conftest.er1
4632  ac_status=$?
4633  grep -v '^ *+' conftest.er1 >conftest.err
4634  rm -f conftest.er1
4635  cat conftest.err >&5
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); } &&
4638         { ac_try='test -z "$ac_c_werror_flag"
4639                         || test ! -s conftest.err'
4640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641  (eval $ac_try) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; } &&
4645         { ac_try='test -s conftest.$ac_objext'
4646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647  (eval $ac_try) 2>&5
4648  ac_status=$?
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); }; }; then
4651  ac_header_compiler=yes
4652else
4653  echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656ac_header_compiler=no
4657fi
4658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4660echo "${ECHO_T}$ac_header_compiler" >&6
4661
4662# Is the header present?
4663echo "$as_me:$LINENO: checking $ac_header presence" >&5
4664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h.  */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h.  */
4671#include <$ac_header>
4672_ACEOF
4673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4674  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4675  ac_status=$?
4676  grep -v '^ *+' conftest.er1 >conftest.err
4677  rm -f conftest.er1
4678  cat conftest.err >&5
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); } >/dev/null; then
4681  if test -s conftest.err; then
4682    ac_cpp_err=$ac_c_preproc_warn_flag
4683    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4684  else
4685    ac_cpp_err=
4686  fi
4687else
4688  ac_cpp_err=yes
4689fi
4690if test -z "$ac_cpp_err"; then
4691  ac_header_preproc=yes
4692else
4693  echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696  ac_header_preproc=no
4697fi
4698rm -f conftest.err conftest.$ac_ext
4699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4700echo "${ECHO_T}$ac_header_preproc" >&6
4701
4702# So?  What about this header?
4703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4704  yes:no: )
4705    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4707    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4709    ac_header_preproc=yes
4710    ;;
4711  no:yes:* )
4712    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4714    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4715echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4716    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4718    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4719echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4720    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4722    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4724    (
4725      cat <<\_ASBOX
4726## ------------------------------------------- ##
4727## Report this to orxonox-dev@mail.datacore.ch ##
4728## ------------------------------------------- ##
4729_ASBOX
4730    ) |
4731      sed "s/^/$as_me: WARNING:     /" >&2
4732    ;;
4733esac
4734echo "$as_me:$LINENO: checking for $ac_header" >&5
4735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  eval "$as_ac_Header=\$ac_header_preproc"
4740fi
4741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4743
4744fi
4745if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746  cat >>confdefs.h <<_ACEOF
4747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748_ACEOF
4749
4750else
4751  { { echo "$as_me:$LINENO: error: cannot find glut headers" >&5
4752echo "$as_me: error: cannot find glut headers" >&2;}
4753   { (exit 1); exit 1; }; }
4754fi
4755
4756done
4757
4758echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
4759echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6
4760if test "${ac_cv_lib_glut_glutInit+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  ac_check_lib_save_LIBS=$LIBS
4764LIBS="-lglut  $LIBS"
4765cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h.  */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h.  */
4771
4772/* Override any gcc2 internal prototype to avoid an error.  */
4773#ifdef __cplusplus
4774extern "C"
4775#endif
4776/* We use char because int might match the return type of a gcc2
4777   builtin and then its argument prototype would still apply.  */
4778char glutInit ();
4779int
4780main ()
4781{
4782glutInit ();
4783  ;
4784  return 0;
4785}
4786_ACEOF
4787rm -f conftest.$ac_objext conftest$ac_exeext
4788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789  (eval $ac_link) 2>conftest.er1
4790  ac_status=$?
4791  grep -v '^ *+' conftest.er1 >conftest.err
4792  rm -f conftest.er1
4793  cat conftest.err >&5
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); } &&
4796         { ac_try='test -z "$ac_c_werror_flag"
4797                         || test ! -s conftest.err'
4798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799  (eval $ac_try) 2>&5
4800  ac_status=$?
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); }; } &&
4803         { ac_try='test -s conftest$ac_exeext'
4804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805  (eval $ac_try) 2>&5
4806  ac_status=$?
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); }; }; then
4809  ac_cv_lib_glut_glutInit=yes
4810else
4811  echo "$as_me: failed program was:" >&5
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814ac_cv_lib_glut_glutInit=no
4815fi
4816rm -f conftest.err conftest.$ac_objext \
4817      conftest$ac_exeext conftest.$ac_ext
4818LIBS=$ac_check_lib_save_LIBS
4819fi
4820echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
4821echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6
4822if test $ac_cv_lib_glut_glutInit = yes; then
4823  FOUND_glut=yes
4824fi
4825
4826if test "$FOUND_glut" = "yes" ; then
4827    LIBS="$LIBS -lglut"
4828    #   checking for Windows glut32 library
4829else
4830    echo "We did not find the Linux glut Library. Checking for Windows Library"
4831    echo "$as_me:$LINENO: checking for main in -lglut32" >&5
4832echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&6
4833if test "${ac_cv_lib_glut32_main+set}" = set; then
4834  echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836  ac_check_lib_save_LIBS=$LIBS
4837LIBS="-lglut32  $LIBS"
4838cat >conftest.$ac_ext <<_ACEOF
4839/* confdefs.h.  */
4840_ACEOF
4841cat confdefs.h >>conftest.$ac_ext
4842cat >>conftest.$ac_ext <<_ACEOF
4843/* end confdefs.h.  */
4844
4845
4846int
4847main ()
4848{
4849main ();
4850  ;
4851  return 0;
4852}
4853_ACEOF
4854rm -f conftest.$ac_objext conftest$ac_exeext
4855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856  (eval $ac_link) 2>conftest.er1
4857  ac_status=$?
4858  grep -v '^ *+' conftest.er1 >conftest.err
4859  rm -f conftest.er1
4860  cat conftest.err >&5
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); } &&
4863         { ac_try='test -z "$ac_c_werror_flag"
4864                         || test ! -s conftest.err'
4865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866  (eval $ac_try) 2>&5
4867  ac_status=$?
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); }; } &&
4870         { ac_try='test -s conftest$ac_exeext'
4871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872  (eval $ac_try) 2>&5
4873  ac_status=$?
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); }; }; then
4876  ac_cv_lib_glut32_main=yes
4877else
4878  echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881ac_cv_lib_glut32_main=no
4882fi
4883rm -f conftest.err conftest.$ac_objext \
4884      conftest$ac_exeext conftest.$ac_ext
4885LIBS=$ac_check_lib_save_LIBS
4886fi
4887echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&5
4888echo "${ECHO_T}$ac_cv_lib_glut32_main" >&6
4889if test $ac_cv_lib_glut32_main = yes; then
4890  FOUND_glut32=yes
4891fi
4892
4893    if test "$FOUND_glut32" = "yes" ; then
4894        LIBS="$LIBS -lglut32"
4895    else
4896         echo "------------------"
4897         echo "glut library not found."
4898         echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html"
4899         echo "------------------"
4900         exit -1
4901    fi
4902fi
4903
4904## mingw CHECK
4905if test $mingw = yes ; then
4906        echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4907echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4908if test "${ac_cv_lib_mingw32_main+set}" = set; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  ac_check_lib_save_LIBS=$LIBS
4912LIBS="-lmingw32  $LIBS"
4913cat >conftest.$ac_ext <<_ACEOF
4914/* confdefs.h.  */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h.  */
4919
4920
4921int
4922main ()
4923{
4924main ();
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929rm -f conftest.$ac_objext conftest$ac_exeext
4930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931  (eval $ac_link) 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } &&
4938         { ac_try='test -z "$ac_c_werror_flag"
4939                         || test ! -s conftest.err'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; } &&
4945         { ac_try='test -s conftest$ac_exeext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  ac_cv_lib_mingw32_main=yes
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956ac_cv_lib_mingw32_main=no
4957fi
4958rm -f conftest.err conftest.$ac_objext \
4959      conftest$ac_exeext conftest.$ac_ext
4960LIBS=$ac_check_lib_save_LIBS
4961fi
4962echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4963echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4964if test $ac_cv_lib_mingw32_main = yes; then
4965  FOUND_mingw32=yes
4966fi
4967
4968        if test $FOUND_mingw32 = "yes"; then
4969                LIBS="$LIBS -lmingw32"
4970        fi
4971fi
4972
4973## SDL CHECK
4974
4975#checking for SDL libs
4976
4977for ac_header in SDL/SDL.h
4978do
4979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980if eval "test \"\${$as_ac_Header+set}\" = set"; then
4981  echo "$as_me:$LINENO: checking for $ac_header" >&5
4982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4983if eval "test \"\${$as_ac_Header+set}\" = set"; then
4984  echo $ECHO_N "(cached) $ECHO_C" >&6
4985fi
4986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4988else
4989  # Is the header compilable?
4990echo "$as_me:$LINENO: checking $ac_header usability" >&5
4991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4992cat >conftest.$ac_ext <<_ACEOF
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998$ac_includes_default
4999#include <$ac_header>
5000_ACEOF
5001rm -f conftest.$ac_objext
5002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003  (eval $ac_compile) 2>conftest.er1
5004  ac_status=$?
5005  grep -v '^ *+' conftest.er1 >conftest.err
5006  rm -f conftest.er1
5007  cat conftest.err >&5
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } &&
5010         { ac_try='test -z "$ac_c_werror_flag"
5011                         || test ! -s conftest.err'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; } &&
5017         { ac_try='test -s conftest.$ac_objext'
5018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019  (eval $ac_try) 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; }; then
5023  ac_header_compiler=yes
5024else
5025  echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028ac_header_compiler=no
5029fi
5030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5032echo "${ECHO_T}$ac_header_compiler" >&6
5033
5034# Is the header present?
5035echo "$as_me:$LINENO: checking $ac_header presence" >&5
5036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5037cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h.  */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h.  */
5043#include <$ac_header>
5044_ACEOF
5045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } >/dev/null; then
5053  if test -s conftest.err; then
5054    ac_cpp_err=$ac_c_preproc_warn_flag
5055    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5056  else
5057    ac_cpp_err=
5058  fi
5059else
5060  ac_cpp_err=yes
5061fi
5062if test -z "$ac_cpp_err"; then
5063  ac_header_preproc=yes
5064else
5065  echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068  ac_header_preproc=no
5069fi
5070rm -f conftest.err conftest.$ac_ext
5071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5072echo "${ECHO_T}$ac_header_preproc" >&6
5073
5074# So?  What about this header?
5075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5076  yes:no: )
5077    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5081    ac_header_preproc=yes
5082    ;;
5083  no:yes:* )
5084    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5086    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5087echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5088    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5090    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5091echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5094    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5096    (
5097      cat <<\_ASBOX
5098## ------------------------------------------- ##
5099## Report this to orxonox-dev@mail.datacore.ch ##
5100## ------------------------------------------- ##
5101_ASBOX
5102    ) |
5103      sed "s/^/$as_me: WARNING:     /" >&2
5104    ;;
5105esac
5106echo "$as_me:$LINENO: checking for $ac_header" >&5
5107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5108if eval "test \"\${$as_ac_Header+set}\" = set"; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111  eval "$as_ac_Header=\$ac_header_preproc"
5112fi
5113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5115
5116fi
5117if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118  cat >>confdefs.h <<_ACEOF
5119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5120_ACEOF
5121
5122else
5123  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5124echo "$as_me: error: cannot find SDL headers" >&2;}
5125   { (exit 1); exit 1; }; }
5126fi
5127
5128done
5129
5130if test $mingw = no ; then
5131        echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5132echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5133if test "${ac_cv_lib_SDL_main+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  ac_check_lib_save_LIBS=$LIBS
5137LIBS="-lSDL  $LIBS"
5138cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144
5145
5146int
5147main ()
5148{
5149main ();
5150  ;
5151  return 0;
5152}
5153_ACEOF
5154rm -f conftest.$ac_objext conftest$ac_exeext
5155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156  (eval $ac_link) 2>conftest.er1
5157  ac_status=$?
5158  grep -v '^ *+' conftest.er1 >conftest.err
5159  rm -f conftest.er1
5160  cat conftest.err >&5
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); } &&
5163         { ac_try='test -z "$ac_c_werror_flag"
5164                         || test ! -s conftest.err'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; } &&
5170         { ac_try='test -s conftest$ac_exeext'
5171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172  (eval $ac_try) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; }; then
5176  ac_cv_lib_SDL_main=yes
5177else
5178  echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181ac_cv_lib_SDL_main=no
5182fi
5183rm -f conftest.err conftest.$ac_objext \
5184      conftest$ac_exeext conftest.$ac_ext
5185LIBS=$ac_check_lib_save_LIBS
5186fi
5187echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5188echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5189if test $ac_cv_lib_SDL_main = yes; then
5190  FOUND_SDL=yes
5191fi
5192
5193        if test "$FOUND_SDL" = "yes" ; then
5194                LIBS="$LIBS -lSDL"
5195        fi
5196#   checking for Windows sdl library
5197else
5198    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5199echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5200if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203  ac_check_lib_save_LIBS=$LIBS
5204LIBS="-lsdlmain  $LIBS"
5205cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h.  */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h.  */
5211
5212
5213int
5214main ()
5215{
5216main ();
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext conftest$ac_exeext
5222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223  (eval $ac_link) 2>conftest.er1
5224  ac_status=$?
5225  grep -v '^ *+' conftest.er1 >conftest.err
5226  rm -f conftest.er1
5227  cat conftest.err >&5
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); } &&
5230         { ac_try='test -z "$ac_c_werror_flag"
5231                         || test ! -s conftest.err'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; } &&
5237         { ac_try='test -s conftest$ac_exeext'
5238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239  (eval $ac_try) 2>&5
5240  ac_status=$?
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); }; }; then
5243  ac_cv_lib_sdlmain_main=yes
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248ac_cv_lib_sdlmain_main=no
5249fi
5250rm -f conftest.err conftest.$ac_objext \
5251      conftest$ac_exeext conftest.$ac_ext
5252LIBS=$ac_check_lib_save_LIBS
5253fi
5254echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5255echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5256if test $ac_cv_lib_sdlmain_main = yes; then
5257  FOUND_sdlmain=yes
5258fi
5259
5260    if test "$FOUND_sdlmain" = "yes" ; then
5261        LIBS="$LIBS -lsdlmain"
5262    fi
5263        echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5264echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5265if test "${ac_cv_lib_sdl_main+set}" = set; then
5266  echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268  ac_check_lib_save_LIBS=$LIBS
5269LIBS="-lsdl  $LIBS"
5270cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h.  */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h.  */
5276
5277
5278int
5279main ()
5280{
5281main ();
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext conftest$ac_exeext
5287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288  (eval $ac_link) 2>conftest.er1
5289  ac_status=$?
5290  grep -v '^ *+' conftest.er1 >conftest.err
5291  rm -f conftest.er1
5292  cat conftest.err >&5
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); } &&
5295         { ac_try='test -z "$ac_c_werror_flag"
5296                         || test ! -s conftest.err'
5297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298  (eval $ac_try) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }; } &&
5302         { ac_try='test -s conftest$ac_exeext'
5303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304  (eval $ac_try) 2>&5
5305  ac_status=$?
5306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307  (exit $ac_status); }; }; then
5308  ac_cv_lib_sdl_main=yes
5309else
5310  echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313ac_cv_lib_sdl_main=no
5314fi
5315rm -f conftest.err conftest.$ac_objext \
5316      conftest$ac_exeext conftest.$ac_ext
5317LIBS=$ac_check_lib_save_LIBS
5318fi
5319echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5320echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5321if test $ac_cv_lib_sdl_main = yes; then
5322  FOUND_sdl=yes
5323fi
5324
5325        if test "$FOUND_sdl" = "yes" ; then
5326                LIBS="$LIBS -lsdl"
5327        fi
5328fi
5329
5330#checking for pthread libs
5331echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5332echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5333if test "${ac_cv_lib_pthread_main+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  ac_check_lib_save_LIBS=$LIBS
5337LIBS="-lpthread  $LIBS"
5338cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h.  */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h.  */
5344
5345
5346int
5347main ()
5348{
5349main ();
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext conftest$ac_exeext
5355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356  (eval $ac_link) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363         { ac_try='test -z "$ac_c_werror_flag"
5364                         || test ! -s conftest.err'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; } &&
5370         { ac_try='test -s conftest$ac_exeext'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; }; then
5376  ac_cv_lib_pthread_main=yes
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_cv_lib_pthread_main=no
5382fi
5383rm -f conftest.err conftest.$ac_objext \
5384      conftest$ac_exeext conftest.$ac_ext
5385LIBS=$ac_check_lib_save_LIBS
5386fi
5387echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
5388echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
5389if test $ac_cv_lib_pthread_main = yes; then
5390  FOUND_pthread=yes
5391fi
5392
5393if test "$FOUND_pthread" = "yes" ; then
5394    LIBS="$LIBS -lpthread"
5395fi
5396
5397
5398
5399
5400# FIXME: Replace `main' with a function in `-lm':
5401
5402echo "$as_me:$LINENO: checking for main in -lm" >&5
5403echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5404if test "${ac_cv_lib_m_main+set}" = set; then
5405  echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407  ac_check_lib_save_LIBS=$LIBS
5408LIBS="-lm  $LIBS"
5409cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415
5416
5417int
5418main ()
5419{
5420main ();
5421  ;
5422  return 0;
5423}
5424_ACEOF
5425rm -f conftest.$ac_objext conftest$ac_exeext
5426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427  (eval $ac_link) 2>conftest.er1
5428  ac_status=$?
5429  grep -v '^ *+' conftest.er1 >conftest.err
5430  rm -f conftest.er1
5431  cat conftest.err >&5
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); } &&
5434         { ac_try='test -z "$ac_c_werror_flag"
5435                         || test ! -s conftest.err'
5436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437  (eval $ac_try) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }; } &&
5441         { ac_try='test -s conftest$ac_exeext'
5442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443  (eval $ac_try) 2>&5
5444  ac_status=$?
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); }; }; then
5447  ac_cv_lib_m_main=yes
5448else
5449  echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452ac_cv_lib_m_main=no
5453fi
5454rm -f conftest.err conftest.$ac_objext \
5455      conftest$ac_exeext conftest.$ac_ext
5456LIBS=$ac_check_lib_save_LIBS
5457fi
5458echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5459echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5460if test $ac_cv_lib_m_main = yes; then
5461  cat >>confdefs.h <<_ACEOF
5462#define HAVE_LIBM 1
5463_ACEOF
5464
5465  LIBS="-lm $LIBS"
5466
5467fi
5468
5469
5470LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
5471
5472
5473# Checks for header files.
5474echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5475echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5476if test "${ac_cv_header_stdc+set}" = set; then
5477  echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479  cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h.  */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h.  */
5485#include <stdlib.h>
5486#include <stdarg.h>
5487#include <string.h>
5488#include <float.h>
5489
5490int
5491main ()
5492{
5493
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498rm -f conftest.$ac_objext
5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500  (eval $ac_compile) 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } &&
5507         { ac_try='test -z "$ac_c_werror_flag"
5508                         || test ! -s conftest.err'
5509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510  (eval $ac_try) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); }; } &&
5514         { ac_try='test -s conftest.$ac_objext'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; }; then
5520  ac_cv_header_stdc=yes
5521else
5522  echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525ac_cv_header_stdc=no
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528
5529if test $ac_cv_header_stdc = yes; then
5530  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5531  cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h.  */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h.  */
5537#include <string.h>
5538
5539_ACEOF
5540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541  $EGREP "memchr" >/dev/null 2>&1; then
5542  :
5543else
5544  ac_cv_header_stdc=no
5545fi
5546rm -f conftest*
5547
5548fi
5549
5550if test $ac_cv_header_stdc = yes; then
5551  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5552  cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558#include <stdlib.h>
5559
5560_ACEOF
5561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562  $EGREP "free" >/dev/null 2>&1; then
5563  :
5564else
5565  ac_cv_header_stdc=no
5566fi
5567rm -f conftest*
5568
5569fi
5570
5571if test $ac_cv_header_stdc = yes; then
5572  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5573  if test "$cross_compiling" = yes; then
5574  :
5575else
5576  cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h.  */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h.  */
5582#include <ctype.h>
5583#if ((' ' & 0x0FF) == 0x020)
5584# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5585# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5586#else
5587# define ISLOWER(c) \
5588                   (('a' <= (c) && (c) <= 'i') \
5589                     || ('j' <= (c) && (c) <= 'r') \
5590                     || ('s' <= (c) && (c) <= 'z'))
5591# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5592#endif
5593
5594#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5595int
5596main ()
5597{
5598  int i;
5599  for (i = 0; i < 256; i++)
5600    if (XOR (islower (i), ISLOWER (i))
5601        || toupper (i) != TOUPPER (i))
5602      exit(2);
5603  exit (0);
5604}
5605_ACEOF
5606rm -f conftest$ac_exeext
5607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608  (eval $ac_link) 2>&5
5609  ac_status=$?
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613  (eval $ac_try) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }; }; then
5617  :
5618else
5619  echo "$as_me: program exited with status $ac_status" >&5
5620echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623( exit $ac_status )
5624ac_cv_header_stdc=no
5625fi
5626rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627fi
5628fi
5629fi
5630echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5631echo "${ECHO_T}$ac_cv_header_stdc" >&6
5632if test $ac_cv_header_stdc = yes; then
5633
5634cat >>confdefs.h <<\_ACEOF
5635#define STDC_HEADERS 1
5636_ACEOF
5637
5638fi
5639
5640
5641
5642for ac_header in stdlib.h string.h
5643do
5644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5645if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646  echo "$as_me:$LINENO: checking for $ac_header" >&5
5647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5648if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650fi
5651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653else
5654  # Is the header compilable?
5655echo "$as_me:$LINENO: checking $ac_header usability" >&5
5656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5657cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663$ac_includes_default
5664#include <$ac_header>
5665_ACEOF
5666rm -f conftest.$ac_objext
5667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668  (eval $ac_compile) 2>conftest.er1
5669  ac_status=$?
5670  grep -v '^ *+' conftest.er1 >conftest.err
5671  rm -f conftest.er1
5672  cat conftest.err >&5
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); } &&
5675         { ac_try='test -z "$ac_c_werror_flag"
5676                         || test ! -s conftest.err'
5677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678  (eval $ac_try) 2>&5
5679  ac_status=$?
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); }; } &&
5682         { ac_try='test -s conftest.$ac_objext'
5683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684  (eval $ac_try) 2>&5
5685  ac_status=$?
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); }; }; then
5688  ac_header_compiler=yes
5689else
5690  echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693ac_header_compiler=no
5694fi
5695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5697echo "${ECHO_T}$ac_header_compiler" >&6
5698
5699# Is the header present?
5700echo "$as_me:$LINENO: checking $ac_header presence" >&5
5701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5702cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708#include <$ac_header>
5709_ACEOF
5710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } >/dev/null; then
5718  if test -s conftest.err; then
5719    ac_cpp_err=$ac_c_preproc_warn_flag
5720    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5721  else
5722    ac_cpp_err=
5723  fi
5724else
5725  ac_cpp_err=yes
5726fi
5727if test -z "$ac_cpp_err"; then
5728  ac_header_preproc=yes
5729else
5730  echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733  ac_header_preproc=no
5734fi
5735rm -f conftest.err conftest.$ac_ext
5736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5737echo "${ECHO_T}$ac_header_preproc" >&6
5738
5739# So?  What about this header?
5740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5741  yes:no: )
5742    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5744    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5746    ac_header_preproc=yes
5747    ;;
5748  no:yes:* )
5749    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5751    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5752echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5753    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5755    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5756echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5759    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5761    (
5762      cat <<\_ASBOX
5763## ------------------------------------------- ##
5764## Report this to orxonox-dev@mail.datacore.ch ##
5765## ------------------------------------------- ##
5766_ASBOX
5767    ) |
5768      sed "s/^/$as_me: WARNING:     /" >&2
5769    ;;
5770esac
5771echo "$as_me:$LINENO: checking for $ac_header" >&5
5772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5773if eval "test \"\${$as_ac_Header+set}\" = set"; then
5774  echo $ECHO_N "(cached) $ECHO_C" >&6
5775else
5776  eval "$as_ac_Header=\$ac_header_preproc"
5777fi
5778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780
5781fi
5782if test `eval echo '${'$as_ac_Header'}'` = yes; then
5783  cat >>confdefs.h <<_ACEOF
5784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5785_ACEOF
5786
5787fi
5788
5789done
5790
5791
5792# Checks for typedefs, structures, and compiler characteristics.
5793echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5794echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
5795if test "${ac_cv_header_stdbool_h+set}" = set; then
5796  echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798  cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h.  */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h.  */
5804
5805#include <stdbool.h>
5806#ifndef bool
5807# error bool is not defined
5808#endif
5809#ifndef false
5810# error false is not defined
5811#endif
5812#if false
5813# error false is not 0
5814#endif
5815#ifndef true
5816# error true is not defined
5817#endif
5818#if true != 1
5819# error true is not 1
5820#endif
5821#ifndef __bool_true_false_are_defined
5822# error __bool_true_false_are_defined is not defined
5823#endif
5824
5825        struct s { _Bool s: 1; _Bool t; } s;
5826
5827        char a[true == 1 ? 1 : -1];
5828        char b[false == 0 ? 1 : -1];
5829        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5830        char d[(bool) -0.5 == true ? 1 : -1];
5831        bool e = &s;
5832        char f[(_Bool) -0.0 == false ? 1 : -1];
5833        char g[true];
5834        char h[sizeof (_Bool)];
5835        char i[sizeof s.t];
5836
5837int
5838main ()
5839{
5840 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847  (eval $ac_compile) 2>conftest.er1
5848  ac_status=$?
5849  grep -v '^ *+' conftest.er1 >conftest.err
5850  rm -f conftest.er1
5851  cat conftest.err >&5
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); } &&
5854         { ac_try='test -z "$ac_c_werror_flag"
5855                         || test ! -s conftest.err'
5856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857  (eval $ac_try) 2>&5
5858  ac_status=$?
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); }; } &&
5861         { ac_try='test -s conftest.$ac_objext'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; }; then
5867  ac_cv_header_stdbool_h=yes
5868else
5869  echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872ac_cv_header_stdbool_h=no
5873fi
5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875fi
5876echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5877echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5878echo "$as_me:$LINENO: checking for _Bool" >&5
5879echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
5880if test "${ac_cv_type__Bool+set}" = set; then
5881  echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883  cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889$ac_includes_default
5890int
5891main ()
5892{
5893if ((_Bool *) 0)
5894  return 0;
5895if (sizeof (_Bool))
5896  return 0;
5897  ;
5898  return 0;
5899}
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903  (eval $ac_compile) 2>conftest.er1
5904  ac_status=$?
5905  grep -v '^ *+' conftest.er1 >conftest.err
5906  rm -f conftest.er1
5907  cat conftest.err >&5
5908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909  (exit $ac_status); } &&
5910         { ac_try='test -z "$ac_c_werror_flag"
5911                         || test ! -s conftest.err'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; } &&
5917         { ac_try='test -s conftest.$ac_objext'
5918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919  (eval $ac_try) 2>&5
5920  ac_status=$?
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); }; }; then
5923  ac_cv_type__Bool=yes
5924else
5925  echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928ac_cv_type__Bool=no
5929fi
5930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5933echo "${ECHO_T}$ac_cv_type__Bool" >&6
5934if test $ac_cv_type__Bool = yes; then
5935
5936cat >>confdefs.h <<_ACEOF
5937#define HAVE__BOOL 1
5938_ACEOF
5939
5940
5941fi
5942
5943if test $ac_cv_header_stdbool_h = yes; then
5944
5945cat >>confdefs.h <<\_ACEOF
5946#define HAVE_STDBOOL_H 1
5947_ACEOF
5948
5949fi
5950
5951
5952# Checks for library functions.
5953
5954for ac_header in stdlib.h
5955do
5956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957if eval "test \"\${$as_ac_Header+set}\" = set"; then
5958  echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962fi
5963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965else
5966  # Is the header compilable?
5967echo "$as_me:$LINENO: checking $ac_header usability" >&5
5968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975$ac_includes_default
5976#include <$ac_header>
5977_ACEOF
5978rm -f conftest.$ac_objext
5979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980  (eval $ac_compile) 2>conftest.er1
5981  ac_status=$?
5982  grep -v '^ *+' conftest.er1 >conftest.err
5983  rm -f conftest.er1
5984  cat conftest.err >&5
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); } &&
5987         { ac_try='test -z "$ac_c_werror_flag"
5988                         || test ! -s conftest.err'
5989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990  (eval $ac_try) 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); }; } &&
5994         { ac_try='test -s conftest.$ac_objext'
5995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996  (eval $ac_try) 2>&5
5997  ac_status=$?
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); }; }; then
6000  ac_header_compiler=yes
6001else
6002  echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005ac_header_compiler=no
6006fi
6007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6009echo "${ECHO_T}$ac_header_compiler" >&6
6010
6011# Is the header present?
6012echo "$as_me:$LINENO: checking $ac_header presence" >&5
6013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6014cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h.  */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h.  */
6020#include <$ac_header>
6021_ACEOF
6022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6024  ac_status=$?
6025  grep -v '^ *+' conftest.er1 >conftest.err
6026  rm -f conftest.er1
6027  cat conftest.err >&5
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); } >/dev/null; then
6030  if test -s conftest.err; then
6031    ac_cpp_err=$ac_c_preproc_warn_flag
6032    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033  else
6034    ac_cpp_err=
6035  fi
6036else
6037  ac_cpp_err=yes
6038fi
6039if test -z "$ac_cpp_err"; then
6040  ac_header_preproc=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045  ac_header_preproc=no
6046fi
6047rm -f conftest.err conftest.$ac_ext
6048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6049echo "${ECHO_T}$ac_header_preproc" >&6
6050
6051# So?  What about this header?
6052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6053  yes:no: )
6054    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6056    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6058    ac_header_preproc=yes
6059    ;;
6060  no:yes:* )
6061    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6063    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6064echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6065    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6067    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6068echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6069    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6071    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6073    (
6074      cat <<\_ASBOX
6075## ------------------------------------------- ##
6076## Report this to orxonox-dev@mail.datacore.ch ##
6077## ------------------------------------------- ##
6078_ASBOX
6079    ) |
6080      sed "s/^/$as_me: WARNING:     /" >&2
6081    ;;
6082esac
6083echo "$as_me:$LINENO: checking for $ac_header" >&5
6084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6085if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088  eval "$as_ac_Header=\$ac_header_preproc"
6089fi
6090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092
6093fi
6094if test `eval echo '${'$as_ac_Header'}'` = yes; then
6095  cat >>confdefs.h <<_ACEOF
6096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097_ACEOF
6098
6099fi
6100
6101done
6102
6103echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6104echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6105if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  if test "$cross_compiling" = yes; then
6109  ac_cv_func_malloc_0_nonnull=no
6110else
6111  cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h.  */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h.  */
6117#if STDC_HEADERS || HAVE_STDLIB_H
6118# include <stdlib.h>
6119#else
6120char *malloc ();
6121#endif
6122
6123int
6124main ()
6125{
6126exit (malloc (0) ? 0 : 1);
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131rm -f conftest$ac_exeext
6132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6133  (eval $ac_link) 2>&5
6134  ac_status=$?
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138  (eval $ac_try) 2>&5
6139  ac_status=$?
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); }; }; then
6142  ac_cv_func_malloc_0_nonnull=yes
6143else
6144  echo "$as_me: program exited with status $ac_status" >&5
6145echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148( exit $ac_status )
6149ac_cv_func_malloc_0_nonnull=no
6150fi
6151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6152fi
6153fi
6154echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6155echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6156if test $ac_cv_func_malloc_0_nonnull = yes; then
6157
6158cat >>confdefs.h <<\_ACEOF
6159#define HAVE_MALLOC 1
6160_ACEOF
6161
6162else
6163  cat >>confdefs.h <<\_ACEOF
6164#define HAVE_MALLOC 0
6165_ACEOF
6166
6167   case $LIBOBJS in
6168    "malloc.$ac_objext"   | \
6169  *" malloc.$ac_objext"   | \
6170    "malloc.$ac_objext "* | \
6171  *" malloc.$ac_objext "* ) ;;
6172  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6173esac
6174
6175
6176cat >>confdefs.h <<\_ACEOF
6177#define malloc rpl_malloc
6178_ACEOF
6179
6180fi
6181
6182
6183
6184
6185
6186for ac_func in bzero sqrt
6187do
6188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6189echo "$as_me:$LINENO: checking for $ac_func" >&5
6190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6191if eval "test \"\${$as_ac_var+set}\" = set"; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h.  */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h.  */
6200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6201   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6202#define $ac_func innocuous_$ac_func
6203
6204/* System header to define __stub macros and hopefully few prototypes,
6205    which can conflict with char $ac_func (); below.
6206    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6207    <limits.h> exists even on freestanding compilers.  */
6208
6209#ifdef __STDC__
6210# include <limits.h>
6211#else
6212# include <assert.h>
6213#endif
6214
6215#undef $ac_func
6216
6217/* Override any gcc2 internal prototype to avoid an error.  */
6218#ifdef __cplusplus
6219extern "C"
6220{
6221#endif
6222/* We use char because int might match the return type of a gcc2
6223   builtin and then its argument prototype would still apply.  */
6224char $ac_func ();
6225/* The GNU C library defines this for functions which it implements
6226    to always fail with ENOSYS.  Some functions are actually named
6227    something starting with __ and the normal name is an alias.  */
6228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6229choke me
6230#else
6231char (*f) () = $ac_func;
6232#endif
6233#ifdef __cplusplus
6234}
6235#endif
6236
6237int
6238main ()
6239{
6240return f != $ac_func;
6241  ;
6242  return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247  (eval $ac_link) 2>conftest.er1
6248  ac_status=$?
6249  grep -v '^ *+' conftest.er1 >conftest.err
6250  rm -f conftest.er1
6251  cat conftest.err >&5
6252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253  (exit $ac_status); } &&
6254         { ac_try='test -z "$ac_c_werror_flag"
6255                         || test ! -s conftest.err'
6256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257  (eval $ac_try) 2>&5
6258  ac_status=$?
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); }; } &&
6261         { ac_try='test -s conftest$ac_exeext'
6262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263  (eval $ac_try) 2>&5
6264  ac_status=$?
6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); }; }; then
6267  eval "$as_ac_var=yes"
6268else
6269  echo "$as_me: failed program was:" >&5
6270sed 's/^/| /' conftest.$ac_ext >&5
6271
6272eval "$as_ac_var=no"
6273fi
6274rm -f conftest.err conftest.$ac_objext \
6275      conftest$ac_exeext conftest.$ac_ext
6276fi
6277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6279if test `eval echo '${'$as_ac_var'}'` = yes; then
6280  cat >>confdefs.h <<_ACEOF
6281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6282_ACEOF
6283
6284fi
6285done
6286
6287
6288                                        ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile"
6289
6290cat >confcache <<\_ACEOF
6291# This file is a shell script that caches the results of configure
6292# tests run on this system so they can be shared between configure
6293# scripts and configure runs, see configure's option --config-cache.
6294# It is not useful on other systems.  If it contains results you don't
6295# want to keep, you may remove or edit it.
6296#
6297# config.status only pays attention to the cache file if you give it
6298# the --recheck option to rerun configure.
6299#
6300# `ac_cv_env_foo' variables (set or unset) will be overridden when
6301# loading this file, other *unset* `ac_cv_foo' will be assigned the
6302# following values.
6303
6304_ACEOF
6305
6306# The following way of writing the cache mishandles newlines in values,
6307# but we know of no workaround that is simple, portable, and efficient.
6308# So, don't put newlines in cache variables' values.
6309# Ultrix sh set writes to stderr and can't be redirected directly,
6310# and sets the high bit in the cache file unless we assign to the vars.
6311{
6312  (set) 2>&1 |
6313    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6314    *ac_space=\ *)
6315      # `set' does not quote correctly, so add quotes (double-quote
6316      # substitution turns \\\\ into \\, and sed turns \\ into \).
6317      sed -n \
6318        "s/'/'\\\\''/g;
6319          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6320      ;;
6321    *)
6322      # `set' quotes correctly as required by POSIX, so do not add quotes.
6323      sed -n \
6324        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6325      ;;
6326    esac;
6327} |
6328  sed '
6329     t clear
6330     : clear
6331     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6332     t end
6333     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6334     : end' >>confcache
6335if diff $cache_file confcache >/dev/null 2>&1; then :; else
6336  if test -w $cache_file; then
6337    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6338    cat confcache >$cache_file
6339  else
6340    echo "not updating unwritable cache $cache_file"
6341  fi
6342fi
6343rm -f confcache
6344
6345test "x$prefix" = xNONE && prefix=$ac_default_prefix
6346# Let make expand exec_prefix.
6347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6348
6349# VPATH may cause trouble with some makes, so we remove $(srcdir),
6350# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6351# trailing colons and then remove the whole line if VPATH becomes empty
6352# (actually we leave an empty line to preserve line numbers).
6353if test "x$srcdir" = x.; then
6354  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6355s/:*\$(srcdir):*/:/;
6356s/:*\${srcdir}:*/:/;
6357s/:*@srcdir@:*/:/;
6358s/^\([^=]*=[     ]*\):*/\1/;
6359s/:*$//;
6360s/^[^=]*=[       ]*$//;
6361}'
6362fi
6363
6364DEFS=-DHAVE_CONFIG_H
6365
6366ac_libobjs=
6367ac_ltlibobjs=
6368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6369  # 1. Remove the extension, and $U if already installed.
6370  ac_i=`echo "$ac_i" |
6371         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6372  # 2. Add them.
6373  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6374  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6375done
6376LIBOBJS=$ac_libobjs
6377
6378LTLIBOBJS=$ac_ltlibobjs
6379
6380
6381if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6382  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6383Usually this means the macro was only invoked conditionally." >&5
6384echo "$as_me: error: conditional \"AMDEP\" was never defined.
6385Usually this means the macro was only invoked conditionally." >&2;}
6386   { (exit 1); exit 1; }; }
6387fi
6388if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6389  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6390Usually this means the macro was only invoked conditionally." >&5
6391echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6392Usually this means the macro was only invoked conditionally." >&2;}
6393   { (exit 1); exit 1; }; }
6394fi
6395if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6396  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6397Usually this means the macro was only invoked conditionally." >&5
6398echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6399Usually this means the macro was only invoked conditionally." >&2;}
6400   { (exit 1); exit 1; }; }
6401fi
6402
6403: ${CONFIG_STATUS=./config.status}
6404ac_clean_files_save=$ac_clean_files
6405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6406{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6407echo "$as_me: creating $CONFIG_STATUS" >&6;}
6408cat >$CONFIG_STATUS <<_ACEOF
6409#! $SHELL
6410# Generated by $as_me.
6411# Run this file to recreate the current configuration.
6412# Compiler output produced by configure, useful for debugging
6413# configure, is in config.log if it exists.
6414
6415debug=false
6416ac_cs_recheck=false
6417ac_cs_silent=false
6418SHELL=\${CONFIG_SHELL-$SHELL}
6419_ACEOF
6420
6421cat >>$CONFIG_STATUS <<\_ACEOF
6422## --------------------- ##
6423## M4sh Initialization.  ##
6424## --------------------- ##
6425
6426# Be Bourne compatible
6427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6428  emulate sh
6429  NULLCMD=:
6430  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6431  # is contrary to our usage.  Disable this feature.
6432  alias -g '${1+"$@"}'='"$@"'
6433elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6434  set -o posix
6435fi
6436DUALCASE=1; export DUALCASE # for MKS sh
6437
6438# Support unset when possible.
6439if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6440  as_unset=unset
6441else
6442  as_unset=false
6443fi
6444
6445
6446# Work around bugs in pre-3.0 UWIN ksh.
6447$as_unset ENV MAIL MAILPATH
6448PS1='$ '
6449PS2='> '
6450PS4='+ '
6451
6452# NLS nuisances.
6453for as_var in \
6454  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6455  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6456  LC_TELEPHONE LC_TIME
6457do
6458  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6459    eval $as_var=C; export $as_var
6460  else
6461    $as_unset $as_var
6462  fi
6463done
6464
6465# Required to use basename.
6466if expr a : '\(a\)' >/dev/null 2>&1; then
6467  as_expr=expr
6468else
6469  as_expr=false
6470fi
6471
6472if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6473  as_basename=basename
6474else
6475  as_basename=false
6476fi
6477
6478
6479# Name of the executable.
6480as_me=`$as_basename "$0" ||
6481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6482         X"$0" : 'X\(//\)$' \| \
6483         X"$0" : 'X\(/\)$' \| \
6484         .     : '\(.\)' 2>/dev/null ||
6485echo X/"$0" |
6486    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6487          /^X\/\(\/\/\)$/{ s//\1/; q; }
6488          /^X\/\(\/\).*/{ s//\1/; q; }
6489          s/.*/./; q'`
6490
6491
6492# PATH needs CR, and LINENO needs CR and PATH.
6493# Avoid depending upon Character Ranges.
6494as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6495as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6496as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6497as_cr_digits='0123456789'
6498as_cr_alnum=$as_cr_Letters$as_cr_digits
6499
6500# The user is always right.
6501if test "${PATH_SEPARATOR+set}" != set; then
6502  echo "#! /bin/sh" >conf$$.sh
6503  echo  "exit 0"   >>conf$$.sh
6504  chmod +x conf$$.sh
6505  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6506    PATH_SEPARATOR=';'
6507  else
6508    PATH_SEPARATOR=:
6509  fi
6510  rm -f conf$$.sh
6511fi
6512
6513
6514  as_lineno_1=$LINENO
6515  as_lineno_2=$LINENO
6516  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6517  test "x$as_lineno_1" != "x$as_lineno_2" &&
6518  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6519  # Find who we are.  Look in the path if we contain no path at all
6520  # relative or not.
6521  case $0 in
6522    *[\\/]* ) as_myself=$0 ;;
6523    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6529done
6530
6531       ;;
6532  esac
6533  # We did not find ourselves, most probably we were run as `sh COMMAND'
6534  # in which case we are not to be found in the path.
6535  if test "x$as_myself" = x; then
6536    as_myself=$0
6537  fi
6538  if test ! -f "$as_myself"; then
6539    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6540echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6541   { (exit 1); exit 1; }; }
6542  fi
6543  case $CONFIG_SHELL in
6544  '')
6545    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6547do
6548  IFS=$as_save_IFS
6549  test -z "$as_dir" && as_dir=.
6550  for as_base in sh bash ksh sh5; do
6551         case $as_dir in
6552         /*)
6553           if ("$as_dir/$as_base" -c '
6554  as_lineno_1=$LINENO
6555  as_lineno_2=$LINENO
6556  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6557  test "x$as_lineno_1" != "x$as_lineno_2" &&
6558  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6559             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6560             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6561             CONFIG_SHELL=$as_dir/$as_base
6562             export CONFIG_SHELL
6563             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6564           fi;;
6565         esac
6566       done
6567done
6568;;
6569  esac
6570
6571  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6572  # uniformly replaced by the line number.  The first 'sed' inserts a
6573  # line-number line before each line; the second 'sed' does the real
6574  # work.  The second script uses 'N' to pair each line-number line
6575  # with the numbered line, and appends trailing '-' during
6576  # substitution so that $LINENO is not a special case at line end.
6577  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6578  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6579  sed '=' <$as_myself |
6580    sed '
6581      N
6582      s,$,-,
6583      : loop
6584      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6585      t loop
6586      s,-$,,
6587      s,^['$as_cr_digits']*\n,,
6588    ' >$as_me.lineno &&
6589  chmod +x $as_me.lineno ||
6590    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6591echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6592   { (exit 1); exit 1; }; }
6593
6594  # Don't try to exec as it changes $[0], causing all sort of problems
6595  # (the dirname of $[0] is not the place where we might find the
6596  # original and so on.  Autoconf is especially sensible to this).
6597  . ./$as_me.lineno
6598  # Exit status is that of the last command.
6599  exit
6600}
6601
6602
6603case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6604  *c*,-n*) ECHO_N= ECHO_C='
6605' ECHO_T='      ' ;;
6606  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6607  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6608esac
6609
6610if expr a : '\(a\)' >/dev/null 2>&1; then
6611  as_expr=expr
6612else
6613  as_expr=false
6614fi
6615
6616rm -f conf$$ conf$$.exe conf$$.file
6617echo >conf$$.file
6618if ln -s conf$$.file conf$$ 2>/dev/null; then
6619  # We could just check for DJGPP; but this test a) works b) is more generic
6620  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6621  if test -f conf$$.exe; then
6622    # Don't use ln at all; we don't have any links
6623    as_ln_s='cp -p'
6624  else
6625    as_ln_s='ln -s'
6626  fi
6627elif ln conf$$.file conf$$ 2>/dev/null; then
6628  as_ln_s=ln
6629else
6630  as_ln_s='cp -p'
6631fi
6632rm -f conf$$ conf$$.exe conf$$.file
6633
6634if mkdir -p . 2>/dev/null; then
6635  as_mkdir_p=:
6636else
6637  test -d ./-p && rmdir ./-p
6638  as_mkdir_p=false
6639fi
6640
6641as_executable_p="test -f"
6642
6643# Sed expression to map a string onto a valid CPP name.
6644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6645
6646# Sed expression to map a string onto a valid variable name.
6647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6648
6649
6650# IFS
6651# We need space, tab and new line, in precisely that order.
6652as_nl='
6653'
6654IFS="   $as_nl"
6655
6656# CDPATH.
6657$as_unset CDPATH
6658
6659exec 6>&1
6660
6661# Open the log real soon, to keep \$[0] and so on meaningful, and to
6662# report actual input values of CONFIG_FILES etc. instead of their
6663# values after options handling.  Logging --version etc. is OK.
6664exec 5>>config.log
6665{
6666  echo
6667  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6668## Running $as_me. ##
6669_ASBOX
6670} >&5
6671cat >&5 <<_CSEOF
6672
6673This file was extended by orxonox $as_me 0.1-pre-alpha, which was
6674generated by GNU Autoconf 2.59.  Invocation command line was
6675
6676  CONFIG_FILES    = $CONFIG_FILES
6677  CONFIG_HEADERS  = $CONFIG_HEADERS
6678  CONFIG_LINKS    = $CONFIG_LINKS
6679  CONFIG_COMMANDS = $CONFIG_COMMANDS
6680  $ $0 $@
6681
6682_CSEOF
6683echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6684echo >&5
6685_ACEOF
6686
6687# Files that config.status was made for.
6688if test -n "$ac_config_files"; then
6689  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6690fi
6691
6692if test -n "$ac_config_headers"; then
6693  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6694fi
6695
6696if test -n "$ac_config_links"; then
6697  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6698fi
6699
6700if test -n "$ac_config_commands"; then
6701  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6702fi
6703
6704cat >>$CONFIG_STATUS <<\_ACEOF
6705
6706ac_cs_usage="\
6707\`$as_me' instantiates files from templates according to the
6708current configuration.
6709
6710Usage: $0 [OPTIONS] [FILE]...
6711
6712  -h, --help       print this help, then exit
6713  -V, --version    print version number, then exit
6714  -q, --quiet      do not print progress messages
6715  -d, --debug      don't remove temporary files
6716      --recheck    update $as_me by reconfiguring in the same conditions
6717  --file=FILE[:TEMPLATE]
6718                   instantiate the configuration file FILE
6719  --header=FILE[:TEMPLATE]
6720                   instantiate the configuration header FILE
6721
6722Configuration files:
6723$config_files
6724
6725Configuration headers:
6726$config_headers
6727
6728Configuration commands:
6729$config_commands
6730
6731Report bugs to <bug-autoconf@gnu.org>."
6732_ACEOF
6733
6734cat >>$CONFIG_STATUS <<_ACEOF
6735ac_cs_version="\\
6736orxonox config.status 0.1-pre-alpha
6737configured by $0, generated by GNU Autoconf 2.59,
6738  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6739
6740Copyright (C) 2003 Free Software Foundation, Inc.
6741This config.status script is free software; the Free Software Foundation
6742gives unlimited permission to copy, distribute and modify it."
6743srcdir=$srcdir
6744INSTALL="$INSTALL"
6745_ACEOF
6746
6747cat >>$CONFIG_STATUS <<\_ACEOF
6748# If no file are specified by the user, then we need to provide default
6749# value.  By we need to know if files were specified by the user.
6750ac_need_defaults=:
6751while test $# != 0
6752do
6753  case $1 in
6754  --*=*)
6755    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6756    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6757    ac_shift=:
6758    ;;
6759  -*)
6760    ac_option=$1
6761    ac_optarg=$2
6762    ac_shift=shift
6763    ;;
6764  *) # This is not an option, so the user has probably given explicit
6765     # arguments.
6766     ac_option=$1
6767     ac_need_defaults=false;;
6768  esac
6769
6770  case $ac_option in
6771  # Handling of the options.
6772_ACEOF
6773cat >>$CONFIG_STATUS <<\_ACEOF
6774  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6775    ac_cs_recheck=: ;;
6776  --version | --vers* | -V )
6777    echo "$ac_cs_version"; exit 0 ;;
6778  --he | --h)
6779    # Conflict between --help and --header
6780    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6781Try \`$0 --help' for more information." >&5
6782echo "$as_me: error: ambiguous option: $1
6783Try \`$0 --help' for more information." >&2;}
6784   { (exit 1); exit 1; }; };;
6785  --help | --hel | -h )
6786    echo "$ac_cs_usage"; exit 0 ;;
6787  --debug | --d* | -d )
6788    debug=: ;;
6789  --file | --fil | --fi | --f )
6790    $ac_shift
6791    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6792    ac_need_defaults=false;;
6793  --header | --heade | --head | --hea )
6794    $ac_shift
6795    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6796    ac_need_defaults=false;;
6797  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6798  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6799    ac_cs_silent=: ;;
6800
6801  # This is an error.
6802  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6803Try \`$0 --help' for more information." >&5
6804echo "$as_me: error: unrecognized option: $1
6805Try \`$0 --help' for more information." >&2;}
6806   { (exit 1); exit 1; }; } ;;
6807
6808  *) ac_config_targets="$ac_config_targets $1" ;;
6809
6810  esac
6811  shift
6812done
6813
6814ac_configure_extra_args=
6815
6816if $ac_cs_silent; then
6817  exec 6>/dev/null
6818  ac_configure_extra_args="$ac_configure_extra_args --silent"
6819fi
6820
6821_ACEOF
6822cat >>$CONFIG_STATUS <<_ACEOF
6823if \$ac_cs_recheck; then
6824  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6825  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6826fi
6827
6828_ACEOF
6829
6830cat >>$CONFIG_STATUS <<_ACEOF
6831#
6832# INIT-COMMANDS section.
6833#
6834
6835AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6836
6837_ACEOF
6838
6839
6840
6841cat >>$CONFIG_STATUS <<\_ACEOF
6842for ac_config_target in $ac_config_targets
6843do
6844  case "$ac_config_target" in
6845  # Handling of arguments.
6846  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6847  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
6848  "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
6849  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6850  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6851  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6852  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6853echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6854   { (exit 1); exit 1; }; };;
6855  esac
6856done
6857
6858# If the user did not use the arguments to specify the items to instantiate,
6859# then the envvar interface is used.  Set only those that are not.
6860# We use the long form for the default assignment because of an extremely
6861# bizarre bug on SunOS 4.1.3.
6862if $ac_need_defaults; then
6863  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6864  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6865  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6866fi
6867
6868# Have a temporary directory for convenience.  Make it in the build tree
6869# simply because there is no reason to put it here, and in addition,
6870# creating and moving files from /tmp can sometimes cause problems.
6871# Create a temporary directory, and hook for its removal unless debugging.
6872$debug ||
6873{
6874  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6875  trap '{ (exit 1); exit 1; }' 1 2 13 15
6876}
6877
6878# Create a (secure) tmp directory for tmp files.
6879
6880{
6881  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6882  test -n "$tmp" && test -d "$tmp"
6883}  ||
6884{
6885  tmp=./confstat$$-$RANDOM
6886  (umask 077 && mkdir $tmp)
6887} ||
6888{
6889   echo "$me: cannot create a temporary directory in ." >&2
6890   { (exit 1); exit 1; }
6891}
6892
6893_ACEOF
6894
6895cat >>$CONFIG_STATUS <<_ACEOF
6896
6897#
6898# CONFIG_FILES section.
6899#
6900
6901# No need to generate the scripts if there are no CONFIG_FILES.
6902# This happens for instance when ./config.status config.h
6903if test -n "\$CONFIG_FILES"; then
6904  # Protect against being on the right side of a sed subst in config.status.
6905  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6906   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6907s,@SHELL@,$SHELL,;t t
6908s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6909s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6910s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6911s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6912s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6913s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6914s,@exec_prefix@,$exec_prefix,;t t
6915s,@prefix@,$prefix,;t t
6916s,@program_transform_name@,$program_transform_name,;t t
6917s,@bindir@,$bindir,;t t
6918s,@sbindir@,$sbindir,;t t
6919s,@libexecdir@,$libexecdir,;t t
6920s,@datadir@,$datadir,;t t
6921s,@sysconfdir@,$sysconfdir,;t t
6922s,@sharedstatedir@,$sharedstatedir,;t t
6923s,@localstatedir@,$localstatedir,;t t
6924s,@libdir@,$libdir,;t t
6925s,@includedir@,$includedir,;t t
6926s,@oldincludedir@,$oldincludedir,;t t
6927s,@infodir@,$infodir,;t t
6928s,@mandir@,$mandir,;t t
6929s,@build_alias@,$build_alias,;t t
6930s,@host_alias@,$host_alias,;t t
6931s,@target_alias@,$target_alias,;t t
6932s,@DEFS@,$DEFS,;t t
6933s,@ECHO_C@,$ECHO_C,;t t
6934s,@ECHO_N@,$ECHO_N,;t t
6935s,@ECHO_T@,$ECHO_T,;t t
6936s,@LIBS@,$LIBS,;t t
6937s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6938s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6939s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6940s,@CYGPATH_W@,$CYGPATH_W,;t t
6941s,@PACKAGE@,$PACKAGE,;t t
6942s,@VERSION@,$VERSION,;t t
6943s,@ACLOCAL@,$ACLOCAL,;t t
6944s,@AUTOCONF@,$AUTOCONF,;t t
6945s,@AUTOMAKE@,$AUTOMAKE,;t t
6946s,@AUTOHEADER@,$AUTOHEADER,;t t
6947s,@MAKEINFO@,$MAKEINFO,;t t
6948s,@AMTAR@,$AMTAR,;t t
6949s,@install_sh@,$install_sh,;t t
6950s,@STRIP@,$STRIP,;t t
6951s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6952s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6953s,@AWK@,$AWK,;t t
6954s,@SET_MAKE@,$SET_MAKE,;t t
6955s,@am__leading_dot@,$am__leading_dot,;t t
6956s,@MSBITFIELDS@,$MSBITFIELDS,;t t
6957s,@CXX@,$CXX,;t t
6958s,@CXXFLAGS@,$CXXFLAGS,;t t
6959s,@LDFLAGS@,$LDFLAGS,;t t
6960s,@CPPFLAGS@,$CPPFLAGS,;t t
6961s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6962s,@EXEEXT@,$EXEEXT,;t t
6963s,@OBJEXT@,$OBJEXT,;t t
6964s,@DEPDIR@,$DEPDIR,;t t
6965s,@am__include@,$am__include,;t t
6966s,@am__quote@,$am__quote,;t t
6967s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6968s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6969s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6970s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6971s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6972s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6973s,@CC@,$CC,;t t
6974s,@CFLAGS@,$CFLAGS,;t t
6975s,@ac_ct_CC@,$ac_ct_CC,;t t
6976s,@CCDEPMODE@,$CCDEPMODE,;t t
6977s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6978s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6979s,@CPP@,$CPP,;t t
6980s,@EGREP@,$EGREP,;t t
6981s,@LIBOBJS@,$LIBOBJS,;t t
6982s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6983CEOF
6984
6985_ACEOF
6986
6987  cat >>$CONFIG_STATUS <<\_ACEOF
6988  # Split the substitutions into bite-sized pieces for seds with
6989  # small command number limits, like on Digital OSF/1 and HP-UX.
6990  ac_max_sed_lines=48
6991  ac_sed_frag=1 # Number of current file.
6992  ac_beg=1 # First line for current file.
6993  ac_end=$ac_max_sed_lines # Line after last line for current file.
6994  ac_more_lines=:
6995  ac_sed_cmds=
6996  while $ac_more_lines; do
6997    if test $ac_beg -gt 1; then
6998      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6999    else
7000      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7001    fi
7002    if test ! -s $tmp/subs.frag; then
7003      ac_more_lines=false
7004    else
7005      # The purpose of the label and of the branching condition is to
7006      # speed up the sed processing (if there are no `@' at all, there
7007      # is no need to browse any of the substitutions).
7008      # These are the two extra sed commands mentioned above.
7009      (echo ':t
7010  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7011      if test -z "$ac_sed_cmds"; then
7012        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7013      else
7014        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7015      fi
7016      ac_sed_frag=`expr $ac_sed_frag + 1`
7017      ac_beg=$ac_end
7018      ac_end=`expr $ac_end + $ac_max_sed_lines`
7019    fi
7020  done
7021  if test -z "$ac_sed_cmds"; then
7022    ac_sed_cmds=cat
7023  fi
7024fi # test -n "$CONFIG_FILES"
7025
7026_ACEOF
7027cat >>$CONFIG_STATUS <<\_ACEOF
7028for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7029  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7030  case $ac_file in
7031  - | *:- | *:-:* ) # input from stdin
7032        cat >$tmp/stdin
7033        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7034        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7035  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7036        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7037  * )   ac_file_in=$ac_file.in ;;
7038  esac
7039
7040  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7041  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7042$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7043         X"$ac_file" : 'X\(//\)[^/]' \| \
7044         X"$ac_file" : 'X\(//\)$' \| \
7045         X"$ac_file" : 'X\(/\)' \| \
7046         .     : '\(.\)' 2>/dev/null ||
7047echo X"$ac_file" |
7048    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7049          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7050          /^X\(\/\/\)$/{ s//\1/; q; }
7051          /^X\(\/\).*/{ s//\1/; q; }
7052          s/.*/./; q'`
7053  { if $as_mkdir_p; then
7054    mkdir -p "$ac_dir"
7055  else
7056    as_dir="$ac_dir"
7057    as_dirs=
7058    while test ! -d "$as_dir"; do
7059      as_dirs="$as_dir $as_dirs"
7060      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7062         X"$as_dir" : 'X\(//\)[^/]' \| \
7063         X"$as_dir" : 'X\(//\)$' \| \
7064         X"$as_dir" : 'X\(/\)' \| \
7065         .     : '\(.\)' 2>/dev/null ||
7066echo X"$as_dir" |
7067    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7068          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7069          /^X\(\/\/\)$/{ s//\1/; q; }
7070          /^X\(\/\).*/{ s//\1/; q; }
7071          s/.*/./; q'`
7072    done
7073    test ! -n "$as_dirs" || mkdir $as_dirs
7074  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7076   { (exit 1); exit 1; }; }; }
7077
7078  ac_builddir=.
7079
7080if test "$ac_dir" != .; then
7081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7082  # A "../" for each directory in $ac_dir_suffix.
7083  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7084else
7085  ac_dir_suffix= ac_top_builddir=
7086fi
7087
7088case $srcdir in
7089  .)  # No --srcdir option.  We are building in place.
7090    ac_srcdir=.
7091    if test -z "$ac_top_builddir"; then
7092       ac_top_srcdir=.
7093    else
7094       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7095    fi ;;
7096  [\\/]* | ?:[\\/]* )  # Absolute path.
7097    ac_srcdir=$srcdir$ac_dir_suffix;
7098    ac_top_srcdir=$srcdir ;;
7099  *) # Relative path.
7100    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7101    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7102esac
7103
7104# Do not use `cd foo && pwd` to compute absolute paths, because
7105# the directories may not exist.
7106case `pwd` in
7107.) ac_abs_builddir="$ac_dir";;
7108*)
7109  case "$ac_dir" in
7110  .) ac_abs_builddir=`pwd`;;
7111  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7112  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7113  esac;;
7114esac
7115case $ac_abs_builddir in
7116.) ac_abs_top_builddir=${ac_top_builddir}.;;
7117*)
7118  case ${ac_top_builddir}. in
7119  .) ac_abs_top_builddir=$ac_abs_builddir;;
7120  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7121  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7122  esac;;
7123esac
7124case $ac_abs_builddir in
7125.) ac_abs_srcdir=$ac_srcdir;;
7126*)
7127  case $ac_srcdir in
7128  .) ac_abs_srcdir=$ac_abs_builddir;;
7129  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7130  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7131  esac;;
7132esac
7133case $ac_abs_builddir in
7134.) ac_abs_top_srcdir=$ac_top_srcdir;;
7135*)
7136  case $ac_top_srcdir in
7137  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7138  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7139  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7140  esac;;
7141esac
7142
7143
7144  case $INSTALL in
7145  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7146  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7147  esac
7148
7149  if test x"$ac_file" != x-; then
7150    { echo "$as_me:$LINENO: creating $ac_file" >&5
7151echo "$as_me: creating $ac_file" >&6;}
7152    rm -f "$ac_file"
7153  fi
7154  # Let's still pretend it is `configure' which instantiates (i.e., don't
7155  # use $as_me), people would be surprised to read:
7156  #    /* config.h.  Generated by config.status.  */
7157  if test x"$ac_file" = x-; then
7158    configure_input=
7159  else
7160    configure_input="$ac_file.  "
7161  fi
7162  configure_input=$configure_input"Generated from `echo $ac_file_in |
7163                                     sed 's,.*/,,'` by configure."
7164
7165  # First look for the input files in the build tree, otherwise in the
7166  # src tree.
7167  ac_file_inputs=`IFS=:
7168    for f in $ac_file_in; do
7169      case $f in
7170      -) echo $tmp/stdin ;;
7171      [\\/$]*)
7172         # Absolute (can't be DOS-style, as IFS=:)
7173         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7174echo "$as_me: error: cannot find input file: $f" >&2;}
7175   { (exit 1); exit 1; }; }
7176         echo "$f";;
7177      *) # Relative
7178         if test -f "$f"; then
7179           # Build tree
7180           echo "$f"
7181         elif test -f "$srcdir/$f"; then
7182           # Source tree
7183           echo "$srcdir/$f"
7184         else
7185           # /dev/null tree
7186           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7187echo "$as_me: error: cannot find input file: $f" >&2;}
7188   { (exit 1); exit 1; }; }
7189         fi;;
7190      esac
7191    done` || { (exit 1); exit 1; }
7192_ACEOF
7193cat >>$CONFIG_STATUS <<_ACEOF
7194  sed "$ac_vpsub
7195$extrasub
7196_ACEOF
7197cat >>$CONFIG_STATUS <<\_ACEOF
7198:t
7199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7200s,@configure_input@,$configure_input,;t t
7201s,@srcdir@,$ac_srcdir,;t t
7202s,@abs_srcdir@,$ac_abs_srcdir,;t t
7203s,@top_srcdir@,$ac_top_srcdir,;t t
7204s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7205s,@builddir@,$ac_builddir,;t t
7206s,@abs_builddir@,$ac_abs_builddir,;t t
7207s,@top_builddir@,$ac_top_builddir,;t t
7208s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7209s,@INSTALL@,$ac_INSTALL,;t t
7210" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7211  rm -f $tmp/stdin
7212  if test x"$ac_file" != x-; then
7213    mv $tmp/out $ac_file
7214  else
7215    cat $tmp/out
7216    rm -f $tmp/out
7217  fi
7218
7219done
7220_ACEOF
7221cat >>$CONFIG_STATUS <<\_ACEOF
7222
7223#
7224# CONFIG_HEADER section.
7225#
7226
7227# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7228# NAME is the cpp macro being defined and VALUE is the value it is being given.
7229#
7230# ac_d sets the value in "#define NAME VALUE" lines.
7231ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7232ac_dB='[         ].*$,\1#\2'
7233ac_dC=' '
7234ac_dD=',;t'
7235# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7236ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7237ac_uB='$,\1#\2define\3'
7238ac_uC=' '
7239ac_uD=',;t'
7240
7241for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7242  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7243  case $ac_file in
7244  - | *:- | *:-:* ) # input from stdin
7245        cat >$tmp/stdin
7246        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7247        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7248  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7249        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7250  * )   ac_file_in=$ac_file.in ;;
7251  esac
7252
7253  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7254echo "$as_me: creating $ac_file" >&6;}
7255
7256  # First look for the input files in the build tree, otherwise in the
7257  # src tree.
7258  ac_file_inputs=`IFS=:
7259    for f in $ac_file_in; do
7260      case $f in
7261      -) echo $tmp/stdin ;;
7262      [\\/$]*)
7263         # Absolute (can't be DOS-style, as IFS=:)
7264         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7265echo "$as_me: error: cannot find input file: $f" >&2;}
7266   { (exit 1); exit 1; }; }
7267         # Do quote $f, to prevent DOS paths from being IFS'd.
7268         echo "$f";;
7269      *) # Relative
7270         if test -f "$f"; then
7271           # Build tree
7272           echo "$f"
7273         elif test -f "$srcdir/$f"; then
7274           # Source tree
7275           echo "$srcdir/$f"
7276         else
7277           # /dev/null tree
7278           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7279echo "$as_me: error: cannot find input file: $f" >&2;}
7280   { (exit 1); exit 1; }; }
7281         fi;;
7282      esac
7283    done` || { (exit 1); exit 1; }
7284  # Remove the trailing spaces.
7285  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7286
7287_ACEOF
7288
7289# Transform confdefs.h into two sed scripts, `conftest.defines' and
7290# `conftest.undefs', that substitutes the proper values into
7291# config.h.in to produce config.h.  The first handles `#define'
7292# templates, and the second `#undef' templates.
7293# And first: Protect against being on the right side of a sed subst in
7294# config.status.  Protect against being in an unquoted here document
7295# in config.status.
7296rm -f conftest.defines conftest.undefs
7297# Using a here document instead of a string reduces the quoting nightmare.
7298# Putting comments in sed scripts is not portable.
7299#
7300# `end' is used to avoid that the second main sed command (meant for
7301# 0-ary CPP macros) applies to n-ary macro definitions.
7302# See the Autoconf documentation for `clear'.
7303cat >confdef2sed.sed <<\_ACEOF
7304s/[\\&,]/\\&/g
7305s,[\\$`],\\&,g
7306t clear
7307: clear
7308s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7309t end
7310s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7311: end
7312_ACEOF
7313# If some macros were called several times there might be several times
7314# the same #defines, which is useless.  Nevertheless, we may not want to
7315# sort them, since we want the *last* AC-DEFINE to be honored.
7316uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7317sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7318rm -f confdef2sed.sed
7319
7320# This sed command replaces #undef with comments.  This is necessary, for
7321# example, in the case of _POSIX_SOURCE, which is predefined and required
7322# on some systems where configure will not decide to define it.
7323cat >>conftest.undefs <<\_ACEOF
7324s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7325_ACEOF
7326
7327# Break up conftest.defines because some shells have a limit on the size
7328# of here documents, and old seds have small limits too (100 cmds).
7329echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7330echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7331echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7332echo '  :' >>$CONFIG_STATUS
7333rm -f conftest.tail
7334while grep . conftest.defines >/dev/null
7335do
7336  # Write a limited-size here document to $tmp/defines.sed.
7337  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7338  # Speed up: don't consider the non `#define' lines.
7339  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7340  # Work around the forget-to-reset-the-flag bug.
7341  echo 't clr' >>$CONFIG_STATUS
7342  echo ': clr' >>$CONFIG_STATUS
7343  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7344  echo 'CEOF
7345  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7346  rm -f $tmp/in
7347  mv $tmp/out $tmp/in
7348' >>$CONFIG_STATUS
7349  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7350  rm -f conftest.defines
7351  mv conftest.tail conftest.defines
7352done
7353rm -f conftest.defines
7354echo '  fi # grep' >>$CONFIG_STATUS
7355echo >>$CONFIG_STATUS
7356
7357# Break up conftest.undefs because some shells have a limit on the size
7358# of here documents, and old seds have small limits too (100 cmds).
7359echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7360rm -f conftest.tail
7361while grep . conftest.undefs >/dev/null
7362do
7363  # Write a limited-size here document to $tmp/undefs.sed.
7364  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7365  # Speed up: don't consider the non `#undef'
7366  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7367  # Work around the forget-to-reset-the-flag bug.
7368  echo 't clr' >>$CONFIG_STATUS
7369  echo ': clr' >>$CONFIG_STATUS
7370  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7371  echo 'CEOF
7372  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7373  rm -f $tmp/in
7374  mv $tmp/out $tmp/in
7375' >>$CONFIG_STATUS
7376  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7377  rm -f conftest.undefs
7378  mv conftest.tail conftest.undefs
7379done
7380rm -f conftest.undefs
7381
7382cat >>$CONFIG_STATUS <<\_ACEOF
7383  # Let's still pretend it is `configure' which instantiates (i.e., don't
7384  # use $as_me), people would be surprised to read:
7385  #    /* config.h.  Generated by config.status.  */
7386  if test x"$ac_file" = x-; then
7387    echo "/* Generated by configure.  */" >$tmp/config.h
7388  else
7389    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7390  fi
7391  cat $tmp/in >>$tmp/config.h
7392  rm -f $tmp/in
7393  if test x"$ac_file" != x-; then
7394    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7395      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7396echo "$as_me: $ac_file is unchanged" >&6;}
7397    else
7398      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7399$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7400         X"$ac_file" : 'X\(//\)[^/]' \| \
7401         X"$ac_file" : 'X\(//\)$' \| \
7402         X"$ac_file" : 'X\(/\)' \| \
7403         .     : '\(.\)' 2>/dev/null ||
7404echo X"$ac_file" |
7405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7406          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7407          /^X\(\/\/\)$/{ s//\1/; q; }
7408          /^X\(\/\).*/{ s//\1/; q; }
7409          s/.*/./; q'`
7410      { if $as_mkdir_p; then
7411    mkdir -p "$ac_dir"
7412  else
7413    as_dir="$ac_dir"
7414    as_dirs=
7415    while test ! -d "$as_dir"; do
7416      as_dirs="$as_dir $as_dirs"
7417      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7419         X"$as_dir" : 'X\(//\)[^/]' \| \
7420         X"$as_dir" : 'X\(//\)$' \| \
7421         X"$as_dir" : 'X\(/\)' \| \
7422         .     : '\(.\)' 2>/dev/null ||
7423echo X"$as_dir" |
7424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7425          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7426          /^X\(\/\/\)$/{ s//\1/; q; }
7427          /^X\(\/\).*/{ s//\1/; q; }
7428          s/.*/./; q'`
7429    done
7430    test ! -n "$as_dirs" || mkdir $as_dirs
7431  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7432echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7433   { (exit 1); exit 1; }; }; }
7434
7435      rm -f $ac_file
7436      mv $tmp/config.h $ac_file
7437    fi
7438  else
7439    cat $tmp/config.h
7440    rm -f $tmp/config.h
7441  fi
7442# Compute $ac_file's index in $config_headers.
7443_am_stamp_count=1
7444for _am_header in $config_headers :; do
7445  case $_am_header in
7446    $ac_file | $ac_file:* )
7447      break ;;
7448    * )
7449      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7450  esac
7451done
7452echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7453$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7454         X$ac_file : 'X\(//\)[^/]' \| \
7455         X$ac_file : 'X\(//\)$' \| \
7456         X$ac_file : 'X\(/\)' \| \
7457         .     : '\(.\)' 2>/dev/null ||
7458echo X$ac_file |
7459    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7460          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7461          /^X\(\/\/\)$/{ s//\1/; q; }
7462          /^X\(\/\).*/{ s//\1/; q; }
7463          s/.*/./; q'`/stamp-h$_am_stamp_count
7464done
7465_ACEOF
7466cat >>$CONFIG_STATUS <<\_ACEOF
7467
7468#
7469# CONFIG_COMMANDS section.
7470#
7471for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7472  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7473  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7474  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7475$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7476         X"$ac_dest" : 'X\(//\)[^/]' \| \
7477         X"$ac_dest" : 'X\(//\)$' \| \
7478         X"$ac_dest" : 'X\(/\)' \| \
7479         .     : '\(.\)' 2>/dev/null ||
7480echo X"$ac_dest" |
7481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7482          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7483          /^X\(\/\/\)$/{ s//\1/; q; }
7484          /^X\(\/\).*/{ s//\1/; q; }
7485          s/.*/./; q'`
7486  { if $as_mkdir_p; then
7487    mkdir -p "$ac_dir"
7488  else
7489    as_dir="$ac_dir"
7490    as_dirs=
7491    while test ! -d "$as_dir"; do
7492      as_dirs="$as_dir $as_dirs"
7493      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7494$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7495         X"$as_dir" : 'X\(//\)[^/]' \| \
7496         X"$as_dir" : 'X\(//\)$' \| \
7497         X"$as_dir" : 'X\(/\)' \| \
7498         .     : '\(.\)' 2>/dev/null ||
7499echo X"$as_dir" |
7500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7501          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7502          /^X\(\/\/\)$/{ s//\1/; q; }
7503          /^X\(\/\).*/{ s//\1/; q; }
7504          s/.*/./; q'`
7505    done
7506    test ! -n "$as_dirs" || mkdir $as_dirs
7507  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7508echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7509   { (exit 1); exit 1; }; }; }
7510
7511  ac_builddir=.
7512
7513if test "$ac_dir" != .; then
7514  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7515  # A "../" for each directory in $ac_dir_suffix.
7516  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7517else
7518  ac_dir_suffix= ac_top_builddir=
7519fi
7520
7521case $srcdir in
7522  .)  # No --srcdir option.  We are building in place.
7523    ac_srcdir=.
7524    if test -z "$ac_top_builddir"; then
7525       ac_top_srcdir=.
7526    else
7527       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7528    fi ;;
7529  [\\/]* | ?:[\\/]* )  # Absolute path.
7530    ac_srcdir=$srcdir$ac_dir_suffix;
7531    ac_top_srcdir=$srcdir ;;
7532  *) # Relative path.
7533    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7534    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7535esac
7536
7537# Do not use `cd foo && pwd` to compute absolute paths, because
7538# the directories may not exist.
7539case `pwd` in
7540.) ac_abs_builddir="$ac_dir";;
7541*)
7542  case "$ac_dir" in
7543  .) ac_abs_builddir=`pwd`;;
7544  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7545  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7546  esac;;
7547esac
7548case $ac_abs_builddir in
7549.) ac_abs_top_builddir=${ac_top_builddir}.;;
7550*)
7551  case ${ac_top_builddir}. in
7552  .) ac_abs_top_builddir=$ac_abs_builddir;;
7553  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7554  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7555  esac;;
7556esac
7557case $ac_abs_builddir in
7558.) ac_abs_srcdir=$ac_srcdir;;
7559*)
7560  case $ac_srcdir in
7561  .) ac_abs_srcdir=$ac_abs_builddir;;
7562  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7563  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7564  esac;;
7565esac
7566case $ac_abs_builddir in
7567.) ac_abs_top_srcdir=$ac_top_srcdir;;
7568*)
7569  case $ac_top_srcdir in
7570  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7571  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7572  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7573  esac;;
7574esac
7575
7576
7577  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7578echo "$as_me: executing $ac_dest commands" >&6;}
7579  case $ac_dest in
7580    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7581  # Strip MF so we end up with the name of the file.
7582  mf=`echo "$mf" | sed -e 's/:.*$//'`
7583  # Check whether this is an Automake generated Makefile or not.
7584  # We used to match only the files named `Makefile.in', but
7585  # some people rename them; so instead we look at the file content.
7586  # Grep'ing the first line is not enough: some people post-process
7587  # each Makefile.in and add a new line on top of each file to say so.
7588  # So let's grep whole file.
7589  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7590    dirpart=`(dirname "$mf") 2>/dev/null ||
7591$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7592         X"$mf" : 'X\(//\)[^/]' \| \
7593         X"$mf" : 'X\(//\)$' \| \
7594         X"$mf" : 'X\(/\)' \| \
7595         .     : '\(.\)' 2>/dev/null ||
7596echo X"$mf" |
7597    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7598          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7599          /^X\(\/\/\)$/{ s//\1/; q; }
7600          /^X\(\/\).*/{ s//\1/; q; }
7601          s/.*/./; q'`
7602  else
7603    continue
7604  fi
7605  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7606  # Extract the definition of DEP_FILES from the Makefile without
7607  # running `make'.
7608  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7609  test -z "$DEPDIR" && continue
7610  # When using ansi2knr, U may be empty or an underscore; expand it
7611  U=`sed -n -e '/^U = / s///p' < "$mf"`
7612  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7613  # We invoke sed twice because it is the simplest approach to
7614  # changing $(DEPDIR) to its actual value in the expansion.
7615  for file in `sed -n -e '
7616    /^DEP_FILES = .*\\\\$/ {
7617      s/^DEP_FILES = //
7618      :loop
7619        s/\\\\$//
7620        p
7621        n
7622        /\\\\$/ b loop
7623      p
7624    }
7625    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7626       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7627    # Make sure the directory exists.
7628    test -f "$dirpart/$file" && continue
7629    fdir=`(dirname "$file") 2>/dev/null ||
7630$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7631         X"$file" : 'X\(//\)[^/]' \| \
7632         X"$file" : 'X\(//\)$' \| \
7633         X"$file" : 'X\(/\)' \| \
7634         .     : '\(.\)' 2>/dev/null ||
7635echo X"$file" |
7636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7637          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7638          /^X\(\/\/\)$/{ s//\1/; q; }
7639          /^X\(\/\).*/{ s//\1/; q; }
7640          s/.*/./; q'`
7641    { if $as_mkdir_p; then
7642    mkdir -p $dirpart/$fdir
7643  else
7644    as_dir=$dirpart/$fdir
7645    as_dirs=
7646    while test ! -d "$as_dir"; do
7647      as_dirs="$as_dir $as_dirs"
7648      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7650         X"$as_dir" : 'X\(//\)[^/]' \| \
7651         X"$as_dir" : 'X\(//\)$' \| \
7652         X"$as_dir" : 'X\(/\)' \| \
7653         .     : '\(.\)' 2>/dev/null ||
7654echo X"$as_dir" |
7655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7656          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7657          /^X\(\/\/\)$/{ s//\1/; q; }
7658          /^X\(\/\).*/{ s//\1/; q; }
7659          s/.*/./; q'`
7660    done
7661    test ! -n "$as_dirs" || mkdir $as_dirs
7662  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7663echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7664   { (exit 1); exit 1; }; }; }
7665
7666    # echo "creating $dirpart/$file"
7667    echo '# dummy' > "$dirpart/$file"
7668  done
7669done
7670 ;;
7671  esac
7672done
7673_ACEOF
7674
7675cat >>$CONFIG_STATUS <<\_ACEOF
7676
7677{ (exit 0); exit 0; }
7678_ACEOF
7679chmod +x $CONFIG_STATUS
7680ac_clean_files=$ac_clean_files_save
7681
7682
7683# configure is writing to config.log, and then calls config.status.
7684# config.status does its own redirection, appending to config.log.
7685# Unfortunately, on DOS this fails, as config.log is still kept open
7686# by configure, so config.status won't be able to write to it; its
7687# output is simply discarded.  So we exec the FD to /dev/null,
7688# effectively closing config.log, so it can be properly (re)opened and
7689# appended to by config.status.  When coming back to configure, we
7690# need to make the FD available again.
7691if test "$no_create" != yes; then
7692  ac_cs_success=:
7693  ac_config_status_args=
7694  test "$silent" = yes &&
7695    ac_config_status_args="$ac_config_status_args --quiet"
7696  exec 5>/dev/null
7697  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7698  exec 5>>config.log
7699  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7700  # would make configure fail if this is the last instruction.
7701  $ac_cs_success || { (exit 1); exit 1; }
7702fi
7703
Note: See TracBrowser for help on using the repository browser.